d808c871ac95192115b007ac71ffddfaa4b034b7
[gnulib.git] / ChangeLog
1 2011-09-21  Bruno Haible  <bruno@clisp.org>
2
3         unlockpt tests: Avoid test failure on NetBSD 5.1.
4         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
5         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
6
7 2011-09-21  Bruno Haible  <bruno@clisp.org>
8
9         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
10         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
11         * tests/test-getlogin_r.c (main): Likewise.
12
13 2011-09-20  Bruno Haible  <bruno@clisp.org>
14
15         time tests: Don't require pid_t.
16         * doc/posix-headers/time.texi: Revert last change.
17         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
18         * tests/test-time.c: Comment out the check for pid_t.
19
20 2011-09-20  Bruno Haible  <bruno@clisp.org>
21
22         fsync tests: Avoid a test failure on mingw.
23         * tests/test-fsync.c (main): Allow a failure with EIO.
24
25 2011-09-20  Bruno Haible  <bruno@clisp.org>
26
27         euidaccess: Update comments.
28         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
29
30 2011-09-20  Bruno Haible  <bruno@clisp.org>
31
32         Ensure EBADF returns for socket functions on mingw.
33         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
34         descriptor is invalid.
35         * lib/bind.c (rpl_bind): Likewise.
36         * lib/connect.c (rpl_connect): Likewise.
37         * lib/getpeername.c (rpl_getpeername): Likewise.
38         * lib/getsockname.c (rpl_getsockname): Likewise.
39         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40         * lib/listen.c (rpl_listen): Likewise.
41         * lib/recv.c (rpl_recv): Likewise.
42         * lib/recvfrom.c (rpl_recvfrom): Likewise.
43         * lib/send.c (rpl_send): Likewise.
44         * lib/sendto.c (rpl_sendto): Likewise.
45         * lib/setsockopt.c (rpl_setsockopt): Likewise.
46         * lib/shutdown.c (rpl_shutdown): Likewise.
47
48 2011-09-20  Bruno Haible  <bruno@clisp.org>
49
50         select tests: EBADF tests.
51         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
52         test_bad_fd): New functions.
53         (test_function): Invoke also test_bad_fd.
54
55 2011-09-20  Bruno Haible  <bruno@clisp.org>
56
57         Tests for module 'posix_spawn_file_actions_addopen.
58         * modules/posix_spawn_file_actions_addopen-tests: New file.
59         * tests/test-posix_spawn_file_actions_addopen.c: New file.
60
61         Tests for module 'posix_spawn_file_actions_adddup2'.
62         * modules/posix_spawn_file_actions_adddup2-tests: New file.
63         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
64
65         Tests for module 'posix_spawn_file_actions_addclose'.
66         * modules/posix_spawn_file_actions_addclose-tests: New file.
67         * tests/test-posix_spawn_file_actions_addclose.c: New file.
68
69 2011-09-20  Bruno Haible  <bruno@clisp.org>
70
71         Tests for module 'unlockpt'.
72         * modules/unlockpt-tests: New file.
73         * tests/test-unlockpt.c: New file.
74         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
75
76         Tests for module 'grantpt'.
77         * modules/grantpt-tests: New file.
78         * tests/test-grantpt.c: New file.
79         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
80
81 2011-09-20  Bruno Haible  <bruno@clisp.org>
82
83         freopen tests: EBADF tests.
84         * tests/test-freopen.c: Include errno.h, unistd.h.
85         (main): Add tests for EBADF, commented out for the moment.
86
87         fclose tests: EBADF tests.
88         * tests/test-fclose.c (main): Add tests for EBADF.
89
90         fflush tests: EBADF tests.
91         * tests/test-fflush.c: Include errno.h, macros.h.
92         (main): Add tests for EBADF.
93
94         ftello tests: EBADF tests.
95         * tests/test-ftello4.sh: New file.
96         * tests/test-ftello4.c: New file.
97         * modules/ftello-tests (Files): Add them.
98         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
99
100         fseeko tests: EBADF tests.
101         * tests/test-fseeko4.sh: New file.
102         * tests/test-fseeko4.c: New file.
103         * modules/fseeko-tests (Files): Add them.
104         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
105
106         Tests for function fputc().
107         * modules/fputc-tests: New file.
108         * tests/test-fputc.c: New file.
109         * modules/stdio-tests (Depends-on): Add fputc-tests.
110
111         Tests for function fgetc().
112         * modules/fgetc-tests: New file.
113         * tests/test-fgetc.c: New file.
114         * modules/stdio-tests (Depends-on): Add fgetc-tests.
115
116         Tests for function fdopen().
117         * modules/fdopen-tests: New file.
118         * tests/test-fdopen.c: New file.
119         * modules/stdio-tests (Depends-on): Add fdopen-tests.
120
121         Tests for module 'vdprintf'.
122         * modules/vdprintf-tests: New file.
123         * tests/test-vdprintf.c: New file.
124
125         Tests for module 'dprintf'.
126         * modules/dprintf-tests: New file.
127         * tests/test-dprintf.c: New file.
128
129 2011-09-20  Bruno Haible  <bruno@clisp.org>
130
131         Tests for module 'ioctl'.
132         * modules/ioctl-tests: New file.
133         * tests/test-ioctl.c: New file.
134
135 2011-09-20  Bruno Haible  <bruno@clisp.org>
136
137         fcntl tests: EBADF tests.
138         * tests/test-fcntl.c (main): Add more tests for EBADF.
139
140 2011-09-20  Bruno Haible  <bruno@clisp.org>
141
142         utimensat tests: EBADF tests.
143         * tests/test-utimensat.c (main): Add tests for EBADF.
144
145         renameat tests: EBADF tests.
146         * tests/test-renameat.c (main): Add tests for EBADF.
147
148         mkfifoat tests: EBADF tests.
149         * tests/test-mkfifoat.c (main): Add tests for EBADF.
150
151         readlinkat tests: EBADF tests.
152         * tests/test-readlinkat.c (main): Add tests for EBADF.
153
154         symlinkat tests: EBADF tests.
155         * tests/test-symlinkat.c (main): Add tests for EBADF.
156
157         linkat tests: EBADF tests.
158         * tests/test-linkat.c (main): Add tests for EBADF.
159
160         Tests for module 'faccessat'.
161         * modules/faccessat-tests: New file.
162         * tests/test-faccessat.c: New file.
163
164         fdopendir tests: EBADF tests.
165         * tests/test-fdopendir.c (main): Add more tests for EBADF.
166
167         openat tests: EBADF tests.
168         * tests/test-fchownat.c (main): Add tests for EBADF.
169         * tests/test-fstatat.c (main): Likewise.
170         * tests/test-mkdirat.c (main): Likewise.
171         * tests/test-openat.c (main): Likewise.
172         * tests/test-unlinkat.c (main): Likewise.
173         * tests/test-fchmodat.c: New file.
174         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
175         (Makefile.am): Also run 'test-fchmodat'.
176
177 2011-09-20  Bruno Haible  <bruno@clisp.org>
178
179         utimens, futimens, fdutimensat tests: EBADF tests.
180         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
181
182         Tests for function fstat().
183         * modules/fstat-tests: New file.
184         * tests/test-fstat.c: New file.
185         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
186
187 2011-09-20  Bruno Haible  <bruno@clisp.org>
188
189         test-ttyname_r tests: EBADF tests.
190         * tests/test-ttyname_r.c (main): Add tests for EBADF.
191
192         Tests for module 'isatty'.
193         * modules/isatty-tests: New file.
194         * tests/test-isatty.c: New file.
195
196         Tests for module 'write'.
197         * modules/write-tests: New file.
198         * tests/test-write.c: New file.
199
200         Tests for module 'read'.
201         * modules/read-tests: New file.
202         * tests/test-read.c: New file.
203
204         pwrite tests: EBADF tests.
205         * tests/test-pwrite.c (main): Add tests for EBADF.
206
207         pread tests: EBADF tests.
208         * tests/test-pread.c (main): Add tests for EBADF.
209
210         lseek tests: EBADF tests.
211         * tests/test-lseek.c (main): Add more tests for EBADF.
212
213         Tests for module 'ftruncate'.
214         * modules/ftruncate-tests: New file.
215         * tests/test-ftruncate.sh: New file.
216         * tests/test-ftruncate.c: New file.
217
218         fsync tests: EBADF tests.
219         * tests/test-fsync.c (main): Add more tests for EBADF.
220
221         fdatasync tests: EBADF tests.
222         * tests/test-fdatasync.c (main): Add more tests for EBADF.
223
224         Tests for module 'fchown'.
225         * modules/fchown-tests: New file.
226         * tests/test-fchown.c: New file.
227
228         Tests for module 'fchmod'.
229         * modules/fchmod-tests: New file.
230         * tests/test-fchmod.c: New file.
231
232         fchdir tests: EBADF tests.
233         * tests/test-fchdir.c (main): Add more tests for EBADF.
234
235         dup2 tests: EBADF tests.
236         * tests/test-dup2.c (main): Add more tests for EBADF.
237
238         Tests for module 'dup'.
239         * modules/dup-tests: New file.
240         * tests/test-dup.c: New file.
241
242         Tests for module 'close'.
243         * modules/close-tests: New file.
244         * tests/test-close.c: New file.
245
246 2011-09-20  Bruno Haible  <bruno@clisp.org>
247
248         Tests for module 'shutdown'.
249         * modules/shutdown-tests: New file.
250         * tests/test-shutdown.c: New file.
251
252         Tests for module 'setsockopt'.
253         * modules/setsockopt-tests: New file.
254         * tests/test-setsockopt.c: New file.
255
256         Tests for module 'sendto'.
257         * modules/sendto-tests: New file.
258         * tests/test-sendto.c: New file.
259
260         Tests for module 'send'.
261         * modules/send-tests: New file.
262         * tests/test-send.c: New file.
263
264         Tests for module 'recvfrom'.
265         * modules/recvfrom-tests: New file.
266         * tests/test-recvfrom.c: New file.
267
268         Tests for module 'recv'.
269         * modules/recv-tests: New file.
270         * tests/test-recv.c: New file.
271
272         Tests for module 'listen'.
273         * modules/listen-tests: New file.
274         * tests/test-listen.c: New file.
275
276         Tests for module 'getsockopt'.
277         * modules/getsockopt-tests: New file.
278         * tests/test-getsockopt.c: New file.
279
280         Tests for module 'getsockname'.
281         * modules/getsockname-tests: New file.
282         * tests/test-getsockname.c: New file.
283
284         Tests for module 'getpeername'.
285         * modules/getpeername-tests: New file.
286         * tests/test-getpeername.c: New file.
287
288         Tests for module 'connect'.
289         * modules/connect-tests: New file.
290         * tests/test-connect.c: New file.
291
292         Tests for module 'bind'.
293         * modules/bind-tests: New file.
294         * tests/test-bind.c: New file.
295
296         accept4 tests: Fix for native Windows.
297         * tests/test-accept4.c: Include sockets.h.
298         (main): Invoke gl_sockets_startup.
299         * modules/accept4-tests (Depends-on): Add sockets.
300
301         accept tests: Fix for native Windows.
302         * tests/test-accept.c: Include sockets.h.
303         (main): Invoke gl_sockets_startup.
304         * modules/accept-tests (Depends-on): Add sockets.
305
306 2011-09-19  Bruno Haible  <bruno@clisp.org>
307
308         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
309         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
310         do...while(0).
311         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
312         Suggested by Paul Eggert.
313
314 2011-09-19  Bruno Haible  <bruno@clisp.org>
315
316         sched: Ensure pid_t is defined.
317         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
318         not define pid_t.
319         * lib/sched.in.h: Include <sys/types.h>.
320         * doc/posix-headers/sched.texi: Mention the pid_t problem.
321         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
322
323 2011-09-19  Bruno Haible  <bruno@clisp.org>
324
325         msvc-inval: Ensure the entire expansion is a single statement.
326         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
327         of braces.
328
329 2011-09-19  Jim Meyering  <meyering@redhat.com>
330
331         tests: use printf, not echo in init.sh's warn_ function
332         * tests/init.sh (warn_): Use printf, not echo.  The latter would
333         misbehave when given strings containing a backslash or starting
334         with e.g., -n.  James Youngman suggested setting IFS.
335
336 2011-09-19  Eric Blake  <eblake@redhat.com>
337
338         futimens: enhance test
339         * tests/test-futimens.h (test_futimens): Also check for EBADF on
340         closed non-negative fd.
341
342         date: accept 'hence' as opposite of 'ago'
343         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
344         * tests/test-parse-datetime.c (main): Enhance test.
345         Suggested by Jesse Wilson.
346
347 2011-09-19  Jim Meyering  <meyering@redhat.com>
348
349         getcwd: don't fail in a deep directory on a system without openat
350         Before this change, getcwd would fail when called from a directory
351         of depth PATH_MAX / 3 or greater.  That was due to the fact that
352         the non-openat implementation used "..", "../..", "../../..", etc.
353         to access ancestor directories.  With too many, that string would
354         be longer than PATH_MAX.
355         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
356         using gnulib's openat replacement.
357         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
358         we're using the replacement function.
359
360 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
361
362         maint.mk: avoid warnings from perl about missing files
363         * top/maint.mk (def_sym_regex): Ignore files listed in
364         $(gl_other_headers_) that do not exist, say because a project
365         does not use a corresponding module.
366
367 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
368
369         stat: use pathmax.h only if needed
370         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
371         This is better for Emacs, which does not have a mingw port and
372         therefore can avoid the pathmax module.
373
374         utimens: remove dependency on dup2
375         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
376         to work around the Linux kernel bug.
377         * modules/utimens (Depends-on): Remove dup2.
378
379 2011-09-18  Bruno Haible  <bruno@clisp.org>
380
381         inet_ntop, inet_pton: Look for it also in libresolv.
382         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
383         libnsl, search for it in libresolv.
384         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
385         Needed on Solaris 7.
386
387 2011-09-18  Bruno Haible  <bruno@clisp.org>
388
389         accept, accept4 tests: Avoid link error on Solaris.
390         * modules/accept-tests (Makefile.am): Link test-accept against
391         $(LIBSOCKET).
392         * modules/accept4-tests (Makefile.am): Link test-accept4 against
393         $(LIBSOCKET).
394
395         accept4: Avoid link error on Solaris.
396         * modules/accept4 (Link): New section.
397
398         socket functions: Avoid link errors on Solaris.
399         * modules/accept (Depends-on): Add socketlib.
400         (Link): New section.
401         * modules/bind (Depends-on): Add socketlib.
402         (Link): New section.
403         * modules/connect (Depends-on): Add socketlib.
404         (Link): New section.
405         * modules/getpeername (Depends-on): Add socketlib.
406         (Link): New section.
407         * modules/getsockname (Depends-on): Add socketlib.
408         (Link): New section.
409         * modules/getsockopt (Depends-on): Add socketlib.
410         (Link): New section.
411         * modules/listen (Depends-on): Add socketlib.
412         (Link): New section.
413         * modules/recv (Depends-on): Add socketlib.
414         (Link): New section.
415         * modules/recvfrom (Depends-on): Add socketlib.
416         (Link): New section.
417         * modules/send (Depends-on): Add socketlib.
418         (Link): New section.
419         * modules/sendto (Depends-on): Add socketlib.
420         (Link): New section.
421         * modules/setsockopt (Depends-on): Add socketlib.
422         (Link): New section.
423         * modules/shutdown (Depends-on): Add socketlib.
424         (Link): New section.
425         * modules/socket (Depends-on): Add socketlib.
426         (Link): New section.
427
428 2011-09-18  Bruno Haible  <bruno@clisp.org>
429
430         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
431         * tests/test-ptsname.c (main): Terminate the test if it takes longer
432         than 5 seconds.
433         * modules/ptsname-tests (configure.ac): Test for alarm.
434
435 2011-09-18  Bruno Haible  <bruno@clisp.org>
436
437         posix_spawn_file_actions_add*: Fix module dependencies.
438         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
439         posix_spawn_file_actions_init.
440         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
441         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
442
443 2011-09-18  Bruno Haible  <bruno@clisp.org>
444
445         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
446         * tests/test-rename.h (test_rename): Allow error code EEXIST.
447         * tests/test-renameat.c (main): Likewise.
448
449 2011-09-18  Bruno Haible  <bruno@clisp.org>
450
451         Tests for module 'accept4'.
452         * modules/accept4-tests: New file.
453         * tests/test-accept4.c: New file.
454
455 2011-09-18  Bruno Haible  <bruno@clisp.org>
456
457         Tests for module 'accept'.
458         * modules/accept-tests: New file.
459         * tests/test-accept.c: New file.
460
461 2011-09-18  Bruno Haible  <bruno@clisp.org>
462
463         dup2: Support for MSVC.
464         * lib/dup2.c: Include msvc-inval.h.
465         (rpl_dup2): Handle invalid parameter notifications during dup2 and
466         _get_osfhandle calls.
467         * modules/dup2 (Depends-on): Add msvc-inval.
468         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
469
470         New module 'msvc-inval'.
471         * lib/msvc-inval.h: New file.
472         * lib/msvc-inval.c: New file.
473         * m4/msvc-inval.m4: New file.
474         * modules/msvc-inval: New file.
475
476 2011-09-17  Bruno Haible  <bruno@clisp.org>
477
478         Tests for module 'pclose'.
479         * modules/pclose-tests: New file.
480
481         New module 'pclose'.
482         * lib/stdio.in.h (pclose): New declaration.
483         * lib/pclose.c: New file.
484         * m4/pclose.m4: New file.
485         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
486         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
487         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
488         * modules/pclose: New file.
489         * modules/popen-tests (Depends-on): Add pclose.
490         * modules/popen-safer-tests (Depends-on): Likewise.
491         * doc/posix-functions/pclose.texi: Mention the new module.
492
493 2011-09-17  Bruno Haible  <bruno@clisp.org>
494
495         popen: Support for MSVC.
496         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
497         * lib/popen.c (popen): Provide alternate definition for native Windows.
498         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
499         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
500         * modules/popen (Depends-on, configure.ac): Update condition.
501         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
502         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
503         fixed.
504
505 2011-09-17  Bruno Haible  <bruno@clisp.org>
506
507         isnanl, isnand, isnanf: Work around MSVC bug.
508         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
509
510 2011-09-17  Bruno Haible  <bruno@clisp.org>
511
512         sys_socket tests: Fix recent mistake.
513         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
514
515 2011-09-17  Bruno Haible  <bruno@clisp.org>
516
517         putenv: Support for MSVC.
518         * modules/putenv (Depends-on): Add environ.
519         * lib/putenv.c (environ): Disable declaration.
520         * lib/unistd.in.h: Update comment.
521
522 2011-09-17  Bruno Haible  <bruno@clisp.org>
523
524         math: Avoid macro redefinition warnings on MSVC.
525         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
526         Undefine before redefining.
527
528 2011-09-17  Bruno Haible  <bruno@clisp.org>
529
530         doc: Mention functions which are declared as macros.
531         * doc/posix-functions/*[fl].texi: Mention that some functions are
532         defined as macros with arguments only.
533
534 2011-09-17  Bruno Haible  <bruno@clisp.org>
535
536         Add dependencies to new dirent related modules.
537         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
538         * modules/fts (Depends-on): Likewise.
539         * modules/glob (Depends-on): Likewise.
540         * modules/savedir (Depends-on): Likewise.
541         * modules/scandir (Depends-on): Likewise.
542         * modules/dirent-safer (Depends-on): Add opendir, closedir.
543         * modules/fdopendir (Depends-on): Add opendir.
544
545 2011-09-17  Bruno Haible  <bruno@clisp.org>
546
547         inet_pton: Support for MSVC on Windows Vista or newer.
548         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
549         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
550         HAVE_DECL_INET_PTON is defined.
551         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
552         On platforms with <winsock2.h>, test whether inet_pton is declared in
553         <ws2tcpip.h>. If so, arrange to replace it.
554         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
555         REPLACE_INET_PTON.
556         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
557         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
558         (Depends-on, configure.ac): Update condition.
559         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
560
561 2011-09-17  Bruno Haible  <bruno@clisp.org>
562
563         inet_ntop: Support for MSVC on Windows Vista or newer.
564         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
565         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
566         HAVE_DECL_INET_NTOP is defined.
567         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
568         On platforms with <winsock2.h>, test whether inet_ntop is declared in
569         <ws2tcpip.h>. If so, arrange to replace it.
570         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
571         REPLACE_INET_NTOP.
572         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
573         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
574         (Depends-on, configure.ac): Update condition.
575         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
576
577 2011-09-16  Eric Blake  <eblake@redhat.com>
578
579         test-fsync: yet another enhancement
580         * tests/test-fsync.c (main): Also test behavior on read-only text
581         file.
582
583 2011-09-16  Bruno Haible  <bruno@clisp.org>
584
585         Enhance fsync, fdatasync tests.
586         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
587         * tests/test-fdatasync.c (main): Likewise.
588
589 2011-09-16  Bruno Haible  <bruno@clisp.org>
590
591         Support for MSVC compiler: Ensure mode_t gets defined.
592         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
593         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
594         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
595         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
596         * tests/test-fcntl-h.c: Check that mode_t is defined.
597         * tests/test-sys_stat.c: Likewise.
598         * tests/test-sys_types.c: Likewise.
599         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
600         * doc/posix-headers/sys_stat.texi: Likewise.
601         * doc/posix-headers/sys_types.texi: Likewise.
602
603 2011-09-16  Bruno Haible  <bruno@clisp.org>
604
605         sys_stat: Support for MSVC.
606         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
607         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
608         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
609         MSVC.
610
611 2011-09-16  Bruno Haible  <bruno@clisp.org>
612
613         Support for MSVC compiler: Ensure off_t gets defined.
614         * lib/unistd.in.h: Include <sys/types.h>.
615         * tests/test-fcntl-h.c: Check that off_t is defined.
616         * tests/test-sys_stat.c: Likewise.
617         * tests/test-sys_types.c: Likewise.
618
619 2011-09-16  Eric Blake  <eblake@redhat.com>
620
621         fdatasync: port to Solaris
622         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
623         * modules/fdatasync (Link): Document it.
624         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
625
626         fdatasync: port to MacOS X 10.7
627         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
628         declared.
629         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
630         * modules/unistd (Makefile.am): Substitute it.
631         * lib/unistd.in.h (fdatasync): Declare on MacOS.
632         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
633
634         fdatasync: minor improvements
635         * modules/fdatasync (Depends-on): Add condition for fsync.
636         * lib/fdatasync.c (fdatasync): Add comment.
637         * tests/test-unistd-c++.cc: Test fdatasync.
638
639         unistd: update refs to newer POSIX
640         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
641         Suggested by Bruno Haible.
642
643         fdatasync: new module
644         * modules/fsync (Description): Document difference to fdatasync.
645         * modules/fdatasync: New module.
646         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
647         * lib/fdatasync.c (fdatasync): Likewise.
648         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
649         defaults.
650         * modules/unistd (Makefile.am): Set witnesses.
651         * lib/unistd.in.h (fdatasync): Declare.
652         * MODULES.html.sh: Document it.
653         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
654         * modules/fdatasync-tests: New test.
655         * tests/test-fdatasync.c: Likewise.
656
657 2011-09-16  Eric Blake  <eblake@redhat.com>
658
659         test-fsync: enhance tests
660         * modules/fsync-tests (Depends-on): Add errno, for mingw.
661         * tests/test-fsync.c (main): Enhance test.
662
663 2011-09-15  Bruno Haible  <bruno@clisp.org>
664
665         Support for MSVC compiler: Ensure ssize_t gets defined.
666         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
667         * doc/posix-headers/stdio.texi: Likewise.
668         * modules/stdio (Depends-on): Add ssize_t.
669         * modules/sys_socket (Depends-on): Likewise.
670         * modules/sys_types (Depends-on): Likewise.
671         * modules/sys_uio (Depends-on): Likewise.
672         * modules/unistd (Depends-on): Likewise.
673         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
674         * tests/test-sys_types.c: Check that ssize_t is defined.
675
676 2011-09-14  Bruno Haible  <bruno@clisp.org>
677
678         Avoid using #, the m4 comment starter character, near brackets.
679         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
680         delimiter character in sed expressions.
681         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
682         Suggested by Eric Blake.
683
684         Properly quote AC_CHECK_DECLS' 4th argument.
685         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
686         argument.
687         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
688         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
689         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
690         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
691         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
692         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
693         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
694         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
695         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
696         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
697         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
698         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
699         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
700         * m4/isinf.m4 (gl_ISINF): Likewise.
701         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
702         * m4/readutmp.m4 (gl_READUTMP): Likewise.
703         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
704         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
705         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
706         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
707         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
708         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
709         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
710         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
711         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
712         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
713         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
714         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
715         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
716         Reported by Eric Blake.
717
718         Properly quote AC_CHECK_DECL's 4th argument.
719         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
720         argument.
721         * m4/argp.m4 (gl_ARGP): Likewise.
722         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
723         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
724         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
725         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
726         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
727         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
728         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
729         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
730         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
731         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
732         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
733         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
734         Reported by Eric Blake.
735
736 2011-09-14  Eric Blake  <eblake@redhat.com>
737
738         opendir: avoid compile warning
739         * lib/opendir.c (includes): Always include errno.h.
740         Reported by Tatsuro MATSUOKA.
741
742 2011-09-14  Jim Meyering  <meyering@redhat.com>
743
744         maint.mk: sc_tight_scope: propagate failure from sub-make
745         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
746         Reported by Martin von Gagern.
747
748 2011-09-13  Bruno Haible  <bruno@clisp.org>
749
750         tempname: Support for MSVC.
751         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
752         MSVC.
753         * modules/tempname (Depends-on): Add fcntl-h.
754
755 2011-09-13  Bruno Haible  <bruno@clisp.org>
756
757         sys_time: Support for MSVC.
758         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
759         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
760         include <winsock2.h>.
761         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
762         function declarations that collide with POSIX.
763         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
764         (Makefile.am): Substitute HAVE_WINSOCK2_H.
765
766 2011-09-13  Bruno Haible  <bruno@clisp.org>
767
768         stat: Support for MSVC.
769         * lib/stat.c: Include pathmax.h.
770         * modules/stat (Depends-on): Add pathmax.
771
772         pathmax: Support for native Windows.
773         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
774
775 2011-09-12  Bruno Haible  <bruno@clisp.org>
776
777         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
778         * lib/dirent.in.h (struct dirent): New type.
779         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
780         DT_WHT): New macros.
781         (DIR): New type.
782         (opendir, closedir): Declare only if the module 'opendir' is enabled.
783         (readdir, rewinddir): New declarations.
784         * lib/dirent-private.h: New file.
785         * lib/opendir.c: New file.
786         * lib/readdir.c: New file.
787         * lib/rewinddir.c: New file.
788         * lib/closedir.c: New file.
789         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
790         * m4/opendir.m4: New file.
791         * m4/readdir.m4: New file.
792         * m4/rewinddir.m4: New file.
793         * m4/closedir.m4: New file.
794         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
795         REPLACE_CLOSEDIR here.
796         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
797         readdir, rewinddir are declared.
798         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
799         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
800         HAVE_REWINDDIR, HAVE_CLOSEDIR.
801         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
802         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
803         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
804         * modules/opendir: New file.
805         * modules/readdir: New file.
806         * modules/rewinddir: New file.
807         * modules/closedir: New file.
808         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
809         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
810         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
811         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
812         * NEWS: Mention the 'fchdir' change.
813
814 2011-09-11  Bruno Haible  <bruno@clisp.org>
815
816         asm-underscore.m4: Support for MSVC.
817         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
818         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
819
820 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
821
822         Doc about crypt functions.
823         * doc/posix-functions/crypt.texi: Expand range of glibc versions
824         needing for _GNU_SOURCE to get crypt.
825         * doc/posix-functions/encrypt.texi: Likewise.
826         * doc/posix-functions/setkey.texi: Likewise.
827
828 2011-09-11  Bruno Haible  <bruno@clisp.org>
829
830         doc: Update regarding MSVC 9.
831         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
832         tested".
833         * doc/posix-functions/*.texi: Update with info about MSVC 9.
834         * doc/posix-headers/*.texi: Likewise.
835         * doc/pastposix-functions/*.texi: Likewise.
836         * doc/glibc-functions/*.texi: Likewise.
837         * doc/glibc-headers/*.texi: Likewise.
838
839 2011-09-11  Bruno Haible  <bruno@clisp.org>
840
841         unistd et al.: Don't assume <unistd.h> exists.
842         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
843         does not exist.
844         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
845         exist. But include <stdlib.h>.
846         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
847         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
848         symlink() does not exist.
849         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
850         include <io.h> instead.
851         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
852         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
853         include <direct.h> instead.
854         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
855         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
856         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
857         <io.h> instead.
858         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
859         correctly if the system does not have hard links.
860         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
861         <direct.h> instead.
862         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
863         it when looking for function declarations.
864         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
865         <direct.h> and <io.h> instead.
866         * doc/posix-headers/unistd.texi: More details about MSVC problem.
867
868 2011-09-11  Bruno Haible  <bruno@clisp.org>
869
870         strcase: Support for MSVC.
871         * modules/strcase (Status, Notice): Remove obsoletion mark.
872         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
873         * doc/posix-functions/strncasecmp.texi: Likewise.
874
875         strings: Don't assume <strings.h> exists.
876         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
877         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
878         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
879         * doc/posix-headers/strings.texi: Mention the MSVC problem.
880
881 2011-09-11  Bruno Haible  <bruno@clisp.org>
882
883         dirent: Don't assume <dirent.h> exists.
884         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
885         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
886         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
887         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
888
889 2011-09-11  Bruno Haible  <bruno@clisp.org>
890
891         Fix wint_t on MSVC.
892         * lib/wchar.in.h (wint_t): On MSVC, override it.
893         * lib/wctype.in.h (wint_t): Likewise.
894         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
895         MSVC.
896         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
897         * doc/posix-headers/wctype.texi: Likewise.
898
899 2011-09-11  Bruno Haible  <bruno@clisp.org>
900
901         sys_types: Fix typo.
902         * lib/sys_types.in.h: Fix typo in comment.
903         Reported by Paul Eggert.
904
905         Support for MSVC compiler: Ensure size_t gets defined.
906         * modules/strings (Depends-on): Add 'sys_types'.
907         * modules/sys_uio (Depends-on): Likewise.
908         * lib/sys_uio.in.h: Update comment.
909
910         C++ tests for module 'sys_types'.
911         * modules/sys_types-c++-tests: New file.
912         * tests/test-sys_types-c++.cc: New file.
913
914         Tests for module 'sys_types'.
915         * modules/sys_types-tests: New file.
916         * tests/test-sys_types.c: New file.
917
918         New module 'sys_types'.
919         * lib/sys_types.in.h: New file.
920         * m4/sys_types_h.m4: New file.
921         * modules/sys_types: New file.
922         * doc/posix-headers/sys_types.texi: Mention the new module and the
923         size_t problem on MSVC 9.
924
925 2011-09-11  Bruno Haible  <bruno@clisp.org>
926
927         Support for MSVC compiler: Avoid division by a literal 0.
928         * lib/math.in.h (NAN): Define through a function call also on MSVC.
929         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
930         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
931         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
932         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
933         * tests/infinity.h: New file.
934         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
935         on MSVC.
936         * tests/test-ceilf1.c: Include infinity.h.
937         (main): Use Infinityf.
938         * tests/test-ceil1.c: Include infinity.h.
939         (main): Use Infinityd.
940         * tests/test-ceill.c: Include infinity.h.
941         (main): Use Infinityl.
942         * tests/test-dprintf-posix.c: Include infinity.h.
943         (test_function): Use Infinityd.
944         * tests/test-floorf1.c: Include infinity.h.
945         (main): Use Infinityf.
946         * tests/test-floor1.c: Include infinity.h.
947         (main): Use Infinityd.
948         * tests/test-floorl.c: Include infinity.h.
949         (main): Use Infinityl.
950         * tests/test-fprintf-posix.c: Include infinity.h.
951         (test_function): Use Infinityd.
952         * tests/test-frexp.c: Include infinity.h.
953         (main): Use Infinityd.
954         * tests/test-frexpl.c: Include infinity.h.
955         (main): Use Infinityl.
956         * tests/test-isfinite.c: Include infinity.h.
957         (test_isfinitef): Use Infinityf.
958         (test_isfinited): Use Infinityd.
959         (test_isfinitel): Use Infinityl.
960         * tests/test-isinf.c: Include infinity.h.
961         (test_isinff): Use Infinityf.
962         (test_isinfd): Use Infinityd.
963         (test_isinfl): Use Infinityl.
964         * tests/test-isnan.c: Include infinity.h.
965         (test_float): Use Infinityf.
966         (test_double): Use Infinityd.
967         (test_long_double): Use Infinityl.
968         * tests/test-isnanf.h: Include infinity.h.
969         (main): Use Infinityf.
970         * tests/test-isnand.h: Include infinity.h.
971         (main): Use Infinityd.
972         * tests/test-isnanl.h: Include infinity.h.
973         (main): Use Infinityl.
974         * tests/test-ldexpl.c: Include infinity.h.
975         (main): Use Infinityl.
976         * tests/test-printf-posix.h: Include infinity.h.
977         (test_function): Use Infinityd.
978         * tests/test-roundf1.c: Include infinity.h.
979         (main): Use Infinityf.
980         * tests/test-round1.c: Include infinity.h.
981         (main): Use Infinityd.
982         * tests/test-roundl.c: Include infinity.h.
983         (main): Use Infinityl.
984         * tests/test-signbit.c: Include infinity.h.
985         (test_signbitf): Use Infinityf.
986         (test_signbitd): Use Infinityd.
987         (test_signbitl): Use Infinityl.
988         * tests/test-snprintf-posix.h: Include infinity.h.
989         (test_function): Use Infinityd, Infinityl.
990         * tests/test-sprintf-posix.h: Include infinity.h.
991         (test_function): Use Infinityd, Infinityl.
992         * tests/test-truncf1.c: Include infinity.h.
993         (main): Use Infinityf.
994         * tests/test-trunc1.c: Include infinity.h.
995         (main): Use Infinityd.
996         * tests/test-truncl.c: Include infinity.h.
997         (main): Use Infinityl.
998         * tests/test-vasnprintf-posix.c: Include infinity.h.
999         (test_function): Use Infinityd, Infinityl.
1000         * tests/test-vasprintf-posix.c: Include infinity.h.
1001         (test_function): Use Infinityd, Infinityl.
1002         * modules/ceilf-tests (Files): Add tests/infinity.h.
1003         * modules/ceil-tests (Files): Likewise.
1004         * modules/ceill-tests (Files): Likewise.
1005         * modules/dprintf-posix-tests (Files): Likewise.
1006         * modules/floorf-tests (Files): Likewise.
1007         * modules/floor-tests (Files): Likewise.
1008         * modules/floorl-tests (Files): Likewise.
1009         * modules/fprintf-posix-tests (Files): Likewise.
1010         * modules/frexp-tests (Files): Likewise.
1011         * modules/frexp-nolibm-tests (Files): Likewise.
1012         * modules/frexpl-tests (Files): Likewise.
1013         * modules/frexpl-nolibm-tests (Files): Likewise.
1014         * modules/isfinite-tests (Files): Likewise.
1015         * modules/isinf-tests (Files): Likewise.
1016         * modules/isnan-tests (Files): Likewise.
1017         * modules/isnanf-tests (Files): Likewise.
1018         * modules/isnanf-nolibm-tests (Files): Likewise.
1019         * modules/isnand-tests (Files): Likewise.
1020         * modules/isnand-nolibm-tests (Files): Likewise.
1021         * modules/isnanl-tests (Files): Likewise.
1022         * modules/isnanl-nolibm-tests (Files): Likewise.
1023         * modules/ldexpl-tests (Files): Likewise.
1024         * modules/printf-posix-tests (Files): Likewise.
1025         * modules/roundf-tests (Files): Likewise.
1026         * modules/round-tests (Files): Likewise.
1027         * modules/roundl-tests (Files): Likewise.
1028         * modules/signbit-tests (Files): Likewise.
1029         * modules/snprintf-posix-tests (Files): Likewise.
1030         * modules/sprintf-posix-tests (Files): Likewise.
1031         * modules/truncf-tests (Files): Likewise.
1032         * modules/trunc-tests (Files): Likewise.
1033         * modules/truncl-tests (Files): Likewise.
1034         * modules/vasnprintf-posix-tests (Files): Likewise.
1035         * modules/vasprintf-posix-tests (Files): Likewise.
1036         * modules/vdprintf-posix-tests (Files): Likewise.
1037         * modules/vfprintf-posix-tests (Files): Likewise.
1038         * modules/vprintf-posix-tests (Files): Likewise.
1039         * modules/vsnprintf-posix-tests (Files): Likewise.
1040         * modules/vsprintf-posix-tests (Files): Likewise.
1041         * modules/xprintf-posix-tests (Files): Likewise.
1042
1043 2011-09-11  Bruno Haible  <bruno@clisp.org>
1044
1045         Ensure pid_t gets defined.
1046         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
1047         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
1048         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1049         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1050         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1051         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
1052         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
1053         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1054         * tests/test-fcntl-h.c: Check that pid_t is defined.
1055         * tests/test-sched.c: Likewise.
1056         * tests/test-termios.c: Likewise.
1057         * tests/test-time.c: Likewise.
1058         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
1059         * doc/posix-headers/signal.texi: Likewise.
1060         * doc/posix-headers/sys_types.texi: Likewise.
1061         * doc/posix-headers/time.texi: Likewise.
1062
1063 2011-09-11  Bruno Haible  <bruno@clisp.org>
1064
1065         acl: Fix compilation on Solaris 10 (older version).
1066         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
1067         of ACE_EVERYONE.
1068         * lib/set-mode-acl.c (qset_acl): Likewise.
1069         Reported by Christian Jullien <eligis@orange.fr>.
1070
1071 2011-09-10  Bruno Haible  <bruno@clisp.org>
1072
1073         iconv, unsetenv: Add support for MSVC compiler.
1074         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
1075         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
1076
1077 2011-09-10  Bruno Haible  <bruno@clisp.org>
1078
1079         *printf: Add support for MSVC compiler.
1080         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
1081         handles the exception caused by the %n directive. When cross-compiling,
1082         guess no on native Windows.
1083         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
1084         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
1085         emulate it through vsnprintf.
1086         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
1087         * doc/posix-functions/dprintf.texi: Update documentation regarding
1088         MSVC 9.
1089         * doc/posix-functions/fprintf.texi: Likewise.
1090         * doc/posix-functions/printf.texi: Likewise.
1091         * doc/posix-functions/snprintf.texi: Likewise.
1092         * doc/posix-functions/sprintf.texi: Likewise.
1093         * doc/posix-functions/swprintf.texi: Likewise.
1094         * doc/posix-functions/vdprintf.texi: Likewise.
1095         * doc/posix-functions/vfprintf.texi: Likewise.
1096         * doc/posix-functions/vprintf.texi: Likewise.
1097         * doc/posix-functions/vsnprintf.texi: Likewise.
1098         * doc/posix-functions/vsprintf.texi: Likewise.
1099         * doc/glibc-functions/asprintf.texi: Likewise.
1100         * doc/glibc-functions/obstack_printf.texi: Likewise.
1101         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1102         * doc/glibc-functions/vasprintf.texi: Likewise.
1103
1104 2011-09-10  Bruno Haible  <bruno@clisp.org>
1105
1106         nocrash: Add support for native Windows.
1107         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
1108
1109 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
1110             Bruno Haible  <bruno@clisp.org>
1111
1112         absolute-header, include-next: Add support for MSVC compiler.
1113         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
1114         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
1115         directory separator in #line directives.
1116         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
1117         recognize also backslash as directory separator in #line directives.
1118
1119 2011-09-08  Jim Meyering  <meyering@redhat.com>
1120
1121         maint.mk: mark the post-release commit log with "maint: " prefix
1122         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
1123         one-line commit-log summary.
1124
1125 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
1126             Bruno Haible  <bruno@clisp.org>
1127
1128         Doc about crypt functions.
1129         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
1130         systems.
1131         * doc/posix-functions/encrypt.texi: Likewise.
1132         * doc/posix-functions/setkey.texi: Likewise.
1133
1134 2011-09-08  Simon Josefsson  <simon@josefsson.org>
1135
1136         * lib/gc.h: Fix copyright header.
1137
1138 2011-09-07  Bruno Haible  <bruno@clisp.org>
1139
1140         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
1141         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
1142         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
1143
1144 2011-09-07  Bruno Haible  <bruno@clisp.org>
1145
1146         openat: Work around compilation error with OSF/1 5.1 DTK cc.
1147         * lib/fopen.c: Use different syntax for include of <stdio.h>.
1148         * lib/freopen.c: Likewise.
1149         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
1150         * lib/lstat.c: Likewise.
1151         * lib/stat.c: Likewise.
1152         * lib/open.c: Use different syntax for include of <fcntl.h>.
1153         * lib/openat.c: Include fcntl.h again, explicitly.
1154
1155 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
1156
1157         parse-datetime: document the newly accepted format
1158         * doc/parse-datetime.texi (Combined date and time of day items):
1159         New section.
1160
1161 2011-09-06  Bruno Haible  <bruno@clisp.org>
1162
1163         acl: Fix a test failure on newer Solaris 10 with ZFS.
1164         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
1165         ENOSYS as no ACL.
1166         Reported by Jim Meyering.
1167
1168 2011-09-06  Bruno Haible  <bruno@clisp.org>
1169
1170         acl: Update for AIX >= 5.3 with NFS.
1171         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
1172         ENOSYS as no ACL.
1173
1174         acl: Fix a test failure on AIX >= 5.3 with NFS.
1175         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
1176         as no ACL.
1177
1178 2011-09-06  Bruno Haible  <bruno@clisp.org>
1179
1180         acl: Fix a test failure on IRIX 6.5 with NFS.
1181         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
1182         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
1183         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
1184         * lib/copy-acl.c (qcopy_acl): Likewise.
1185
1186 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
1187
1188         openat: port to AIX 7.1 with large files
1189         AIX 7.1 does a "#define openat open64at" if large files are in use,
1190         so we can't simply #undef openat.  Use the orig_openat trick (similar
1191         to orig_open in lib/open.c) to work around the problem.  Problem
1192         reported by Kevin Brott for GNU tar, in the thread containing
1193         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
1194         * lib/openat.c (__need_system_fcntl_h): Define first.
1195         Include <fcntl.h> and <sys/types.h> before undefining.
1196         (orig_openat) [HAVE_OPENAT]: New inline function.
1197         (openat) [HAVE_OPENAT]: Do not undef.
1198         (rpl_openat): Use orig_openat, not openat.
1199
1200 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
1201             Bruno Haible  <bruno@clisp.org>
1202
1203         acl: Avoid errors on NonStop Kernel.
1204         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
1205         ENOTSUP errors.
1206
1207 2011-09-05  Bruno Haible  <bruno@clisp.org>
1208
1209         acl: Clean up Solaris code.
1210         * lib/acl-internal.h: Remove no-op #if.
1211         * lib/file-has-acl.c: Likewise.
1212         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
1213         * lib/copy-acl.c (qcopy_acl): Likewise.
1214
1215 2011-09-05  Bruno Haible  <bruno@clisp.org>
1216
1217         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
1218         binaries built on the original Solaris 10.
1219         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
1220         trivial.
1221
1222 2011-09-05  Bruno Haible  <bruno@clisp.org>
1223
1224         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1225         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
1226         10.
1227         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
1228         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
1229         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
1230         instead of acl_get, facl_get, acl_set, facl_set.
1231
1232 2011-09-05  Bruno Haible  <bruno@clisp.org>
1233
1234         copy-file: Try unit tests on more file systems.
1235         * tests/test-copy-file-1.sh: New file.
1236         * tests/test-copy-file-2.sh: New file.
1237         * modules/copy-file-tests (Files): Add them.
1238         (Makefile.am): Add them to TESTS.
1239
1240         acl: Try unit tests on more file systems.
1241         * tests/test-file-has-acl-1.sh: New file.
1242         * tests/test-file-has-acl-2.sh: New file.
1243         * tests/test-set-mode-acl-1.sh: New file.
1244         * tests/test-set-mode-acl-2.sh: New file.
1245         * tests/test-copy-acl-1.sh: New file.
1246         * tests/test-copy-acl-2.sh: New file.
1247         * modules/acl-tests (Files): Add them.
1248         (Makefile.am): Add them to TESTS.
1249
1250 2011-09-04  Bruno Haible  <bruno@clisp.org>
1251
1252         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1253         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
1254         10.
1255         (OLD_ALLOW, OLD_DENY): New macros.
1256         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
1257         ACE_ACCESS_ALLOWED_ACE_TYPE.
1258         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
1259         ACE_ACCESS_DENIED_ACE_TYPE.
1260         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
1261         (NEW_ACE_EXECUTE): Fix value.
1262         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
1263         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
1264         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
1265         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
1266         NEW_ACE_SYNCHRONIZE): New macros.
1267         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
1268         instead of acl_fromtext, acl_set, facl_set.
1269         Fixes a coreutils/tests/cp/perm failure.
1270
1271 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
1272
1273         openat: test for fstatat (..., 0) bug
1274         Further testing with tar suggests that fstatat (..., 0)
1275         does not work in general, on AIX 7.1; see
1276         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
1277         So, give up entirely on AIX 7.1's fstatat, and fall back on our
1278         replacement fstatat (which is what older AIX releases were using
1279         anyway).
1280         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
1281         use is now changed to orig_fstatat.  This was probably the right
1282         thing to do anyway.
1283         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
1284         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
1285         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
1286         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
1287         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
1288         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
1289         if the bug is found.
1290
1291         openat: test for fstatat (AT_FDCWD, ..., 0) bug
1292         This tests for another fstatat bug on AIX 7.1:
1293         fstatat (AT_FDCWD, ..., 0) does not work.  See
1294         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
1295         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
1296         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
1297         (rpl_fstatat): Adjust so that it works around either (or both)
1298         bugs if present.
1299         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
1300
1301 2011-09-03  Karl Berry  <karl@gnu.org>
1302
1303         * doc/regex.texi (Character Class Operators): Avoid literal ":"
1304         in index entries.
1305
1306 2011-09-02  Bruno Haible  <bruno@clisp.org>
1307
1308         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
1309         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
1310         values of AR, ARFLAGS, RANLIB.
1311         Reported by John W. Eaton <jwe@gnu.org> for Octave.
1312
1313 2011-09-02  Bruno Haible  <bruno@clisp.org>
1314
1315         Find 'ar' program that fits with --host argument.
1316         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
1317
1318 2011-09-02  Bruno Haible  <bruno@clisp.org>
1319
1320         tests: init.sh: Support any non-GNU diff.
1321         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
1322         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
1323         Solaris 8.
1324
1325 2011-09-02  Bruno Haible  <bruno@clisp.org>
1326
1327         tests: init.sh: work also with any non-GNU diff that supports -u
1328         * tests/init.sh: Relax check for diff -u support.
1329         Rather than checking for GNU diff via --version, simply check
1330         for support for -u itself.  Useful at least on OpenBSD 4.9,
1331         AIX 7.1, IRIX 6.5, and Solaris 10.
1332
1333 2011-09-01  Bruno Haible  <bruno@clisp.org>
1334
1335         strtoimax, strtoumax: Document problem on HP-UX 11.
1336         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
1337         * doc/posix-functions/strtoumax.texi: Likewise.
1338
1339 2011-09-01  Bruno Haible  <bruno@clisp.org>
1340
1341         strtoumax: Avoid link error on OSF/1 with DTK cc.
1342         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
1343         defined as a function.
1344         * modules/strtoumax (Depends-on, configure.ac): Test only whether
1345         strtoumax is defined, not whether it is declared.
1346
1347 2011-09-01  Bruno Haible  <bruno@clisp.org>
1348
1349         strtoimax: Avoid link error on OSF/1 with DTK cc.
1350         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
1351         defined as a function.
1352         * modules/strtoimax (Depends-on, configure.ac): Test only whether
1353         strtoimax is defined, not whether it is declared.
1354
1355 2011-09-01  Bruno Haible  <bruno@clisp.org>
1356
1357         imaxdiv: Avoid link error on OSF/1 with DTK cc.
1358         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
1359         as a function.
1360         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
1361         whether it is declared.
1362
1363 2011-09-01  Bruno Haible  <bruno@clisp.org>
1364
1365         imaxabs: Avoid link error on OSF/1 with DTK cc.
1366         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
1367         as a function.
1368         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
1369         whether it is declared.
1370
1371 2011-09-01  Bruno Haible  <bruno@clisp.org>
1372
1373         Tests for module 'strtoumax'.
1374         * modules/strtoumax-tests: New file.
1375         * tests/test-strtoumax.c: New file.
1376
1377         Tests for module 'strtoimax'.
1378         * modules/strtoimax-tests: New file.
1379         * tests/test-strtoimax.c: New file.
1380
1381         Tests for module 'imaxdiv'.
1382         * modules/imaxdiv-tests: New file.
1383         * tests/test-imaxdiv.c: New file.
1384
1385         Tests for module 'imaxabs'.
1386         * modules/imaxabs-tests: New file.
1387         * tests/test-imaxabs.c: New file.
1388
1389 2011-09-01  Bruno Haible  <bruno@clisp.org>
1390
1391         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
1392         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
1393         pthread_create.
1394
1395 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
1396
1397         openat: work around AIX 7.1 fstatat issue
1398         This should fix the problem that was not properly fixed
1399         in the previous change, dated 2011-08-30.
1400         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
1401         __need_system_stat_h defined.
1402         (orig_fstatat) [HAVE_FSTATAT]: New function.
1403         (rpl_fstatat): Go back to the old way of doing things,
1404         except call orig_fstatat instead of fstatat.
1405         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
1406         Remove unnecessary check whether fstatat fills in st_size etc.
1407
1408 2011-09-01  Bruno Haible  <bruno@clisp.org>
1409
1410         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
1411         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
1412         just include the system's header.
1413
1414 2011-08-31  Jim Meyering  <meyering@redhat.com>
1415
1416         tests: avoid spurious assertion failure in test-float.c on ppc64
1417         * tests/test-float.c (test_long_double): Comment out an assertion,
1418         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
1419         with gcc-4.4.4.
1420
1421         maint: indent with spaces, not TABs
1422         I need to get in the habit of running gnulib's "make check".
1423         Both of these would have been caught.
1424         * m4/largefile.m4: Indent with spaces, not TABs.
1425         * lib/parse-datetime.y (iso_8601_time): Likewise.
1426         Spotted by Pádraig Brady.
1427
1428         test-parse-datetime.c: accommodate a relatively strict gcc warning
1429         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
1430         to avoid a warning from gcc's -Werror=missing-declarations.
1431         Insert a few spaces-before-funcall-parenthesis.
1432
1433 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
1434
1435         parse-datetime: accept ISO 8601 date and time rep with "T" separator
1436         The parser now accepts ISO 8601 date-time strings with "T" as the
1437         separator.  It has long parsed dates like "2004-02-29 16:21:42"
1438         with a space between the date and time strings.  Now it also parses
1439         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
1440         variants like "2004-02-29T16:21:42.333-07:00"
1441         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
1442         of day representation using the 'T' separator character.
1443         * doc/parse-datetime.texi (General date syntax): replace use of
1444         deprecated --iso-8601 option with --rfc-3339 in example of date
1445         command output formats that can be parsed.
1446         * tests/test-parse-datetime.c (tm_diff): New function, taken from
1447         lib/parse-datetime.y.
1448         (gmt_offset): New function.
1449         (main): Add additional test cases to validate ISO8601 extended
1450         date and time of day parsing.
1451
1452 2011-08-31  Bruno Haible  <bruno@clisp.org>
1453
1454         freopen: Documentation.
1455         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
1456         name.
1457         Reported by Claudio Bley <claudio.bley@gmail.com>.
1458
1459 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
1460
1461         freopen: Don't crash if the filename argument is NULL.
1462         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
1463         NULL.
1464
1465 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
1466
1467         openat: work around AIX 7.1 fstatat bug
1468         Problem reported by Kevin Brott for GNU tar, in the thread containing
1469         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
1470         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
1471         FSTATAT_ST_SIZE_ETC_BROKEN.
1472         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
1473         rpl_fstatat.
1474         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
1475         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
1476         AC_CHECK_FUNCS_ONCE for fstatat.
1477         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
1478         fchmodat, mkdirat, openat and unlinkat.
1479
1480 2011-08-30  Bruno Haible  <bruno@clisp.org>
1481
1482         Avoid endless recursions if config.h includes some header files.
1483         * lib/fopen.c (__need_FILE): Define already before including config.h.
1484         * lib/freopen.c (__need_FILE): Likewise.
1485         * lib/open.c (__need_system_fcntl_h): Likewise.
1486         * lib/stat.c (__need_system_sys_stat_h): Likewise.
1487         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
1488         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1489
1490 2011-08-25  Karl Berry  <karl@gnu.org>
1491
1492         * config/srclist.txt (ylwrap): new try.
1493         * build-aux/ylwrap: new file.
1494
1495 2011-08-23  Bruno Haible  <bruno@clisp.org>
1496
1497         tmpdir: Use a good default directory on native Windows.
1498         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
1499         (P_tmpdir): Default to _P_tmpdir on native Windows.
1500         (path_search): On native Windows, try the value returned by GetTempPath
1501         before trying P_tmpdir.
1502         * modules/tmpdir (Depends-on): Add pathmax.
1503         Suggested by John Darrington <john@darrington.wattle.id.au>.
1504
1505 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
1506
1507         doc: fix typo in README-release
1508         * top/README-release: Capitalize first word of a sentence.
1509
1510 2011-08-19  Jim Meyering  <meyering@redhat.com>
1511
1512         fts: do not exhaust memory when processing million-entry directories
1513         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
1514         directory would require about 256*N bytes of memory.  Thus, it was
1515         easy to construct a directory too large to be processed by any of
1516         those tools.  With this change, fts' maximum memory utilization is
1517         now limited to around 30MB.
1518         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
1519         (fts_read): When we've processed the final entry (i.e., when
1520         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
1521         using the parent entry to read any remaining entries.  Dispatch
1522         depending on what fts_build returns:
1523         - NULL+stop, aka failure: stop
1524         - NULL otherwise: move up in the dir hierarchy
1525         - non-NULL: handle this new entry
1526         (fts_build): Declare and use new local, continue_readdir.
1527         Prepare to be called from fts_read, when the entries
1528         from a partially-read directory have just been exhausted.
1529         In that case, we'll skip the opendir and instead use the parent's
1530         fts_dirp and derive dir_fd from that.
1531         Finally, in the readdir loop, if we read max_entries entries,
1532         exit the loop ensuring *not* to call closedir.  This is required
1533         so that fts_dirp can be reused on a subsequent call.
1534         Prompted by Ben England's report of memory exhaustion in find
1535         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
1536
1537         maint: fts: move decl of `dp' down into while loop; split a long line
1538         * lib/fts.c (fts_build): No semantic change.
1539
1540         fts: add/use new struct member, fts_dirp
1541         We are about to use this to manage any directory with
1542         too many entries to read all of them into memory at once.
1543         To do that, we'll need to save the DIR* pointer in each
1544         affected FTSENT struct.
1545         * lib/fts_.h: Include <dirent.h>.
1546         (struct FTSENT) [fts_dirp]: New member.
1547         * lib/fts.c (closedir_and_clear): Define.
1548         Use it in place of closedir so that we are sure to
1549         clear the new fts_dirp member when done with it.
1550         (fts_alloc): Initialize the new member.
1551         (fts_lfree): Free, if needed.
1552
1553         maint: fts: give __opendir2 a new parameter and rename
1554         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
1555         than surreptitiously using sole caller's "dir_fd".
1556         (fts_opendir): Rename from __opendir2.
1557
1558         maint: fts.c: remove __opendir2's now-unused parameter, oflag
1559         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
1560
1561         maint: fts.c: correct off-by-one indentation
1562         * lib/fts.c (fts_build): Correct indentation, change style
1563         of a couple of block comments, and bracing style.
1564
1565         maint: fts.c: move __opendir2 #define "up" out of function body
1566         * lib/fts.c (__opendir2): Move "up".  No semantic change.
1567
1568         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
1569         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
1570         out for a long time and besides was useful only on BSD systems.
1571
1572 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
1573
1574         regex: port to Stratus OpenVOS
1575         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
1576         define to empty, rather than attempting nonportable optimizations.
1577         Problem reported by Paul Green in:
1578         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
1579         and fix suggested by Eric Blake in:
1580         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
1581
1582 2011-08-17  Eric Blake  <eblake@redhat.com>
1583
1584         getcwd: fix test failures on mingw
1585         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
1586         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
1587         test if long directory cannot be created, and allow mingw errno.
1588
1589         getcwd-lgpl: fix m4 to match relaxed test for BSD
1590         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
1591         (gl_FUNC_GETCWD_SIGNATURE): New macro.
1592         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
1593         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
1594         signature problem.
1595
1596         getcwd: fix compilation on mingw64
1597         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
1598         getcwd.
1599         Reported by Marc-André Lureau.
1600
1601         pipe2: silence compiler warning
1602         * lib/pipe2.c (pipe2): Hide label if it is not used.
1603
1604 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
1605
1606         relocatable-prog: fix link error
1607         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
1608         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
1609         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
1610         into modules/relocatable-lib without noticing that
1611         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
1612         also needs to build relocatable.c.
1613
1614 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1615
1616         getaddrinfo: fix sh typo in gai_strerrorA decl checking
1617         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
1618         shell code: it contained a 'break' that was not in a loop.
1619         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
1620         via a shell-language loop; this may have been true in old Autoconf
1621         versions, but it's not true in Autoconf 2.68.  I found this bug
1622         when testing coreutils git on Solaris 8, whose shell complains
1623         about the syntax error.
1624
1625 2011-08-12  Simon Josefsson  <simon@josefsson.org>
1626
1627         * lib/base64.c: Fix comment to reference RFC 4648.
1628         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
1629         <gvtulder@gmail.com>.
1630
1631 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
1632
1633         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
1634
1635         po/Makefile.in.in: fix make -q problem
1636         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
1637         rule, since there's no file named 'check-macro-version' and its
1638         use as a file breaks make -q.
1639         (all): Don't depend on check-macro-version.
1640         (CHECK_MACRO_VERSION): New macro.
1641         (stamp-po): Use it.
1642
1643         configmake: fix make -q problem
1644         * modules/configmake (configmake.h): Update configmake.h's time stamp
1645         even if the file does not change.  Otherwise, 'make -q' fails.
1646         Problem reported by Simon Josefsson in
1647         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
1648
1649 2011-08-11  Jim Meyering  <meyering@redhat.com>
1650
1651         git-version-gen: correct the advice in a comment
1652         * build-aux/git-version-gen: Correct comment.
1653         Don't recommend to list .tarball-version in .gitignore.
1654
1655 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1656
1657         base64: fix off-by-one buffer size bug
1658         Problem and (trivial) fix reported by Gijs van Tulder in
1659         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
1660         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
1661         * tests/test-base64.c (main): Catch the bug.
1662
1663 2011-08-10  Eric Blake  <eblake@redhat.com>
1664
1665         closein: correct comments
1666         * lib/closein.c (close_stdin): Improve comments.
1667
1668 2011-08-09  Bruno Haible  <bruno@clisp.org>
1669
1670         More tests for 'fseeko'.
1671         * tests/test-fseeko3.c: New file, from Eric Blake.
1672         * tests/test-fseeko3.sh: New file.
1673         * modules/fseeko-tests (Files): Add them.
1674         (TESTS): Add test-fseeko3.sh.
1675         (check_PROGRAMS): Add test-fseeko3.
1676
1677 2011-08-09  Eric Blake  <eblake@redhat.com>
1678
1679         fseeko: remove unneeded hack
1680         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
1681
1682         fseeko: fix bug on glibc
1683         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
1684         Reported by John W. Eaton.
1685
1686 2011-08-08  Bruno Haible  <bruno@clisp.org>
1687
1688         unictype/base: Fix interoperability with preinstalled libunistring.
1689         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
1690         Reported by Simon Josefsson.
1691
1692 2011-08-08  Bruno Haible  <bruno@clisp.org>
1693
1694         iswblank: Detect declaration correctly.
1695         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
1696         AC_CHECK_DECLS invocation.
1697
1698 2011-08-08  Bruno Haible  <bruno@clisp.org>
1699
1700         tcgetsid: Detect declaration correctly.
1701         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
1702         AC_CHECK_DECLS invocation.
1703         Reported by Simon Josefsson.
1704
1705 2011-08-08  Eric Blake  <eblake@redhat.com>
1706
1707         largefile: fix typo that regressed large file support
1708         * modules/largefile (configure.ac-early): Fix section name.
1709
1710 2011-08-06  Karl Berry  <karl@gnu.org>
1711
1712         * MODULES.html.sh (func_all_files): _Noreturn is no longer
1713         a separate module.
1714
1715 2011-08-05  Simon Josefsson  <simon@josefsson.org>
1716
1717         openat: Fix warnings and commens when building unlinkat.c on Hurd.
1718         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
1719         get prototype for free.
1720
1721 2011-08-04  Bruno Haible  <bruno@clisp.org>
1722
1723         Tests for module 'pathmax'.
1724         * modules/pathmax-tests: New file.
1725         * tests/test-pathmax.c: New file.
1726
1727         canonicalize-lgpl: Support larger filenames on the Hurd.
1728         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
1729         Reported by Paul Eggert.
1730
1731         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
1732         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
1733         * lib/chdir-long.h: Include pathmax.h.
1734         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
1735         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
1736         (PATH_MAX): Remove code that is done by pathmax.h.
1737         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
1738         * lib/tmpfile.c: Add a comment.
1739         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
1740         * modules/chdir-long (Depends-on): Add pathmax.
1741         * modules/getcwd (Depends-on): Add pathmax.
1742         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
1743         is not defined.
1744         * doc/posix-headers/limits.texi: Mention the pathmax module.
1745         * NEWS: Mention the change.
1746
1747 2011-08-02  Bruno Haible  <bruno@clisp.org>
1748
1749         pthread_sigmask: Actually use results of gl_THREADLIB.
1750         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
1751         gl_THREADLIB, not gl_[]THREADLIB.
1752         Reported by Eric Blake.
1753
1754 2011-08-02  Jim Meyering  <meyering@redhat.com>
1755
1756         maint.mk: relax the default _gl_TS_function_match regexp
1757         * top/maint.mk (_gl_TS_function_match): Don't require at least one
1758         space between function name and "(" in an "extern" declaration.
1759         That would fail to match a decl with no space there: extern void foo();
1760
1761 2011-07-31  Iain Nicol  <iain@thenicols.net>
1762
1763         git-version-gen: document that EXTRA_DIST must include .version
1764         * build-aux/git-version-gen: In the how-to-use comment, document
1765         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
1766         will fail when run from an unpacked distribution tarball.
1767
1768 2011-08-01  Bruno Haible  <bruno@clisp.org>
1769
1770         wctype-h: Fix last change.
1771         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
1772         REPLACE_TOWLOWER to 0.
1773         Reported by Sam Steingold <sds@gnu.org>.
1774
1775 2011-07-31  Bruno Haible  <bruno@clisp.org>
1776
1777         frexpl: Update autoconf test.
1778         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
1779         according to changes of 2011-06-20.
1780
1781 2011-07-31  Bruno Haible  <bruno@clisp.org>
1782
1783         sys_utsname: Add support for Minix.
1784         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
1785         <sys/utsname.h>.
1786         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1787         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
1788
1789 2011-07-31  Bruno Haible  <bruno@clisp.org>
1790
1791         strings: Add support for Minix.
1792         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
1793         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1794         * doc/posix-headers/strings.texi: Document the Minix problem.
1795
1796 2011-07-31  Bruno Haible  <bruno@clisp.org>
1797
1798         wctype-h: Add support for Minix.
1799         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
1800         REPLACE_TOWLOWER.
1801         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
1802         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
1803         REPLACE_ISWCNTRL.
1804
1805 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
1806
1807         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
1808         This is a performance improvement for 64-bit hosts: it causes the
1809         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
1810
1811 2011-07-31  Bruno Haible  <bruno@clisp.org>
1812
1813         stdioext: Add support for Minix.
1814         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
1815         * lib/fpurge.c (fpurge): Likewise.
1816         * lib/freadahead.c (freadahead): Likewise.
1817         * lib/freadable.c (freadable): Likewise.
1818         * lib/freading.c (freading): Likewise.
1819         * lib/freadptr.c (freadptr): Likewise.
1820         * lib/freadseek.c (freadptrinc): Likewise.
1821         * lib/fseeko.c (rpl_fseeko): Likewise.
1822         * lib/fseterr.c (fseterr): Likewise.
1823         * lib/fwritable.c (fwritable): Likewise.
1824         * lib/fwriting.c (fwriting): Likewise.
1825         * lib/fflush.c (clear_ungetc_buffer): Update comment.
1826         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
1827
1828 2011-07-31  Bruno Haible  <bruno@clisp.org>
1829
1830         errno: Port to Minix.
1831         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
1832         ECONNABORTED are defined.
1833         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
1834         GNULIB_defined_ECONNABORTED): New macros.
1835         * lib/strerror-override.h (strerror_override): Test also
1836         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
1837         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
1838         ECONNABORTED.
1839         * doc/posix-headers/errno.texi: Mention the Minix problem.
1840
1841 2011-07-31  Bruno Haible  <bruno@clisp.org>
1842
1843         Work around declaration collisions on Minix.
1844         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
1845         defined, set REPLACE_MBSINIT.
1846         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
1847         defined, set REPLACE_MBRTOWC.
1848         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
1849         set REPLACE_MBRLEN.
1850         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
1851         defined, set REPLACE_MBSRTOWCS.
1852         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
1853         defined, set REPLACE_WCRTOMB.
1854         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
1855         defined, set REPLACE_WCSRTOMBS.
1856
1857 2011-07-31  Bruno Haible  <bruno@clisp.org>
1858
1859         Add support for Minix with ACK compiler.
1860         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
1861         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
1862         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
1863
1864 2011-07-31  Bruno Haible  <bruno@clisp.org>
1865
1866         Documentation about Minix.
1867         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
1868         * doc/glibc-headers/*.texi: Likewise.
1869         * doc/posix-functions/*.texi: Likewise.
1870         * doc/glibc-functions/*.texi: Likewise.
1871
1872 2011-07-31  Bruno Haible  <bruno@clisp.org>
1873
1874         snippet/warn-on-use: Fix indentation.
1875         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
1876
1877 2011-07-25  Jim Meyering  <meyering@redhat.com>
1878
1879         tests: test-update-copyright.sh: remove unnecessary "rm" commands
1880         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
1881         commands.
1882
1883 2011-07-27  Jim Meyering  <meyering@redhat.com>
1884
1885         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
1886         * top/maint.mk (gl_extract_significant_defines_): Now that
1887         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
1888         gnulib/lib/signal.in.h, and now that we recommend to
1889         define-if-undefined those two symbols in application code,
1890         we must filter them out of the "significant" list.
1891         This avoids a "make syntax-check" failure in coreutils.
1892
1893 2011-07-26  Eric Blake  <eblake@redhat.com>
1894
1895         warnings: add comments about previous patch
1896         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
1897         * m4/include_next.m4: Likewise.
1898         * m4/warn-on-use.m4: Likewise.
1899         * m4/warnings.m4: Likewise, and simplify use.
1900         Suggested by Stefano Lattarini.
1901
1902         include-next, warnings: support older autoconf
1903         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
1904         AS_VAR_PUSHDEF in a way that works with older autoconf.
1905         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
1906         Reported by Daniel P. Berrange.
1907
1908 2011-07-25  Bruno Haible  <bruno@clisp.org>
1909
1910         fseek, ftell: Fix doc.
1911         * doc/posix-functions/fseek.texi: Reword statement about
1912         AC_SYS_LARGEFILE.
1913         * doc/posix-functions/ftell.texi: Likewise.
1914
1915 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1916             Bruno Haible  <bruno@clisp.org>
1917
1918         Add dependencies to the 'largefile' module.
1919         * modules/fopen (Depends-on): Add 'largefile'.
1920         * modules/freopen (Depends-on): Likewise.
1921         * modules/fseeko (Depends-on): Likewise.
1922         * modules/ftello (Depends-on): Likewise.
1923         * modules/glob (Depends-on): Likewise.
1924         * modules/lseek (Depends-on): Likewise.
1925         * modules/lstat (Depends-on): Likewise.
1926         * modules/mkostemp (Depends-on): Likewise.
1927         * modules/mkostemps (Depends-on): Likewise.
1928         * modules/mkstemp (Depends-on): Likewise.
1929         * modules/mkstemps (Depends-on): Likewise.
1930         * modules/open (Depends-on): Likewise.
1931         * modules/openat (Depends-on): Likewise.
1932         * modules/pread (Depends-on): Likewise.
1933         * modules/pwrite (Depends-on): Likewise.
1934         * modules/scandir (Depends-on): Likewise.
1935         * modules/stat (Depends-on): Likewise.
1936         * modules/tmpfile (Depends-on): Likewise.
1937         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
1938         since the containing module now depends on the largefile module.
1939         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
1940         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
1941         off_t is fixed by gnulib.
1942         * doc/posix-functions/freopen.texi: Likewise.
1943         * doc/posix-functions/fseeko.texi: Likewise.
1944         * doc/posix-functions/fstatat.texi: Likewise.
1945         * doc/posix-functions/ftello.texi: Likewise.
1946         * doc/posix-functions/glob.texi: Likewise.
1947         * doc/posix-functions/lseek.texi: Likewise.
1948         * doc/posix-functions/lstat.texi: Likewise.
1949         * doc/posix-functions/mkstemp.texi: Likewise.
1950         * doc/posix-functions/open.texi: Likewise.
1951         * doc/posix-functions/openat.texi: Likewise.
1952         * doc/posix-functions/pread.texi: Likewise.
1953         * doc/posix-functions/pwrite.texi: Likewise.
1954         * doc/posix-functions/scandir.texi: Likewise.
1955         * doc/posix-functions/stat.texi: Likewise.
1956         * doc/posix-functions/tmpfile.texi: Likewise.
1957         * doc/glibc-functions/mkostemp.texi: Likewise.
1958         * doc/glibc-functions/mkostemps.texi: Likewise.
1959         * doc/glibc-functions/mkstemps.texi: Likewise.
1960
1961 2011-07-25  Bruno Haible  <bruno@clisp.org>
1962
1963         fcntl: Move AC_LIBOBJ invocation to module description.
1964         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
1965         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
1966
1967         fcntl: Remove call-in from fchdir.m4.
1968         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
1969         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
1970
1971         dup3: Remove potential call-in from fchdir.m4.
1972         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
1973         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
1974
1975         dup2: Move AC_LIBOBJ invocation to module description.
1976         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
1977         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
1978         Don't invoke AC_LIBOBJ.
1979         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
1980
1981         dup2: Remove call-in from fchdir.m4.
1982         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
1983         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
1984
1985         fclose: Move AC_LIBOBJ invocation to module description.
1986         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
1987         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
1988         to 1.
1989         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
1990
1991         fclose: Remove call-in from close.m4.
1992         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
1993         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
1994
1995         close: Move AC_LIBOBJ invocation to module description.
1996         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
1997         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
1998         1.
1999         * modules/close (configure.ac): Invoke AC_LIBOBJ.
2000
2001         close: Remove call-in from fchdir.m4.
2002         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
2003         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
2004
2005         open: Move AC_LIBOBJ invocation to module description.
2006         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
2007         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
2008         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
2009
2010         open: Remove call-in from fchdir.m4.
2011         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
2012         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
2013
2014         fchdir: Start to remove gl_REPLACE_* idiom.
2015         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
2016         (gl_FUNC_FCHDIR): Invoke it.
2017
2018 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
2019
2020         * lib/ftell.c (ftell): Comment out cast.
2021
2022         close: use gl_REPLACE_FCLOSE only if defined
2023         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
2024         is defined.  The close module doesn't depend on the fclose module
2025         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
2026         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
2027         I reproduced the problem with "./gnulib-tool --test close sys_socket".
2028
2029 2011-07-24  Jim Meyering  <meyering@redhat.com>
2030
2031         test-select.h: avoid warning when using gcc's -Wmissing-declarations
2032         * tests/test-select.h (test_function): Declare as "static".
2033
2034 2011-07-24  Bruno Haible  <bruno@clisp.org>
2035
2036         doc: Mention the effects of AC_SYS_LARGEFILE.
2037         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
2038         on this function.
2039         * doc/posix-functions/aio_error.texi: Likewise.
2040         * doc/posix-functions/aio_fsync.texi: Likewise.
2041         * doc/posix-functions/aio_read.texi: Likewise.
2042         * doc/posix-functions/aio_return.texi: Likewise.
2043         * doc/posix-functions/aio_suspend.texi: Likewise.
2044         * doc/posix-functions/aio_write.texi: Likewise.
2045         * doc/posix-functions/fgetpos.texi: Likewise.
2046         * doc/posix-functions/fopen.texi: Likewise.
2047         * doc/posix-functions/freopen.texi: Likewise.
2048         * doc/posix-functions/fsetpos.texi: Likewise.
2049         * doc/posix-functions/fstatvfs.texi: Likewise.
2050         * doc/posix-functions/ftruncate.texi: Likewise.
2051         * doc/posix-functions/ftw.texi: Likewise.
2052         * doc/posix-functions/getrlimit.texi: Likewise.
2053         * doc/posix-functions/glob.texi: Likewise.
2054         * doc/posix-functions/lio_listio.texi: Likewise.
2055         * doc/posix-functions/lockf.texi: Likewise.
2056         * doc/posix-functions/mkstemp.texi: Likewise.
2057         * doc/posix-functions/mmap.texi: Likewise.
2058         * doc/posix-functions/nftw.texi: Likewise.
2059         * doc/posix-functions/openat.texi: Likewise.
2060         * doc/posix-functions/opendir.texi: Likewise.
2061         * doc/posix-functions/posix_fadvise.texi: Likewise.
2062         * doc/posix-functions/posix_fallocate.texi: Likewise.
2063         * doc/posix-functions/pread.texi: Likewise.
2064         * doc/posix-functions/pwrite.texi: Likewise.
2065         * doc/posix-functions/readdir.texi: Likewise.
2066         * doc/posix-functions/readdir_r.texi: Likewise.
2067         * doc/posix-functions/rewinddir.texi: Likewise.
2068         * doc/posix-functions/scandir.texi: Likewise.
2069         * doc/posix-functions/seekdir.texi: Likewise.
2070         * doc/posix-functions/setrlimit.texi: Likewise.
2071         * doc/posix-functions/statvfs.texi: Likewise.
2072         * doc/posix-functions/telldir.texi: Likewise.
2073         * doc/posix-functions/tmpfile.texi: Likewise.
2074         * doc/posix-functions/truncate.texi: Likewise.
2075         * doc/glibc-functions/fallocate.texi: Likewise.
2076         * doc/glibc-functions/fstatfs.texi: Likewise.
2077         * doc/glibc-functions/fts_children.texi: Likewise.
2078         * doc/glibc-functions/fts_read.texi: Likewise.
2079         * doc/glibc-functions/getdirentries.texi: Likewise.
2080         * doc/glibc-functions/mkostemp.texi: Likewise.
2081         * doc/glibc-functions/mkostemps.texi: Likewise.
2082         * doc/glibc-functions/mkstemps.texi: Likewise.
2083         * doc/glibc-functions/preadv.texi: Likewise.
2084         * doc/glibc-functions/pwritev.texi: Likewise.
2085         * doc/glibc-functions/sendfile.texi: Likewise.
2086         * doc/glibc-functions/statfs.texi: Likewise.
2087
2088 2011-07-24  Bruno Haible  <bruno@clisp.org>
2089
2090         doc: Fix typo.
2091         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
2092
2093 2011-07-24  Bruno Haible  <bruno@clisp.org>
2094
2095         doc: Mention fsusage.
2096         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
2097
2098 2011-07-24  Bruno Haible  <bruno@clisp.org>
2099
2100         doc: Mention new glibc headers and functions.
2101         * doc/glibc-headers/gshadow.texi: New file.
2102         * doc/glibc-functions/endsgent.texi: New file.
2103         * doc/glibc-functions/fgetsgent.texi: New file.
2104         * doc/glibc-functions/fgetsgent_r.texi: New file.
2105         * doc/glibc-functions/getsgent.texi: New file.
2106         * doc/glibc-functions/getsgent_r.texi: New file.
2107         * doc/glibc-functions/getsgnam.texi: New file.
2108         * doc/glibc-functions/getsgnam_r.texi: New file.
2109         * doc/glibc-functions/putsgent.texi: New file.
2110         * doc/glibc-functions/setsgent.texi: New file.
2111         * doc/glibc-functions/sgetsgent.texi: New file.
2112         * doc/glibc-functions/sgetsgent_r.texi: New file.
2113         * doc/glibc-functions/malloc_info.texi: New file.
2114         * doc/glibc-functions/preadv.texi: New file.
2115         * doc/glibc-functions/pwritev.texi: New file.
2116         * doc/glibc-functions/register_printf_modifier.texi: New file.
2117         * doc/glibc-functions/register_printf_specifier.texi: New file.
2118         * doc/glibc-functions/register_printf_type.texi: New file.
2119         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
2120         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
2121         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
2122         * doc/glibc-functions/pthread_getname_np.texi: New file.
2123         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
2124         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
2125         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
2126         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
2127         * doc/glibc-functions/pthread_setname_np.texi: New file.
2128         * doc/glibc-functions/pthread_sigqueue.texi: New file.
2129         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
2130         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
2131         * doc/glibc-functions/qsort_r.texi: New file.
2132         * doc/glibc-functions/quick_exit.texi: New file.
2133         * doc/glibc-functions/syncfs.texi: New file.
2134         * doc/gnulib.texi: Include them.
2135         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
2136         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
2137         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
2138         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
2139         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
2140         * doc/glibc-functions/execvpe.texi: Likewise.
2141
2142 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2143
2144         ftell: don't include <unistd.h>
2145         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
2146         guaranteed to define off_t, and the ftell module depends on the
2147         stdio module.
2148
2149         ftell: do not assume wraparound signed arithmetic
2150         * lib/ftell.c: Include <limits.h>.
2151         (ftell): Don't assume wraparound signed arithmetic.
2152
2153 2011-07-24  Bruno Haible  <bruno@clisp.org>
2154
2155         close: No longer depend on module 'fclose'.
2156         * modules/close (Depends-on): Remove fclose.
2157         * NEWS: Mention the change.
2158         Suggested by Sam Steingold <sds@gnu.org>.
2159
2160 2011-07-24  Bruno Haible  <bruno@clisp.org>
2161
2162         fsusage: Enable large volume support on AIX >= 5.2.
2163         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
2164         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
2165         instead of STAT_STATVFS.
2166         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
2167
2168         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
2169         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
2170         f_blocks field only on MacOS X.
2171
2172         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
2173         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
2174         * modules/fsusage (Depends-on): Add largefile.
2175
2176 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2177
2178         * README: Modernize discussion of signed integers.
2179         Assuming overflow wraparound is no longer safe.
2180         Mention ones' complement and signed magnitude.
2181
2182 2011-07-22  Bruno Haible  <bruno@clisp.org>
2183
2184         select tests, pselect tests: Refactor.
2185         * tests/test-select.h: New file, extracted from tests/test-select.c.
2186         (select_fn): New type.
2187         (test, do_select, do_select_nowait, do_select_wait, test_tty,
2188         test_connect_first, test_accept_first, test_pair, test_socket_pair,
2189         test_pipe): Add my_select argument.
2190         (test_function): Renamed from main. Add my_select argument.
2191         * tests/test-select.c: Move most code to tests/test-select.h. Include
2192         test-select.h.
2193         * modules/select-tests (Files): Add tests/test-select.h.
2194         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
2195         (my_select, main): New functions.
2196         * modules/pselect-tests (Files): Add tests/test-select.h,
2197         tests/macros.h, tests/signature.h.
2198         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
2199         (configure.ac): Check for <sys/wait.h>.
2200
2201 2011-07-22  Bruno Haible  <bruno@clisp.org>
2202
2203         sys_select tests: Check the signature of FD_*.
2204         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
2205         signature tests from here...
2206         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
2207         here.
2208         * modules/sys_select-tests (Files): Add tests/signature.h.
2209
2210 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
2211
2212         largefile: new module, replacing large-inode
2213         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
2214         * MODULES.html.sh: Add largefile, remove large-inode.
2215         * modules/largefile, m4/largefile.m4: New files.
2216         * modules/large-inode, m4/large-inode.m4: Remove.
2217
2218         fsusage: port to MacOS X 10.7 with 4 TiB file systems
2219         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
2220         implementations that use only 32 bits to count blocks.
2221         On typical hosts with 1024-byte blocks, this fails with file
2222         systems as small as 4 TiB.  Problem reported by Herb Wartens
2223         <http://debbugs.gnu.org/9140> and this should also fix a similar
2224         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
2225
2226         large-inode: New module
2227         * MODULES.html.sh: Add it.
2228         * modules/large-inode, m4/large-inode.m4: New files.
2229
2230         extensions: Enable extensions on MacOS X 10.5 and later.
2231         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
2232
2233 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
2234
2235         file-has-acl: use acl_extended_file_nofollow if available
2236         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
2237         (acl_extended_file): New macro.
2238         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
2239         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
2240
2241 2011-07-21  Bruno Haible  <bruno@clisp.org>
2242
2243         Declare system functions in a way that works with C++.
2244         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
2245         declare fdopendir as extern "C".
2246         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
2247         declare frexpl as extern "C".
2248         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
2249         declare gai_strerror as extern "C".
2250         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
2251         programs, declare gai_strerror as extern "C".
2252         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
2253         declare getlogin_r as extern "C".
2254         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
2255         as extern "C".
2256         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
2257         declare ldexpl as extern "C".
2258         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
2259         as extern "C".
2260         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
2261         program, declare getmntinfo as extern "C".
2262         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
2263         stpncpy as extern "C".
2264         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
2265         program, declare __xpg_strerror_r as extern "C".
2266         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
2267         strndup as extern "C".
2268         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
2269         declare memset and bzero as extern "C".
2270         Reported by Sam Steingold <sds@gnu.org>.
2271
2272 2011-07-12  Jim Meyering  <meyering@redhat.com>
2273
2274         maint.mk: prohibit inclusion of "verify.h" without use
2275         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
2276
2277 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2278
2279         timer-time: A new module to check for timer_settime()
2280         * m4/timer_time.m4: Check for the posix function.
2281         * modules/timer-time: Add the new module.
2282         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
2283         Mention it.
2284
2285 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
2286             Bruno Haible  <bruno@clisp.org>
2287
2288         pthread_sigmask: assume POSIX threads if --avoid=threadlib
2289         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
2290         not defined, assume POSIX threads and look for pthread_sigmask in
2291         $LIBS, without changing $CPPFLAGS.
2292
2293 2011-07-19  Bruno Haible  <bruno@clisp.org>
2294
2295         strstr: Update cross-compilation guess.
2296         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
2297         CPUs, guess no, in view of glibc
2298         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
2299         Suggested by Eric Blake. Reported by Reuben Thomas.
2300
2301 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2302
2303         getopt-gnu: suppress core dumps from detection code
2304         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
2305         to suppress core dumps that may well occur on glibc systems.
2306         * modules/getopt-gnu: Depend on nocrash.
2307
2308 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
2309
2310         pthread_sigmask: ensure usleep is declared
2311         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
2312         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
2313
2314 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2315
2316         doc: Document NonStop portability issues.
2317         * doc/posix-functions/sigaction.texi (sigaction):
2318         * doc/posix-headers/signal.texi (signal.h):
2319         Document NonStop.  See Joachim Schmitz in
2320         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
2321
2322 2011-07-15  Bruno Haible  <bruno@clisp.org>
2323
2324         ffsl, ffsll: Avoid unportable behaviour.
2325         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
2326
2327 2011-07-15  Bruno Haible  <bruno@clisp.org>
2328
2329         ffs: More tests.
2330         * tests/test-ffs.c (NBITS): New macro.
2331         (main): Add more tests.
2332         * tests/test-ffsl.c (NBITS): New macro.
2333         (main): Add more tests.
2334         * tests/test-ffsll.c (NBITS): New macro.
2335         (main): Add more tests.
2336
2337 2011-07-15  Eric Blake  <eblake@redhat.com>
2338
2339         ffsl, ffsll: new modules
2340         * modules/ffsl: New file.
2341         * modules/ffsll: Likewise.
2342         * m4/ffsl.m4: Likewise.
2343         * m4/ffsll.m4: Likewise.
2344         * lib/ffsl.c: Likewise.
2345         * lib/ffsl.h: Likewise.
2346         * lib/ffsll.c: Likewise.
2347         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
2348         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
2349         * modules/string (Makefile.am): Substitute witnesses.
2350         * lib/strings.in.h (ffsl, ffsll): Declare.
2351         * modules/ffsl-tests: New test file.
2352         * modules/ffsll-tests: Likewise.
2353         * tests/test-ffsl.c: Likewise.
2354         * tests/test-ffsll.c: Likewise.
2355         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2356         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
2357         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
2358
2359         ffs: fix m4 prerequisite
2360         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
2361
2362         ffs: avoid undefined behavior
2363         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
2364         * tests/test-ffs.c (naive, main): Avoid signed shifts.
2365         Reported by Bruno Haible.
2366
2367 2011-07-12  Bruno Haible  <bruno@clisp.org>
2368
2369         pthread_sigmask: Rely on module 'threadlib'.
2370         * modules/pthread_sigmask (Depends-on): Add threadlib.
2371         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
2372         is defined.
2373
2374 2011-07-12  Bruno Haible  <bruno@clisp.org>
2375
2376         regex: Depend on module 'strcase'.
2377         * modules/regex (Depends-on): Add strcase, for strcasecmp().
2378
2379 2011-07-12  Jim Meyering  <meyering@redhat.com>
2380
2381         warn-on-use: fix typo in file name
2382         * modules/snippet/warn-on-use (Files): Correct file name:
2383         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
2384
2385 2011-07-12  Bruno Haible  <bruno@clisp.org>
2386
2387         strings: Document module.
2388         * doc/posix-headers/strings.texi: Mention module 'strings'.
2389
2390 2011-07-12  Bruno Haible  <bruno@clisp.org>
2391
2392         Rename module '_Noreturn' to 'snippet/_Noreturn'.
2393         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
2394         (Files, Makefile.am): Update.
2395         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
2396         * modules/stdlib (Depends-on): Update.
2397
2398 2011-07-12  Bruno Haible  <bruno@clisp.org>
2399
2400         * NEWS: Mention the changes.
2401
2402         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
2403         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
2404         (Files, Makefile.am): Update.
2405         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
2406         * modules/arpa_inet (Depends-on): Update.
2407         * modules/ctype (Depends-on): Update.
2408         * modules/dirent (Depends-on): Update.
2409         * modules/fcntl-h (Depends-on): Update.
2410         * modules/glob (Depends-on): Update.
2411         * modules/iconv-h (Depends-on): Update.
2412         * modules/inttypes-incomplete (Depends-on): Update.
2413         * modules/langinfo (Depends-on): Update.
2414         * modules/locale (Depends-on): Update.
2415         * modules/math (Depends-on): Update.
2416         * modules/netdb (Depends-on): Update.
2417         * modules/poll-h (Depends-on): Update.
2418         * modules/pty (Depends-on): Update.
2419         * modules/search (Depends-on): Update.
2420         * modules/signal (Depends-on): Update.
2421         * modules/spawn (Depends-on): Update.
2422         * modules/stdio (Depends-on): Update.
2423         * modules/stdlib (Depends-on): Update.
2424         * modules/string (Depends-on): Update.
2425         * modules/strings (Depends-on): Update.
2426         * modules/sys_file (Depends-on): Update.
2427         * modules/sys_ioctl (Depends-on): Update.
2428         * modules/sys_select (Depends-on): Update.
2429         * modules/sys_socket (Depends-on): Update.
2430         * modules/sys_stat (Depends-on): Update.
2431         * modules/sys_time (Depends-on): Update.
2432         * modules/sys_times (Depends-on): Update.
2433         * modules/sys_utsname (Depends-on): Update.
2434         * modules/sys_wait (Depends-on): Update.
2435         * modules/termios (Depends-on): Update.
2436         * modules/time (Depends-on): Update.
2437         * modules/unistd (Depends-on): Update.
2438         * modules/wchar (Depends-on): Update.
2439         * modules/wctype-h (Depends-on): Update.
2440         * MODULES.html.sh (Support for building libraries and executables):
2441         Update.
2442
2443         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
2444         * modules/snippet/unused-parameter: Renamed from
2445         modules/unused-parameter.
2446         (Files, Makefile.am): Update.
2447         * build-aux/snippet/unused-parameter.h: Renamed from
2448         build-aux/unused-parameter.h.
2449         * modules/selinux-h (Depends-on): Update.
2450         * modules/unistr/base (Depends-on): Update.
2451         * MODULES.html.sh (Core language properties): Update.
2452
2453         Rename module 'link-warning' to 'snippet/link-warning'.
2454         * modules/snippet/link-warning: Renamed from modules/link-warning.
2455         (Files, Makefile.am): Update.
2456         * build-aux/snippet/link-warning.h: Renamed from
2457         build-aux/link-warning.h.
2458         * MODULES.html.sh (Support for building libraries and executables):
2459         Update.
2460
2461         Rename module 'c++defs' to 'snippet/c++defs'.
2462         * modules/snippet/c++defs: Renamed from modules/c++defs.
2463         (Files, Makefile.am): Update.
2464         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
2465         * modules/arpa_inet (Depends-on): Update.
2466         * modules/ctype (Depends-on): Update.
2467         * modules/dirent (Depends-on): Update.
2468         * modules/fcntl-h (Depends-on): Update.
2469         * modules/glob (Depends-on): Update.
2470         * modules/iconv-h (Depends-on): Update.
2471         * modules/langinfo (Depends-on): Update.
2472         * modules/locale (Depends-on): Update.
2473         * modules/math (Depends-on): Update.
2474         * modules/netdb (Depends-on): Update.
2475         * modules/poll-h (Depends-on): Update.
2476         * modules/pty (Depends-on): Update.
2477         * modules/search (Depends-on): Update.
2478         * modules/signal (Depends-on): Update.
2479         * modules/spawn (Depends-on): Update.
2480         * modules/stdio (Depends-on): Update.
2481         * modules/stdlib (Depends-on): Update.
2482         * modules/string (Depends-on): Update.
2483         * modules/strings (Depends-on): Update.
2484         * modules/sys_ioctl (Depends-on): Update.
2485         * modules/sys_select (Depends-on): Update.
2486         * modules/sys_socket (Depends-on): Update.
2487         * modules/sys_stat (Depends-on): Update.
2488         * modules/sys_time (Depends-on): Update.
2489         * modules/sys_wait (Depends-on): Update.
2490         * modules/termios (Depends-on): Update.
2491         * modules/time (Depends-on): Update.
2492         * modules/unistd (Depends-on): Update.
2493         * modules/wchar (Depends-on): Update.
2494         * modules/wctype-h (Depends-on): Update.
2495
2496         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
2497         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
2498         (Files, Makefile.am): Update.
2499         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
2500         * modules/argv-iter (Depends-on): Update.
2501         * modules/arpa_inet (Depends-on): Update.
2502         * modules/dirent (Depends-on): Update.
2503         * modules/fcntl-h (Depends-on): Update.
2504         * modules/fnmatch (Depends-on): Update.
2505         * modules/getopt-posix (Depends-on): Update.
2506         * modules/glob (Depends-on): Update.
2507         * modules/iconv-h (Depends-on): Update.
2508         * modules/inttypes-incomplete (Depends-on): Update.
2509         * modules/locale (Depends-on): Update.
2510         * modules/math (Depends-on): Update.
2511         * modules/netdb (Depends-on): Update.
2512         * modules/search (Depends-on): Update.
2513         * modules/signal (Depends-on): Update.
2514         * modules/spawn (Depends-on): Update.
2515         * modules/stdio (Depends-on): Update.
2516         * modules/stdlib (Depends-on): Update.
2517         * modules/string (Depends-on): Update.
2518         * modules/strings (Depends-on): Update.
2519         * modules/sys_socket (Depends-on): Update.
2520         * modules/sys_stat (Depends-on): Update.
2521         * modules/sys_time (Depends-on): Update.
2522         * modules/sys_times (Depends-on): Update.
2523         * modules/sys_utsname (Depends-on): Update.
2524         * modules/time (Depends-on): Update.
2525         * modules/unistd (Depends-on): Update.
2526         * modules/wchar (Depends-on): Update.
2527         * MODULES.html.sh (Support for building libraries and executables):
2528         Update.
2529
2530 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2531
2532         Improvements on _Noreturn and related modules.
2533
2534         modules/_Exit-tests: test _Noreturn too
2535         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
2536         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
2537         (main): Use them.
2538
2539         stdnoreturn, stdnoreturn-tests: remove modules
2540         They're not needed here and a bit premature for use elsewhere.  See
2541         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
2542         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2543         * tests/test-stdnoreturn.c: Remove files.
2544         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
2545         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
2546         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
2547         and using noreturn.
2548         * modules/openat, modules/sigpipe-die, modules/xalloc:
2549         * modules/xmemdup0, modules/xstrtol:
2550         Remove dependency on stdnoreturn.
2551
2552         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
2553         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
2554         Reparenthesize to avoid GCC warning.
2555         Support Microsoft's syntax.
2556         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
2557
2558         _Noreturn-tests: remove module
2559         * modules/_Noreturn-tests: Remove.
2560         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
2561         * tests/test-_Noreturn.c: Remove.
2562         * tests/test-stdnoreturn.c: Merge from the old
2563         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
2564
2565 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2566
2567         _Noreturn, stdnoreturn, and related modules.
2568
2569         * top/maint.mk: Adjust to new noreturn support.
2570         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
2571         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
2572
2573         xalloc: use stdnoreturn.h
2574         * lib/xalloc.h: Include <stdnoreturn.h>.
2575         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2576         * modules/xalloc (Depends-on): Add stdnoreturn.
2577
2578         xstrtol: use stdnoreturn.h
2579         * lib/xstrtol.h: Include <stdnoreturn.h>.
2580         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2581         * modules/xstrtol (Depends-on): Add stdnoreturn.
2582
2583         xmemdup0: use stdnoreturn.h
2584         * lib/xmemdup0.h: Include <stdnoreturn.h>.
2585         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2586         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
2587
2588         sigpipe-die: use stdnoreturn.h
2589         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
2590         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2591         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
2592
2593         openat: use stdnoreturn.h
2594         * lib/openat.h: Include <stdnoreturn.h>.
2595         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2596         * modules/openat (Depends-on): Add stdnoreturn.
2597
2598         * lib/openat-die.c (openat_save_fail): Modernize comment.
2599
2600         * lib/xalloc-die.c (xalloc_die): Modernize comment.
2601
2602         * lib/glthread/thread.h: Modernize comment.
2603
2604         obstack: use _Noreturn
2605         * lib/obstack.c (__attribute__): Remove macro.
2606         (print_and_abort): Use _Noreturn.
2607
2608         c-stack: use _Noreturn
2609         * lib/c-stack.c (die, overflow_handler, segv_handler):
2610         Use _Noreturn rather than __attribute__((noreturn)).
2611
2612         argmatch-tests, exclude_tests: use _Noreturn
2613         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
2614         Remove.
2615         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
2616
2617         stdlib: use _Noreturn
2618         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
2619         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
2620         * modules/stdlib (Depends-on): Add _Noreturn.
2621         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
2622
2623         stdnoreturn-tests: new module
2624         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
2625
2626         stdnoreturn: new module
2627         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
2628         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
2629
2630         _Noreturn-tests: new module
2631         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
2632
2633         _Noreturn: new module
2634         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
2635         New section, mentioning it.
2636         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
2637
2638         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
2639
2640 2011-07-11  Eric Blake  <eblake@redhat.com>
2641
2642         ffs: new module
2643         * modules/ffs: New file.
2644         * m4/ffs.m4: Likewise.
2645         * lib/ffs.c: Likewise.
2646         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
2647         * modules/strings (Makefile.am): Substitute witness.
2648         (Depends-on): Add c++defs.
2649         * lib/strings.in.h (ffs): Declare.
2650         * modules/ffs-tests: New test file.
2651         * tests/test-ffs.c: Test new module.
2652         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2653         * doc/posix-functions/ffs.texi (ffs): Likewise.
2654
2655         regex: avoid compiler warning
2656         * lib/regex.c (includes): Include <strings.h>, for use of
2657         strcasecmp in regcomp.c.
2658         Reported by Joachim Schmitz.
2659
2660 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2661
2662         stdint: respect system's intmax_t if INTMAX_MAX
2663         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
2664         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
2665         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
2666         long but int64_t is long long, and where we will clash with the
2667         system intmax_t if we override it.  See
2668         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
2669         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
2670         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
2671         similarly for UINTMAX_C.
2672
2673 2011-07-08  Bruno Haible  <bruno@clisp.org>
2674
2675         pthread_sigmask tests: Avoid a compiler warning.
2676         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
2677         non-zero.
2678
2679         sigprocmask tests: A better way to avoid a compiler warning.
2680         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
2681         (main): Complain if system() returns non-zero.
2682         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
2683
2684 2011-07-08  Bruno Haible  <bruno@clisp.org>
2685
2686         pthread_sigmask: Work around IRIX bug.
2687         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
2688         bug.
2689         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
2690         there may be unblocked pending signals.
2691         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
2692
2693 2011-07-08  Bruno Haible  <bruno@clisp.org>
2694
2695         pthread_sigmask: Work around Cygwin bug.
2696         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
2697         bug.
2698         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
2699         the system's pthread_sigmask function.
2700         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
2701
2702 2011-07-08  Bruno Haible  <bruno@clisp.org>
2703
2704         pthread_sigmask: Work around bug in single-threaded implementation.
2705         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
2706         FreeBSD, HP-UX, Solaris bug.
2707         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
2708         * lib/pthread_sigmask.c: Include <stddef.h>.
2709         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
2710         the system's pthread_sigmask function.
2711         * modules/pthread_sigmask (configure.ac): Invoke
2712         gl_PREREQ_PTHREAD_SIGMASK.
2713         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
2714         HP-UX, Solaris.
2715
2716 2011-07-08  Eric Blake  <eblake@redhat.com>
2717
2718         test-sigprocmask: avoid compiler warning
2719         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
2720         * tests/test-sigprocmask.c (main): Use it to silence warning.
2721         Reported by Jim Meyering.
2722
2723         test-snprintf: avoid compiler warning
2724         * tests/test-snprintf.c (main): Avoid shadowed declaration.
2725         * tests/test-vsnprintf.c (main): Likewise.
2726         Reported by Jim Meyering.
2727
2728 2011-07-08  Bruno Haible  <bruno@clisp.org>
2729
2730         Tests for module 'pthread_sigmask'.
2731         * modules/pthread_sigmask-tests: New file.
2732         * tests/test-pthread_sigmask1.c: New file, based on
2733         tests/test-sigprocmask.c.
2734         * tests/test-pthread_sigmask2.c: New file.
2735
2736 2011-07-08  Jim Meyering  <meyering@redhat.com>
2737
2738         test-getopt.h: avoid warning about an unused variable
2739         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
2740
2741 2011-07-07  Jim Meyering  <meyering@redhat.com>
2742
2743         maint: reduce list of files exempt from sc_prohibit_leading_TABs
2744         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
2745         now that it no longer contains leading TABs.
2746         Remove unused "url=FIXME" statement.
2747
2748 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
2749
2750         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
2751         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2752         When gl_THREADLIB is not in use, assume that the POSIX sematics
2753         are desired.  This is better for Emacs, which uses POSIX semantics
2754         on GNUish and/or POSIXish platforms, and does not use threads at
2755         all otherwise.
2756
2757         pthread_sigmask: fix typo when testing for libraries
2758         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2759         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
2760
2761 2011-07-08  Eric Blake  <eblake@redhat.com>
2762
2763         fts: introduce FTS_NOATIME
2764         * lib/fts_.h (FTS_NOATIME): New bit flag.
2765         (FTS_OPTIONMASK): Adjust.
2766         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
2767         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
2768
2769 2011-07-08  Bruno Haible  <bruno@clisp.org>
2770
2771         Tests for module 'thread'.
2772         * modules/thread-tests: New file.
2773         * tests/test-thread_self.c: New file.
2774         * tests/test-thread_create.cc: New file.
2775
2776 2011-07-08  Bruno Haible  <bruno@clisp.org>
2777
2778         thread: Avoid gcc warnings when using gl_thread_self().
2779         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
2780         'void *'.
2781         (gl_thread_self_pointer): Update.
2782
2783 2011-07-07  Bruno Haible  <bruno@clisp.org>
2784
2785         signal-c++-tests: Check declaration of pthread_sigmask.
2786         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
2787         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
2788         $(LIB_PTHREAD_SIGMASK).
2789
2790 2011-07-07  Bruno Haible  <bruno@clisp.org>
2791
2792         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
2793         * lib/signal.in.h (pthread_sigmask): Override if
2794         REPLACE_PTHREAD_SIGMASK is 1.
2795         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2796         REPLACE_PTHREAD_SIGMASK.
2797         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
2798         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
2799         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
2800         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2801         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
2802
2803 2011-07-07  Bruno Haible  <bruno@clisp.org>
2804
2805         pthread_sigmask: Ensure declaration in <signal.h>.
2806         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
2807         include <pthread.h>.
2808         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
2809         problem.
2810
2811 2011-07-07  Bruno Haible  <bruno@clisp.org>
2812
2813         pthread_sigmask: Document the module.
2814         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
2815
2816 2011-07-07  Bruno Haible  <bruno@clisp.org>
2817
2818         pthread_sigmask: Follow gnulib conventions.
2819         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
2820         gl_PTHREAD_SIGMASK.
2821         * modules/pthread_sigmask (configure.ac): Update.
2822
2823 2011-07-07  Bruno Haible  <bruno@clisp.org>
2824
2825         pthread_sigmask: Make declaration C++ safe.
2826         * lib/signal.in.h: In two special conditions, just do an #include_next.
2827         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2828         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
2829         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2830         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2831         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
2832         not REPLACE_PTHREAD_MASK.
2833         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
2834         not REPLACE_PTHREAD_MASK.
2835         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2836
2837 2011-07-07  Bruno Haible  <bruno@clisp.org>
2838
2839         pthread_sigmask: Fix return value.
2840         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
2841         * lib/pthread_sigmask.c: New file.
2842         * modules/pthread_sigmask (Files): Add it.
2843         (configure.ac): Invoke AC_LIBOBJ.
2844
2845 2011-07-07  Eric Blake  <eblake@redhat.com>
2846
2847         getopt: more portable argv creation
2848         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
2849         const, use char arrays rather than strings.
2850         Suggested by Paul Eggert.
2851
2852 2011-07-07  Bruno Haible  <bruno@clisp.org>
2853
2854         Tests for module 'sigprocmask'.
2855         * modules/sigprocmask-tests: New file.
2856         * tests/test-sigprocmask.c: New file.
2857
2858 2011-07-07  Bruno Haible  <bruno@clisp.org>
2859
2860         float tests: Tweak.
2861         * tests/test-float.c (main): Tweak skip message.
2862
2863 2011-07-07  Eric Blake  <eblake@redhat.com>
2864
2865         getopt: avoid compiler warning during configure
2866         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
2867         assigning string literals to non-const pointer.
2868
2869         getopt-gnu: avoid crash in glibc getopt
2870         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
2871         * tests/test-getopt.h (test_getopt): Enhance test.
2872         * tests/test-getopt_long.h (test_getopt_long): Likewise.
2873         * doc/posix-functions/getopt.texi (getopt): Document it.
2874         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2875         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2876         Likewise.
2877
2878 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
2879
2880         getopt: handle W; without long options in getopt [BZ #12922]
2881         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
2882         but no long options are defined, just return 'W'.
2883
2884 2011-07-07  Bruno Haible  <bruno@clisp.org>
2885
2886         Avoid literal tabs.
2887         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
2888         variable containing a tab instead of a literal tab.
2889         Reported by Jim Meyering.
2890
2891 2011-07-07  Bruno Haible  <bruno@clisp.org>
2892
2893         Comments.
2894         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
2895
2896 2011-07-06  Bruno Haible  <bruno@clisp.org>
2897
2898         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
2899         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
2900         <winsock2.h>.
2901         (rpl_fd_isset, FD_ISSET): New definitions, copied from
2902         lib/sys_socket.in.h.
2903         (close, gethostname): Hide declarations from <winsock2.h>.
2904         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2905         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
2906         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
2907         (select): Don't override if gnulib's <sys/select.h> was already
2908         included.
2909         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
2910         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
2911         setsockopt, shutdown, select): Tweak indentation.
2912
2913 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2914
2915         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
2916         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
2917         in an application that does not use the sys_select module.
2918
2919 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
2920
2921         poll: do not return 0 on timeout=-1
2922         * lib/poll.c: Loop with yield if no events occured
2923
2924 2011-07-06  Eric Blake  <eblake@redhat.com>
2925
2926         pthread_sigmask: always replace when not using pthread
2927         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
2928         replacement when using some threading other than pthread.  Fix
2929         logic bug.
2930
2931 2011-07-06  Bruno Haible  <bruno@clisp.org>
2932
2933         Comments.
2934         * m4/printf.m4: Update comments about mingw.
2935
2936 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2937
2938         sys_select: define sigset_t more portably
2939         * lib/sys_select.in.h: Always include <sys/types.h>, since
2940         we now need sigset_t and mingw defines it there.
2941         Include <signal.h> before split inclusion guard, to avoid
2942         mishaps on Solaris, whose <signal.h> eventually includes us.
2943         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
2944         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
2945         which come from ...
2946         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2947         gl_CHECK_TYPE_SIGSET_T.
2948         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
2949         does the real work.
2950         * modules/sys_select (Depends-on): Add 'signal'.
2951
2952         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
2953         Suggested by Bruno Haible.
2954
2955         pselect: Use pthread_sigmask, not sigprocmask.
2956         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
2957         multithreaded apps better than sigprocmask does.
2958         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
2959         sigprocmask directly.
2960
2961 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2962
2963         * lib/pselect.c (pselect): Use plain name, without "rpl_".
2964         Don't #undef,  since we don't need any underlying pselect.
2965         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
2966         (Depends-on): Add select.
2967         (Link): Add $(LIBSOCKET).
2968         These changes suggested by Bruno Haible.
2969
2970         pselect: document better
2971         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2972         * doc/posix-functions/pselect.texi (pselect): Document new module.
2973
2974         pthread_sigmask: new module
2975         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2976         * doc/posix-functions/pthread_sigmask.texi: Document new module.
2977         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
2978         This is done only as a macro; I don't know how well that'll
2979         work for C++.  Move <sys/types.h> include before the include_next,
2980         to avoid mishap on Solaris.
2981         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
2982         * modules/signal (Makefile.am): Substitute the check's results.
2983         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
2984
2985         test-pselect: new module
2986         * modules/pselect-tests, tests/test-pselect.c: New files.
2987         * tests/test-select.c, tests/test-sys_select-c++.cc:
2988         If TEST_PSELECT is defined, test pselect instead of testing select.
2989
2990         * tests/test-sys_select.c (sigset_t): Test for it, too.
2991         Suggested by Bruno Haible.
2992
2993 2011-07-05  Eric Blake  <eblake@redhat.com>
2994
2995         snprintf: guarantee %1$d, for libintl
2996         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
2997         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
2998         * doc/posix-functions/snprintf.texi (snprintf): Update.
2999         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
3000         * tests/test-snprintf.c (main): Enhance test.
3001         * tests/test-vsnprintf.c (main): Likewise.
3002
3003 2011-07-05  Jim Meyering  <meyering@redhat.com>
3004
3005         maint: exempt stdio-read.c and stdio-write.c from the cppi check
3006         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
3007         per Bruno's request, to accommodate this idiom (no space after "#")
3008         even when the function is inside an #if block:
3009         char *
3010         gets (char *s)
3011         #undef gets
3012         {
3013           ...
3014         }
3015
3016 2011-07-04  Jim Meyering  <meyering@redhat.com>
3017
3018         maint: indent with spaces, not TABs, and add a rule to check this
3019         * tests/test-userspec.c: Indent with spaces, not TABs.
3020         * tests/test-argp.c: Likewise.
3021         * tests/test-c-stack2.sh: Likewise.
3022         * tests/test-parse-duration.sh: Likewise
3023         * m4/strtod.m4: Likewise.
3024         * m4/alloca.m4: Likewise.
3025         * m4/pselect.m4: Likewise.
3026         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
3027
3028 2011-07-03  Jim Meyering  <meyering@redhat.com>
3029
3030         maint.mk: correct omissions in prohibit_argmatch_without_use check
3031         This rule would mistakenly report that argmatch.h is included without
3032         use even when both the argmatch and invalid_arg macro were used.
3033         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
3034         of argmatch and invalid_arg.
3035
3036 2011-07-03  Bruno Haible  <bruno@clisp.org>
3037
3038         Comments about EINTR.
3039         * lib/safe-read.h: Explain the purpose of this module.
3040         * lib/safe-write.h: Likewise.
3041         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
3042         module.
3043         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
3044         module.
3045         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3046
3047 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
3048
3049         xnanosleep: Rewrite to use new dtotimespec module.
3050         It has the conversion code that used to be in xnanosleep.
3051         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
3052         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
3053         (TIME_T_MAX): Remove.
3054         (xnanosleep): Rewrite in terms of dtotimespec.
3055         * modules/xnanosleep (Depends-on): Add dtotimespec.
3056         Remove intprops, stdbool.
3057
3058         timespec-add, timespec-sub: new modules
3059         * lib/timespec.h (timespec_add, timespec_sub): New decls.
3060         * lib/timespec-add.c, lib/timespec-sub.c:
3061         * modules/timespec-add, modules/timespec-sub: New files.
3062
3063         dtotimespec: new module
3064         * lib/timespec.h (dtotimespec): New decl.
3065         * lib/dtotimespec.c, modules/dtotimespec: New files.
3066
3067         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
3068
3069         pselect: new module
3070         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
3071         (pselect): New decls.
3072         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
3073         since the standard pselect decl uses 'restrict'.
3074         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
3075         HAVE_PSELECT, REPLACE_PSELECT.
3076         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
3077         HAVE_PSELECT, REPLACE_PSELECT.
3078         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
3079
3080         sys_select: don't depend on sys_socket
3081         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
3082         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
3083         This fix works on GNU and GNU-like platforms, but has not been tested
3084         on native Windows.
3085         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
3086         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
3087         gl_HEADER_SYS_SOCKET.
3088         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
3089         gl_PREREQ_SYS_H_WINSOCK2.
3090
3091 2011-06-29  Eric Blake  <eblake@redhat.com>
3092
3093         pipe2: fix C89 compile problem
3094         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
3095         Reported by Bruno Haible.
3096
3097         pipe, pipe2: don't corrupt fd on error
3098         * lib/pipe.c (pipe): Leave fd unchanged on error.
3099         * lib/pipe2.c (pipe2): Likewise.
3100         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
3101         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3102
3103 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
3104
3105         mmap-anon: do not use regular expressions inadvertently
3106         * m4/mmap-anon.m4: Remove trailing period from strings sought
3107         in the output.
3108
3109 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
3110
3111         nanosleep: fix integer overflow problem
3112         * lib/nanosleep.c (my_usleep): Don't assume signed integer
3113         arithmetic wraps around on overflow.
3114
3115         nanosleep: simplify carrying
3116         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
3117         first call to the underyling nanosleep, not for the last one.
3118         This doesn't fix any bugs, but it simplifies the computation of
3119         the remaining delay.  Found while auditing integer overflow issues.
3120
3121         dup2: remove test for existence of fcntl
3122         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
3123         "#if HAVE_FCNTL", in the configure-time test program.
3124         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
3125         and therefore speeds up "configure" a bit.  Found while
3126         adding the dup2 module to Emacs.
3127
3128 2011-06-24  Eric Blake  <eblake@redhat.com>
3129
3130         maint.mk: enhance useless header checks
3131         * top/maint.mk (_sc_header_without_use): Check both include
3132         styles.
3133         (sc_prohibit_assert_without_use)
3134         (sc_prohibit_close_stream_without_use)
3135         (sc_prohibit_getopt_without_use)
3136         (sc_prohibit_quotearg_without_use)
3137         (sc_prohibit_quote_without_use)
3138         (sc_prohibit_long_options_without_use)
3139         (sc_prohibit_inttostr_without_use)
3140         (sc_prohibit_ignore_value_without_use)
3141         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
3142         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
3143         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
3144         (sc_prohibit_hash_pjw_without_use)
3145         (sc_prohibit_safe_read_without_use)
3146         (sc_prohibit_argmatch_without_use)
3147         (sc_prohibit_canonicalize_without_use)
3148         (sc_prohibit_root_dev_ino_without_use)
3149         (sc_prohibit_openat_without_use)
3150         (sc_prohibit_c_ctype_without_use)
3151         (sc_prohibit_signal_without_use)
3152         (sc_prohibit_stdio--_without_use)
3153         (sc_prohibit_stdio-safer_without_use)
3154         (sc_prohibit_strings_without_use)
3155         (sc_prohibit_intprops_without_use)
3156         (sc_prohibit_stddef_without_use)
3157         (sc_prohibit_xfreopen_without_use): Update clients.
3158
3159 2011-06-24  Jim Meyering  <meyering@redhat.com>
3160
3161         syntax-check: keep one maint.mk rule in sync with its header
3162         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
3163         of the bug Eric has just fixed, with today's commit 25e4c2ec.
3164         I prefer to avoid temporary files here, so use <(...), but that
3165         is not supported by /bin/sh, so...
3166         (SHELL): Define to /bin/bash.
3167
3168 2011-06-24  Eric Blake  <eblake@redhat.com>
3169
3170         maint.mk: update sc_prohibit_intprops_without_use
3171         * top/maint.mk (_intprops_names): Match recent changes.
3172
3173 2011-06-24  Bruno Haible  <bruno@clisp.org>
3174
3175         strerror-override: No-op tweak.
3176         * lib/strerror-override.h (strerror_override): Reorder conditions,
3177         for consistency with lib/strerror-override.c.
3178
3179 2011-06-23  Eric Blake  <eblake@redhat.com>
3180
3181         maint.mk: test further PATH_MAX issues
3182         * top/maint.mk (sc_prohibit_path_max_array): Rename...
3183         (sc_prohibit_path_max_allocation): ...and also test alloca.
3184         Suggested by Jim Meyering.
3185
3186 2011-06-22  Eric Blake  <eblake@redhat.com>
3187
3188         maint.mk: add syntax-check to avoid char[PATH_MAX]
3189         * top/maint.mk (sc_prohibit_path_max_array): New rule.
3190
3191         stat: be robust to PATH_MAX definition
3192         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
3193         * modules/stat (Depends-on): Add verify.
3194
3195         link: work around IRIX bug
3196         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
3197         * lib/link.c (rpl_link): Work around it.
3198         * tests/test-link.h (test_link): Enhance test.
3199         * doc/posix-functions/link.texi (link): Document the bug.
3200
3201         getopt: silence clang warning
3202         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
3203         dereference.
3204         Reported by Gustavo Martin Domato.
3205
3206 2011-06-22  Jim Meyering  <meyering@redhat.com>
3207
3208         bootstrap: do not insert a blank line into each .gitignore file
3209         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
3210
3211 2011-06-21  Eric Blake  <eblake@redhat.com>
3212
3213         perror: test for output mismatch
3214         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
3215         perror on IRIX.
3216
3217         strerror_r: fix OpenBSD behavior on out-of-range
3218         * lib/strerror_r.c (strerror_r): Always use maximal string.
3219         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3220
3221         strerror_r: fix OpenBSD behavior on 0
3222         * lib/strerror-override.c (strerror_override): Also override 0
3223         when needed.
3224         * lib/strerror-override.h (strerror_override): Likewise.
3225         * lib/strerror.c (strerror): Simplify, now that 0 override is done
3226         earlier.
3227         * lib/strerror_r.c (strerror_r): Likewise.
3228         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
3229         behavior...
3230         (gl_FUNC_STRERROR_0): ...into new macro.
3231         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
3232         is overridden.
3233         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
3234         * modules/strerror-override (Files): Add strerror.m4.
3235         (configure.ac): Also provide override for 0 when needed.
3236         * doc/posix-functions/strerror.texi (strerror): Document this.
3237         * doc/posix-functions/perror.texi (perror): Likewise.
3238
3239         perror: adjust array size
3240         * modules/perror (Depends-on): Add strerror-override.
3241         * lib/perror.c (perror): Use it to avoid magic number.
3242
3243         strerror-override: reduce size
3244         * lib/strerror-override.c (strerror_override): Use fewer lines.
3245
3246 2011-06-20  Bruno Haible  <bruno@clisp.org>
3247
3248         pathmax: Ensure correct value for PATH_MAX on HP-UX.
3249         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
3250
3251 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3252
3253         alloca: port to compilers that can optimize like GCC 4.6.0
3254         * lib/alloca.c (find_stack_direction): New signature, taken from
3255         Autoconf git.  This works with GCC 4.6.0.  This code should never
3256         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
3257         be used with other compilers that optimize as well as GCC 4.6.0 does.
3258         (alloca): Adjust to new signature.
3259         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
3260         New macro, which patches Autoconf in a similar way.
3261
3262         c-stack: stop worrying about stack direction
3263         * lib/c-stack.c (find_stack_direction): Remove.
3264         (segv_handler): Don't worry about stack direction growth, as it's
3265         too much of a pain to configure this correctly, given how compilers
3266         are optimizing-away our stack-growth detection code.  Instead, assume
3267         that any access to just before or just after the stack is OK.
3268         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
3269         Don't require AC_FUNC_ALLOCA; no longer needed.
3270
3271 2011-06-20  Eric Blake  <eblake@redhat.com>
3272
3273         test-stat: don't allocate PATH_MAX bytes
3274         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
3275         PATH_MAX-sized buffer.
3276         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
3277         * modules/stat-tests (Depends-on): Likewise.
3278         * tests/test-fstatat.c (includes): Drop pathmax.h.
3279         * tests/test-stat.c (includes): Likewise.
3280         Reported by Bruno Haible.
3281
3282 2011-06-20  Bruno Haible  <bruno@clisp.org>
3283
3284         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
3285         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
3286         * lib/float.c: New file.
3287         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
3288         REPLACE_FLOAT_LDBL.
3289         * modules/float (Files): Add lib/float.c.
3290         (configure.ac): Invoke AC_LIBOBJ.
3291         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
3292
3293 2011-06-20  Bruno Haible  <bruno@clisp.org>
3294
3295         Tests for module 'float'.
3296         * modules/float-tests: New file.
3297         * tests/test-float.c: New file.
3298
3299 2011-06-19  Bruno Haible  <bruno@clisp.org>
3300
3301         isinf: Coding style.
3302         * lib/isinf.c: Use GNU coding style.
3303
3304 2011-06-19  Bruno Haible  <bruno@clisp.org>
3305
3306         linkat test: Avoid test failure on AIX 7.1.
3307         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
3308         * tests/test-link.h (test_link): Likewise.
3309
3310 2011-06-19  Bruno Haible  <bruno@clisp.org>
3311
3312         pread test: Avoid test failure on OpenBSD 4.9.
3313         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
3314
3315 2011-06-19  Bruno Haible  <bruno@clisp.org>
3316
3317         sprintf-posix: Fix test failure on AIX 7.1.
3318         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
3319         * doc/posix-functions/dprintf.texi: Mention limited precision problem
3320         on AIX.
3321         * doc/posix-functions/fprintf.texi: Likewise.
3322         * doc/posix-functions/printf.texi: Likewise.
3323         * doc/posix-functions/snprintf.texi: Likewise.
3324         * doc/posix-functions/sprintf.texi: Likewise.
3325         * doc/posix-functions/vdprintf.texi: Likewise.
3326         * doc/posix-functions/vfprintf.texi: Likewise.
3327         * doc/posix-functions/vprintf.texi: Likewise.
3328         * doc/posix-functions/vsnprintf.texi: Likewise.
3329         * doc/posix-functions/vsprintf.texi: Likewise.
3330
3331 2011-06-19  Bruno Haible  <bruno@clisp.org>
3332
3333         roundl-ieee: Fix test failure on AIX 7.1.
3334         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
3335         * doc/posix-functions/roundl.texi: Mention problem with negative
3336         arguments.
3337
3338 2011-06-19  Bruno Haible  <bruno@clisp.org>
3339
3340         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3341         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
3342         * doc/posix-functions/round.texi: Mention problem with negative
3343         arguments.
3344         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
3345
3346 2011-06-19  Bruno Haible  <bruno@clisp.org>
3347
3348         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3349         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
3350         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
3351         * doc/posix-functions/roundf.texi: Mention problem with negative
3352         arguments.
3353         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
3354
3355 2011-06-19  Bruno Haible  <bruno@clisp.org>
3356
3357         ceilf-ieee: Work around bug on MacOS X 10.5.
3358         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
3359
3360         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
3361         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
3362         IEEE compliant, avoid compiler optimizations.
3363         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
3364         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3365         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
3366         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3367         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3368         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3369         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3370         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3371         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3372         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3373
3374 2011-06-19  Bruno Haible  <bruno@clisp.org>
3375
3376         ceilf-ieee: Work around bug on AIX 7.1.
3377         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
3378         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
3379
3380 2011-06-19  Bruno Haible  <bruno@clisp.org>
3381
3382         ceil-ieee: Work around bug on AIX 7.1.
3383         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
3384         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
3385
3386 2011-06-18  Bruno Haible  <bruno@clisp.org>
3387
3388         fsync test: Avoid test failure on MacOS X and AIX.
3389         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
3390         EINVAL.
3391
3392 2011-06-18  Bruno Haible  <bruno@clisp.org>
3393
3394         openat, fdopendir tests: Fix link errors.
3395         * modules/openat-tests (Depends-on): Add progname.
3396         * modules/fdopendir-tests (Depends-on): Likewise.
3397         * tests/test-fchownat.c: Include progname.h.
3398         (main): Call set_program_name.
3399         * tests/test-fstatat.c: Include progname.h.
3400         (main): Call set_program_name.
3401         * tests/test-mkdirat.c: Include progname.h.
3402         (main): Call set_program_name.
3403         * tests/test-openat.c: Include progname.h.
3404         (main): Call set_program_name.
3405         * tests/test-unlinkat.c: Include progname.h.
3406         (main): Call set_program_name.
3407         * tests/test-fdopendir.c: Include progname.h.
3408         (main): Call set_program_name.
3409
3410 2011-06-18  Bruno Haible  <bruno@clisp.org>
3411
3412         Doc update.
3413         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
3414         HP-UX.
3415         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
3416
3417 2011-06-18  Bruno Haible  <bruno@clisp.org>
3418
3419         getcwd tests: Avoid compilation error on HP-UX 11.31.
3420         * modules/getcwd-tests (Depends-on): Add pathmax.
3421         * tests/test-getcwd.c: Include pathmax.h.
3422
3423 2011-06-18  Bruno Haible  <bruno@clisp.org>
3424
3425         isfinite, isinf: Fix link error on AIX 6 and 7.
3426         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
3427         needed, also test the macro with a 'float' argument.
3428         * m4/isinf.m4 (gl_ISINF): Likewise.
3429
3430 2011-06-18  Bruno Haible  <bruno@clisp.org>
3431
3432         getloadavg: Don't clobber LIBS. Regression from previous commit.
3433         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
3434         AC_CHECK_LIB from here...
3435         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
3436         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
3437         gl_func_getloadavg_done.
3438         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3439
3440 2011-06-18  Bruno Haible  <bruno@clisp.org>
3441
3442         clean-temp: Improve documentation.
3443         * lib/clean-temp.h: Explain better how to use this module.
3444         Reported by John Darrington <john@darrington.wattle.id.au>.
3445
3446 2011-06-17  Bruno Haible  <bruno@clisp.org>
3447
3448         pread, pwrite: Avoid cc warning on AIX.
3449         * lib/unistd.in.h (pread): Undefine before defining as a macro.
3450         (pwrite): Likewise.
3451
3452 2011-06-17  Bruno Haible  <bruno@clisp.org>
3453
3454         spawn-pipe tests: Fix link error.
3455         * tests/test-spawn-pipe-child.c: Undefine fprintf.
3456         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3457
3458 2011-06-17  Bruno Haible  <bruno@clisp.org>
3459
3460         Tests: Remove unnecessary dependency.
3461         * modules/canonicalize-tests (Depends-on): Remove progname.
3462         * modules/chown-tests (Depends-on): Likewise.
3463         * modules/dirname-tests (Depends-on): Likewise.
3464         * modules/fdopendir-tests (Depends-on): Likewise.
3465         * modules/fdutimensat-tests (Depends-on): Likewise.
3466         * modules/hash-tests (Depends-on): Likewise.
3467         * modules/lchown-tests (Depends-on): Likewise.
3468         * modules/linkat-tests (Depends-on): Likewise.
3469         * modules/renameat-tests (Depends-on): Likewise.
3470         * modules/spawn-pipe-tests (Depends-on): Likewise.
3471         * modules/utimensat-tests (Depends-on): Likewise.
3472
3473 2011-06-17  Bruno Haible  <bruno@clisp.org>
3474
3475         spawn-pipe tests: Fix link error.
3476         * tests/test-spawn-pipe-child.c: Undefine fflush.
3477
3478 2011-06-17  Bruno Haible  <bruno@clisp.org>
3479
3480         Fix tests link errors.
3481         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
3482         * modules/chown-tests (Makefile.am): Don't link test-chown with
3483         LIBINTL.
3484         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
3485         LIBINTL.
3486         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
3487         LIBINTL.
3488         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
3489         LIBINTL.
3490
3491 2011-06-16  Bruno Haible  <bruno@clisp.org>
3492
3493         crypto/gc-sha1: Fix recent regression.
3494         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
3495         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
3496
3497         crypto/gc-md5: Fix recent regression.
3498         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
3499
3500         crypto/gc-md4: Fix recent regression.
3501         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
3502         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
3503
3504         crypto/gc-arctwo: Fix recent regression.
3505         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
3506         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
3507
3508         crypto/gc-rijndael: Fix recent regression.
3509         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
3510         (configure.ac): Invoke AC_LIBOBJ here.
3511         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
3512         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3513
3514         crypto/gc-hmac-sha1: Fix recent regression.
3515         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
3516         (configure.ac): Invoke AC_LIBOBJ here.
3517         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
3518         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3519
3520         crypto/gc-hmac-md5: Fix recent regression.
3521         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
3522         (configure.ac): Invoke AC_LIBOBJ here.
3523         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
3524         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3525
3526         crypto/gc-des: Fix recent regression.
3527         * modules/crypto/gc-des (Files): Remove m4/des.m4.
3528         (configure.ac): Invoke AC_LIBOBJ here.
3529         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
3530         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3531
3532         crypto/gc-arcfour: Fix recent regression.
3533         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
3534         (configure.ac): Invoke AC_LIBOBJ here.
3535         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
3536         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3537
3538 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
3539
3540         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
3541         After the 2011-05-21 change, this macro requires
3542         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
3543         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
3544
3545 2011-06-16  Bruno Haible  <bruno@clisp.org>
3546
3547         fprintftime: Move AC_LIBOBJ invocations to module description.
3548         * m4/fprintftime.m4: Remove file.
3549         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
3550         (configure.ac): Remove gl_FPRINTFTIME call.
3551         (Makefile.am): Augment lib_SOURCES.
3552         Reported by Jim Meyering.
3553
3554 2011-06-16  Bruno Haible  <bruno@clisp.org>
3555
3556         tmpfile-safer: Finish 2011-05-23 commit.
3557         * m4/stdio-safer.m4: Really remove file.
3558         Reported by Jim Meyering.
3559
3560 2011-06-16  Bruno Haible  <bruno@clisp.org>
3561
3562         syntax-check: Fix typo.
3563         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
3564         printf-posix.m4.
3565         Reported by Jim Meyering.
3566
3567 2011-06-13  Jim Meyering  <meyering@redhat.com>
3568
3569         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
3570         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
3571
3572 2011-05-23  Bruno Haible  <bruno@clisp.org>
3573
3574         yesno: Move AC_LIBOBJ invocations to module description.
3575         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
3576         * modules/yesno (Makefile.am): Augment lib_SOURCES.
3577
3578 2011-05-23  Bruno Haible  <bruno@clisp.org>
3579
3580         xstrtol: Move AC_LIBOBJ invocations to module description.
3581         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
3582         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
3583
3584 2011-05-23  Bruno Haible  <bruno@clisp.org>
3585
3586         xstrtold: Move AC_LIBOBJ invocations to module description.
3587         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
3588         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
3589
3590 2011-05-23  Bruno Haible  <bruno@clisp.org>
3591
3592         xstrtod: Move AC_LIBOBJ invocations to module description.
3593         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
3594         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
3595
3596 2011-05-23  Bruno Haible  <bruno@clisp.org>
3597
3598         xnanosleep: Move AC_LIBOBJ invocations to module description.
3599         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
3600         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
3601
3602 2011-05-23  Bruno Haible  <bruno@clisp.org>
3603
3604         xgetcwd: Move AC_LIBOBJ invocations to module description.
3605         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
3606         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
3607
3608 2011-05-23  Bruno Haible  <bruno@clisp.org>
3609
3610         xalloc: Move AC_LIBOBJ invocations to module description.
3611         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
3612         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
3613
3614 2011-05-23  Bruno Haible  <bruno@clisp.org>
3615
3616         write-any-file: Move AC_LIBOBJ invocations to module description.
3617         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
3618         invocation.
3619         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
3620
3621 2011-05-23  Bruno Haible  <bruno@clisp.org>
3622
3623         utimens: Move AC_LIBOBJ invocations to module description.
3624         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
3625         * modules/utimens (Makefile.am): Augment lib_SOURCES.
3626
3627 2011-05-23  Bruno Haible  <bruno@clisp.org>
3628
3629         utimecmp: Move AC_LIBOBJ invocations to module description.
3630         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
3631         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
3632
3633 2011-05-23  Bruno Haible  <bruno@clisp.org>
3634
3635         userspec: Move AC_LIBOBJ invocations to module description.
3636         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
3637         * modules/userspec (Makefile.am): Augment lib_SOURCES.
3638
3639 2011-05-23  Bruno Haible  <bruno@clisp.org>
3640
3641         unlinkdir: Move AC_LIBOBJ invocations to module description.
3642         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
3643         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
3644
3645 2011-05-23  Bruno Haible  <bruno@clisp.org>
3646
3647         unistd-safer: Move AC_LIBOBJ invocations to module description.
3648         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
3649         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
3650
3651 2011-05-23  Bruno Haible  <bruno@clisp.org>
3652
3653         tempname: Move AC_LIBOBJ invocations to module description.
3654         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
3655         * modules/tempname (Makefile.am): Augment lib_SOURCES.
3656
3657 2011-05-23  Bruno Haible  <bruno@clisp.org>
3658
3659         strftime: Move AC_LIBOBJ invocations to module description.
3660         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
3661         * modules/strftime (Makefile.am): Augment lib_SOURCES.
3662
3663 2011-05-23  Bruno Haible  <bruno@clisp.org>
3664
3665         stdlib-safer: Move AC_LIBOBJ invocations to module description.
3666         * m4/stdlib-safer.m4: Remove file.
3667         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
3668         (configure.ac): Remove gl_STDLIB_SAFER call.
3669         (Makefile.am): Augment lib_SOURCES.
3670
3671 2011-05-23  Bruno Haible  <bruno@clisp.org>
3672
3673         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
3674         * m4/stdio-safer.m4: Remove file.
3675         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
3676         (configure.ac): Remove gl_TMPFILE_SAFER call.
3677         (Makefile.am): Augment lib_SOURCES.
3678
3679 2011-05-23  Bruno Haible  <bruno@clisp.org>
3680
3681         popen-safer: Move AC_LIBOBJ invocations to module description.
3682         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
3683         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
3684         (configure.ac): Remove gl_POPEN_SAFER call.
3685         (Makefile.am): Augment lib_SOURCES.
3686
3687 2011-05-23  Bruno Haible  <bruno@clisp.org>
3688
3689         freopen-safer: Move AC_LIBOBJ invocations to module description.
3690         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
3691         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
3692         (configure.ac): Remove gl_FREOPEN_SAFER call.
3693         (Makefile.am): Augment lib_SOURCES.
3694
3695 2011-05-23  Bruno Haible  <bruno@clisp.org>
3696
3697         fopen-safer: Move AC_LIBOBJ invocations to module description.
3698         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
3699         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
3700         (configure.ac): Remove gl_FOPEN_SAFER call.
3701         (Makefile.am): Augment lib_SOURCES.
3702
3703 2011-05-23  Bruno Haible  <bruno@clisp.org>
3704
3705         crypto/sha512: Move AC_LIBOBJ invocations to module description.
3706         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
3707         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
3708
3709 2011-05-23  Bruno Haible  <bruno@clisp.org>
3710
3711         crypto/sha256: Move AC_LIBOBJ invocations to module description.
3712         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
3713         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
3714
3715 2011-05-23  Bruno Haible  <bruno@clisp.org>
3716
3717         crypto/sha1: Move AC_LIBOBJ invocations to module description.
3718         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
3719         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
3720
3721 2011-05-23  Bruno Haible  <bruno@clisp.org>
3722
3723         settime: Move AC_LIBOBJ invocations to module description.
3724         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
3725         * modules/settime (Makefile.am): Augment lib_SOURCES.
3726
3727 2011-05-23  Bruno Haible  <bruno@clisp.org>
3728
3729         savedir: Move AC_LIBOBJ invocations to module description.
3730         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
3731         * modules/savedir (Makefile.am): Augment lib_SOURCES.
3732
3733 2011-05-23  Bruno Haible  <bruno@clisp.org>
3734
3735         save-cwd: Move AC_LIBOBJ invocations to module description.
3736         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
3737         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
3738
3739 2011-05-23  Bruno Haible  <bruno@clisp.org>
3740
3741         same: Move AC_LIBOBJ invocations to module description.
3742         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
3743         * modules/same (Makefile.am): Augment lib_SOURCES.
3744
3745 2011-05-23  Bruno Haible  <bruno@clisp.org>
3746
3747         safe-write: Move AC_LIBOBJ invocations to module description.
3748         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
3749         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
3750         instead of gl_SAFE_WRITE.
3751         (Makefile.am): Augment lib_SOURCES.
3752
3753 2011-05-23  Bruno Haible  <bruno@clisp.org>
3754
3755         safe-read: Move AC_LIBOBJ invocations to module description.
3756         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
3757         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
3758         of gl_SAFE_READ.
3759         (Makefile.am): Augment lib_SOURCES.
3760
3761 2011-05-23  Bruno Haible  <bruno@clisp.org>
3762
3763         safe-alloc: Move AC_LIBOBJ invocations to module description.
3764         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
3765         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
3766
3767 2011-05-23  Bruno Haible  <bruno@clisp.org>
3768
3769         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
3770         * m4/rijndael.m4: Remove file.
3771         * modules/crypto/rijndael (Files): Remove it.
3772         (configure.ac): Remove gl_RIJNDAEL call.
3773         (Makefile.am): Augment lib_SOURCES.
3774
3775 2011-05-23  Bruno Haible  <bruno@clisp.org>
3776
3777         readtokens: Move AC_LIBOBJ invocations to module description.
3778         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
3779         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
3780
3781 2011-05-23  Bruno Haible  <bruno@clisp.org>
3782
3783         read-file: Move AC_LIBOBJ invocations to module description.
3784         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
3785         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
3786         of gl_FUNC_READ_FILE.
3787         (Makefile.am): Augment lib_SOURCES.
3788
3789 2011-05-23  Bruno Haible  <bruno@clisp.org>
3790
3791         quotearg: Move AC_LIBOBJ invocations to module description.
3792         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
3793         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
3794
3795 2011-05-23  Bruno Haible  <bruno@clisp.org>
3796
3797         quote: Move AC_LIBOBJ invocations to module description.
3798         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
3799         * modules/quote (Makefile.am): Augment lib_SOURCES.
3800
3801 2011-05-23  Bruno Haible  <bruno@clisp.org>
3802
3803         posixver: Move AC_LIBOBJ invocations to module description.
3804         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
3805         * modules/posixver (Makefile.am): Augment lib_SOURCES.
3806
3807 2011-05-23  Bruno Haible  <bruno@clisp.org>
3808
3809         posixtm: Move AC_LIBOBJ invocations to module description.
3810         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
3811         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
3812
3813 2011-05-23  Bruno Haible  <bruno@clisp.org>
3814
3815         physmem: Move AC_LIBOBJ invocations to module description.
3816         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
3817         * modules/physmem (Makefile.am): Augment lib_SOURCES.
3818
3819 2011-05-23  Bruno Haible  <bruno@clisp.org>
3820
3821         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
3822         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
3823         invocation.
3824         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
3825
3826 2011-05-23  Bruno Haible  <bruno@clisp.org>
3827
3828         mpsort: Move AC_LIBOBJ invocations to module description.
3829         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
3830         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
3831
3832 2011-05-23  Bruno Haible  <bruno@clisp.org>
3833
3834         modechange: Move AC_LIBOBJ invocations to module description.
3835         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
3836         * modules/modechange (Makefile.am): Augment lib_SOURCES.
3837
3838 2011-05-23  Bruno Haible  <bruno@clisp.org>
3839
3840         mkdir-p: Move AC_LIBOBJ invocations to module description.
3841         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
3842         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
3843
3844 2011-05-23  Bruno Haible  <bruno@clisp.org>
3845
3846         mkancesdirs: Move AC_LIBOBJ invocations to module description.
3847         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
3848         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
3849
3850 2011-05-23  Bruno Haible  <bruno@clisp.org>
3851
3852         mgetgroups: Move AC_LIBOBJ invocations to module description.
3853         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
3854         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
3855
3856 2011-05-23  Bruno Haible  <bruno@clisp.org>
3857
3858         memxor: Move AC_LIBOBJ invocations to module description.
3859         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
3860         * modules/memxor (Makefile.am): Augment lib_SOURCES.
3861
3862 2011-05-23  Bruno Haible  <bruno@clisp.org>
3863
3864         memcoll: Move AC_LIBOBJ invocations to module description.
3865         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
3866         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
3867
3868 2011-05-23  Bruno Haible  <bruno@clisp.org>
3869
3870         memcasecmp: Move AC_LIBOBJ invocations to module description.
3871         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
3872         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
3873
3874 2011-05-23  Bruno Haible  <bruno@clisp.org>
3875
3876         crypto/md5: Move AC_LIBOBJ invocations to module description.
3877         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
3878         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
3879
3880 2011-05-23  Bruno Haible  <bruno@clisp.org>
3881
3882         crypto/md4: Move AC_LIBOBJ invocations to module description.
3883         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
3884         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
3885
3886 2011-05-23  Bruno Haible  <bruno@clisp.org>
3887
3888         crypto/md2: Move AC_LIBOBJ invocations to module description.
3889         * m4/md2.m4: Remove file.
3890         * modules/crypto/md2 (Files): Remove it.
3891         (configure.ac): Remove gl_MD2 call.
3892         (Makefile.am): Augment lib_SOURCES.
3893
3894 2011-05-23  Bruno Haible  <bruno@clisp.org>
3895
3896         long-options: Move AC_LIBOBJ invocations to module description.
3897         * m4/long-options.m4: Remove file.
3898         * modules/long-options (Files): Remove it.
3899         (configure.ac): Remove gl_LONG_OPTIONS call.
3900         (Makefile.am): Augment lib_SOURCES.
3901
3902 2011-05-23  Bruno Haible  <bruno@clisp.org>
3903
3904         i-ring: Move AC_LIBOBJ invocations to module description.
3905         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
3906         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
3907
3908 2011-05-23  Bruno Haible  <bruno@clisp.org>
3909
3910         idcache: Move AC_LIBOBJ invocations to module description.
3911         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
3912         * modules/idcache (Makefile.am): Augment lib_SOURCES.
3913
3914 2011-05-23  Bruno Haible  <bruno@clisp.org>
3915
3916         human: Move AC_LIBOBJ invocations to module description.
3917         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
3918         * modules/human (Makefile.am): Augment lib_SOURCES.
3919
3920 2011-05-23  Bruno Haible  <bruno@clisp.org>
3921
3922         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
3923         * m4/hmac-sha1.m4: Remove file.
3924         * modules/crypto/hmac-sha1 (Files): Remove it.
3925         (configure.ac): Remove gl_HMAC_SHA1 call.
3926         (Makefile.am): Augment lib_SOURCES.
3927
3928 2011-05-23  Bruno Haible  <bruno@clisp.org>
3929
3930         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
3931         * m4/hmac-md5.m4: Remove file.
3932         * modules/crypto/hmac-md5 (Files): Remove it.
3933         (configure.ac): Remove gl_HMAC_MD5 call.
3934         (Makefile.am): Augment lib_SOURCES.
3935
3936 2011-05-23  Bruno Haible  <bruno@clisp.org>
3937
3938         hash: Move AC_LIBOBJ invocations to module description.
3939         * m4/hash.m4: Remove file.
3940         * modules/hash (Files): Remove it.
3941         (configure.ac): Remove gl_HASH call.
3942         (Makefile.am): Augment lib_SOURCES.
3943
3944 2011-05-23  Bruno Haible  <bruno@clisp.org>
3945
3946         hard-locale: Move AC_LIBOBJ invocations to module description.
3947         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
3948         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
3949
3950 2011-05-23  Bruno Haible  <bruno@clisp.org>
3951
3952         getugroups: Move AC_LIBOBJ invocations to module description.
3953         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
3954         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
3955
3956 2011-05-23  Bruno Haible  <bruno@clisp.org>
3957
3958         gettime: Move AC_LIBOBJ invocations to module description.
3959         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
3960         * modules/gettime (Makefile.am): Augment lib_SOURCES.
3961
3962 2011-05-23  Bruno Haible  <bruno@clisp.org>
3963
3964         getndelim2: Move AC_LIBOBJ invocations to module description.
3965         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
3966         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
3967
3968 2011-05-23  Bruno Haible  <bruno@clisp.org>
3969
3970         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
3971         * m4/gc-pbkdf2-sha1.m4: Remove file.
3972         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
3973         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
3974         (Makefile.am): Augment lib_SOURCES.
3975
3976 2011-05-23  Bruno Haible  <bruno@clisp.org>
3977
3978         fts: Move AC_LIBOBJ invocations to module description.
3979         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
3980         * modules/fts (configure.ac): ... to here.
3981
3982 2011-05-23  Bruno Haible  <bruno@clisp.org>
3983
3984         file-type: Move AC_LIBOBJ invocations to module description.
3985         * m4/file-type.m4: Remove file.
3986         * modules/file-type (Files): Remove it.
3987         (configure.ac): Remove gl_FILE_TYPE call.
3988         (Makefile.am): Augment lib_SOURCES.
3989
3990 2011-05-23  Bruno Haible  <bruno@clisp.org>
3991
3992         filenamecat*: Respect rules for use of AC_LIBOBJ.
3993         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
3994         Remove AC_LIBOBJ invocation.
3995         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
3996         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
3997
3998 2011-05-23  Bruno Haible  <bruno@clisp.org>
3999
4000         filemode: Move AC_LIBOBJ invocations to module description.
4001         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
4002         * modules/filemode (Makefile.am): Augment lib_SOURCES.
4003
4004 2011-05-23  Bruno Haible  <bruno@clisp.org>
4005
4006         openat-safer: Move AC_LIBOBJ invocations to module description.
4007         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
4008         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
4009
4010 2011-05-23  Bruno Haible  <bruno@clisp.org>
4011
4012         fcntl-safer: Move AC_LIBOBJ invocations to module description.
4013         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
4014         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
4015
4016 2011-05-23  Bruno Haible  <bruno@clisp.org>
4017
4018         exclude: Move AC_LIBOBJ invocations to module description.
4019         * m4/exclude.m4: Remove file.
4020         * modules/exclude (Files): Remove it.
4021         (configure.ac): Remove gl_EXCLUDE call.
4022         (Makefile.am): Augment lib_SOURCES.
4023
4024 2011-05-23  Bruno Haible  <bruno@clisp.org>
4025
4026         dirname*: Respect rules for use of AC_LIBOBJ.
4027         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
4028         invocations.
4029         * modules/dirname (Makefile.am): Augment lib_SOURCES.
4030         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
4031
4032 2011-05-23  Bruno Haible  <bruno@clisp.org>
4033
4034         dirent-safer: Move AC_LIBOBJ invocations to module description.
4035         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
4036         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
4037
4038 2011-05-23  Bruno Haible  <bruno@clisp.org>
4039
4040         crypto/des: Move AC_LIBOBJ invocations to module description.
4041         * m4/des.m4: Remove file.
4042         * modules/crypto/des (Files): Remove it.
4043         (configure.ac): Remove gl_DES call.
4044         (Makefile.am): Augment lib_SOURCES.
4045
4046 2011-05-23  Bruno Haible  <bruno@clisp.org>
4047
4048         cycle-check: Move AC_LIBOBJ invocations to module description.
4049         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
4050         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
4051
4052 2011-05-23  Bruno Haible  <bruno@clisp.org>
4053
4054         c-strtold: Move AC_LIBOBJ invocations to module description.
4055         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
4056         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
4057
4058 2011-05-23  Bruno Haible  <bruno@clisp.org>
4059
4060         c-strtod: Move AC_LIBOBJ invocations to module description.
4061         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
4062         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
4063
4064 2011-05-23  Bruno Haible  <bruno@clisp.org>
4065
4066         crc: Move AC_LIBOBJ invocations to module description.
4067         * m4/crc.m4: Remove file.
4068         * modules/crc (Files): Remove it.
4069         (configure.ac): Remove gl_CRC call.
4070         (Makefile.am): Augment lib_SOURCES.
4071
4072 2011-05-23  Bruno Haible  <bruno@clisp.org>
4073
4074         close-stream: Move AC_LIBOBJ invocations to module description.
4075         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
4076         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
4077
4078 2011-05-23  Bruno Haible  <bruno@clisp.org>
4079
4080         closeout: Move AC_LIBOBJ invocations to module description.
4081         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
4082         * modules/closeout (Makefile.am): Augment lib_SOURCES.
4083
4084 2011-05-23  Bruno Haible  <bruno@clisp.org>
4085
4086         closein: Move AC_LIBOBJ invocations to module description.
4087         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
4088         * modules/closein (Makefile.am): Augment lib_SOURCES.
4089
4090 2011-05-23  Bruno Haible  <bruno@clisp.org>
4091
4092         cloexec: Move AC_LIBOBJ invocations to module description.
4093         * m4/cloexec.m4: Remove file.
4094         * modules/cloexec (Files): Remove it.
4095         (configure.ac): Remove gl_CLOEXEC call.
4096         (Makefile.am): Augment lib_SOURCES.
4097
4098 2011-05-23  Bruno Haible  <bruno@clisp.org>
4099
4100         check-version: Move AC_LIBOBJ invocations to module description.
4101         * m4/check-version.m4: Remove file.
4102         * modules/check-version (Files): Remove it.
4103         (configure.ac): Remove gl_CHECK_VERSION call.
4104         (Makefile.am): Augment lib_SOURCES.
4105
4106 2011-05-23  Bruno Haible  <bruno@clisp.org>
4107
4108         chdir-safer: Move AC_LIBOBJ invocations to module description.
4109         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
4110         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
4111
4112 2011-05-23  Bruno Haible  <bruno@clisp.org>
4113
4114         canonicalize: Move AC_LIBOBJ invocations to module description.
4115         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
4116         AC_LIBOBJ invocation.
4117         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
4118
4119 2011-05-23  Bruno Haible  <bruno@clisp.org>
4120
4121         canon-host: Move AC_LIBOBJ invocations to module description.
4122         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
4123         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
4124         instead of gl_CANON_HOST.
4125         (Makefile.am): Augment lib_SOURCES.
4126
4127 2011-05-23  Bruno Haible  <bruno@clisp.org>
4128
4129         backupfile: Move AC_LIBOBJ invocations to module description.
4130         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
4131         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
4132
4133 2011-05-23  Bruno Haible  <bruno@clisp.org>
4134
4135         argmatch: Move AC_LIBOBJ invocations to module description.
4136         * m4/argmatch.m4: Remove file.
4137         * modules/argmatch (Files): Remove it.
4138         (configure.ac): Remove gl_ARGMATCH call.
4139         (Makefile.am): Augment lib_SOURCES.
4140
4141 2011-05-23  Bruno Haible  <bruno@clisp.org>
4142
4143         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
4144         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
4145         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
4146
4147 2011-05-23  Bruno Haible  <bruno@clisp.org>
4148
4149         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
4150         * m4/arcfour.m4: Remove file.
4151         * modules/crypto/arcfour (Files): Remove it.
4152         (configure.ac): Remove gl_ARCFOUR call.
4153         (Makefile.am): Augment lib_SOURCES.
4154
4155 2011-05-22  Bruno Haible  <bruno@clisp.org>
4156
4157         write: Move AC_LIBOBJ invocations to module description.
4158         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
4159         * modules/write (configure.ac): ... to here.
4160
4161 2011-05-22  Bruno Haible  <bruno@clisp.org>
4162
4163         wmemset: Move AC_LIBOBJ invocations to module description.
4164         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
4165         here...
4166         * modules/wmemset (configure.ac): ... to here.
4167
4168 2011-05-22  Bruno Haible  <bruno@clisp.org>
4169
4170         wmemmove: Move AC_LIBOBJ invocations to module description.
4171         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
4172         here...
4173         * modules/wmemmove (configure.ac): ... to here.
4174
4175 2011-05-22  Bruno Haible  <bruno@clisp.org>
4176
4177         wmemcpy: Move AC_LIBOBJ invocations to module description.
4178         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
4179         here...
4180         * modules/wmemcpy (configure.ac): ... to here.
4181
4182 2011-05-22  Bruno Haible  <bruno@clisp.org>
4183
4184         wmemcmp: Move AC_LIBOBJ invocations to module description.
4185         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
4186         here...
4187         * modules/wmemcmp (configure.ac): ... to here.
4188
4189 2011-05-22  Bruno Haible  <bruno@clisp.org>
4190
4191         wmemchr: Move AC_LIBOBJ invocations to module description.
4192         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
4193         here...
4194         * modules/wmemchr (configure.ac): ... to here.
4195
4196 2011-05-22  Bruno Haible  <bruno@clisp.org>
4197
4198         wcswidth: Move AC_LIBOBJ invocations to module description.
4199         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
4200         here...
4201         * modules/wcswidth (configure.ac): ... to here.
4202
4203 2011-05-22  Bruno Haible  <bruno@clisp.org>
4204
4205         wcwidth: Respect rules for use of AC_LIBOBJ.
4206         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
4207         invocation from here...
4208         * modules/wcwidth (configure.ac): ... to here.
4209         (Depends-on): Update conditions.
4210
4211 2011-05-22  Bruno Haible  <bruno@clisp.org>
4212
4213         wctype: Move AC_LIBOBJ invocations to module description.
4214         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
4215         invocation from here...
4216         * modules/wctype (configure.ac): ... to here.
4217         (Depends-on): Update conditions.
4218
4219 2011-05-22  Bruno Haible  <bruno@clisp.org>
4220
4221         wctrans: Move AC_LIBOBJ invocations to module description.
4222         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
4223         invocation from here...
4224         * modules/wctrans (configure.ac): ... to here.
4225
4226 2011-05-22  Bruno Haible  <bruno@clisp.org>
4227
4228         wctomb: Move AC_LIBOBJ invocations to module description.
4229         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
4230         invocations from here...
4231         * modules/wctomb (configure.ac): ... to here.
4232
4233 2011-05-22  Bruno Haible  <bruno@clisp.org>
4234
4235         wctob: Move AC_LIBOBJ invocations to module description.
4236         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
4237         gl_PREREQ_WCTOB invocations from here...
4238         * modules/wctob (configure.ac): ... to here.
4239         (Depends-on): Update conditions.
4240
4241 2011-05-22  Bruno Haible  <bruno@clisp.org>
4242
4243         wcsxfrm: Move AC_LIBOBJ invocations to module description.
4244         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
4245         here...
4246         * modules/wcsxfrm (configure.ac): ... to here.
4247
4248 2011-05-22  Bruno Haible  <bruno@clisp.org>
4249
4250         wcstok: Move AC_LIBOBJ invocations to module description.
4251         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
4252         * modules/wcstok (configure.ac): ... to here.
4253
4254 2011-05-22  Bruno Haible  <bruno@clisp.org>
4255
4256         wcsstr: Move AC_LIBOBJ invocations to module description.
4257         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
4258         * modules/wcsstr (configure.ac): ... to here.
4259
4260 2011-05-22  Bruno Haible  <bruno@clisp.org>
4261
4262         wcsspn: Move AC_LIBOBJ invocations to module description.
4263         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
4264         * modules/wcsspn (configure.ac): ... to here.
4265
4266 2011-05-22  Bruno Haible  <bruno@clisp.org>
4267
4268         wcsrtombs: Move AC_LIBOBJ invocations to module description.
4269         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
4270         gl_PREREQ_WCSRTOMBS invocations from here...
4271         * modules/wcsrtombs (configure.ac): ... to here.
4272
4273 2011-05-22  Bruno Haible  <bruno@clisp.org>
4274
4275         wcsrchr: Move AC_LIBOBJ invocations to module description.
4276         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
4277         here...
4278         * modules/wcsrchr (configure.ac): ... to here.
4279
4280 2011-05-22  Bruno Haible  <bruno@clisp.org>
4281
4282         wcspbrk: Move AC_LIBOBJ invocations to module description.
4283         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
4284         here...
4285         * modules/wcspbrk (configure.ac): ... to here.
4286
4287 2011-05-22  Bruno Haible  <bruno@clisp.org>
4288
4289         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
4290         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
4291         gl_PREREQ_WCSNRTOMBS invocations from here...
4292         * modules/wcsnrtombs (configure.ac): ... to here.
4293
4294 2011-05-22  Bruno Haible  <bruno@clisp.org>
4295
4296         wcsnlen: Move AC_LIBOBJ invocations to module description.
4297         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
4298         here...
4299         * modules/wcsnlen (configure.ac): ... to here.
4300
4301 2011-05-22  Bruno Haible  <bruno@clisp.org>
4302
4303         wcsncpy: Move AC_LIBOBJ invocations to module description.
4304         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
4305         here...
4306         * modules/wcsncpy (configure.ac): ... to here.
4307
4308 2011-05-22  Bruno Haible  <bruno@clisp.org>
4309
4310         wcsncmp: Move AC_LIBOBJ invocations to module description.
4311         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
4312         here...
4313         * modules/wcsncmp (configure.ac): ... to here.
4314
4315 2011-05-22  Bruno Haible  <bruno@clisp.org>
4316
4317         wcsncat: Move AC_LIBOBJ invocations to module description.
4318         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
4319         here...
4320         * modules/wcsncat (configure.ac): ... to here.
4321
4322 2011-05-22  Bruno Haible  <bruno@clisp.org>
4323
4324         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
4325         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
4326         from here...
4327         * modules/wcsncasecmp (configure.ac): ... to here.
4328
4329 2011-05-22  Bruno Haible  <bruno@clisp.org>
4330
4331         wcslen: Move AC_LIBOBJ invocations to module description.
4332         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
4333         * modules/wcslen (configure.ac): ... to here.
4334
4335 2011-05-22  Bruno Haible  <bruno@clisp.org>
4336
4337         wcsdup: Move AC_LIBOBJ invocations to module description.
4338         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
4339         * modules/wcsdup (configure.ac): ... to here.
4340
4341 2011-05-22  Bruno Haible  <bruno@clisp.org>
4342
4343         wcscspn: Move AC_LIBOBJ invocations to module description.
4344         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
4345         here...
4346         * modules/wcscspn (configure.ac): ... to here.
4347
4348 2011-05-22  Bruno Haible  <bruno@clisp.org>
4349
4350         wcscpy: Move AC_LIBOBJ invocations to module description.
4351         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
4352         * modules/wcscpy (configure.ac): ... to here.
4353
4354 2011-05-22  Bruno Haible  <bruno@clisp.org>
4355
4356         wcscoll: Move AC_LIBOBJ invocations to module description.
4357         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
4358         here...
4359         * modules/wcscoll (configure.ac): ... to here.
4360
4361 2011-05-22  Bruno Haible  <bruno@clisp.org>
4362
4363         wcscmp: Move AC_LIBOBJ invocations to module description.
4364         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
4365         * modules/wcscmp (configure.ac): ... to here.
4366
4367 2011-05-22  Bruno Haible  <bruno@clisp.org>
4368
4369         wcschr: Move AC_LIBOBJ invocations to module description.
4370         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
4371         * modules/wcschr (configure.ac): ... to here.
4372
4373 2011-05-22  Bruno Haible  <bruno@clisp.org>
4374
4375         wcscat: Move AC_LIBOBJ invocations to module description.
4376         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
4377         * modules/wcscat (configure.ac): ... to here.
4378
4379 2011-05-22  Bruno Haible  <bruno@clisp.org>
4380
4381         wcscasecmp: Move AC_LIBOBJ invocations to module description.
4382         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
4383         here...
4384         * modules/wcscasecmp (configure.ac): ... to here.
4385
4386 2011-05-22  Bruno Haible  <bruno@clisp.org>
4387
4388         wcrtomb: Move AC_LIBOBJ invocations to module description.
4389         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
4390         invocations from here...
4391         * modules/wcrtomb (configure.ac): ... to here.
4392
4393 2011-05-22  Bruno Haible  <bruno@clisp.org>
4394
4395         wcpncpy: Move AC_LIBOBJ invocations to module description.
4396         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
4397         here...
4398         * modules/wcpncpy (configure.ac): ... to here.
4399
4400 2011-05-22  Bruno Haible  <bruno@clisp.org>
4401
4402         wcpcpy: Move AC_LIBOBJ invocations to module description.
4403         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
4404         * modules/wcpcpy (configure.ac): ... to here.
4405
4406 2011-05-22  Bruno Haible  <bruno@clisp.org>
4407
4408         waitpid: Move AC_LIBOBJ invocations to module description.
4409         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
4410         invocation from here...
4411         * modules/waitpid (configure.ac): ... to here.
4412
4413 2011-05-22  Bruno Haible  <bruno@clisp.org>
4414
4415         utimensat: Move AC_LIBOBJ invocations to module description.
4416         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
4417         here...
4418         * modules/utimensat (configure.ac): ... to here.
4419
4420 2011-05-22  Bruno Haible  <bruno@clisp.org>
4421
4422         usleep: Move AC_LIBOBJ invocations to module description.
4423         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
4424         here...
4425         * modules/usleep (configure.ac): ... to here.
4426
4427 2011-05-22  Bruno Haible  <bruno@clisp.org>
4428
4429         unlockpt: Move AC_LIBOBJ invocations to module description.
4430         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
4431         gl_PREREQ_UNLOCKPT invocations from here...
4432         * modules/unlockpt (configure.ac): ... to here.
4433
4434 2011-05-22  Bruno Haible  <bruno@clisp.org>
4435
4436         unlink: Respect rules for use of AC_LIBOBJ.
4437         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
4438         * modules/unlink (configure.ac): ... to here.
4439
4440 2011-05-22  Bruno Haible  <bruno@clisp.org>
4441
4442         uname: Move AC_LIBOBJ invocations to module description.
4443         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
4444         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
4445         here...
4446         * modules/uname (configure.ac): ... to here.
4447
4448 2011-05-22  Bruno Haible  <bruno@clisp.org>
4449
4450         ttyname_r: Move AC_LIBOBJ invocations to module description.
4451         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
4452         gl_PREREQ_TTYNAME_R invocations from here...
4453         * modules/ttyname_r (configure.ac): ... to here.
4454
4455 2011-05-22  Bruno Haible  <bruno@clisp.org>
4456
4457         tsearch: Move AC_LIBOBJ invocations to module description.
4458         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
4459         invocations from here...
4460         * modules/tsearch (configure.ac): ... to here.
4461
4462 2011-05-22  Bruno Haible  <bruno@clisp.org>
4463
4464         towctrans: Move AC_LIBOBJ invocations to module description.
4465         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
4466         AC_LIBOBJ invocation from here...
4467         * modules/towctrans (configure.ac): ... to here.
4468
4469 2011-05-22  Bruno Haible  <bruno@clisp.org>
4470
4471         tmpfile: Move AC_LIBOBJ invocations to module description.
4472         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
4473         invocations from here...
4474         * modules/tmpfile (configure.ac): ... to here.
4475
4476 2011-05-22  Bruno Haible  <bruno@clisp.org>
4477
4478         times: Move AC_LIBOBJ invocations to module description.
4479         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
4480         * modules/times (configure.ac): ... to here.
4481
4482 2011-05-22  Bruno Haible  <bruno@clisp.org>
4483
4484         time_r: Move AC_LIBOBJ invocations to module description.
4485         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
4486         invocations from here...
4487         * modules/time_r (configure.ac): ... to here.
4488
4489 2011-05-22  Bruno Haible  <bruno@clisp.org>
4490
4491         timegm: Move AC_LIBOBJ invocations to module description.
4492         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
4493         invocations from here...
4494         * modules/timegm (configure.ac): ... to here.
4495
4496 2011-05-22  Bruno Haible  <bruno@clisp.org>
4497
4498         tcgetsid: Move AC_LIBOBJ invocations to module description.
4499         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
4500         and gl_PREREQ_TCGETSID invocations from here...
4501         * modules/tcgetsid (configure.ac): ... to here.
4502         (Depends-on): Update conditions.
4503
4504 2011-05-22  Bruno Haible  <bruno@clisp.org>
4505
4506         symlinkat: Move AC_LIBOBJ invocations to module description.
4507         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
4508         here...
4509         * modules/symlinkat (configure.ac): ... to here.
4510
4511 2011-05-22  Bruno Haible  <bruno@clisp.org>
4512
4513         symlink: Move AC_LIBOBJ invocations to module description.
4514         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
4515         here...
4516         * modules/symlink (configure.ac): ... to here.
4517
4518 2011-05-22  Bruno Haible  <bruno@clisp.org>
4519
4520         strverscmp: Move AC_LIBOBJ invocations to module description.
4521         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
4522         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
4523         from here...
4524         * modules/strverscmp (configure.ac): ... to here.
4525
4526 2011-05-22  Bruno Haible  <bruno@clisp.org>
4527
4528         strtok_r: Move AC_LIBOBJ invocations to module description.
4529         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
4530         and gl_PREREQ_STRTOK_R invocations from here...
4531         * modules/strtok_r (configure.ac): ... to here.
4532         (Depends-on): Update conditions.
4533
4534 2011-05-22  Bruno Haible  <bruno@clisp.org>
4535
4536         strtoumax: Move AC_LIBOBJ invocations to module description.
4537         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
4538         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
4539         from here...
4540         * modules/strtoumax (configure.ac): ... to here.
4541
4542 2011-05-22  Bruno Haible  <bruno@clisp.org>
4543
4544         strtoimax: Move AC_LIBOBJ invocations to module description.
4545         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
4546         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
4547         from here...
4548         * modules/strtoimax (configure.ac): ... to here.
4549
4550 2011-05-22  Bruno Haible  <bruno@clisp.org>
4551
4552         strtoull: Move AC_LIBOBJ invocations to module description.
4553         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
4554         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
4555         from here...
4556         * modules/strtoull (configure.ac): ... to here.
4557
4558 2011-05-22  Bruno Haible  <bruno@clisp.org>
4559
4560         strtoll: Move AC_LIBOBJ invocations to module description.
4561         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
4562         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
4563         here...
4564         * modules/strtoll (configure.ac): ... to here.
4565
4566 2011-05-22  Bruno Haible  <bruno@clisp.org>
4567
4568         strtoul: Move AC_LIBOBJ invocations to module description.
4569         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
4570         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4571         * modules/strtoul (configure.ac): ... to here.
4572
4573 2011-05-22  Bruno Haible  <bruno@clisp.org>
4574
4575         strtol: Move AC_LIBOBJ invocations to module description.
4576         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
4577         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4578         * modules/strtol (configure.ac): ... to here.
4579
4580 2011-05-22  Bruno Haible  <bruno@clisp.org>
4581
4582         strtod: Move AC_LIBOBJ invocations to module description.
4583         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
4584         invocations from here...
4585         * modules/strtod (configure.ac): ... to here.
4586
4587 2011-05-22  Bruno Haible  <bruno@clisp.org>
4588
4589         strstr*: Move AC_LIBOBJ invocations to module description.
4590         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
4591         invocations from here...
4592         * modules/strstr-simple (configure.ac): ... to here.
4593         * modules/strstr (configure.ac): ... and here.
4594
4595 2011-05-22  Bruno Haible  <bruno@clisp.org>
4596
4597         strsignal: Move AC_LIBOBJ invocations to module description.
4598         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
4599         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
4600         * modules/strsignal (configure.ac): ... to here.
4601         (Depends-on): Update conditions.
4602
4603 2011-05-22  Bruno Haible  <bruno@clisp.org>
4604
4605         strsep: Move AC_LIBOBJ invocations to module description.
4606         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
4607         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
4608         here...
4609         * modules/strsep (configure.ac): ... to here.
4610
4611 2011-05-22  Bruno Haible  <bruno@clisp.org>
4612
4613         strptime: Move AC_LIBOBJ invocations to module description.
4614         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
4615         gl_PREREQ_STRPTIME invocations from here...
4616         * modules/strptime (configure.ac): ... to here.
4617
4618 2011-05-22  Bruno Haible  <bruno@clisp.org>
4619
4620         strpbrk: Move AC_LIBOBJ invocations to module description.
4621         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
4622         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
4623         here...
4624         * modules/strpbrk (configure.ac): ... to here.
4625
4626 2011-05-22  Bruno Haible  <bruno@clisp.org>
4627
4628         strnlen: Move AC_LIBOBJ invocations to module description.
4629         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
4630         invocations from here...
4631         * modules/strnlen (configure.ac): ... to here.
4632
4633 2011-05-22  Bruno Haible  <bruno@clisp.org>
4634
4635         strndup: Move AC_LIBOBJ invocations to module description.
4636         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
4637         invocations from here...
4638         * modules/strndup (configure.ac): ... to here.
4639         (Depends-on): Update conditions.
4640
4641 2011-05-22  Bruno Haible  <bruno@clisp.org>
4642
4643         strncat: Move AC_LIBOBJ invocations to module description.
4644         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
4645         invocations from here...
4646         * modules/strncat (configure.ac): ... to here.
4647
4648 2011-05-22  Bruno Haible  <bruno@clisp.org>
4649
4650         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
4651         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
4652         invocations from here...
4653         * modules/strdup (configure.ac): ... to here.
4654         * modules/strdup-posix (configure.ac): ... and here.
4655
4656 2011-05-22  Bruno Haible  <bruno@clisp.org>
4657
4658         strcspn: Move AC_LIBOBJ invocations to module description.
4659         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
4660         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
4661         here...
4662         * modules/strcspn (configure.ac): ... to here.
4663
4664 2011-05-22  Bruno Haible  <bruno@clisp.org>
4665
4666         strchrnul: Move AC_LIBOBJ invocations to module description.
4667         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
4668         gl_PREREQ_STRCHRNUL invocations from here...
4669         * modules/strchrnul (configure.ac): ... to here.
4670
4671 2011-05-22  Bruno Haible  <bruno@clisp.org>
4672
4673         strcasestr*: Move AC_LIBOBJ invocations to module description.
4674         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
4675         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
4676         * modules/strcasestr-simple (configure.ac): ... to here.
4677         * modules/strcasestr (configure.ac): ... and here.
4678
4679 2011-05-22  Bruno Haible  <bruno@clisp.org>
4680
4681         strcase: Move AC_LIBOBJ invocations to module description.
4682         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
4683         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
4684         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
4685         gl_PREREQ_STRNCASECMP invocations from here...
4686         * modules/strcase (configure.ac): ... to here.
4687
4688 2011-05-22  Bruno Haible  <bruno@clisp.org>
4689
4690         stpncpy: Move AC_LIBOBJ invocations to module description.
4691         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
4692         here...
4693         * modules/stpncpy (configure.ac): ... to here.
4694
4695 2011-05-22  Bruno Haible  <bruno@clisp.org>
4696
4697         stpcpy: Move AC_LIBOBJ invocations to module description.
4698         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
4699         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
4700         here...
4701         * modules/stpcpy (configure.ac): ... to here.
4702
4703 2011-05-21  Bruno Haible  <bruno@clisp.org>
4704
4705         stat: Move AC_LIBOBJ invocations to module description.
4706         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
4707         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
4708         here...
4709         * modules/stat (configure.ac): ... to here.
4710
4711 2011-05-21  Bruno Haible  <bruno@clisp.org>
4712
4713         sleep: Move AC_LIBOBJ invocations to module description.
4714         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
4715         * modules/sleep (configure.ac): ... to here.
4716
4717 2011-05-21  Bruno Haible  <bruno@clisp.org>
4718
4719         signbit: Move AC_LIBOBJ invocations to module description.
4720         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
4721         * modules/signbit (configure.ac): ... to here.
4722
4723 2011-05-21  Bruno Haible  <bruno@clisp.org>
4724
4725         sigprocmask: Move AC_LIBOBJ invocations to module description.
4726         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
4727         gl_PREREQ_SIGPROMASK invocations from here...
4728         * modules/sigprocmask (configure.ac): ... to here.
4729
4730 2011-05-21  Bruno Haible  <bruno@clisp.org>
4731
4732         sigaction: Move AC_LIBOBJ invocations to module description.
4733         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
4734         gl_PREREQ_SIGACTION invocations from here...
4735         * modules/sigaction (configure.ac): ... to here.
4736
4737 2011-05-21  Bruno Haible  <bruno@clisp.org>
4738
4739         sig2str: Move AC_LIBOBJ invocations to module description.
4740         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
4741         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
4742         here...
4743         * modules/sig2str (configure.ac): ... to here.
4744
4745 2011-05-21  Bruno Haible  <bruno@clisp.org>
4746
4747         setlocale: Move AC_LIBOBJ invocations to module description.
4748         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
4749         gl_PREREQ_SETLOCALE invocations from here...
4750         * modules/setlocale (configure.ac): ... to here.
4751
4752 2011-05-21  Bruno Haible  <bruno@clisp.org>
4753
4754         unsetenv: Move AC_LIBOBJ invocations to module description.
4755         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
4756         and gl_PREREQ_UNSETENV invocations from here...
4757         * modules/unsetenv (configure.ac): ... to here.
4758         (Depends-on): Update.
4759
4760 2011-05-21  Bruno Haible  <bruno@clisp.org>
4761
4762         setenv: Move AC_LIBOBJ invocations to module description.
4763         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
4764         here...
4765         * modules/setenv (configure.ac): ... to here.
4766
4767 2011-05-21  Bruno Haible  <bruno@clisp.org>
4768
4769         selinux-h: Move AC_LIBOBJ invocations to module description.
4770         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
4771         AC_LIBOBJ invocation from here...
4772         * modules/selinux-h (configure.ac): ... to here.
4773
4774 2011-05-21  Bruno Haible  <bruno@clisp.org>
4775
4776         select: Respect rules for use of AC_LIBOBJ.
4777         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
4778         here...
4779         * modules/select (configure.ac): ... to here.
4780
4781 2011-05-21  Bruno Haible  <bruno@clisp.org>
4782
4783         scandir: Move AC_LIBOBJ invocations to module description.
4784         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
4785         invocations from here...
4786         * modules/scandir (configure.ac): ... to here.
4787
4788 2011-05-21  Bruno Haible  <bruno@clisp.org>
4789
4790         rpmatch: Move AC_LIBOBJ invocations to module description.
4791         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
4792         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
4793         here...
4794         * modules/rpmatch (configure.ac): ... to here.
4795
4796 2011-05-21  Bruno Haible  <bruno@clisp.org>
4797
4798         rmdir: Respect rules for use of AC_LIBOBJ.
4799         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
4800         * modules/rmdir (configure.ac): ... to here.
4801
4802 2011-05-21  Bruno Haible  <bruno@clisp.org>
4803
4804         renameat: Move AC_LIBOBJ invocations to module description.
4805         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
4806         here...
4807         * modules/renameat (configure.ac): ... to here.
4808
4809 2011-05-21  Bruno Haible  <bruno@clisp.org>
4810
4811         rename: Respect rules for use of AC_LIBOBJ.
4812         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
4813         here...
4814         * modules/rename (configure.ac): ... to here.
4815
4816 2011-05-21  Bruno Haible  <bruno@clisp.org>
4817
4818         remove: Move AC_LIBOBJ invocations to module description.
4819         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
4820         here...
4821         * modules/remove (configure.ac): ... to here.
4822
4823 2011-05-21  Bruno Haible  <bruno@clisp.org>
4824
4825         relocatable-lib: Move AC_LIBOBJ invocations to module description.
4826         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
4827         macro.
4828         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
4829         * modules/relocatable-lib (configure.ac): ... to here.
4830         * modules/relocatable-prog-wrapper (configure.ac): Invoke
4831         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
4832
4833 2011-05-21  Bruno Haible  <bruno@clisp.org>
4834
4835         relocatable-prog: Move AC_LIBOBJ invocations to module description.
4836         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
4837         here...
4838         * modules/relocatable-prog (configure.ac): ... to here.
4839
4840 2011-05-21  Bruno Haible  <bruno@clisp.org>
4841
4842         regex: Move AC_LIBOBJ invocations to module description.
4843         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
4844         invocations from here...
4845         * modules/regex (configure.ac): ... to here.
4846
4847 2011-05-21  Bruno Haible  <bruno@clisp.org>
4848
4849         realloc-*: Move AC_LIBOBJ invocations to module description.
4850         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
4851         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
4852         AC_LIBOBJ invocations from here...
4853         * modules/realloc-gnu (configure.ac): ... to here.
4854         * modules/realloc-posix (configure.ac): ... and here.
4855
4856 2011-05-21  Bruno Haible  <bruno@clisp.org>
4857
4858         readutmp: Move AC_LIBOBJ invocations to module description.
4859         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
4860         * modules/readutmp (configure.ac): ... to here.
4861
4862 2011-05-21  Bruno Haible  <bruno@clisp.org>
4863
4864         readlinkat: Move AC_LIBOBJ invocations to module description.
4865         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
4866         here...
4867         * modules/readlinkat (configure.ac): ... to here.
4868
4869 2011-05-21  Bruno Haible  <bruno@clisp.org>
4870
4871         readlink: Move AC_LIBOBJ invocations to module description.
4872         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
4873         gl_PREREQ_READLINK invocations from here...
4874         * modules/readlink (configure.ac): ... to here.
4875
4876 2011-05-21  Bruno Haible  <bruno@clisp.org>
4877
4878         readline: Move AC_LIBOBJ invocations to module description.
4879         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
4880         gl_PREREQ_READLINE invocations from here...
4881         * modules/readline (configure.ac): ... to here.
4882
4883 2011-05-21  Bruno Haible  <bruno@clisp.org>
4884
4885         read: Move AC_LIBOBJ invocations to module description.
4886         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
4887         * modules/read (configure.ac): ... to here.
4888
4889 2011-05-21  Bruno Haible  <bruno@clisp.org>
4890
4891         rawmemchr: Move AC_LIBOBJ invocations to module description.
4892         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
4893         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
4894         from here...
4895         * modules/rawmemchr (configure.ac): ... to here.
4896
4897 2011-05-21  Bruno Haible  <bruno@clisp.org>
4898
4899         random_r: Move AC_LIBOBJ invocations to module description.
4900         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
4901         gl_PREREQ_RANDOM_R invocations from here...
4902         * modules/random_r (configure.ac): ... to here.
4903
4904 2011-05-21  Bruno Haible  <bruno@clisp.org>
4905
4906         pwrite: Move AC_LIBOBJ invocations to module description.
4907         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
4908         * modules/pwrite (configure.ac): ... to here.
4909
4910 2011-05-21  Bruno Haible  <bruno@clisp.org>
4911
4912         putenv: Move AC_LIBOBJ invocations to module description.
4913         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
4914         * modules/putenv (configure.ac): ... to here.
4915
4916 2011-05-21  Bruno Haible  <bruno@clisp.org>
4917
4918         login_tty: Move AC_LIBOBJ invocations to module description.
4919         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
4920         * modules/login_tty (configure.ac): ... to here.
4921
4922 2011-05-21  Bruno Haible  <bruno@clisp.org>
4923
4924         openpty: Move AC_LIBOBJ invocations to module description.
4925         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
4926         * modules/openpty (configure.ac): ... to here.
4927
4928 2011-05-21  Bruno Haible  <bruno@clisp.org>
4929
4930         forkpty: Move AC_LIBOBJ invocations to module description.
4931         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
4932         * modules/forkpty (configure.ac): ... to here.
4933
4934 2011-05-21  Bruno Haible  <bruno@clisp.org>
4935
4936         ptsname: Move AC_LIBOBJ invocations to module description.
4937         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
4938         invocations from here...
4939         * modules/ptsname (configure.ac): ... to here.
4940
4941 2011-05-21  Bruno Haible  <bruno@clisp.org>
4942
4943         pread: Move AC_LIBOBJ invocations to module description.
4944         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
4945         * modules/pread (configure.ac): ... to here.
4946
4947 2011-05-21  Bruno Haible  <bruno@clisp.org>
4948
4949         posix_spawn*: Move AC_LIBOBJ invocations to module description.
4950         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
4951         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
4952         * modules/posix_spawn (configure.ac): ... to here.
4953         * modules/posix_spawnp (configure.ac): ... and here.
4954
4955 2011-05-21  Bruno Haible  <bruno@clisp.org>
4956
4957         popen: Move AC_LIBOBJ invocations to module description.
4958         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
4959         invocations from here...
4960         * modules/popen (configure.ac): ... to here.
4961
4962 2011-05-21  Bruno Haible  <bruno@clisp.org>
4963
4964         poll: Move AC_LIBOBJ invocations to module description.
4965         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
4966         invocations from here...
4967         * modules/poll (configure.ac): ... to here.
4968
4969 2011-05-21  Bruno Haible  <bruno@clisp.org>
4970
4971         pipe-posix: Move AC_LIBOBJ invocations to module description.
4972         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
4973         * modules/pipe-posix (configure.ac): ... to here.
4974
4975 2011-05-21  Bruno Haible  <bruno@clisp.org>
4976
4977         openat: Respect rules for use of AC_LIBOBJ.
4978         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
4979         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4980         * modules/openat (configure.ac): ... to here.
4981
4982 2011-05-21  Bruno Haible  <bruno@clisp.org>
4983
4984         obstack-printf*: Move AC_LIBOBJ invocations to module description.
4985         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
4986         invocation from here...
4987         * modules/obstack-printf (configure.ac): ... to here.
4988         * modules/obstack-printf-posix (configure.ac): ... and here.
4989
4990 2011-05-21  Bruno Haible  <bruno@clisp.org>
4991
4992         nl_langinfo: Move AC_LIBOBJ invocations to module description.
4993         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
4994         from here...
4995         * modules/nl_langinfo (configure.ac): ... to here.
4996
4997 2011-05-21  Bruno Haible  <bruno@clisp.org>
4998
4999         nanosleep: Move AC_LIBOBJ invocations to module description.
5000         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
5001         gl_PREREQ_NANOSLEEP invocations from here...
5002         * modules/nanosleep (configure.ac): ... to here.
5003
5004 2011-05-21  Bruno Haible  <bruno@clisp.org>
5005
5006         mountlist: Move AC_LIBOBJ invocations to module description.
5007         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
5008         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
5009         * modules/mountlist (configure.ac): ... to here.
5010
5011 2011-05-21  Bruno Haible  <bruno@clisp.org>
5012
5013         mktime: Respect rules for use of AC_LIBOBJ.
5014         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
5015         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
5016         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
5017         (gl_FUNC_MKTIME_INTERNAL): ... and here...
5018         * modules/mktime (configure.ac): ... to here.
5019         * modules/mktime-internal (configure.ac): ... and here.
5020         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
5021
5022 2011-05-21  Bruno Haible  <bruno@clisp.org>
5023
5024         mkstemps: Move AC_LIBOBJ invocations to module description.
5025         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
5026         here...
5027         * modules/mkstemps (configure.ac): ... to here.
5028
5029 2011-05-21  Bruno Haible  <bruno@clisp.org>
5030
5031         mkstemp: Move AC_LIBOBJ invocations to module description.
5032         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
5033         gl_PREREQ_MKSTEMP invocations from here...
5034         * modules/mkstemp (configure.ac): ... to here.
5035
5036 2011-05-21  Bruno Haible  <bruno@clisp.org>
5037
5038         mkostemps: Move AC_LIBOBJ invocations to module description.
5039         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
5040         here...
5041         * modules/mkostemps (configure.ac): ... to here.
5042
5043 2011-05-21  Bruno Haible  <bruno@clisp.org>
5044
5045         mkostemp: Move AC_LIBOBJ invocations to module description.
5046         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
5047         gl_PREREQ_MKOSTEMP invocations from here...
5048         * modules/mkostemp (configure.ac): ... to here.
5049
5050 2011-05-21  Bruno Haible  <bruno@clisp.org>
5051
5052         mknod: Move AC_LIBOBJ invocations to module description.
5053         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
5054         * modules/mknod (configure.ac): ... to here.
5055
5056 2011-05-21  Bruno Haible  <bruno@clisp.org>
5057
5058         mkfifoat: Move AC_LIBOBJ invocations to module description.
5059         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
5060         here...
5061         * modules/mkfifoat (configure.ac): ... to here.
5062
5063 2011-05-21  Bruno Haible  <bruno@clisp.org>
5064
5065         mkfifo: Respect rules for use of AC_LIBOBJ.
5066         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
5067         here...
5068         * modules/mkfifo (configure.ac): ... to here.
5069
5070 2011-05-21  Bruno Haible  <bruno@clisp.org>
5071
5072         mkdtemp: Move AC_LIBOBJ invocations to module description.
5073         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
5074         invocations from here...
5075         * modules/mkdtemp (configure.ac): ... to here.
5076
5077 2011-05-21  Bruno Haible  <bruno@clisp.org>
5078
5079         mkdir: Move AC_LIBOBJ invocations to module description.
5080         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
5081         * modules/mkdir (configure.ac): ... to here.
5082
5083 2011-05-21  Bruno Haible  <bruno@clisp.org>
5084
5085         memset: Move AC_LIBOBJ invocations to module description.
5086         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
5087         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
5088         here...
5089         * modules/memset (configure.ac): ... to here.
5090
5091 2011-05-21  Bruno Haible  <bruno@clisp.org>
5092
5093         memrchr: Move AC_LIBOBJ invocations to module description.
5094         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
5095         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
5096         here...
5097         * modules/memrchr (configure.ac): ... to here.
5098
5099 2011-05-21  Bruno Haible  <bruno@clisp.org>
5100
5101         mempcpy: Move AC_LIBOBJ invocations to module description.
5102         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
5103         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
5104         here...
5105         * modules/mempcpy (configure.ac): ... to here.
5106
5107 2011-05-21  Bruno Haible  <bruno@clisp.org>
5108
5109         memmove: Move AC_LIBOBJ invocations to module description.
5110         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
5111         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
5112         here...
5113         * modules/memmove (configure.ac): ... to here.
5114
5115 2011-05-21  Bruno Haible  <bruno@clisp.org>
5116
5117         memmem*: Move AC_LIBOBJ invocations to module description.
5118         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
5119         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
5120         here...
5121         (gl_FUNC_MEMMEM): ... and here...
5122         * modules/memmem-simple (configure.ac): ... to here.
5123         * modules/memmem (configure.ac): ... and here.
5124
5125 2011-05-21  Bruno Haible  <bruno@clisp.org>
5126
5127         memcpy: Move AC_LIBOBJ invocations to module description.
5128         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
5129         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
5130         here...
5131         * modules/memcpy (configure.ac): ... to here.
5132
5133 2011-05-21  Bruno Haible  <bruno@clisp.org>
5134
5135         memcmp: Simplify autoconf macro.
5136         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
5137         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
5138         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
5139
5140 2011-05-21  Bruno Haible  <bruno@clisp.org>
5141
5142         memcmp: Move AC_LIBOBJ invocations to module description.
5143         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
5144         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
5145         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
5146         * modules/memcmp (configure.ac): ... to here.
5147         (Depends-on): Update conditions.
5148
5149 2011-05-21  Bruno Haible  <bruno@clisp.org>
5150
5151         memchr: Respect rules for use of AC_LIBOBJ.
5152         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
5153         invocations from here...
5154         * modules/memchr (configure.ac): ... to here.
5155
5156 2011-05-21  Bruno Haible  <bruno@clisp.org>
5157
5158         mbtowc: Move AC_LIBOBJ invocations to module description.
5159         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
5160         invocations from here...
5161         * modules/mbtowc (configure.ac): ... to here.
5162
5163 2011-05-21  Bruno Haible  <bruno@clisp.org>
5164
5165         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
5166         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
5167         gl_PREREQ_MBSRTOWCS invocations from here...
5168         * modules/mbsrtowcs (configure.ac): ... to here.
5169
5170 2011-05-21  Bruno Haible  <bruno@clisp.org>
5171
5172         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
5173         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
5174         gl_PREREQ_MBSNRTOWCS invocations from here...
5175         * modules/mbsnrtowcs (configure.ac): ... to here.
5176
5177 2011-05-21  Bruno Haible  <bruno@clisp.org>
5178
5179         mbsinit: Move AC_LIBOBJ invocations to module description.
5180         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
5181         invocations from here...
5182         * modules/mbsinit (configure.ac): ... to here.
5183
5184 2011-05-21  Bruno Haible  <bruno@clisp.org>
5185
5186         mbrlen: Move AC_LIBOBJ invocations to module description.
5187         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
5188         invocations from here...
5189         * modules/mbrlen (configure.ac): ... to here.
5190
5191 2011-05-21  Bruno Haible  <bruno@clisp.org>
5192
5193         mbrtowc: Respect rules for use of AC_LIBOBJ.
5194         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
5195         invocations from here...
5196         * modules/mbrtowc (configure.ac): ... to here.
5197
5198 2011-05-21  Bruno Haible  <bruno@clisp.org>
5199
5200         malloc-*: Move AC_LIBOBJ invocations to module description.
5201         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
5202         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
5203         AC_LIBOBJ invocations from here...
5204         * modules/malloc-gnu (configure.ac): ... to here.
5205         * modules/malloc-posix (configure.ac): ... and here.
5206
5207 2011-05-21  Bruno Haible  <bruno@clisp.org>
5208
5209         lstat, openat: Respect rules for use of AC_LIBOBJ.
5210         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
5211         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
5212         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
5213         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
5214         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
5215         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
5216         here.
5217         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5218
5219 2011-05-21  Bruno Haible  <bruno@clisp.org>
5220
5221         lseek: Move AC_LIBOBJ invocations to module description.
5222         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
5223         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5224         * modules/lseek (configure.ac): ... to here.
5225
5226 2011-05-21  Bruno Haible  <bruno@clisp.org>
5227
5228         linkat: Move AC_LIBOBJ invocations to module description.
5229         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
5230         here...
5231         * modules/linkat (configure.ac): ... to here.
5232
5233 2011-05-21  Bruno Haible  <bruno@clisp.org>
5234
5235         link: Respect rules for use of AC_LIBOBJ.
5236         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
5237         * modules/link (configure.ac): ... to here.
5238
5239 2011-05-21  Bruno Haible  <bruno@clisp.org>
5240
5241         lchown: Move AC_LIBOBJ invocations to module description.
5242         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5243         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
5244         * modules/lchown (configure.ac): ... to here.
5245
5246 2011-05-21  Bruno Haible  <bruno@clisp.org>
5247
5248         iswctype: Move AC_LIBOBJ invocations to module description.
5249         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
5250         here...
5251         * modules/iswctype (configure.ac): ... to here.
5252
5253 2011-05-21  Bruno Haible  <bruno@clisp.org>
5254
5255         iswblank: Move AC_LIBOBJ invocations to module description.
5256         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
5257         here...
5258         * modules/iswblank (configure.ac): ... to here.
5259
5260 2011-05-21  Bruno Haible  <bruno@clisp.org>
5261
5262         atanl: Move AC_LIBOBJ invocations to module description.
5263         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
5264         * modules/atanl (configure.ac): ... to here.
5265
5266 2011-05-21  Bruno Haible  <bruno@clisp.org>
5267
5268         acosl: Move AC_LIBOBJ invocations to module description.
5269         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
5270         * modules/acosl (configure.ac): ... to here.
5271
5272 2011-05-21  Bruno Haible  <bruno@clisp.org>
5273
5274         asinl: Respect rules for use of AC_LIBOBJ.
5275         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
5276         * modules/asinl (configure.ac): ... to here.
5277
5278 2011-05-21  Bruno Haible  <bruno@clisp.org>
5279
5280         tanl: Move AC_LIBOBJ invocations to module description.
5281         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
5282         * modules/tanl (configure.ac): ... to here.
5283
5284 2011-05-21  Bruno Haible  <bruno@clisp.org>
5285
5286         cosl: Move AC_LIBOBJ invocations to module description.
5287         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
5288         * modules/cosl (configure.ac): ... to here.
5289
5290 2011-05-21  Bruno Haible  <bruno@clisp.org>
5291
5292         sinl: Move AC_LIBOBJ invocations to module description.
5293         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
5294         * modules/sinl (configure.ac): ... to here.
5295
5296 2011-05-21  Bruno Haible  <bruno@clisp.org>
5297
5298         logl: Move AC_LIBOBJ invocations to module description.
5299         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
5300         * modules/logl (configure.ac): ... to here.
5301
5302 2011-05-21  Bruno Haible  <bruno@clisp.org>
5303
5304         expl: Move AC_LIBOBJ invocations to module description.
5305         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
5306         * modules/expl (configure.ac): ... to here.
5307
5308 2011-05-21  Bruno Haible  <bruno@clisp.org>
5309
5310         roundl: Move AC_LIBOBJ invocations to module description.
5311         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
5312         * modules/roundl (configure.ac): ... to here.
5313
5314 2011-05-21  Bruno Haible  <bruno@clisp.org>
5315
5316         round: Move AC_LIBOBJ invocations to module description.
5317         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
5318         * modules/round (configure.ac): ... to here.
5319
5320 2011-05-21  Bruno Haible  <bruno@clisp.org>
5321
5322         roundf: Move AC_LIBOBJ invocations to module description.
5323         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
5324         * modules/roundf (configure.ac): ... to here.
5325
5326 2011-05-21  Bruno Haible  <bruno@clisp.org>
5327
5328         truncl: Move AC_LIBOBJ invocations to module description.
5329         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
5330         * modules/truncl (configure.ac): ... to here.
5331
5332 2011-05-21  Bruno Haible  <bruno@clisp.org>
5333
5334         trunc: Move AC_LIBOBJ invocations to module description.
5335         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
5336         * modules/trunc (configure.ac): ... to here.
5337
5338 2011-05-21  Bruno Haible  <bruno@clisp.org>
5339
5340         truncf: Move AC_LIBOBJ invocations to module description.
5341         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
5342         * modules/truncf (configure.ac): ... to here.
5343
5344 2011-05-21  Bruno Haible  <bruno@clisp.org>
5345
5346         ceill: Move AC_LIBOBJ invocations to module description.
5347         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
5348         * modules/ceill (configure.ac): ... to here.
5349
5350 2011-05-21  Bruno Haible  <bruno@clisp.org>
5351
5352         ceil: Move AC_LIBOBJ invocations to module description.
5353         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
5354         * modules/ceil (configure.ac): ... to here.
5355
5356 2011-05-21  Bruno Haible  <bruno@clisp.org>
5357
5358         ceilf: Move AC_LIBOBJ invocations to module description.
5359         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
5360         * modules/ceilf (configure.ac): ... to here.
5361
5362 2011-05-21  Bruno Haible  <bruno@clisp.org>
5363
5364         floorl: Respect rules for use of AC_LIBOBJ.
5365         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
5366         * modules/floorl (configure.ac): ... to here.
5367
5368 2011-05-21  Bruno Haible  <bruno@clisp.org>
5369
5370         floor: Respect rules for use of AC_LIBOBJ.
5371         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
5372         * modules/floor (configure.ac): ... to here.
5373
5374 2011-05-21  Bruno Haible  <bruno@clisp.org>
5375
5376         floorf: Move AC_LIBOBJ invocations to module description.
5377         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
5378         * modules/floorf (configure.ac): ... to here.
5379
5380 2011-05-20  Bruno Haible  <bruno@clisp.org>
5381
5382         sqrtl: Respect rules for use of AC_LIBOBJ.
5383         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
5384         * modules/sqrtl (configure.ac): ... to here.
5385
5386 2011-05-20  Bruno Haible  <bruno@clisp.org>
5387
5388         ldexpl: Respect rules for use of AC_LIBOBJ.
5389         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
5390         * modules/ldexpl (configure.ac): ... to here.
5391
5392 2011-05-20  Bruno Haible  <bruno@clisp.org>
5393
5394         frexpl*: Respect rules for use of AC_LIBOBJ.
5395         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
5396         invocation from here...
5397         * modules/frexpl (configure.ac): ... to here.
5398         * modules/frexpl-nolibm (configure.ac): ... and here.
5399
5400 2011-05-20  Bruno Haible  <bruno@clisp.org>
5401
5402         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
5403         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
5404         invocation from here...
5405         * modules/frexp (configure.ac): ... to here.
5406         * modules/frexp-nolibm (configure.ac): ... and here.
5407
5408 2011-05-20  Bruno Haible  <bruno@clisp.org>
5409
5410         isnan: Respect rules for use of AC_LIBOBJ.
5411         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
5412         invocations here.
5413         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
5414         REPLACE_ISNAN.
5415         * modules/isnand (configure.ac): Likewise.
5416         * modules/isnanl (configure.ac): Likewise.
5417
5418 2011-05-20  Bruno Haible  <bruno@clisp.org>
5419
5420         isnanl*: Respect rules for use of AC_LIBOBJ.
5421         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
5422         invocation from here...
5423         * modules/isnanl (configure.ac): ... to here.
5424         * modules/isnanl-nolibm (configure.ac): ... and here.
5425
5426 2011-05-20  Bruno Haible  <bruno@clisp.org>
5427
5428         isnand*: Move AC_LIBOBJ invocations to module description.
5429         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
5430         invocation from here...
5431         * modules/isnand (configure.ac): ... to here.
5432         * modules/isnand-nolibm (configure.ac): ... and here.
5433
5434 2011-05-20  Bruno Haible  <bruno@clisp.org>
5435
5436         isnanf*: Move AC_LIBOBJ invocations to module description.
5437         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
5438         invocation from here...
5439         * modules/isnanf (configure.ac): ... to here.
5440         * modules/isnanf-nolibm (configure.ac): ... and here.
5441
5442 2011-05-20  Bruno Haible  <bruno@clisp.org>
5443
5444         isnan*: Separate the AC_LIBOBJ invocations.
5445         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
5446         AC_LIBOBJ invocation.
5447         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
5448         here.
5449         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
5450         AC_LIBOBJ invocation.
5451         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
5452         here.
5453         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
5454         AC_LIBOBJ invocation.
5455         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
5456         here.
5457         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
5458
5459 2011-05-08  Bruno Haible  <bruno@clisp.org>
5460
5461         isinf: Move AC_LIBOBJ invocations to module description.
5462         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
5463         * modules/isinf (configure.ac): ... to here.
5464
5465 2011-05-08  Bruno Haible  <bruno@clisp.org>
5466
5467         isfinite: Move AC_LIBOBJ invocations to module description.
5468         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
5469         * modules/isfinite (configure.ac): ... to here.
5470
5471 2011-05-08  Bruno Haible  <bruno@clisp.org>
5472
5473         isblank: Move AC_LIBOBJ invocations to module description.
5474         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
5475         here...
5476         * modules/isblank (configure.ac): ... to here.
5477
5478 2011-05-08  Bruno Haible  <bruno@clisp.org>
5479
5480         isapipe: Move AC_LIBOBJ invocations to module description.
5481         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
5482         gl_PREREQ_ISAPIPE invocations from here...
5483         * modules/isapipe (configure.ac): ... to here.
5484         (Depends-on): Update condition.
5485
5486 2011-05-08  Bruno Haible  <bruno@clisp.org>
5487
5488         ioctl: Move AC_LIBOBJ invocations to module description.
5489         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
5490         invocations from here...
5491         * modules/ioctl (configure.ac): ... to here.
5492         (Depends-on): Update condition.
5493
5494 2011-05-08  Bruno Haible  <bruno@clisp.org>
5495
5496         imaxdiv: Move AC_LIBOBJ invocations to module description.
5497         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
5498         invocations from here...
5499         * modules/imaxdiv (configure.ac): ... to here.
5500
5501 2011-05-08  Bruno Haible  <bruno@clisp.org>
5502
5503         imaxabs: Move AC_LIBOBJ invocations to module description.
5504         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
5505         invocations from here...
5506         * modules/imaxabs (configure.ac): ... to here.
5507
5508 2011-05-08  Bruno Haible  <bruno@clisp.org>
5509
5510         getaddrinfo: Move AC_LIBOBJ invocations to module description.
5511         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
5512         AC_LIBOBJ invocations from here...
5513         * modules/getaddrinfo (configure.ac): ... to here.
5514         (Depends-on): Add conditions.
5515
5516 2011-05-08  Bruno Haible  <bruno@clisp.org>
5517
5518         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5519         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
5520         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5521         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
5522         (gl_PREREQ_INET_PTON): ... from here.
5523         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
5524         gl_PREREQ_INET_PTON here.
5525         (Depends-on): Update condition.
5526
5527 2011-05-08  Bruno Haible  <bruno@clisp.org>
5528
5529         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5530         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
5531         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5532         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
5533         (gl_PREREQ_INET_NTOP): ... from here.
5534         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
5535         gl_PREREQ_INET_NTOP here.
5536         (Depends-on): Update condition.
5537
5538 2011-05-08  Bruno Haible  <bruno@clisp.org>
5539
5540         iconv_open: Move AC_LIBOBJ invocations to module description.
5541         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
5542         AC_LIBOBJ invocations from here...
5543         * modules/iconv_open (configure.ac): ... to here.
5544
5545 2011-05-08  Bruno Haible  <bruno@clisp.org>
5546
5547         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
5548         If module 'iconv_open' is among the main modules and module
5549         'iconv_open-utf' is among the tests dependencies, then
5550         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
5551         return the special iconv_t values. Therefore iconv() and iconv_close()
5552         must support these special iconv_t values, already in lib, not only in
5553         tests.
5554         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
5555         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
5556         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
5557         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
5558         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
5559         (Depends-on): Add the dependencies of iconv_open-utf.
5560         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
5561         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
5562         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
5563
5564 2011-05-08  Bruno Haible  <bruno@clisp.org>
5565
5566         group-member: Move AC_LIBOBJ invocations to module description.
5567         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
5568         gl_PREREQ_GROUP_MEMBER invocations from here...
5569         * modules/group-member (configure.ac): ... to here.
5570
5571 2011-05-08  Bruno Haible  <bruno@clisp.org>
5572
5573         grantpt: Move AC_LIBOBJ invocations to module description.
5574         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
5575         invocations from here...
5576         * modules/grantpt (configure.ac): ... to here.
5577
5578 2011-05-08  Bruno Haible  <bruno@clisp.org>
5579
5580         glob: Move AC_LIBOBJ invocations to module description.
5581         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
5582         from here...
5583         * modules/glob (configure.ac): ... to here.
5584
5585 2011-05-08  Bruno Haible  <bruno@clisp.org>
5586
5587         getusershell: Move AC_LIBOBJ invocations to module description.
5588         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
5589         Move AC_LIBOBJ invocation from here...
5590         * modules/getusershell (configure.ac): ... to here.
5591         (Depends-on): Update condition.
5592
5593 2011-05-08  Bruno Haible  <bruno@clisp.org>
5594
5595         gettimeofday: Move AC_LIBOBJ invocations to module description.
5596         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
5597         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
5598         gl_PREREQ_GETTIMEOFDAY invocations from here...
5599         * modules/gettimeofday (configure.ac): ... to here.
5600
5601 2011-05-08  Bruno Haible  <bruno@clisp.org>
5602
5603         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
5604         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
5605         just gl_FUNC_TZSET.
5606         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
5607         (gl_FUNC_TZSET_CLOBBER): Remove actions.
5608         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
5609         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
5610
5611 2011-05-08  Bruno Haible  <bruno@clisp.org>
5612
5613         getsubopt: Move AC_LIBOBJ invocations to module description.
5614         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
5615         gl_PREREQ_GETSUBOPT invocations from here...
5616         * modules/getsubopt (configure.ac): ... to here.
5617
5618 2011-05-08  Bruno Haible  <bruno@clisp.org>
5619
5620         getpass-gnu: Move AC_LIBOBJ invocations to module description.
5621         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
5622         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
5623         * modules/getpass-gnu (configure.ac): ... to here.
5624
5625 2011-05-08  Bruno Haible  <bruno@clisp.org>
5626
5627         getpass: Move AC_LIBOBJ invocations to module description.
5628         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
5629         gl_PREREQ_GETPASS invocations from here...
5630         * modules/getpass (configure.ac): ... to here.
5631
5632 2011-05-08  Bruno Haible  <bruno@clisp.org>
5633
5634         getpagesize: Move AC_LIBOBJ invocations to module description.
5635         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
5636         from here...
5637         * modules/getpagesize (configure.ac): ... to here.
5638
5639 2011-05-08  Bruno Haible  <bruno@clisp.org>
5640
5641         getopt: Move AC_LIBOBJ invocations to module description.
5642         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
5643         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
5644         invocations from here...
5645         * modules/getopt-gnu (configure.ac): ... to here.
5646         * modules/getopt-posix (configure.ac): ... and here.
5647         (Depends-on): Update condition.
5648
5649 2011-05-08  Bruno Haible  <bruno@clisp.org>
5650
5651         getopt, argp: Respect rules for use of AC_LIBOBJ.
5652         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
5653         (gl_REPLACE_GETOPT_ALWAYS): New macro.
5654         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
5655         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
5656
5657 2011-05-08  Bruno Haible  <bruno@clisp.org>
5658
5659         getlogin_r: Move AC_LIBOBJ invocations to module description.
5660         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
5661         gl_PREREQ_GETLOGIN_R invocations from here...
5662         * modules/getlogin_r (configure.ac): ... to here.
5663
5664 2011-05-08  Bruno Haible  <bruno@clisp.org>
5665
5666         getlogin: Move AC_LIBOBJ invocations to module description.
5667         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
5668         here...
5669         * modules/getlogin (configure.ac): ... to here.
5670
5671 2011-05-08  Bruno Haible  <bruno@clisp.org>
5672
5673         getloadavg: Move AC_LIBOBJ invocations to module description.
5674         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
5675         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
5676         * modules/getloadavg (configure.ac): ... to here.
5677
5678 2011-05-08  Bruno Haible  <bruno@clisp.org>
5679
5680         gethrxtime: Move AC_LIBOBJ invocations to module description.
5681         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
5682         LIB_GETHRXTIME from here...
5683         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
5684         invocations from here...
5685         * modules/gethrxtime (configure.ac): ... to here.
5686
5687 2011-05-08  Bruno Haible  <bruno@clisp.org>
5688
5689         gethostname: Move AC_LIBOBJ invocations to module description.
5690         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
5691         gl_PREREQ_GETHOSTNAME invocations from here...
5692         * modules/gethostname (configure.ac): ... to here.
5693
5694 2011-05-08  Bruno Haible  <bruno@clisp.org>
5695
5696         getgroups: Move AC_LIBOBJ invocations to module description.
5697         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
5698         here...
5699         * modules/getgroups (configure.ac): ... to here.
5700
5701 2011-05-08  Bruno Haible  <bruno@clisp.org>
5702
5703         getdtablesize: Move AC_LIBOBJ invocations to module description.
5704         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
5705         invocation from here...
5706         * modules/getdtablesize (configure.ac): ... to here.
5707
5708 2011-05-08  Bruno Haible  <bruno@clisp.org>
5709
5710         getdomainname: Move AC_LIBOBJ invocations to module description.
5711         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
5712         gl_PREREQ_GETDOMAINNAME invocations from here...
5713         * modules/getdomainname (configure.ac): ... to here.
5714
5715 2011-05-08  Bruno Haible  <bruno@clisp.org>
5716
5717         getline: Move AC_LIBOBJ invocations to module description.
5718         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
5719         invocations from here...
5720         * modules/getline (configure.ac): ... to here.
5721
5722 2011-05-08  Bruno Haible  <bruno@clisp.org>
5723
5724         getline: Simplify.
5725         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
5726         It's already handled through the module dependency.
5727
5728 2011-05-08  Bruno Haible  <bruno@clisp.org>
5729
5730         getdelim: Move AC_LIBOBJ invocations to module description.
5731         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
5732         and gl_PREREQ_GETDELIM invocations from here...
5733         * modules/getdelim (configure.ac): ... to here.
5734         (Depends-on): Fix condition.
5735
5736 2011-05-08  Bruno Haible  <bruno@clisp.org>
5737
5738         getcwd: Move AC_LIBOBJ invocations to module description.
5739         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
5740         invocations from here...
5741         * modules/getcwd (configure.ac): ... to here.
5742
5743 2011-05-08  Bruno Haible  <bruno@clisp.org>
5744
5745         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
5746         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
5747         here...
5748         * modules/getcwd-lgpl (configure.ac): ... to here.
5749
5750 2011-05-07  Bruno Haible  <bruno@clisp.org>
5751
5752         crypto/gc: Move AC_LIBOBJ invocations to module description.
5753         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
5754         * modules/crypto/gc (configure.ac): ... to here.
5755
5756 2011-05-07  Bruno Haible  <bruno@clisp.org>
5757
5758         fwriting: Move AC_LIBOBJ invocations to module description.
5759         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
5760         here...
5761         * modules/fwriting (configure.ac): ... to here.
5762
5763 2011-05-07  Bruno Haible  <bruno@clisp.org>
5764
5765         fwritable: Move AC_LIBOBJ invocations to module description.
5766         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
5767         here...
5768         * modules/fwritable (configure.ac): ... to here.
5769
5770 2011-05-07  Bruno Haible  <bruno@clisp.org>
5771
5772         futimens: Move AC_LIBOBJ invocations to module description.
5773         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
5774         here...
5775         * modules/futimens (configure.ac): ... to here.
5776
5777 2011-05-07  Bruno Haible  <bruno@clisp.org>
5778
5779         ftruncate: Move AC_LIBOBJ invocations to module description.
5780         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
5781         gl_PREREQ_FTRUNCATE invocations from here...
5782         * modules/ftruncate (configure.ac): ... to here.
5783
5784 2011-05-07  Bruno Haible  <bruno@clisp.org>
5785
5786         fsync: Move AC_LIBOBJ invocations to module description.
5787         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
5788         invocations from here...
5789         * modules/fsync (configure.ac): ... to here.
5790
5791 2011-05-07  Bruno Haible  <bruno@clisp.org>
5792
5793         fsusage: Move AC_LIBOBJ invocations to module description.
5794         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
5795         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
5796         * modules/fsusage (configure.ac): ... to here.
5797
5798 2011-05-07  Bruno Haible  <bruno@clisp.org>
5799
5800         freopen: Move AC_LIBOBJ invocations to module description.
5801         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
5802         invocations from here...
5803         * modules/freopen (configure.ac): ... to here.
5804
5805 2011-05-07  Bruno Haible  <bruno@clisp.org>
5806
5807         free: Move AC_LIBOBJ invocations to module description.
5808         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
5809         invocations from here...
5810         * modules/free (configure.ac): ... to here.
5811
5812 2011-05-07  Bruno Haible  <bruno@clisp.org>
5813
5814         freadable: Move AC_LIBOBJ invocations to module description.
5815         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
5816         here...
5817         * modules/freadable (configure.ac): ... to here.
5818
5819 2011-05-07  Bruno Haible  <bruno@clisp.org>
5820
5821         fpurge: Move AC_LIBOBJ invocations to module description.
5822         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
5823         invocations from here...
5824         * modules/fpurge (configure.ac): ... to here.
5825
5826 2011-05-07  Bruno Haible  <bruno@clisp.org>
5827
5828         fpending: Move AC_LIBOBJ invocations to module description.
5829         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
5830         gl_FUNC_FPENDING.
5831         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
5832         invocations from here...
5833         * modules/fpending (configure.ac): ... to here.
5834
5835 2011-05-07  Bruno Haible  <bruno@clisp.org>
5836
5837         fopen: Move AC_LIBOBJ invocations to module description.
5838         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
5839         invocations from here...
5840         * modules/fopen (configure.ac): ... to here.
5841
5842 2011-05-07  Bruno Haible  <bruno@clisp.org>
5843
5844         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
5845         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
5846         gl_FUNC_FNMATCH_POSIX.
5847         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
5848         invocations from here...
5849         * modules/fnmatch (configure.ac): ... to here.
5850         * modules/fnmatch-gnu (configure.ac): ... and here.
5851
5852 2011-05-07  Bruno Haible  <bruno@clisp.org>
5853
5854         flock: Move AC_LIBOBJ invocations to module description.
5855         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
5856         invocations from here...
5857         * modules/flock (configure.ac): ... to here.
5858
5859 2011-05-07  Bruno Haible  <bruno@clisp.org>
5860
5861         fileblocks: Move AC_LIBOBJ invocations to module description.
5862         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
5863         gl_PREREQ_FILEBLOCKS invocations from here...
5864         * modules/fileblocks (configure.ac): ... to here.
5865
5866 2011-05-06  Bruno Haible  <bruno@clisp.org>
5867
5868         fflush: Move AC_LIBOBJ invocations to module description.
5869         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
5870         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
5871         invocations from here...
5872         * modules/fflush (configure.ac): ... to here.
5873
5874 2011-05-06  Bruno Haible  <bruno@clisp.org>
5875
5876         fdopendir: Move AC_LIBOBJ invocations to module description.
5877         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
5878         here...
5879         * modules/fdopendir (configure.ac): ... to here.
5880         (Depends-on): Improve conditions.
5881
5882 2011-05-06  Bruno Haible  <bruno@clisp.org>
5883
5884         _Exit: Move AC_LIBOBJ invocations to module description.
5885         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
5886         invocations from here...
5887         * modules/_Exit (configure.ac): ... to here.
5888
5889 2011-05-21  Bruno Haible  <bruno@clisp.org>
5890
5891         euidaccess: Respect rules for use of AC_LIBOBJ.
5892         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5893         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
5894         from here...
5895         * modules/euidaccess (configure.ac): ... to here.
5896
5897 2011-05-06  Bruno Haible  <bruno@clisp.org>
5898
5899         error: Move AC_LIBOBJ invocations to module description.
5900         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
5901         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
5902         invocations from here...
5903         * modules/error (configure.ac): ... to here.
5904
5905 2011-05-06  Bruno Haible  <bruno@clisp.org>
5906
5907         duplocale: Move AC_LIBOBJ invocations to module description.
5908         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
5909         gl_PREREQ_DUPLOCALE invocations from here...
5910         * modules/duplocale (configure.ac): ... to here.
5911
5912 2011-05-05  Bruno Haible  <bruno@clisp.org>
5913
5914         dirfd: Move AC_LIBOBJ invocations to module description.
5915         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
5916         gl_FUNC_DIRFD.
5917         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
5918         here...
5919         * modules/dirfd (configure.ac): ... to here.
5920         (Depends-on): Fix condition.
5921
5922 2011-05-05  Bruno Haible  <bruno@clisp.org>
5923
5924         chown: Respect rules for use of AC_LIBOBJ.
5925         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
5926         * modules/chown (configure.ac): ... to here.
5927
5928 2011-05-05  Bruno Haible  <bruno@clisp.org>
5929
5930         chdir-long: Move AC_LIBOBJ invocations to module description.
5931         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
5932         gl_PREREQ_CHDIR_LONG invocations from here...
5933         * modules/chdir-long (configure.ac): ... to here.
5934
5935 2011-05-05  Bruno Haible  <bruno@clisp.org>
5936
5937         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
5938         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
5939         from here...
5940         * modules/canonicalize-lgpl (configure.ac): ... to here.
5941
5942 2011-05-05  Bruno Haible  <bruno@clisp.org>
5943
5944         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
5945         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
5946         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
5947         REPLACE_CALLOC.
5948         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
5949         * modules/calloc-gnu (configure.ac): Likewise.
5950
5951 2011-05-05  Bruno Haible  <bruno@clisp.org>
5952
5953         btowc: Move AC_LIBOBJ invocations to module description.
5954         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
5955         invocations from here...
5956         * modules/btowc (configure.ac): ... to here.
5957
5958 2011-05-21  Bruno Haible  <bruno@clisp.org>
5959
5960         atexit: Move AC_LIBOBJ invocations to module description.
5961         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
5962         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
5963         here...
5964         * modules/atexit (configure.ac): ... to here.
5965
5966 2011-05-05  Bruno Haible  <bruno@clisp.org>
5967
5968         atoll: Move AC_LIBOBJ invocations to module description.
5969         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
5970         invocations from here...
5971         * modules/atoll (configure.ac): ... to here.
5972
5973 2011-05-05  Bruno Haible  <bruno@clisp.org>
5974
5975         argz: Move AC_LIBOBJ invocations to module description.
5976         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
5977         * modules/argz (configure.ac): ... to here.
5978
5979 2011-05-05  Bruno Haible  <bruno@clisp.org>
5980
5981         alphasort: Move AC_LIBOBJ invocations to module description.
5982         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
5983         gl_PREREQ_ALPHASORT invocations from here...
5984         * modules/alphasort (configure.ac): ... to here.
5985
5986 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
5987
5988         verify: new macro verify_expr; verify_true deprecated
5989         * NEWS: Mention this.
5990         * doc/verify.texi (Compile-time Assertions): Document this.
5991         * lib/verify.h (verify_true): Deprecate.
5992         (verify_expr): New macro.
5993         * tests/test-verify.c (function): Test verify_expr.
5994
5995 2011-06-14  Jim Meyering  <meyering@redhat.com>
5996
5997         init.sh: give more portable redirection-related advice in a comment
5998         * tests/init.sh (stderr_fileno_): Update the advice in comments.
5999         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
6000         for lots of discussion.  Stefano Lattarini suggested the solution
6001         of putting "9>&2" after the command.  Reported by Bruno Haible.
6002
6003 2011-06-13  Bruno Haible  <bruno@clisp.org>
6004
6005         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
6006         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
6007         'none'.
6008
6009 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
6010
6011         ftoastr: use strtof only if HAVE_STRTOF
6012         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
6013         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
6014         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
6015         * modules/ftoastr (configure.ac): Check for strtof.
6016
6017 2011-06-13  Bruno Haible  <bruno@clisp.org>
6018
6019         gnulib-tool: Addendum to 2011-06-08 commit.
6020         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
6021         and --witness-c-macro have been given, augment AM_CPPFLAGS.
6022
6023 2011-06-13  Bruno Haible  <bruno@clisp.org>
6024
6025         fseeko: Provide a non-inline replacement of fseek().
6026         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
6027         * modules/fseeko (Depends-on): Add fseek.
6028         * modules/fseek (License): Change to LGPLv2+.
6029
6030 2011-06-13  Bruno Haible  <bruno@clisp.org>
6031
6032         ftello: Provide a non-inline replacement of ftell().
6033         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
6034         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
6035         not have ftello() (such as on mingw).
6036         * modules/ftello (Depends-on): Add ftell.
6037         * modules/ftell (License): Change to LGPLv2+.
6038
6039 2011-05-07  Bruno Haible  <bruno@clisp.org>
6040
6041         ftell: Move AC_LIBOBJ invocations to module description.
6042         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
6043         * modules/ftell (configure.ac): ... to here.
6044
6045 2011-05-07  Bruno Haible  <bruno@clisp.org>
6046
6047         ftello: Respect rules for use of AC_LIBOBJ.
6048         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
6049         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
6050         here...
6051         * modules/ftello (configure.ac): ... to here.
6052
6053 2011-05-07  Bruno Haible  <bruno@clisp.org>
6054
6055         fseeko: Simplify.
6056         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
6057         (gl_FUNC_FSEEKO): Inline it here.
6058
6059 2011-05-07  Bruno Haible  <bruno@clisp.org>
6060
6061         fseek: Move AC_LIBOBJ invocations to module description.
6062         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
6063         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
6064         * modules/fseek (configure.ac): ... to here.
6065
6066 2011-05-07  Bruno Haible  <bruno@clisp.org>
6067
6068         fseek: Respect rules for use of AC_LIBOBJ.
6069         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
6070         here...
6071         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
6072
6073 2011-05-07  Bruno Haible  <bruno@clisp.org>
6074
6075         fseeko: Respect rules for use of AC_LIBOBJ.
6076         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
6077         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
6078         here...
6079         * modules/fseeko (configure.ac): ... to here.
6080
6081 2011-06-13  Bruno Haible  <bruno@clisp.org>
6082
6083         gnulib-tool: Allow comments in the 'Depends-on' section.
6084         * doc/gnulib.texi (Module description): Mention comment syntax in the
6085         Depends-on section.
6086         * gnulib-tool (func_get_dependencies): Filter out comment lines.
6087
6088 2011-06-13  Bruno Haible  <bruno@clisp.org>
6089
6090         file-set.h: guard __attibute__ use, now that it's not always defined
6091         * lib/file-set.h (record_file): Use __attribute__ only with compiler
6092         versions that support it.  This fixes a coreutils build failure with
6093         the vendor cc on HP-UX 11.31.
6094
6095 2011-06-12  Bruno Haible  <bruno@clisp.org>
6096
6097         acl: Add support for HP-UX >= 11.11 JFS ACLs.
6098         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
6099         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
6100         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
6101         (acl, aclsort): New declarations.
6102         (aclv_nontrivial): New declaration.
6103         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
6104         (file_has_acl): Read also the second kind of HP-UX ACLs.
6105         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
6106         kind of HP-UX ACLs if the first kind fails.
6107         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
6108         second kind of HP-UX ACLs.
6109         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
6110         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
6111         agree.
6112         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
6113         hpuxjfs.
6114         Handle hpuxjfs.
6115         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
6116         hpuxjfs.
6117         Handle hpuxjfs.
6118         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
6119         (func_test_same_acls): Use both lsacl and getacl.
6120         Handle hpuxjfs.
6121         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
6122         (func_test_same_acls): Use both lsacl and getacl.
6123         Handle hpuxjfs.
6124
6125 2011-06-12  Bruno Haible  <bruno@clisp.org>
6126
6127         acl: Complete the 2010-08-10 fix.
6128         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
6129         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
6130         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
6131         explicitly.
6132         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
6133         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
6134
6135 2011-06-12  Bruno Haible  <bruno@clisp.org>
6136
6137         spawn-pipe tests: Comments.
6138         * tests/test-spawn-pipe-child.c (main): Update comment.
6139         Reported by James Youngman <jay@gnu.org>.
6140
6141 2011-06-11  James Youngman  <jay@gnu.org>
6142
6143         New module 'stat-size'.
6144         * modules/stat-size: New module.  Provides macros for accessing
6145         file size information in instances of struct stat.  Depends on the
6146         fileblocks module because it calls st_blocks.
6147         * lib/stat-size.h: New file, adapted from coreutils' system.h.
6148         * doc/gnulib.texi: Include stat-size.texi.
6149         * doc/stat-size.texi: Documentation for this module.
6150         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
6151         * m4/fileblocks.m4: Mention that stat-size depends on the call to
6152         AC_STRUCT_ST_BLOCKS.
6153
6154 2011-06-09  Bruno Haible  <bruno@clisp.org>
6155
6156         thread: Support pthreads-win32.
6157         * lib/glthread/thread.h (gl_thread_self): Define differently on
6158         pthreads-win32.
6159         (gl_null_thread): New declaration.
6160         (gl_thread_self_pointer): New macro.
6161         * lib/glthread/thread.c (gl_null_thread): New constant.
6162         * tests/test-lock.c: Use gl_thread_self_pointer instead of
6163         gl_thread_self.
6164         * tests/test-tls.c: Likewise.
6165         Suggested by Paul Eggert. Reported by Eric Blake.
6166
6167 2011-06-09  Bruno Haible  <bruno@clisp.org>
6168
6169         thread: Fix confusion between NULL and 0.
6170         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
6171         Reported by Paul Eggert.
6172
6173 2011-06-09  Bruno Haible  <bruno@clisp.org>
6174
6175         spawn-pipe tests: Avoid test failure on HP-UX 11.
6176         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
6177         is closed.
6178
6179 2011-06-09  Bruno Haible  <bruno@clisp.org>
6180
6181         acl tests: Fix compilation error on HP-UX 11.
6182         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
6183
6184 2011-06-09  Bruno Haible  <bruno@clisp.org>
6185
6186         rmdir: Avoid test failure on HP-UX 10.20.
6187         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
6188         EEXIST.
6189
6190 2011-06-08  Eric Blake  <eblake@redhat.com>
6191
6192         perror: fix test on mingw
6193         * modules/perror-tests (Depends-on): Add dup2.
6194
6195         strerror_r-posix: fix on MacOS
6196         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
6197         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
6198         logic bug.
6199         * lib/strerror_r.c (strerror_r): Fix the bug.
6200         * lib/strerror.c (strerror): Likewise.
6201         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
6202         problem.
6203         * doc/posix-functions/strerror.texi (strerror): Likewise.
6204         * doc/posix-functions/perror.texi (perror): Likewise.
6205         * tests/test-strerror.c (main): Enhance test.
6206         * tests/test-strerror_r.c (main): Likewise.
6207
6208 2011-06-08  Bruno Haible  <bruno@clisp.org>
6209
6210         gnulib-tool: Better isolation between different gnulib-tool invocations.
6211         * gnulib-tool: New option --witness-c-macro.
6212         (witness_c_macro): New variable.
6213         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
6214         AM_CPPFLAGS define it as a C macro.
6215         (func_emit_tests_Makefile_am): Likewise.
6216         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
6217         read it from there.
6218         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
6219         m4_define, not AC_DEFUN.
6220         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
6221         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
6222         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
6223         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
6224         s|...|...|, to substitute the values of the GNULIB_* module indicator
6225         variables.
6226         * modules/dirent (Makefile.am): Likewise.
6227         * modules/fcntl-h (Makefile.am): Likewise.
6228         * modules/iconv-h (Makefile.am): Likewise.
6229         * modules/langinfo (Makefile.am): Likewise.
6230         * modules/locale (Makefile.am): Likewise.
6231         * modules/math (Makefile.am): Likewise.
6232         * modules/netdb (Makefile.am): Likewise.
6233         * modules/poll-h (Makefile.am): Likewise.
6234         * modules/pty (Makefile.am): Likewise.
6235         * modules/search (Makefile.am): Likewise.
6236         * modules/signal (Makefile.am): Likewise.
6237         * modules/spawn (Makefile.am): Likewise.
6238         * modules/stdio (Makefile.am): Likewise.
6239         * modules/stdlib (Makefile.am): Likewise.
6240         * modules/string (Makefile.am): Likewise.
6241         * modules/sys_ioctl (Makefile.am): Likewise.
6242         * modules/sys_select (Makefile.am): Likewise.
6243         * modules/sys_socket (Makefile.am): Likewise.
6244         * modules/sys_stat (Makefile.am): Likewise.
6245         * modules/sys_times (Makefile.am): Likewise.
6246         * modules/sys_utsname (Makefile.am): Likewise.
6247         * modules/sys_wait (Makefile.am): Likewise.
6248         * modules/termios (Makefile.am): Likewise.
6249         * modules/time (Makefile.am): Likewise.
6250         * modules/unistd (Makefile.am): Likewise.
6251         * modules/wchar (Makefile.am): Likewise.
6252
6253 2011-06-08  Eric Blake  <eblake@redhat.com>
6254
6255         strerror: simplify replacement
6256         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
6257         * modules/strerror (configure.ac): No prereqs needed here...
6258         * modules/strerror-override (configure.ac): ...but this needs it.
6259         (Files): Add file for needed prereq macro.
6260
6261 2011-06-08  Bruno Haible  <bruno@clisp.org>
6262
6263         strerror_r-posix: Tweaks.
6264         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
6265         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
6266         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
6267         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
6268         (gl_FUNC_STRERROR_R): ... to here.
6269         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
6270
6271 2011-06-07  Eric Blake  <eblake@redhat.com>
6272
6273         perror: document fixed bugs
6274         * doc/posix-functions/perror.texi (perror): Document recent
6275         patches.
6276
6277 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
6278
6279         stat-time: get_stat_birthtime failure is better-defined
6280         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
6281         return a timestamp whose tv_sec and tv_nsec values are both -1.
6282         Previously, the spec said only that the tv_nsec value was negative.
6283         This upward-compatible change simplifies GNU tar a bit.
6284
6285 2011-06-07  Eric Blake  <eblake@redhat.com>
6286
6287         strerror_r-posix: work around cygwin 1.7.9
6288         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
6289         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
6290         bug without replacing strerror_r.
6291         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
6292         strerror_r is buggy, but without requiring strerror_r compilation.
6293         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
6294
6295         test-perror: relax test to ignore cygwin bug
6296         * tests/test-perror2.c (main): Relax test on requiring detection
6297         of stream errors, and use unbuffered stream.
6298         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
6299         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
6300         * doc/posix-functions/fputc.texi (fputc): Likewise.
6301         * doc/posix-functions/fputs.texi (fputs): Likewise.
6302         * doc/posix-functions/fputws.texi (fputws): Likewise.
6303         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
6304         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
6305         * doc/posix-functions/getopt.texi (getopt): Likewise.
6306         * doc/posix-functions/perror.texi (perror): Likewise.
6307         * doc/posix-functions/printf.texi (printf): Likewise.
6308         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
6309         * doc/posix-functions/psignal.texi (psignal): Likewise.
6310         * doc/posix-functions/putc.texi (putc): Likewise.
6311         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
6312         Likewise.
6313         * doc/posix-functions/putchar.texi (putchar): Likewise.
6314         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
6315         Likewise.
6316         * doc/posix-functions/puts.texi (puts): Likewise.
6317         * doc/posix-functions/putwc.texi (putwc): Likewise.
6318         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
6319         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
6320         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6321         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
6322         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6323         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
6324         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
6325         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
6326
6327 2011-05-22  Bruno Haible  <bruno@clisp.org>
6328
6329         strerror: Move AC_LIBOBJ invocations to module description.
6330         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
6331         gl_PREREQ_STRERROR invocations from here...
6332         * modules/strerror (configure.ac): ... to here.
6333
6334 2011-05-21  Bruno Haible  <bruno@clisp.org>
6335
6336         perror: Use common idiom.
6337         * modules/perror (configure.ac): Reorder statements.
6338
6339 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6340
6341         tests: fix usage message in 'mktempd_'
6342         * tests/init.sh (mktempd_): In the usage message, use literal
6343         'mktempd_', not '$ME' (which is even undefined), as the name of
6344         the subroutine.
6345
6346 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6347
6348         tests init: new function 'fatal_', for hard errors
6349         Before this patch, the only way offered by tests/init.sh to
6350         properly signal a hard error was the `framework_failure_'
6351         function.  But the error message issued by that function,
6352         as its name would suggest, refers to a set-up failure in the
6353         testsuite, while hard errors can obviously also be due to
6354         other reasons.  The best way to fix this inconsistency is to
6355         introduce a new function with a more general error message.
6356         * tests/init.sh (fatal_): New function.
6357
6358 2011-06-06  Eric Blake  <eblake@redhat.com>
6359
6360         canonicalize-lgpl: use common idiom
6361         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
6362         over newer POSIX -Rf.
6363         Reported by Bruno Haible.
6364
6365         canonicalize-lgpl: work around AIX realpath bug
6366         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
6367         * doc/posix-functions/realpath.texi (realpath): Document it.
6368         Reported by Bruno Haible.
6369
6370         strerror: work around FreeBSD bug
6371         * lib/strerror.c (strerror): Special case 0.
6372         Reported by Bruno Haible.
6373
6374         strerror-override: avoid bloating errno module
6375         * modules/errno (Files, configure.ac): Move replacement strings...
6376         * modules/strerror-override: ...to new module.
6377         * modules/strerror (Depends-on): Add strerror-override.
6378         * modules/strerror_r-posix (Depends-on): Likewise.
6379         * MODULES.html.sh: Document new module.
6380         Reported by Bruno Haible.
6381
6382 2011-06-06  Bruno Haible  <bruno@clisp.org>
6383
6384         spawn-pipe tests: Rename program.
6385         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
6386         * tests/test-spawn-pipe-child.c: Update comment.
6387         * tests/test-spawn-pipe.sh: Update.
6388         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
6389
6390         spawn-pipe tests: Link the child program only against libc.
6391         * tests/test-spawn-pipe-child.c: New file, extracted from
6392         tests/test-spawn-pipe.c.
6393         (main): Expect only one argument.
6394         (is_open): New function, copied from tests/test-pipe.c.
6395         * tests/test-spawn-pipe.c: Don't include <errno.h>.
6396         (child_main): Remove function.
6397         (test_pipe): Pass only one argument to the child program.
6398         (main): Remove child process code. Expect the child program's name as
6399         first argument.
6400         * tests/test-spawn-pipe.sh: Pass the child program's name as first
6401         argument.
6402         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
6403         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
6404         test-spawn-pipe-child against no libraries.
6405
6406 2011-06-06  Bruno Haible  <bruno@clisp.org>
6407
6408         careadlinkat: Avoid mismatch between ssize_t and int.
6409         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
6410         * lib/careadlinkat.c (careadlinkatcwd): Define always.
6411
6412 2011-06-06  Jim Meyering  <meyering@redhat.com>
6413
6414         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
6415         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
6416         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
6417
6418 2011-06-05  Bruno Haible  <bruno@clisp.org>
6419
6420         ansi-c++-opt: Interoperability with libtool.
6421         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
6422         set the variable to "no", not to ":".
6423         * NEWS: Mention the change.
6424
6425 2011-06-05  Bruno Haible  <bruno@clisp.org>
6426
6427         acl: Fix test failure on AIX 7.
6428         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
6429         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
6430
6431 2011-06-05  Bruno Haible  <bruno@clisp.org>
6432
6433         pipe-filter-ii: Fix test failure on AIX and IRIX.
6434         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
6435         with EAGAIN, retry with a smaller buffer size.
6436
6437 2011-06-05  Bruno Haible  <bruno@clisp.org>
6438
6439         localename: Fix link dependencies.
6440         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
6441         * modules/localename-tests (Makefile.am): Link test-localename with
6442         $(LIBTHREAD).
6443
6444 2011-06-05  Bruno Haible  <bruno@clisp.org>
6445
6446         error: Avoid gcc warning.
6447         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
6448
6449 2011-06-05  Bruno Haible  <bruno@clisp.org>
6450
6451         unsetenv: Avoid gcc warning.
6452         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
6453
6454 2011-06-05  Bruno Haible  <bruno@clisp.org>
6455
6456         setenv: Avoid gcc warning.
6457         * lib/setenv.c (setenv): Provide declaration if system lacks it.
6458
6459 2011-06-05  Bruno Haible  <bruno@clisp.org>
6460
6461         sys_select: Ensure memset is declared also on AIX 7.
6462         * lib/sys_select.in.h: Include <string.h> also on AIX.
6463         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
6464         self-contained also on AIX 7.1.
6465
6466 2011-06-04  Jim Meyering  <meyering@redhat.com>
6467
6468         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
6469         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
6470         function name, "error".
6471         (_gl_translatable_diag_func_re): New configurable variable.
6472
6473 2011-06-04  Bruno Haible  <bruno@clisp.org>
6474
6475         getopt: Avoid gcc warning.
6476         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
6477
6478 2011-06-04  Bruno Haible  <bruno@clisp.org>
6479
6480         strerror_r: Fix comments.
6481         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
6482         commit.
6483
6484 2011-06-04  Bruno Haible  <bruno@clisp.org>
6485
6486         perror: Fix compilation error.
6487         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
6488         Undefine fprintf, not sprintf.
6489         * modules/perror (Depends-on): Remove intprops, verify.
6490
6491 2011-06-04  Bruno Haible  <bruno@clisp.org>
6492
6493         setlocale: Enable replacement on Cygwin 1.5.
6494         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
6495         Cygwin 1.5.x.
6496         * doc/posix-functions/setlocale.texi: Mention that the problem with the
6497         LC_CTYPE category also exists on Cygwin 1.5.x.
6498
6499 2011-06-04  Bruno Haible  <bruno@clisp.org>
6500
6501         strerror-override: Don't disable symbol renamings.
6502         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
6503         * lib/strerror-override.c: Include config.h.
6504         (strerror_override): Don't undefine.
6505
6506 2011-06-03  Bruno Haible  <bruno@clisp.org>
6507
6508         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
6509         * lib/localename.h: Update copyright header.
6510         * lib/localename.c: Likewise.
6511         * lib/relocatable.h: Likewise.
6512         * lib/relocatable.c: Likewise.
6513
6514 2011-06-02  Bruno Haible  <bruno@clisp.org>
6515
6516         doc: Fix a module name.
6517         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
6518
6519 2011-06-02  Bruno Haible  <bruno@clisp.org>
6520
6521         pipe2: Remove dependency on 'nonblocking' module.
6522         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
6523         O_NONBLOCK is defined by gnulib.
6524         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
6525         is zero.
6526         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
6527         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
6528         defined by gnulib.
6529         (get_nonblocking_flag): New function.
6530         (main): Test O_NONBLOCK flag only if it is nonzero.
6531         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
6532
6533 2011-06-03  Jim Meyering  <meyering@redhat.com>
6534
6535         maint: three new prohibit-header-without-use rules
6536         Prohibit use of cloexec.h, posixver.h, same.h without use.
6537         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
6538         (sc_prohibit_posixver_without_use): Likewise.
6539         (sc_prohibit_same_without_use): Likewise.
6540
6541 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
6542
6543         allocator: 'die' routine is now given requested size
6544         * lib/allocator.h (struct allocator.die): New size arg.
6545         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
6546         If the actual problem is an ssize_t limitation, not a size_t or
6547         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
6548
6549 2011-06-01  Eric Blake  <eblake@redhat.com>
6550
6551         strerror: drop strerror_r dependency
6552         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
6553         * lib/strerror-override.c (strerror_override): ...to new file.
6554         * lib/strerror-override.h: Add prototype.
6555         * lib/strerror-impl.h: Delete.
6556         * lib/strerror.c (strerror): New implementation.
6557         * modules/errno (Files): Add new files.
6558         (configure.ac): Compile new file as appropriate.
6559         * modules/strerror (Files): Drop unused file.
6560         (Depends-on): Drop strerror_r-posix.
6561         * MODULES.html.sh: Document strerror_r-posix.
6562         Requested by Sam Steingold.
6563
6564         perror: call strerror_r directly
6565         * modules/perror (Files): Drop strerror-impl.h.
6566         * lib/perror.c (perror): Use our own stack buffer, rather than
6567         calling a wrapper that uses static storage.
6568         * doc/posix-functions/perror.texi (perror): Document a limitation
6569         of our replacement.
6570
6571         strerror_r: fix includes for FreeBSD
6572         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
6573         since we use abort on some platforms.
6574         Reported by Matthias Bolte.
6575
6576 2011-05-31  Bruno Haible  <bruno@clisp.org>
6577
6578         Fix link errors in tests: openat-die uses gettext-h.
6579         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
6580         against $(LIBINTL).
6581         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
6582         against $(LIBINTL).
6583         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
6584         $(LIBINTL).
6585         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
6586         against $(LIBINTL).
6587         * modules/linkat-tests (Makefile.am): Link test-linkat against
6588         $(LIBINTL).
6589         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
6590         $(LIBINTL).
6591         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
6592         against $(LIBINTL).
6593         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
6594         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
6595         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
6596         $(LIBINTL).
6597         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
6598         $(LIBINTL).
6599         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
6600         $(LIBINTL).
6601         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6602
6603 2011-05-31  Bruno Haible  <bruno@clisp.org>
6604
6605         Fix link errors in tests: wait-process uses gettext-h.
6606         * modules/nonblocking-pipe-tests (Makefile.am): Set
6607         test_nonblocking_pipe_main_LDADD.
6608         * modules/nonblocking-socket-tests (Makefile.am): Link
6609         test-nonblocking-socket-main against $(LIBINTL).
6610         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6611
6612 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
6613
6614         assert-h: work around 'verify' incompatibility
6615         * lib/verify.h: Use @...@ directives, not ifdef.
6616         * modules/assert-h (assert.h): Implement the directives.
6617         (assert.h): Substitute the symbol-prefix more consistently.
6618
6619 2011-05-29  Jim Meyering  <meyering@redhat.com>
6620
6621         trim: remove three superfluous assignments
6622         * lib/trim.c (trim2): Remove three superfluous assignments
6623         and correct brace positioning.
6624
6625 2011-05-29  Bruno Haible  <bruno@clisp.org>
6626
6627         wctype-h: Avoid namespace pollution on Solaris 2.6.
6628         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
6629         identifiers.
6630         * doc/posix-headers/wctype.texi: Mention the problem.
6631         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6632
6633 2011-05-28  Jim Meyering  <meyering@redhat.com>
6634
6635         parse-datetime.y: accommodate -Wstrict-overflow
6636         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
6637         placate -Wstrict-overflow.
6638
6639         trim: avoid a warning from -O2 -Wstrict-overflow
6640         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
6641
6642 2011-05-29  Bruno Haible  <bruno@clisp.org>
6643
6644         gnulib-tool: Fix bug in yesterday's commit.
6645         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
6646         twice.
6647
6648 2011-05-29  Bruno Haible  <bruno@clisp.org>
6649
6650         Allow multiple gnulib generated include files to be combined.
6651         * gnulib-tool (func_compute_include_guard_prefix): New function.
6652         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
6653         ${gl_include_guard_prefix} references.
6654         (func_import, func_create_testdir): Invoke
6655         func_compute_include_guard_prefix.
6656         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
6657         * lib/ctype.in.h: Likewise.
6658         * lib/dirent.in.h: Likewise.
6659         * lib/errno.in.h: Likewise.
6660         * lib/fcntl.in.h: Likewise.
6661         * lib/float.in.h: Likewise.
6662         * lib/getopt.in.h: Likewise.
6663         * lib/iconv.in.h: Likewise.
6664         * lib/langinfo.in.h: Likewise.
6665         * lib/locale.in.h: Likewise.
6666         * lib/math.in.h: Likewise.
6667         * lib/netdb.in.h: Likewise.
6668         * lib/netinet_in.in.h: Likewise.
6669         * lib/poll.in.h: Likewise.
6670         * lib/pthread.in.h: Likewise.
6671         * lib/pty.in.h: Likewise.
6672         * lib/sched.in.h: Likewise.
6673         * lib/se-selinux.in.h: Likewise.
6674         * lib/search.in.h: Likewise.
6675         * lib/signal.in.h: Likewise.
6676         * lib/spawn.in.h: Likewise.
6677         * lib/stdarg.in.h: Likewise.
6678         * lib/stddef.in.h: Likewise.
6679         * lib/stdint.in.h: Likewise.
6680         * lib/stdio.in.h: Likewise.
6681         * lib/stdlib.in.h: Likewise.
6682         * lib/string.in.h: Likewise.
6683         * lib/strings.in.h: Likewise.
6684         * lib/sys_file.in.h: Likewise.
6685         * lib/sys_ioctl.in.h: Likewise.
6686         * lib/sys_select.in.h: Likewise.
6687         * lib/sys_socket.in.h: Likewise.
6688         * lib/sys_stat.in.h: Likewise.
6689         * lib/sys_time.in.h: Likewise.
6690         * lib/sys_times.in.h: Likewise.
6691         * lib/sys_uio.in.h: Likewise.
6692         * lib/sys_utsname.in.h: Likewise.
6693         * lib/sys_wait.in.h: Likewise.
6694         * lib/sysexits.in.h: Likewise.
6695         * lib/termios.in.h: Likewise.
6696         * lib/time.in.h: Likewise.
6697         * lib/unistd.in.h: Likewise.
6698         * lib/wchar.in.h: Likewise.
6699         * lib/wctype.in.h: Likewise.
6700         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
6701         * modules/ctype (Makefile.am): Likewise.
6702         * modules/dirent (Makefile.am): Likewise.
6703         * modules/errno (Makefile.am): Likewise.
6704         * modules/fcntl-h (Makefile.am): Likewise.
6705         * modules/float (Makefile.am): Likewise.
6706         * modules/getopt-posix (Makefile.am): Likewise.
6707         * modules/iconv-h (Makefile.am): Likewise.
6708         * modules/langinfo (Makefile.am): Likewise.
6709         * modules/locale (Makefile.am): Likewise.
6710         * modules/math (Makefile.am): Likewise.
6711         * modules/netdb (Makefile.am): Likewise.
6712         * modules/netinet_in (Makefile.am): Likewise.
6713         * modules/poll-h (Makefile.am): Likewise.
6714         * modules/pthread (Makefile.am): Likewise.
6715         * modules/pty (Makefile.am): Likewise.
6716         * modules/sched (Makefile.am): Likewise.
6717         * modules/search (Makefile.am): Likewise.
6718         * modules/selinux-h (Makefile.am): Likewise.
6719         * modules/signal (Makefile.am): Likewise.
6720         * modules/spawn (Makefile.am): Likewise.
6721         * modules/stdarg (Makefile.am): Likewise.
6722         * modules/stddef (Makefile.am): Likewise.
6723         * modules/stdint (Makefile.am): Likewise.
6724         * modules/stdio (Makefile.am): Likewise.
6725         * modules/stdlib (Makefile.am): Likewise.
6726         * modules/string (Makefile.am): Likewise.
6727         * modules/strings (Makefile.am): Likewise.
6728         * modules/sys_file (Makefile.am): Likewise.
6729         * modules/sys_ioctl (Makefile.am): Likewise.
6730         * modules/sys_select (Makefile.am): Likewise.
6731         * modules/sys_socket (Makefile.am): Likewise.
6732         * modules/sys_stat (Makefile.am): Likewise.
6733         * modules/sys_time (Makefile.am): Likewise.
6734         * modules/sys_times (Makefile.am): Likewise.
6735         * modules/sys_uio (Makefile.am): Likewise.
6736         * modules/sys_utsname (Makefile.am): Likewise.
6737         * modules/sys_wait (Makefile.am): Likewise.
6738         * modules/sysexits (Makefile.am): Likewise.
6739         * modules/termios (Makefile.am): Likewise.
6740         * modules/time (Makefile.am): Likewise.
6741         * modules/unistd (Makefile.am): Likewise.
6742         * modules/wchar (Makefile.am): Likewise.
6743         * modules/wctype-h (Makefile.am): Likewise.
6744         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
6745
6746 2011-05-29  Bruno Haible  <bruno@clisp.org>
6747
6748         assert-h: Allow multiple gnulib generated replacements to coexist.
6749         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
6750
6751 2011-05-29  Bruno Haible  <bruno@clisp.org>
6752
6753         argp: Allow coexistence with strerror_r-posix module.
6754         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
6755         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
6756         by gnulib's <string.h> replacement), assume it has the POSIX signature,
6757         not the glibc signature.
6758
6759 2011-05-28  Bruno Haible  <bruno@clisp.org>
6760
6761         gnulib-tool: Alternative structure of testdirs, similar to --import.
6762         * gnulib-tool: New option --single-configure.
6763         (func_usage): Document it.
6764         (single_configure): New variable.
6765         (func_modules_transitive_closure_separately,
6766         func_modules_transitive_closure_separately,
6767         func_determine_use_libtests, func_modules_add_dummy_separately,
6768         func_modules_to_filelist_separately): New functions, extracted from
6769         func_import.
6770         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
6771         (func_import): Use the new functions.
6772         (func_create_testdir): Set final_modules. Handle $single_configure =
6773         true case.
6774
6775 2011-05-28  Bruno Haible  <bruno@clisp.org>
6776
6777         getloadavg: Remove an unreliable safety check.
6778         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
6779         getloadavg.c is in place.
6780         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
6781         Reported by Sam Steingold <sds@gnu.org>.
6782
6783 2011-05-28  Bruno Haible  <bruno@clisp.org>
6784
6785         doc: Cleanup yet another file produced by texinfo.tex.
6786         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
6787
6788 2011-05-28  Bruno Haible  <bruno@clisp.org>
6789
6790         Finish the conditional dependencies mechanism.
6791         * gnulib-tool: New option --no-conditional-dependencies.
6792         (func_usage): Document it. Don't mark --conditional-dependencies as
6793         experimental.
6794         (cond_dependencies): The possible values can now be true, false, empty.
6795         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
6796         (func_import): Store setting in gnulib-cache.m4 and read it from there.
6797         * doc/gnulib-tool.texi (Conditional dependencies): New section.
6798
6799 2011-05-28  Bruno Haible  <bruno@clisp.org>
6800
6801         doc: Use a recent texinfo.tex.
6802         * doc/Makefile (tex_opts): New variable.
6803         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
6804
6805 2011-05-28  Jim Meyering  <meyering@redhat.com>
6806
6807         intprops.h: adjust comment to match code change
6808         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
6809         only once, it *may* have side effects.  Also fix an unrelated typo.
6810         (_GL_INT_SIGNED): Likewise.
6811
6812 2011-05-26  Simon Josefsson  <simon@josefsson.org>
6813
6814         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
6815
6816 2011-05-26  Bruno Haible  <bruno@clisp.org>
6817
6818         mbsrchr: Avoid collision with system function on Interix.
6819         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
6820         Reported by Markus Duft <mduft@gentoo.org>.
6821
6822 2011-05-15  James Youngman  <jay@gnu.org>
6823
6824         getopt: for ambiguous options, enumerate the possibilities.
6825         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
6826         the ambiguous options when an ambiguous prefix is given. This was
6827         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
6828         glibc change was
6829         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
6830
6831 2011-05-25  Eric Blake  <eblake@redhat.com>
6832
6833         getcwd: work around mingw bug
6834         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
6835         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6836         Reported by Matthias Bolte.
6837
6838 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6839
6840         test-intprops: disable -Wtype-limits diagnostics
6841         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
6842         diagnostics.  Otherwise, the integer overflow macros generate many
6843         diagnostics.  Reported by Jim Meyering in
6844         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6845
6846         intprops: shorten, to pacify gcc -Woverlength-strings
6847         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
6848         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
6849         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
6850         likely to run afoul of C compiler limits for string constant lengths.
6851         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6852
6853 2011-05-24  Eric Blake  <eblake@redhat.com>
6854
6855         docs: document recently fixed glibc printf bug
6856         * doc/posix-functions/fprintf.texi (fprintf): Document it.
6857         * doc/posix-functions/printf.texi (printf): Likewise.
6858         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6859         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6860
6861         closein-tests: convert to init.sh
6862         * modules/closein-tests (Files): Add init.sh
6863         * tests/test-closein.sh Use it.
6864
6865         yesno-tests: convert to init.sh
6866         * modules/yesno-tests (Files): Add init.sh.
6867         * tests/test-yesno.sh: Use it.
6868
6869         atexit-tests: ensure reliable exit status
6870         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
6871         Reported by Bruno Haible.
6872
6873 2011-05-24  Bruno Haible  <bruno@clisp.org>
6874
6875         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
6876         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
6877         gl_PREREQ_STRERROR_R invocations from here...
6878         * modules/strerror_r-posix (configure.ac): ... to here.
6879
6880 2011-05-24  Eric Blake  <eblake@redhat.com>
6881
6882         strerror_r: fix missing header
6883         * lib/strerror_r.c: Avoid compiler warning about snprintf.
6884
6885         strerror_r: fix AIX test failures
6886         * lib/strerror_r.c (strerror_r): Convert silent truncation to
6887         ERANGE failure.
6888
6889         strerror_r: fix Solaris test failures
6890         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
6891         failures.
6892         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6893
6894         strerror_r: enforce POSIX recommendations
6895         * lib/strerror_r.c (safe_copy): New helper method.
6896         (strerror_r): Guarantee a non-empty string.
6897         * tests/test-strerror_r.c (main): Enhance tests to incorporate
6898         recent POSIX rulings and to match our strerror guarantees.
6899         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6900
6901 2011-05-24  Jim Meyering  <meyering@redhat.com>
6902
6903         test-perror2.c: avoid warning about unused variable
6904         * tests/test-perror2.c (main): Remove declaration of unused "fp".
6905
6906 2011-05-24  Eric Blake  <eblake@redhat.com>
6907
6908         perror: avoid spurious test failure on HP-UX
6909         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
6910
6911         tests: fix logic bug in init.sh
6912         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
6913         shell.
6914
6915 2011-05-24  Jim Meyering  <meyering@redhat.com>
6916
6917         utimensat: do not reference an out-of-scope buffer
6918         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
6919         declared in an inner scope, yet "times" would be dereferenced outside
6920         the scope in which "ts" was valid.
6921         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
6922         of ts[2] "out/up", so that the use of aliased "times" (via
6923         "times = ts;") does not end up referencing an out-of-scope "ts"
6924
6925         opendir-safer.c: don't clobber errno; don't close negative FD
6926         * lib/opendir-safer.c (opendir_safer):
6927         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
6928         file descriptor, and more importantly, don't clobber the
6929         offending errno value with EINVAL.  Before, upon failure
6930         of dup_safer, we would pass the negative file descriptor to
6931         fdopendir, which would clobber errno.
6932
6933 2011-05-23  Bruno Haible  <bruno@clisp.org>
6934
6935         idcache: Fix module description.
6936         * modules/idcache (Include): Set to "idcache.h".
6937
6938 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6939
6940         gnulib-tool: fix portability problem with MacOS sed
6941         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
6942         before the "}".  Problem reported by Leo in
6943         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
6944         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
6945         sed_extract_condition1, sed_extract_condition2.
6946
6947 2011-05-23  Bruno Haible  <bruno@clisp.org>
6948
6949         hash: Simplify autoconf macro.
6950         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
6951
6952 2011-05-23  Bruno Haible  <bruno@clisp.org>
6953
6954         getugroups: Fix module description.
6955         * modules/getugroups (Include): Set to "getugroups.h".
6956
6957 2011-05-23  Bruno Haible  <bruno@clisp.org>
6958
6959         linkat: Simplify autoconf macro.
6960         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
6961
6962 2011-05-23  Bruno Haible  <bruno@clisp.org>
6963             Eric Blake  <eblake@redhat.com>
6964
6965         linkat, renameat: Update dependencies.
6966         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
6967         * modules/linkat (Depends-on): Likewise. Remove also readlink,
6968         symlinkat.
6969
6970 2011-05-23  Jim Meyering  <meyering@redhat.com>
6971
6972         maint.mk: more tight_scope improvements
6973         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
6974         (_gl_TS_headers): Define only in if-0'd block.
6975         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
6976         sometimes we must *not* use it.  Adjust uses accordingly.
6977         (sc_tight_scope): Use much simpler grep-based test to determine
6978         whether we skip this rule.
6979
6980         maint.mk: generalize/improve the tight-scope rule
6981         * top/maint.mk: Emit a warning when the test is skipped.
6982         (_gl_TS_dir): Add $(srcdir)/ prefix.
6983         (_gl_TS_function_match): Simplify, rather than trying
6984         to enumerate common types.  Otherwise, it would fail to match an
6985         "extern unsigned char const *" declaration in idutils.
6986         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
6987         a way to support use of that type of macro.
6988         (_gl_TS_var_match): Simplify regexp.
6989         (_gl_TS_obj_files): New configurable variable.
6990         (_gl_TS_headers): Likewise.
6991
6992 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6993
6994         verify: fix bug when gnulib <assert.h> is also included
6995         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
6996         is defined, not if _GL_STATIC_ASSERT_H is not defined.
6997         Perhaps there's a better way, but this fixes the immediate problem.
6998         Problem reported by Bruno Haible in
6999         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
7000
7001 2011-05-22  Bruno Haible  <bruno@clisp.org>
7002
7003         xgetcwd: Simplify autoconf macro.
7004         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
7005
7006 2011-05-22  Bruno Haible  <bruno@clisp.org>
7007
7008         New module 'mktime-internal'.
7009         * modules/mktime-internal: New file.
7010         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
7011         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
7012         mktime_internal as a C macro if libc has __mktime_internal.
7013         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
7014         conditions.
7015         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
7016
7017 2011-05-22  Bruno Haible  <bruno@clisp.org>
7018
7019         timegm: Correct mktime replacement statements.
7020         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
7021         defining mktime as a C macro. This completes a 2009-07-28 commit.
7022
7023 2011-05-22  Bruno Haible  <bruno@clisp.org>
7024
7025         timegm: Simplify autoconf macro.
7026         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
7027
7028 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
7029
7030         clock-time: change to LGPLv2+.
7031         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
7032         BSD-like but we have no mark for that; this is good enough for now.
7033
7034 2011-05-21  Bruno Haible  <bruno@clisp.org>
7035
7036         strerror_r: Fix comments.
7037         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
7038
7039 2011-05-21  Bruno Haible  <bruno@clisp.org>
7040
7041         relocatable-prog-wrapper: Fix possible link error.
7042         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
7043         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
7044         (gl_FUNC_SETENV): ... to here.
7045         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
7046         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
7047
7048 2011-05-21  Bruno Haible  <bruno@clisp.org>
7049
7050         relocatable-prog-wrapper: Assume strerror() exists.
7051         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
7052         m4/strerror.m4.
7053         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
7054         * lib/relocwrapper.c: Remove mention of strerror module.
7055         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
7056         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
7057         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
7058         C macro.
7059
7060 2011-05-21  Bruno Haible  <bruno@clisp.org>
7061
7062         select: Simplify replacement idiom.
7063         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
7064         Win32 platforms.
7065         * lib/sys_select.in.h (select): Simplify accordingly.
7066         * modules/select (Depends-on): Likewise.
7067
7068 2011-05-21  Bruno Haible  <bruno@clisp.org>
7069
7070         mkdir-p: Simplify autoconf macro.
7071         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
7072         gl_FUNC_LCHOWN.
7073
7074 2011-05-21  Eric Blake  <eblake@redhat.com>
7075
7076         strerror_r: avoid clobbering strerror on cygwin
7077         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
7078         fall back instead to sys_errlist.
7079         * modules/strerror (configure.ac): Add witness.
7080         * tests/test-strerror_r.c (main): Enhance test.
7081         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7082         * tests/test-perror2.c (main): Free memory before exit.
7083
7084 2011-05-21  Bruno Haible  <bruno@clisp.org>
7085
7086         mkdtemp: Use gnulib naming conventions.
7087         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
7088         * modules/mkdtemp (configure.ac): Update.
7089
7090 2011-05-20  Eric Blake  <eblake@redhat.com>
7091
7092         strerror_r: avoid corrupting errno on Solaris
7093         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
7094         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7095
7096         strerror_r: avoid compiler warning
7097         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
7098
7099         strerror_r: simplify AIX code
7100         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
7101
7102         test-perror: avoid spurious failure on FreeBSD
7103         * modules/perror-tests (Depends-on): Add strerror, now that
7104         strerror_r no longer pulls it in.
7105
7106 2011-05-20  Bruno Haible  <bruno@clisp.org>
7107
7108         strerror_r-posix: Remove unused dependencies.
7109         * modules/strerror_r-posix (Depends-on): Remove strerror.
7110         Reported by Eric Blake.
7111
7112 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
7113
7114         intprops: remove assumption about A|B representation
7115         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
7116         is a valid integer if both A and B are.  Although this is true for
7117         all known practical hosts, the C standard doesn't guarantee it,
7118         and the code need not assume it.  Also, this change may work around
7119         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
7120         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
7121
7122 2011-05-20  Eric Blake  <eblake@redhat.com>
7123
7124         perror: work around FreeBSD bug
7125         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
7126         is broken.  Move AC_LIBOBJ...
7127         * modules/perror (configure.ac): Here.
7128         * doc/posix-functions/perror.texi (perror): Document this.
7129         * tests/test-perror2.c (main): Enhance test.
7130
7131         test-perror: check for strerror interactions
7132         * tests/macros.h (STREQ): Add macro.
7133         * modules/perror-tests (Files): Add second test.
7134         * tests/test-perror2.c (main): New file.
7135         * doc/posix-functions/perror.texi (perror): Document glibc bug.
7136
7137         test-perror: rewrite to use init script
7138         * modules/perror-tests (Files): Add init.sh.
7139         * tests/test-perror.sh: Use temporary directory.
7140
7141 2011-05-20  Jim Meyering  <meyering@redhat.com>
7142
7143         maint: replace misused "a" with "an"
7144         * doc/intprops.texi: "a integer"
7145         * doc/regex.texi: "a explanation"
7146         * lib/alignof.h: "a object"
7147         * lib/argmatch.h: "a explanation"
7148         * lib/argp-help.c: "a option" and "a OPTION_DOC"
7149         * lib/stdint.in.h: "a integer"
7150         * lib/userspec.c: "a owner"
7151         * doc/gnulib.texi: Fix "a idea", and reword.
7152
7153 2011-05-19  Jim Meyering  <meyering@redhat.com>
7154
7155         maint: correct misuse of "a" and "an"
7156         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
7157         * lib/argp-help.c: "an docum...": s/an/a/
7158         * lib/argp-parse.c: "An vector": s/An/A/
7159         * lib/execute.c: "an native": s/an/a/
7160         * lib/spawn-pipe.c: Likewise.
7161         * lib/gc.h: "an Gc_rc": s/an/a/
7162         * lib/unigbrk.in.h: "an grapheme": s/an/a/
7163         * lib/fts.c: "an stat.st_dev": s/an/a/
7164
7165 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7166
7167         intprops-tests: work around HP-UX 11.23 cc bug with constants
7168         * tests/test-intprops.c (VERIFY): New macro.
7169         (main): Use it, instead of verify, to work around the compiler bug; see
7170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7171
7172         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
7173         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
7174         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
7175         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
7176         (_GL_REMAINDER_OVERFLOW): Use it.
7177
7178         intprops-tests: revert unsigned part of previous change
7179         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
7180         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
7181         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
7182         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
7183
7184 2011-05-19  Bruno Haible  <bruno@clisp.org>
7185
7186         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
7187         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
7188         strerror_r() returned without filling the buffer.
7189         Reported by Eric Blake.
7190
7191 2011-05-19  Eric Blake  <eblake@redhat.com>
7192
7193         strerror_r: guarantee unchanged errno
7194         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
7195         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
7196         failure.
7197         * tests/test-strerror_r.c (main): Enhance test.
7198
7199 2011-05-19  Bruno Haible  <bruno@clisp.org>
7200
7201         strerror_r: Reorder #if blocks.
7202         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
7203         for consistency with the previous commit.
7204
7205 2011-05-19  Bruno Haible  <bruno@clisp.org>
7206
7207         perror: Avoid clobbering the strerror buffer when possible.
7208         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
7209         * lib/strerror.c: Include it.
7210         * modules/strerror (Files): Add lib/strerror-impl.h.
7211         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
7212         (my_strerror): New function, defined through lib/strerror-impl.h.
7213         (perror): Use it instead of strerror.
7214         * modules/perror (Files): Add lib/strerror-impl.h.
7215         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
7216
7217 2011-05-19  Eric Blake  <eblake@redhat.com>
7218
7219         strerror_r: fix on newer cygwin
7220         * lib/strerror_r.c (strerror_r): Cygwin now has
7221         __xpg_strerror_r, use it.
7222
7223 2011-05-19  Bruno Haible  <bruno@clisp.org>
7224
7225         strerror_r: Avoid clobbering the strerror buffer when possible.
7226         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
7227         (sys_nerr, sys_errlist): New declarations.
7228         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
7229         HP-UX, native Win32, IRIX, and 32-bit Solaris.
7230         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
7231
7232 2011-05-19  Bruno Haible  <bruno@clisp.org>
7233
7234         strerror_r: Fix test failure on mingw.
7235         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
7236         EXTEND_STRERROR_R.
7237         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
7238         macros from errno.in.h instead.
7239
7240 2011-05-19  Eric Blake  <eblake@redhat.com>
7241
7242         strerror: relax test for Solaris
7243         * tests/test-strerror.c (main): Permit Solaris behavior.
7244         * tests/test-strerror_r.c (main): Likewise.
7245
7246         strerror: enforce POSIX ruling on strerror(0)
7247         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
7248         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7249         * lib/strerror_r.c (rpl_strerror_r): Work around it.
7250         * doc/posix-functions/strerror.texi (strerror): Document it.
7251         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
7252         * tests/test-strerror.c (main): Strengthen test.
7253         * tests/test-strerror_r.c (main): Likewise.
7254
7255 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7256
7257         intprop-tests: port to older and more-pedantic compilers
7258         * modules/intprops-tests (Files): Add tests/macros.h.
7259         * tests/test-intprops.c: Include macros.h.
7260         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
7261         it's no longer documented to expand to an integer constant expression.
7262         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
7263         argument is floating point, as it's no longer documented to expand
7264         to an integer constant expression in that case.
7265         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
7266         compiler bugs reported by Bruno Haible.  See
7267         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7268         (U0, U1): New constants, to work around the same bugs.  Also,
7269         in tests, use e.g., "(unsigned int) 39" rather than "39u".
7270
7271         intprops: work around C compiler bugs
7272         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
7273         bug in Sun C 5.11 2010/08/13 and other compilers; see
7274         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7275
7276         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
7277         * doc/intprops.texi (Integer Type Determination): Fix
7278         documentation for TYPE_IS_INTEGER: it returns an constant
7279         expression, not an integer constant expression.  Fix doc for
7280         TYPE_SIGNED: it returns an integer constant expression only if its
7281         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
7282         hardly worth documented that way....)
7283
7284 2011-05-18  Bruno Haible  <bruno@clisp.org>
7285
7286         strerror_r: Avoid clobbering the strerror buffer when possible.
7287         * lib/strerror_r.c (strerror_r): Merge the three implementations.
7288         Handle gnulib defined errno values here. When strerror() returns NULL
7289         or an empty string, return EINVAL.
7290         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
7291         gnulib defined errno values here.
7292         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
7293
7294 2011-05-18  Eric Blake  <eblake@redhat.com>
7295
7296         fnmatch: avoid compiler warning
7297         * lib/fnmatch_loop.c (FCT): Use correct type.
7298         Reported by Matthias Bolte.
7299
7300 2011-05-13  Jim Meyering  <meyering@redhat.com>
7301
7302         maint.mk: three new prohibit_<HDR>_without_use rules
7303         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
7304         (sc_prohibit_stdio-safer_without_use): Likewise.
7305         (sc_prohibit_xfreopen_without_use): Likewise.
7306
7307 2011-05-17  Jim Meyering  <meyering@redhat.com>
7308
7309         announce-gen: fail if the NEWS delta is empty
7310         If there's nothing noteworthy in NEWS, then either you forgot
7311         or you shouldn't be releasing.
7312         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
7313
7314 2011-05-17  Pádraig Brady <P@draigBrady.com>
7315
7316         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
7317         reserved symbols starting with double underscore from the check.
7318
7319 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
7320
7321         intprops: add doc
7322         * doc/intprops.texi: New file, documenting intprops.
7323         * doc/gnulib.texi (Particular Modules): Include it.
7324
7325         verify: add doc to gnulib manual and fix example
7326         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
7327         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
7328         (Compile-time Assertions): Fix example so it can't overflow.
7329
7330 2011-05-17  Jim Meyering  <meyering@redhat.com>
7331
7332         warnings.m4: don't usurp save_CPPFLAGS variable name
7333         * m4/warnings.m4: Prefix local temporary variable name with gl_.
7334
7335         doc: fix typo
7336         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
7337
7338 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7339             Bruno Haible  <bruno@clisp.org>
7340
7341         doc: Tweak recent change.
7342         * README (Portability guidelines): Tweak new text.
7343         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
7344         Interix 6.1.
7345
7346 2011-05-16  Eric Blake  <eblake@redhat.com>
7347
7348         inttypes: avoid autoconf warning
7349         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
7350         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7351
7352 2011-05-16  Sam Steingold <sds@gnu.org>
7353         and Eric Blake  <eblake@redhat.com>
7354
7355         vc-list-files: accept multiple directory operands
7356         * build-aux/vc-list-files: Iterate over all remaining operands.
7357
7358 2011-05-16  Bruno Haible  <bruno@clisp.org>
7359
7360         Fix confusion regarding deprecated modules.
7361         * modules/calloc (Status, Notice): Mark module as deprecated, not
7362         obsolete.
7363         * modules/fnmatch-posix (Status, Notice): Likewise.
7364         * modules/getdate (Status, Notice): Likewise.
7365         * modules/getopt (Status, Notice): Likewise.
7366         * modules/malloc (Status, Notice): Likewise.
7367         * modules/pipe (Status, Notice): Likewise.
7368         * modules/realloc (Status, Notice): Likewise.
7369         * modules/rename-dest-slash (Status, Notice): Likewise.
7370         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
7371         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
7372         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
7373         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
7374         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
7375
7376 2011-05-16  Bruno Haible  <bruno@clisp.org>
7377
7378         doc: List the target platforms.
7379         * doc/gnulib-intro.texi (Target Platforms): New section.
7380         * doc/gnulib.texi (Introduction): Update menu.
7381         * README (Portability guidelines): Refer to the new section. Update
7382         statement about oldest supported environment. Remove rationale why
7383         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
7384         unportable C89 function.
7385         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
7386         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
7387
7388 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7389
7390         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
7391
7392 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
7393
7394         intprops-tests: new module
7395         * modules/intprops-tests, tests/test-intprops.c: New files.
7396
7397         intprops: add safe, portable integer overflow checking
7398         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
7399         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
7400         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
7401         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
7402         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
7403         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
7404         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
7405         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
7406         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
7407         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
7408         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
7409
7410 2011-05-12  James Youngman  <jay@gnu.org>
7411
7412         Add a test for glibc's Bugzilla bug #12378.
7413         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
7414         doesn't allow the literal matching of a lone "[" (which is
7415         required by POSIX).
7416         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
7417
7418 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
7419
7420         Sync glibc change fixing Bugzilla bug #12378.
7421         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
7422         beginning and fall back to matching as normal character if the
7423         string ends before the matching ']' is found.  This is what POSIX
7424         requires.
7425
7426 2011-05-13  Eric Blake  <eblake@redhat.com>
7427
7428         getcwd-lgpl: relax test for FreeBSD
7429         * doc/posix-functions/getcwd.texi (getcwd): Document portability
7430         issue.
7431         * tests/test-getcwd-lgpl.c (main): Relax test.
7432         Reported by Matthias Bolte.
7433
7434 2011-05-11  Eric Blake  <eblake@redhat.com>
7435
7436         test-fflush: silence compiler warning
7437         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
7438
7439 2011-05-11  Bruno Haible  <bruno@clisp.org>
7440
7441         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
7442         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
7443         * modules/canonicalize (Depends-on): Add 'nocrash'.
7444         * modules/canonicalize-lgpl (Depends-on): Likewise.
7445         * doc/posix-functions/realpath.texi: Update platforms list.
7446         Reported by Ryan Schmidt <ryandesign@macports.org>.
7447
7448 2011-05-11  Bruno Haible  <bruno@clisp.org>
7449
7450         group-member: Declare function in <unistd.h>.
7451         * lib/unistd.in.h (group_member): New declaration.
7452         * lib/group-member.h: Remove file.
7453         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
7454         * tests/test-unistd-c++.cc: Check signature of group_member.
7455         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
7456         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
7457         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
7458         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
7459         HAVE_GROUP_MEMBER.
7460         * modules/group-member (Files): Remove lib/group-member.h.
7461         (Depends-on): Add unistd. Specify conditions.
7462         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7463         (Include): Change to <unistd.h>.
7464         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
7465         HAVE_GROUP_MEMBER.
7466         * NEWS: Mention the change.
7467         * lib/euidaccess.c: Don't include group-member.h.
7468
7469 2011-05-11  Bruno Haible  <bruno@clisp.org>
7470
7471         group-member: Document module.
7472         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
7473         module.
7474
7475 2011-05-11  Bruno Haible  <bruno@clisp.org>
7476
7477         fclose: Fix mistake earlier today.
7478         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
7479
7480 2011-05-11  Eric Blake  <eblake@redhat.com>
7481
7482         fclose: preserve fflush errors
7483         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
7484         Reported by Jim Meyering.
7485
7486         bootstrap: support a prereq of 'rpcgen -' on RHEL5
7487         * build-aux/bootstrap (check_versions): When no specific version
7488         is required, merely check that the app produces an exit status
7489         that indicates its existence.
7490
7491         maint.mk: drop redundant check
7492         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
7493         the same but better.
7494
7495 2011-05-11  Bruno Haible  <bruno@clisp.org>
7496
7497         fclose: Fix possible link error.
7498         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
7499         unregister_shadow_fd. Improve comments.
7500         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
7501         Eric Blake.
7502
7503 2011-05-11  Jim Meyering  <meyering@redhat.com>
7504
7505         maint.mk: improve "can not" detection and generalize rule name
7506         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
7507         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
7508         Use the same technique as in sc_prohibit_doubled_word, so that
7509         we recognize "can not" also when the words are separated by a newline.
7510         Suggested by Eric Blake.
7511         (perl_filename_lineno_text_): Define.  Factored out of...
7512         (prohibit_doubled_word_): ...here.  Use the new definition.
7513         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
7514         (prohibit_undesirable_word_seq_RE_): New overridable variable.
7515         (ignore_undesirable_word_sequence_RE_): New overridable variable.
7516
7517 2011-05-10  Eric Blake  <eblake@redhat.com>
7518
7519         fclose: avoid double close race when possible
7520         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
7521         all but WINDOWS_SOCKETS.
7522
7523 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
7524
7525         openat: correct new comment
7526         * lib/openat-proc.c (openat_proc_name): Correct the comment.
7527
7528 2011-05-10  Jim Meyering  <meyering@redhat.com>
7529
7530         openat: add comments
7531         * lib/openat-proc.c (openat_proc_name): Add comments,
7532         mostly from Eric Blake.
7533
7534 2011-05-09  Eric Blake  <eblake@redhat.com>
7535
7536         openat: reduce syscalls in first probe of /proc
7537         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
7538         be a directory.  Simplify the probe for .. bugs.
7539         * modules/openat (Depends-on): Drop same-inode.
7540         Reported by Bastien ROUCARIES.
7541
7542 2011-05-09  Jim Meyering  <meyering@redhat.com>
7543
7544         maint.mk: change semantics/name of tight_scope variables
7545         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
7546         Rename variables to align with semantics that make them more useful.
7547
7548         maint.mk: tweak new rule's name not to impinge
7549         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
7550         (sc_tight_scope): Use new rule name rather than $@-0.
7551
7552         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
7553         * top/maint.mk (sc_tight_scope): New rule.
7554         (sc_tight_scope-0): New rule, ifdef'd out.
7555         (_gl_TS_dir): Default.
7556         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
7557         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
7558
7559 2011-05-09  Simon Josefsson  <simon@josefsson.org>
7560
7561         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
7562         Haible <bruno@clisp.org>.
7563
7564 2011-05-08  Bruno Haible  <bruno@clisp.org>
7565
7566         Comments.
7567         * m4/isnanf.m4: Add comment.
7568         * m4/isnanl.m4: Likewise.
7569
7570 2011-05-08  Bruno Haible  <bruno@clisp.org>
7571
7572         glob: Remove obsolete macro.
7573         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
7574
7575 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7576
7577         intprops: Sun C 5.11 supports __typeof__
7578         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
7579         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
7580         which is new.
7581         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
7582
7583         intprops: switch to usual gnulib indenting and naming
7584         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
7585         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
7586
7587         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
7588
7589 2011-05-08  Jim Meyering  <meyering@redhat.com>
7590
7591         maint.mk: suppress "Entering/Leaving directory" diag in announcement
7592         * top/maint.mk (release-prep): Use make's --no-print-directory
7593         option when generating the announcement.  This eliminates the
7594         pesky "make[2]: Entering/Leaving directory" diagnostics in the
7595         generated announcement template.
7596
7597 2011-05-08  Bruno Haible  <bruno@clisp.org>
7598
7599         tzset: Fix gettimeofday wrapper on Solaris 2.6.
7600         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
7601         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
7602
7603 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
7604
7605         ignore-value, verify: Omit include files from lib_SOURCES.
7606         * modules/ignore-value, modules/verify (Makefile.am):
7607         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
7608         that leads Automake to duplicate use of am__objects_... variables
7609         in Makefile.in.  See
7610         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
7611
7612 2011-05-07  Bruno Haible  <bruno@clisp.org>
7613
7614         fclose: Simplify autoconf macro.
7615         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
7616         defined.
7617
7618 2011-05-07  Bruno Haible  <bruno@clisp.org>
7619
7620         canonicalize-lgpl: Fix autoconf macro ordering bug.
7621         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
7622         gl_STDLIB_H_DEFAULTS.
7623
7624 2011-05-06  Eric Blake  <eblake@redhat.com>
7625
7626         maintainer-makefile: make sc_po_check easier to tune
7627         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
7628         to probe for strings, such as an alternate location for gnulib.
7629
7630         fclose: guarantee behavior on seekable stdin
7631         * modules/fclose (Depends-on): Add fflush.
7632         * doc/posix-functions/fclose.texi (fclose): Document this.
7633         * tests/test-fclose.c (main): Make test for this unconditional.
7634
7635 2011-05-06  Bruno Haible  <bruno@clisp.org>
7636
7637         fflush, fpurge: Relicense under LGPLv2+.
7638         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
7639         * modules/fpurge (License): Likewise.
7640         With permission from Eric Blake and Jim Meyering.
7641         Suggested by Eric Blake.
7642
7643 2011-05-06  Karl Berry  <karl@gnu.org>
7644
7645         * MODULES.html.sh (func_all_modules): remove exit.
7646
7647 2011-05-06  Jim Meyering  <meyering@redhat.com>
7648
7649         maint.mk: use info-gnu@ as the default only for a stable release
7650         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
7651         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
7652         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
7653         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
7654
7655 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
7656
7657         assert-h: new module, which supports C1X-style static_assert
7658         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
7659         * lib/verify.h: Revamp so that this can be copied into assert.h,
7660         while retaining the ability to use it standalone as before.
7661         Rename private identifiers so as not to encroach on the
7662         standard C namespace, since this is now used by assert.h.
7663         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
7664         the old verify_true.
7665         (_GL_VERIFY_TRUE): New macro, with much of the contents of
7666         the old verify_true.  Use _GL_VERIFY_TYPE.
7667         (_GL_VERIFY): New macro, with much of the contents of the old verify.
7668         (static_assert): New macro, if _GL_STATIC_ASSERT_H
7669         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
7670         defined when this file is copied into the replacement assert.h.
7671         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
7672         and _Static_assert is not built in.
7673         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
7674         defined, and use the new macros mentioned above.
7675         * doc/posix-headers/assert.texi: Document this.
7676
7677 2011-05-05  Bruno Haible  <bruno@clisp.org>
7678
7679         fclose, fflush: Respect rules for use of AC_LIBOBJ.
7680         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
7681         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
7682         gl_REPLACE_FCLOSE here.
7683         * modules/fflush (Depends-on): Remove fclose.
7684         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
7685         combination with module 'fclose'.
7686
7687 2011-05-05  Bruno Haible  <bruno@clisp.org>
7688
7689         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
7690         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
7691         gl_FUNC_FFLUSH.
7692         (gl_FUNC_FFLUSH): Use it.
7693         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
7694         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
7695         gl_REPLACE_FSEEKO here.
7696
7697 2011-05-05  Bruno Haible  <bruno@clisp.org>
7698
7699         tzset: Relicense under LGPL.
7700         * modules/tzset (License): Change to LGPL.
7701         No agreement needed; it's a no-op.
7702
7703         strtoimax, strtoumax: Relicense under LGPL.
7704         * modules/strtoimax (License): Change to LGPL.
7705         * modules/strtoumax (License): Likewise.
7706         With permission from Jim Meyering, Paul Eggert:
7707         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
7708         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
7709
7710         getgroups: Relicense under LGPL.
7711         * modules/getgroups (License): Change to LGPL.
7712         With permission from Jim Meyering, Paul Eggert, Eric Blake:
7713         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7714         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7715         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7716
7717         nanosleep: Relicense under LGPL.
7718         * modules/nanosleep (License): Change to LGPL.
7719         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
7720         Haible:
7721         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7722         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7723         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7724         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7725
7726         futimens: Relicense under LGPL.
7727         * modules/futimens (License): Change to LGPL.
7728         With permission from Eric Blake:
7729         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7730
7731         fflush: Relicense under LGPL.
7732         * modules/fflush (License): Change to LGPL.
7733         With permission from Eric Blake, Bruno Haible, Jim Meyering:
7734         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7735         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7736         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
7737
7738         tmpfile: Relicense under LGPL.
7739         * modules/tmpfile (License): Change to LGPL.
7740         With permission from Ben Pfaff:
7741         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7742
7743         isfinite: Relicense under LGPL.
7744         * modules/isfinite (License): Change to LGPL.
7745         With permission from Ben Pfaff, Bruno Haible:
7746         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7747         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
7748
7749         acosl..tanl: Relicense under LGPL.
7750         * modules/acosl (License): Change to LGPL.
7751         * modules/asinl (License): Likewise.
7752         * modules/atanl (License): Likewise.
7753         * modules/cosl (License): Likewise.
7754         * modules/expl (License): Likewise.
7755         * modules/logl (License): Likewise.
7756         * modules/sinl (License): Likewise.
7757         * modules/sqrtl (License): Likewise.
7758         * modules/tanl (License): Likewise.
7759         Source code originally from glibc and Paolo Bonzini. Agreements:
7760         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
7761         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
7762
7763 2011-05-05  Bruno Haible  <bruno@clisp.org>
7764
7765         signal: Define sighandler_t.
7766         * lib/signal.in.h (sighandler_t): New type.
7767         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
7768         whether sighandler_t is defined.
7769         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
7770         * modules/signal (Depends-on): Add extensions.
7771         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
7772         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
7773         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
7774
7775 2011-05-05  Eric Blake  <eblake@redhat.com>
7776
7777         maint: remove useless REPLACE_*_H macros
7778         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
7779         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7780         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7781         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
7782         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7783         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7784         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
7785         * m4/btowc.m4: Update callers.
7786         * m4/dirfd.m4: Likewise.
7787         * m4/duplocale.m4: Likewise.
7788         * m4/fchdir.m4: Likewise.
7789         * m4/fdopendir.m4: Likewise.
7790         * m4/inet_ntop.m4: Likewise.
7791         * m4/inet_pton.m4: Likewise.
7792         * m4/ioctl.m4: Likewise.
7793         * m4/mbrlen.m4: Likewise.
7794         * m4/mbrtowc.m4: Likewise.
7795         * m4/mbsinit.m4: Likewise.
7796         * m4/mbsnrtowcs.m4: Likewise.
7797         * m4/mbsrtowcs.m4: Likewise.
7798         * m4/poll.m4: Likewise.
7799         * m4/setlocale.m4: Likewise.
7800         * m4/wcrtomb.m4: Likewise.
7801         * m4/wcsnrtombs.m4: Likewise.
7802         * m4/wcsrtombs.m4: Likewise.
7803         * m4/wctob.m4: Likewise.
7804         * m4/wcwidth.m4: Likewise.
7805         * modules/posix_spawn: Likewise.
7806         * modules/posix_spawn_file_actions_addclose: Likewise.
7807         * modules/posix_spawn_file_actions_adddup2: Likewise.
7808         * modules/posix_spawn_file_actions_addopen: Likewise.
7809         * modules/posix_spawn_file_actions_destroy: Likewise.
7810         * modules/posix_spawn_file_actions_init: Likewise.
7811         * modules/posix_spawnattr_destroy: Likewise.
7812         * modules/posix_spawnattr_getflags: Likewise.
7813         * modules/posix_spawnattr_getpgroup: Likewise.
7814         * modules/posix_spawnattr_getschedparam: Likewise.
7815         * modules/posix_spawnattr_getschedpolicy: Likewise.
7816         * modules/posix_spawnattr_getsigdefault: Likewise.
7817         * modules/posix_spawnattr_getsigmask: Likewise.
7818         * modules/posix_spawnattr_init: Likewise.
7819         * modules/posix_spawnattr_setflags: Likewise.
7820         * modules/posix_spawnattr_setpgroup: Likewise.
7821         * modules/posix_spawnattr_setschedparam: Likewise.
7822         * modules/posix_spawnattr_setschedpolicy: Likewise.
7823         * modules/posix_spawnattr_setsigdefault: Likewise.
7824         * modules/posix_spawnattr_setsigmask: Likewise.
7825         * modules/posix_spawnp: Likewise.
7826
7827 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
7828
7829         Add option to do-release-commit-and-tag to specify branch.
7830         * build-aux/do-release-commit-and-tag: Add --branch.
7831
7832 2011-05-03  Bruno Haible  <bruno@clisp.org>
7833
7834         Avoid unnecessary compilation units, through conditional dependencies.
7835         * modules/accept (Depends-on): Add conditions to the dependencies.
7836         * modules/acosl (Depends-on): Likewise.
7837         * modules/argz (Depends-on): Likewise.
7838         * modules/asinl (Depends-on): Likewise.
7839         * modules/atanl (Depends-on): Likewise.
7840         * modules/atoll (Depends-on): Likewise.
7841         * modules/bind (Depends-on): Likewise.
7842         * modules/btowc (Depends-on): Likewise.
7843         * modules/canonicalize-lgpl (Depends-on): Likewise.
7844         * modules/ceil (Depends-on): Likewise.
7845         * modules/ceilf (Depends-on): Likewise.
7846         * modules/ceill (Depends-on): Likewise.
7847         * modules/chdir-long (Depends-on): Likewise.
7848         * modules/chown (Depends-on): Likewise.
7849         * modules/close (Depends-on): Likewise.
7850         * modules/connect (Depends-on): Likewise.
7851         * modules/cosl (Depends-on): Likewise.
7852         * modules/dirfd (Depends-on): Likewise.
7853         * modules/dprintf (Depends-on): Likewise.
7854         * modules/dprintf-posix (Depends-on): Likewise.
7855         * modules/error (Depends-on): Likewise.
7856         * modules/euidaccess (Depends-on): Likewise.
7857         * modules/expl (Depends-on): Likewise.
7858         * modules/faccessat (Depends-on): Likewise.
7859         * modules/fchdir (Depends-on): Likewise.
7860         * modules/fclose (Depends-on): Likewise.
7861         * modules/fcntl (Depends-on): Likewise.
7862         * modules/fdopendir (Depends-on): Likewise.
7863         * modules/fflush (Depends-on): Likewise.
7864         * modules/floor (Depends-on): Likewise.
7865         * modules/floorf (Depends-on): Likewise.
7866         * modules/floorl (Depends-on): Likewise.
7867         * modules/fnmatch (Depends-on): Likewise.
7868         * modules/fopen (Depends-on): Likewise.
7869         * modules/fprintf-posix (Depends-on): Likewise.
7870         * modules/frexp (Depends-on): Likewise.
7871         * modules/frexp-nolibm (Depends-on): Likewise.
7872         * modules/frexpl (Depends-on): Likewise.
7873         * modules/frexpl-nolibm (Depends-on): Likewise.
7874         * modules/fseek (Depends-on): Likewise.
7875         * modules/fsusage (Depends-on): Likewise.
7876         * modules/ftell (Depends-on): Likewise.
7877         * modules/ftello (Depends-on): Likewise.
7878         * modules/futimens (Depends-on): Likewise.
7879         * modules/getcwd (Depends-on): Likewise.
7880         * modules/getcwd-lgpl (Depends-on): Likewise.
7881         * modules/getdelim (Depends-on): Likewise.
7882         * modules/getdomainname (Depends-on): Likewise.
7883         * modules/getgroups (Depends-on): Likewise.
7884         * modules/gethostname (Depends-on): Likewise.
7885         * modules/getline (Depends-on): Likewise.
7886         * modules/getlogin_r (Depends-on): Likewise.
7887         * modules/getopt-posix (Depends-on): Likewise.
7888         * modules/getpeername (Depends-on): Likewise.
7889         * modules/getsockname (Depends-on): Likewise.
7890         * modules/getsockopt (Depends-on): Likewise.
7891         * modules/getsubopt (Depends-on): Likewise.
7892         * modules/getusershell (Depends-on): Likewise.
7893         * modules/glob (Depends-on): Likewise.
7894         * modules/grantpt (Depends-on): Likewise.
7895         * modules/iconv_open (Depends-on): Likewise.
7896         * modules/iconv_open-utf (Depends-on): Likewise.
7897         * modules/inet_ntop (Depends-on): Likewise.
7898         * modules/inet_pton (Depends-on): Likewise.
7899         * modules/ioctl (Depends-on): Likewise.
7900         * modules/isapipe (Depends-on): Likewise.
7901         * modules/isfinite (Depends-on): Likewise.
7902         * modules/isinf (Depends-on): Likewise.
7903         * modules/lchown (Depends-on): Likewise.
7904         * modules/ldexpl (Depends-on): Likewise.
7905         * modules/link (Depends-on): Likewise.
7906         * modules/linkat (Depends-on): Likewise.
7907         * modules/listen (Depends-on): Likewise.
7908         * modules/logl (Depends-on): Likewise.
7909         * modules/lstat (Depends-on): Likewise.
7910         * modules/mbrlen (Depends-on): Likewise.
7911         * modules/mbrtowc (Depends-on): Likewise.
7912         * modules/mbsinit (Depends-on): Likewise.
7913         * modules/mbsnrtowcs (Depends-on): Likewise.
7914         * modules/mbsrtowcs (Depends-on): Likewise.
7915         * modules/mbtowc (Depends-on): Likewise.
7916         * modules/memcmp (Depends-on): Likewise.
7917         * modules/mkdir (Depends-on): Likewise.
7918         * modules/mkdtemp (Depends-on): Likewise.
7919         * modules/mkfifo (Depends-on): Likewise.
7920         * modules/mkfifoat (Depends-on): Likewise.
7921         * modules/mknod (Depends-on): Likewise.
7922         * modules/mkostemp (Depends-on): Likewise.
7923         * modules/mkostemps (Depends-on): Likewise.
7924         * modules/mkstemp (Depends-on): Likewise.
7925         * modules/mkstemps (Depends-on): Likewise.
7926         * modules/mktime (Depends-on): Likewise.
7927         * modules/nanosleep (Depends-on): Likewise.
7928         * modules/open (Depends-on): Likewise.
7929         * modules/openat (Depends-on): Likewise.
7930         * modules/perror (Depends-on): Likewise.
7931         * modules/poll (Depends-on): Likewise.
7932         * modules/popen (Depends-on): Likewise.
7933         * modules/posix_spawn (Depends-on): Likewise.
7934         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
7935         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
7936         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
7937         * modules/posix_spawnp (Depends-on): Likewise.
7938         * modules/pread (Depends-on): Likewise.
7939         * modules/printf-posix (Depends-on): Likewise.
7940         * modules/ptsname (Depends-on): Likewise.
7941         * modules/putenv (Depends-on): Likewise.
7942         * modules/pwrite (Depends-on): Likewise.
7943         * modules/readline (Depends-on): Likewise.
7944         * modules/readlink (Depends-on): Likewise.
7945         * modules/readlinkat (Depends-on): Likewise.
7946         * modules/recv (Depends-on): Likewise.
7947         * modules/recvfrom (Depends-on): Likewise.
7948         * modules/regex (Depends-on): Likewise.
7949         * modules/remove (Depends-on): Likewise.
7950         * modules/rename (Depends-on): Likewise.
7951         * modules/renameat (Depends-on): Likewise.
7952         * modules/rmdir (Depends-on): Likewise.
7953         * modules/round (Depends-on): Likewise.
7954         * modules/roundf (Depends-on): Likewise.
7955         * modules/roundl (Depends-on): Likewise.
7956         * modules/rpmatch (Depends-on): Likewise.
7957         * modules/select (Depends-on): Likewise.
7958         * modules/send (Depends-on): Likewise.
7959         * modules/sendto (Depends-on): Likewise.
7960         * modules/setenv (Depends-on): Likewise.
7961         * modules/setlocale (Depends-on): Likewise.
7962         * modules/setsockopt (Depends-on): Likewise.
7963         * modules/shutdown (Depends-on): Likewise.
7964         * modules/sigaction (Depends-on): Likewise.
7965         * modules/signbit (Depends-on): Likewise.
7966         * modules/sigprocmask (Depends-on): Likewise.
7967         * modules/sinl (Depends-on): Likewise.
7968         * modules/sleep (Depends-on): Likewise.
7969         * modules/snprintf (Depends-on): Likewise.
7970         * modules/snprintf-posix (Depends-on): Likewise.
7971         * modules/socket (Depends-on): Likewise.
7972         * modules/sprintf-posix (Depends-on): Likewise.
7973         * modules/sqrtl (Depends-on): Likewise.
7974         * modules/stat (Depends-on): Likewise.
7975         * modules/strchrnul (Depends-on): Likewise.
7976         * modules/strdup-posix (Depends-on): Likewise.
7977         * modules/strerror (Depends-on): Likewise.
7978         * modules/strerror_r-posix (Depends-on): Likewise.
7979         * modules/strndup (Depends-on): Likewise.
7980         * modules/strnlen (Depends-on): Likewise.
7981         * modules/strptime (Depends-on): Likewise.
7982         * modules/strsep (Depends-on): Likewise.
7983         * modules/strsignal (Depends-on): Likewise.
7984         * modules/strstr-simple (Depends-on): Likewise.
7985         * modules/strtod (Depends-on): Likewise.
7986         * modules/strtoimax (Depends-on): Likewise.
7987         * modules/strtok_r (Depends-on): Likewise.
7988         * modules/strtoumax (Depends-on): Likewise.
7989         * modules/symlink (Depends-on): Likewise.
7990         * modules/symlinkat (Depends-on): Likewise.
7991         * modules/tanl (Depends-on): Likewise.
7992         * modules/tcgetsid (Depends-on): Likewise.
7993         * modules/tmpfile (Depends-on): Likewise.
7994         * modules/trunc (Depends-on): Likewise.
7995         * modules/truncf (Depends-on): Likewise.
7996         * modules/truncl (Depends-on): Likewise.
7997         * modules/uname (Depends-on): Likewise.
7998         * modules/unlink (Depends-on): Likewise.
7999         * modules/unlockpt (Depends-on): Likewise.
8000         * modules/unsetenv (Depends-on): Likewise.
8001         * modules/usleep (Depends-on): Likewise.
8002         * modules/utimensat (Depends-on): Likewise.
8003         * modules/vasprintf (Depends-on): Likewise.
8004         * modules/vdprintf (Depends-on): Likewise.
8005         * modules/vdprintf-posix (Depends-on): Likewise.
8006         * modules/vfprintf-posix (Depends-on): Likewise.
8007         * modules/vprintf-posix (Depends-on): Likewise.
8008         * modules/vsnprintf (Depends-on): Likewise.
8009         * modules/vsnprintf-posix (Depends-on): Likewise.
8010         * modules/vsprintf-posix (Depends-on): Likewise.
8011         * modules/wcrtomb (Depends-on): Likewise.
8012         * modules/wcscasecmp (Depends-on): Likewise.
8013         * modules/wcscspn (Depends-on): Likewise.
8014         * modules/wcsdup (Depends-on): Likewise.
8015         * modules/wcsncasecmp (Depends-on): Likewise.
8016         * modules/wcsnrtombs (Depends-on): Likewise.
8017         * modules/wcspbrk (Depends-on): Likewise.
8018         * modules/wcsrtombs (Depends-on): Likewise.
8019         * modules/wcsspn (Depends-on): Likewise.
8020         * modules/wcsstr (Depends-on): Likewise.
8021         * modules/wcstok (Depends-on): Likewise.
8022         * modules/wcswidth (Depends-on): Likewise.
8023         * modules/wctob (Depends-on): Likewise.
8024         * modules/wctomb (Depends-on): Likewise.
8025         * modules/wctype (Depends-on): Likewise.
8026         * modules/wcwidth (Depends-on): Likewise.
8027         * modules/write (Depends-on): Likewise.
8028
8029 2011-05-03  Bruno Haible  <bruno@clisp.org>
8030
8031         Support for conditional dependencies.
8032         * doc/gnulib.texi (Module description): Document the syntax of
8033         conditional dependencies.
8034         * gnulib-tool: New option --conditional-dependencies.
8035         (func_usage): Document it.
8036         (cond_dependencies): New variable.
8037         (func_get_automake_snippet_conditional,
8038         func_get_automake_snippet_unconditional): New functions, extracted from
8039         func_get_automake_snippet.
8040         (func_get_automake_snippet): Use them.
8041         (sed_first_32_chars): New variable.
8042         (func_module_shellfunc_name): New function.
8043         (func_module_shellvar_name): New function.
8044         (func_module_conditional_name): New function.
8045         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
8046         func_cond_module_condition): New functions.
8047         (func_modules_transitive_closure): Add support for conditional
8048         dependencies.
8049         (func_emit_lib_Makefile_am): For a conditional module, enclose the
8050         conditional automake snippet in an automake conditional.
8051         (func_emit_autoconf_snippets): Emit shell functions that contain the
8052         code for conditional modules.
8053         (func_import, func_create_testdir): Update specification.
8054
8055 2011-05-03  Eric Blake  <eblake@redhat.com>
8056
8057         test-getaddrinfo: report error information
8058         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
8059
8060 2011-05-03  Jim Meyering  <meyering@redhat.com>
8061
8062         bootstrap: avoid build failure when $GZIP is set
8063         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
8064         program name.  If defined at all, it is supposed to list gzip options.
8065         Reported by Alan Curry in http://debbugs.gnu.org/8609
8066
8067 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
8068
8069         readme-release: new module with release instructions
8070         * modules/readme-release: New module.
8071         * top/README-release: New file, from coreutils, grep, diffutils.
8072         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8073
8074 2011-05-02  Eric Blake  <eblake@redhat.com>
8075
8076         fflush: also replace fclose when fixing fflush
8077         * modules/fflush (Depends-on): Add fclose.
8078         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
8079         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
8080         memstreams with no backing fd.
8081         * doc/posix-functions/fclose.texi (fclose): Document the use of
8082         fflush module to fix the bug.
8083         * tests/test-fclose.c (main): Relax test when fclose is used in
8084         isolation.
8085
8086         fclose: add some tests
8087         * modules/fclose-tests: New test module.
8088         * tests/test-fclose.c: New file.
8089         * doc/posix-functions/fclose.texi (fclose): Document the bug.
8090
8091         fclose: reduced dependencies
8092         * modules/fclose (Depends-on): Switch from fflush/fseeko to
8093         simpler lseek.
8094         * lib/fclose.c (rpl_fclose): Likewise.
8095         Reported by Simon Josefsson.
8096
8097         exit: drop remaining clients
8098         * modules/argmatch (Depends-on): Replace exit with stdlib.
8099         * modules/copy-file (Depends-on): Likewise.
8100         * modules/execute (Depends-on): Likewise.
8101         * modules/exitfail (Depends-on): Likewise.
8102         * modules/obstack (Depends-on): Likewise.
8103         * modules/pagealign_alloc (Depends-on): Likewise.
8104         * modules/pipe-filter-gi (Depends-on): Likewise.
8105         * modules/pipe-filter-ii (Depends-on): Likewise.
8106         * modules/savewd (Depends-on): Likewise.
8107         * modules/spawn-pipe (Depends-on): Likewise.
8108         * modules/wait-process (Depends-on): Likewise.
8109         * modules/xsetenv (Depends-on): Likewise.
8110         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
8111         * modules/git-merge-changelog (Depends-on): Likewise.
8112         * modules/long-options (Depends-on): Likewise.
8113         * modules/pt_chown (Depends-on): Likewise.
8114         * modules/sysexits (Depends-on): Likewise.
8115
8116         freading: relax license from LGPLv3+ to LGPLv2+
8117         * modules/freading (License): Relax LGPL version.
8118
8119 2011-05-02  Bruno Haible  <bruno@clisp.org>
8120
8121         fchdir: Remove unused dependencies.
8122         * modules/fchdir (Depends-on): Remove include_next.
8123
8124 2011-05-02  Bruno Haible  <bruno@clisp.org>
8125
8126         gnulib-tool: Refactor.
8127         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
8128         from func_emit_autoconf_snippets.
8129         (func_emit_autoconf_snippets): Use it.
8130
8131 2011-05-02  Simon Josefsson  <simon@josefsson.org>
8132
8133         * NEWS: Document removal of 'exit'.
8134         * modules/exit: Remove file.
8135
8136 2011-05-01  Bruno Haible  <bruno@clisp.org>
8137
8138         Update DEPENDENCIES.
8139         * DEPENDENCIES (gettext): Recommend the newest release.
8140         Reported by Simon Josefsson.
8141
8142 2011-05-01  Bruno Haible  <bruno@clisp.org>
8143
8144         gnulib-tool: Reduce code duplication.
8145         * gnulib-tool (func_emit_autoconf_snippets): New function.
8146         (func_import, func_create_testdir): Use it.
8147
8148 2011-04-30  Eric Blake  <eblake@redhat.com>
8149
8150         fclose: don't fail on non-seekable input stream
8151         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
8152         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
8153         since fflush is allowed to fail in that case.
8154
8155 2011-04-30  Bruno Haible  <bruno@clisp.org>
8156
8157         dup3: cleanup
8158         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
8159
8160 2011-04-30  Bruno Haible  <bruno@clisp.org>
8161
8162         netdb: Make it work in C++ mode.
8163         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
8164         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
8165         module.
8166         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
8167         gl_MODULE_INDICATOR_FOR_TESTS.
8168         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
8169         * modules/netdb-c++-tests: New file.
8170         * tests/test-netdb-c++.cc: New file.
8171
8172 2011-04-30  Bruno Haible  <bruno@clisp.org>
8173
8174         New modules 'vfscanf', 'vscanf'.
8175         * modules/vfscanf: New file.
8176         * modules/vscanf: New file.
8177         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
8178         here.
8179         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
8180         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
8181
8182 2011-04-30  Bruno Haible  <bruno@clisp.org>
8183
8184         passfd: Add comments.
8185         * lib/passfd.c: Add comments about platforms.
8186
8187 2011-04-30  Bruno Haible  <bruno@clisp.org>
8188
8189         sys_uio: Make <sys/uio.h> self-contained.
8190         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
8191         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
8192
8193 2011-04-30  Bruno Haible  <bruno@clisp.org>
8194
8195         sys_socket: Ensure 'struct iovec' definition.
8196         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
8197         <sys/socket.h>.
8198         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
8199
8200 2011-04-30  Bruno Haible  <bruno@clisp.org>
8201
8202         sys_uio: Protect definition of 'struct iovec'.
8203         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
8204         it as a C struct.
8205
8206 2011-04-30  Bruno Haible  <bruno@clisp.org>
8207
8208         manywarnings: fix indentation
8209         * m4/manywarnings.m4: Indent by 2 spaces consistently.
8210
8211 2011-04-30  Pádraig Brady <P@draigBrady.com>
8212
8213         manywarnings: add -Wno-missing-field-initializers if needed.
8214         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
8215         option if it's needed to allow initialization with { 0, }
8216
8217 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
8218
8219         announce-gen: cosmetic improvement
8220         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
8221
8222 2011-04-29  Jim Meyering  <meyering@redhat.com>
8223
8224         vc-list-files: indent with spaces, not TABs
8225         * build-aux/vc-list-files: Convert leading TABs to spaces,
8226         to match the style of most other files in gnulib.
8227
8228         announce-gen: indent with spaces, not TABs
8229         * build-aux/announce-gen: Convert all TABs to spaces, to match
8230         the style of most other files in gnulib.
8231
8232 2011-04-29  Eric Blake  <eblake@redhat.com>
8233
8234         quotearg: avoid uninitialized variable use
8235         * lib/quotearg.c (quoting_options_from_style): Initialize
8236         remaining fields, and ensure that custom styles are only used via
8237         quoting_options rather than quoting_style.
8238
8239 2011-04-29  Jim Meyering  <meyering@redhat.com>
8240
8241         maint.mk: remove unused VC-tag variable
8242         * top/maint.mk (VC-tag): Remove unused variable.
8243
8244 2011-04-29  Bruno Haible  <bruno@clisp.org>
8245
8246         netdb: fix gai_strerror replacements
8247         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
8248         * modules/netdb: Substitute it.
8249
8250 2011-04-29  Jim Meyering  <meyering@redhat.com>
8251
8252         test-getcwd.c: avoid new set-but-not-used warning
8253         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
8254         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
8255         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
8256         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
8257
8258         test-hash.c: avoid a new shadowing warning
8259         * tests/test-hash.c (main): Don't shadow "dup".
8260
8261 2011-04-28  Eric Blake  <eblake@redhat.com>
8262
8263         getaddrinfo: fix gai_strerror signature
8264         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
8265         and work around mingw with UNICODE defined.
8266         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
8267         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
8268         * modules/netdb (Makefile.am): Substitute it.
8269         * lib/netdb.in.h (gai_strerror): Declare replacement.
8270         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
8271         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
8272         the fix.
8273
8274         getsockopt: avoid compiler warning
8275         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
8276         Reported by Matthias Bolte.
8277
8278         tests: drop unused link dependency
8279         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
8280         * modules/dirent-safer-tests (Makefile.am): Likewise.
8281         * modules/fdopendir-tests (Makefile.am): Likewise.
8282         * modules/mkfifoat-tests (Makefile.am): Likewise.
8283         * modules/openat-safer-tests (Makefile.am): Likewise.
8284         * modules/openat-tests (Makefile.am): Likewise.
8285         * modules/readlinkat-tests (Makefile.am): Likewise.
8286         * modules/symlinkat-tests (Makefile.am): Likewise.
8287         * modules/linkat-tests (Makefile.am): Likewise.
8288         (Depends-on): Switch to filenamecat-lgpl.
8289         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
8290         LIBINTL.
8291         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
8292         * tests/test-linkat.c (main): Don't require xalloc.
8293
8294         hash, mgetgroups: drop xalloc dependency
8295         * lib/hash.c (includes): Adjust includes.
8296         * lib/mgetgroups.c (includes): Likewise.
8297         (xgetgroups): Move...
8298         * lib/xgetgroups.c: ...to new file.
8299         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
8300         * modules/xgetgroups: New file, split from...
8301         * modules/mgetgroups: ...here.
8302         (Depends-on): Add xalloc-oversized.
8303         * modules/hash (Depends-on): Likewise.
8304         * modules/hash-tests (Depends-on): Drop xalloc.
8305         (test_hash_LDADD): Drop unused library.
8306         * tests/test-hash.c (main): Break xalloc dependency.
8307         (includes): Drop unused include.
8308
8309         xalloc-oversized: new module
8310         * modules/xalloc-oversized: New module.
8311         * modules/xalloc (Depends-on): Add it.
8312         * lib/xalloc.h (xalloc_oversized): Move...
8313         * lib/xalloc-oversized.h: ...into new file.
8314
8315         utimecmp: drop dependency on xmalloc
8316         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
8317         due to memory pressure.
8318         * modules/utimecmp (Depends-on): Drop xalloc.
8319
8320 2011-04-27  Eric Blake  <eblake@redhat.com>
8321
8322         getcwd: fix mingw bugs
8323         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
8324         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
8325         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
8326
8327 2011-04-27  Bruno Haible  <bruno@clisp.org>
8328
8329         mkstemps: Ensure declaration on MacOS X 10.5.
8330         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
8331         * doc/glibc-functions/mkstemps.texi: Document header file problem on
8332         MacOS X.
8333
8334 2011-04-27  Bruno Haible  <bruno@clisp.org>
8335
8336         mkstemp: More documentation.
8337         * doc/posix-functions/mkstemp.texi: Document header file problem on
8338         MacOS X.
8339
8340 2011-04-27  Bruno Haible  <bruno@clisp.org>
8341
8342         mkstemp: Tweak configure message when cross-compiling.
8343         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
8344         result as a guess.
8345
8346 2011-04-27  Bruno Haible  <bruno@clisp.org>
8347
8348         clean-temp: Clarify what it does.
8349         * lib/clean-temp.h: Add more comments.
8350         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
8351         module.
8352         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
8353         * doc/glibc-functions/mkstemps.texi: Likewise.
8354         * doc/glibc-functions/mkostemps.texi: Likewise.
8355
8356 2011-04-27  Eric Blake  <eblake@redhat.com>
8357
8358         fchdir: avoid extra chdir and fix test
8359         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
8360         getcwd-lgpl.
8361         * lib/fchdir.c (get_name): Any absolute name will do; it does not
8362         have to be canonical.
8363         (canonicalize_file_name): Drop unused macro.
8364         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
8365
8366         filenamecat-lgpl: fix licence
8367         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
8368         when it was first created.
8369
8370         linkat, renameat: add missing dependency
8371         * modules/linkat (Depends-on): Require getcwd-lgpl.
8372         * modules/renameat (Depends-on): Likewise.
8373
8374         tests: reduce dependencies
8375         * tests/test-linkat.c (main): Use lighter-weight getcwd.
8376         * tests/test-renameat.c (main): Likewise.
8377         * modules/linkat-tests (Depends-on): Relax dependency.
8378         * modules/renameat-tests (Depends-on): Likewise.
8379         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
8380         dependency explicit.
8381
8382         save-cwd: reduce default dependency
8383         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
8384         * lib/save-cwd.c: Update comments.
8385         * NEWS: Document the semantic change.
8386
8387         getcwd: enhance tests
8388         * tests/test-getcwd-lgpl.c: New file, taken from...
8389         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
8390         repeat long path stress tests from m4 probe.
8391         * modules/getcwd-lgpl-tests: New module.
8392         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
8393         * m4/getcwd-abort-bug.m4: Update comment.
8394         * m4/getcwd-path-max.m4: Likewise.
8395
8396         getcwd-lgpl: new module
8397         * modules/getcwd-lgpl: New module.
8398         * lib/getcwd-lgpl.c: New file.
8399         * doc/posix-functions/getcwd.texi (getcwd): Document it.
8400         * MODULES.html.sh (lacking POSIX:2008): Likewise.
8401         * modules/getcwd (configure.ac): Set C witness.
8402         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
8403
8404         getcwd: tweak comments
8405         * m4/getcwd-abort-bug.m4: Fix comments.
8406         * m4/getcwd-path-max.m4: Likewise.
8407         * m4/getcwd.m4: Likewise.
8408
8409 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8410         and Eric Blake  <eblake@redhat.com>
8411
8412         mkstemp: replace if system version uses wrong permissions
8413         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
8414         read/write mode bits set in file created by mkstemp.
8415         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
8416
8417 2011-04-27  Eric Blake  <eblake@redhat.com>
8418
8419         passfd: avoid compiler warning
8420         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
8421         Reported by Laine Stump.
8422
8423 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
8424
8425         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
8426         required by the NetBSD (and perhaps other 4.4BSD derived) join.
8427
8428 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8429         and Eric Blake  <eblake@redhat.com>
8430
8431         mkstemp: mention clean-temp module
8432         * lib/mkstemp.c: Add comment.
8433         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
8434
8435 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8436
8437         inttypes: also provide default values for 32-bit tests
8438         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
8439         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
8440
8441 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8442
8443         strtoumax: remove dependency on strtoimax
8444         This is like the strtoull change of yesterday.
8445         * modules/strtoumax (Files): Add lib/strtoimax.c.
8446         (Depends-on): Remove strtoimax and add verify.
8447
8448         inttypes-incomplete: new module
8449         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
8450         all but the PRI* and SCN* parts of gl_INTTYPES_H.
8451         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
8452         of gl_INTTYPES_H.
8453         (gl_INTTYPES_H): Rewrite in terms of these new macros.
8454         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
8455         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
8456         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
8457         * modules/strtoumax, modules/xstrtol (Depends-on):
8458         Depend on inttypes-incomplete, not inttypes.
8459         * modules/inttypes-incomplete: New module, containing the contents
8460         of the old modules/inttypes module, except that the Files: section
8461         omits m4/inttypes-pri.m4, and the configure.ac section invokes
8462         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
8463         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
8464         (Depends-on): Depend only on inttypes-incomplete.
8465         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
8466
8467         inttypes: omit now-redundant strtoimax and strtoumax work
8468         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
8469         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
8470
8471         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
8472         This supports apps that need pointers to strtoimax and strtoumax,
8473         and ports to HP-UX 11.00 64.bit, which has macros that expand to
8474         nonexistent functions.  See
8475         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
8476         et seq.
8477         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
8478         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
8479         a macro.
8480         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
8481
8482 2011-04-25  Simon Josefsson  <simon@josefsson.org>
8483
8484         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
8485
8486 2011-04-25  Bruno Haible  <bruno@clisp.org>
8487
8488         strtol, strtoul: Mark modules as obsolete.
8489         * modules/strtol (Status, Notice): New sections.
8490         * modules/strtoul (Status, Notice): New sections.
8491
8492 2011-04-25  Bruno Haible  <bruno@clisp.org>
8493
8494         strtod: Remove check for strtod, unless supporting old platforms.
8495         * modules/strtod-obsolete: New file.
8496         * m4/strtod-obsolete.m4: New file.
8497         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
8498         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
8499         * modules/strtod (Depends-on): Add strtod-obsolete.
8500         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
8501
8502 2011-04-25  Bruno Haible  <bruno@clisp.org>
8503
8504         strcase: Make module obsolete.
8505         * modules/strcase (Status, Notice): New sections.
8506
8507 2011-04-25  Bruno Haible  <bruno@clisp.org>
8508
8509         dup2: Remove check for dup2, unless supporting old obsolete platforms.
8510         * modules/dup2-obsolete: New file.
8511         * m4/dup2-obsolete.m4: New file.
8512         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
8513         gl_FUNC_DUP2_OBSOLETE is not also defined.
8514         * modules/dup2 (Depends-on): Add dup2-obsolete.
8515         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
8516
8517 2011-04-25  Bruno Haible  <bruno@clisp.org>
8518
8519         strnlen: Avoid memchr related link error on old obsolete platforms.
8520         * modules/memchr-obsolete: New file.
8521         * m4/memchr-obsolete.m4: New file.
8522         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
8523         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
8524         * modules/memchr (Depends-on): Add memchr-obsolete.
8525         * modules/strnlen (Depends-on): Likewise.
8526         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
8527
8528 2011-04-25  Jim Meyering  <meyering@redhat.com>
8529
8530         maint.mk: makefile_at_at_check extend and clean up
8531         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
8532         in addition to */Makefile.am.
8533         Exempt legitimate uses of @VAR@ notation, e.g.,
8534         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
8535         Remove obsolete coreutils-specific comment.
8536         Prompted by discussion here:
8537         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
8538
8539 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8540
8541         strtoul: remove dependency on strtol
8542         This is so that 'configure' need not check for strtol merely because
8543         the application needs strtoul.
8544         * modules/strtoul (Files): Add lib/strtol.c.
8545         (Depends-on): Remove strtol.
8546
8547         strtoull: remove dependency on strtoul
8548         This is like the strtoll change.
8549         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
8550         (Depends-on): Remove strtoul.
8551
8552         strtoll: remove dependency on strtol
8553         This is so that 'configure' need not check for strtol merely because
8554         the application needs strtoll.
8555         * modules/strtoll (Files): Add lib/strtol.c.
8556         (Depends-on): Remove strtol.
8557
8558 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8559
8560         inttypes: Move some configure check to module 'imaxdiv'.
8561         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
8562         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
8563         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
8564
8565 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8566
8567         inttypes: Move some configure check to module 'imaxabs'.
8568         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
8569         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
8570         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
8571
8572 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8573
8574         inttypes: Remove configure tests that are not needed since 2009-12-31.
8575         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
8576         gl_cv_header_working_inttypes_h.
8577
8578 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8579
8580         * modules/strnlen (Depends-on): Remove memchr.
8581         The strnlen implementation doesn't need the memchr module's fixes; see
8582         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
8583
8584         strtol: remove dependency on wchar
8585         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
8586         * modules/strtol (Depends-on): Remove wchar.
8587
8588 2011-04-21  Eric Blake  <eblake@redhat.com>
8589
8590         passfd: fix test regression on Linux
8591         * modules/passfd-tests (configure.ac): Correct socketpair check.
8592
8593         passfd: speed up configure and drop unused code
8594         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
8595         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
8596         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
8597         Instead of probing at configure for unix_scm_rights_bsd44_way,
8598         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
8599         check to a struct member probe.
8600         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
8601         (sendfd, recvfd): Update preprocessor checks.
8602         * modules/passfd (Files): Reflect rename, and drop unused file.
8603         (Depends-on): Drop unused dependency.
8604
8605         passfd: allow compilation on mingw
8606         * modules/sys_socket (Depends-on): Add sys_uio.
8607         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
8608         iovec and a minimal struct msghdr.
8609         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
8610         * tests/test-sys_socket.c (main): Enhance test.
8611         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
8612         guaranteed to provide what we need.
8613         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
8614         * modules/passfd-tests (Depends-on): Add sys_wait.
8615         * tests/test-passfd.c (main): Skip test on mingw, for now.
8616         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
8617         partial 'struct msghdr' implementation.
8618
8619         sys_uio: new module
8620         * modules/sys_uio: New module.
8621         * modules/sys_uio-tests: Likewise.
8622         * lib/sys_uio.in.h: New file.
8623         * m4/sys_uio_h.m4: Likewise.
8624         * tests/test-sys_uio.c: Likewise.
8625         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
8626         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
8627
8628 2011-04-20  Jim Meyering  <meyering@redhat.com>
8629
8630         useless-if-before-free: avoid false-positive
8631         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
8632         disjunct so that it too requires a terminating ";".  Without that,
8633         this script would identify as useless one statement from gcc that
8634         was not:
8635           if (aligned_ptr)
8636             free (((void **) aligned_ptr) [-1]);
8637
8638 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
8639
8640         doc: update users.txt.
8641         * users.txt: Add barcode.
8642
8643 2011-04-19  Bruno Haible  <bruno@clisp.org>
8644
8645         ioctl: Remove link dependency on native Windows.
8646         * lib/fd-hook.h: Renamed from lib/close-hook.h.
8647         (gl_close_fn, gl_ioctl_fn): New types.
8648         (struct fd_hook): Renamed from struct close_hook. Change type of
8649         private_close_fn field. Add private_ioctl_fn field.
8650         (close_hook_fn): Add parameter for primary close method.
8651         (execute_close_hooks, execute_all_close_hooks): Likewise.
8652         (ioctl_hook_fn): New type.
8653         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
8654         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8655         argument.
8656         (unregister_fd_hook): Renamed from unregister_close_hook.
8657         * lib/fd-hook.c: Renamed from lib/close-hook.c.
8658         Don't include <unistd.h>.
8659         (close): Remove undef.
8660         (anchor): Update.
8661         (execute_close_hooks): Add argument for primary close method.
8662         (execute_all_close_hooks): Likewise.
8663         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
8664         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8665         argument. Allow each argument to be NULL.
8666         (unregister_fd_hook): Renamed from unregister_close_hook.
8667         * lib/close.c (rpl_close): Pass 'close' function pointer to
8668         execute_all_close_hooks.
8669         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
8670         (primary_ioctl): New function.
8671         (ioctl): Don't call ioctlsocket here. Instead, call
8672         execute_all_ioctl_hooks.
8673         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
8674         close method.
8675         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
8676         (fd_sockets_hook): Renamed from close_sockets_hook.
8677         (gl_sockets_startup, gl_sockets_cleanup): Update.
8678         * modules/fd-hook: Renamed from modules/close-hook. Update.
8679         * modules/close (Depends-on): Add fd-hook, remove close-hook.
8680         * modules/sockets (Depends-on): Likewise.
8681         * modules/ioctl (Depends-on): Add fd-hook.
8682         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
8683         GNULIB_SOCKET.
8684
8685 2011-04-19  Bruno Haible  <bruno@clisp.org>
8686
8687         Move the support of O_NONBLOCK in open() to the 'open' module.
8688         * modules/nonblocking (Depends-on): Remove 'open'.
8689         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
8690         gl_cv_have_open_O_NONBLOCK.
8691         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
8692         O_NONBLOCK support.
8693         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
8694
8695 2011-04-17  Bruno Haible  <bruno@clisp.org>
8696
8697         pipe2: Simplify code.
8698         * lib/pipe2.c (pipe2): Reduce code duplication.
8699
8700 2011-04-17  Bruno Haible  <bruno@clisp.org>
8701
8702         nonblocking: Add comment.
8703         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
8704
8705 2011-04-17  Bruno Haible  <bruno@clisp.org>
8706
8707         nonblocking: Add tests for sockets.
8708         * tests/test-nonblocking-socket.sh: New file.
8709         * tests/test-nonblocking-socket-main.c: New file.
8710         * tests/test-nonblocking-socket-child.c: New file.
8711         * tests/test-nonblocking-socket.h: New file.
8712         * tests/socket-server.h: New file.
8713         * tests/socket-client.h: New file.
8714         * modules/nonblocking-socket-tests: New file.
8715         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
8716
8717 2011-04-17  Bruno Haible  <bruno@clisp.org>
8718
8719         nonblocking: Add tests for pipes.
8720         * tests/test-nonblocking-pipe.sh: New file.
8721         * tests/test-nonblocking-pipe-main.c: New file.
8722         * tests/test-nonblocking-pipe-child.c: New file.
8723         * tests/test-nonblocking-pipe.h: New file.
8724         * tests/test-nonblocking-writer.h: New file.
8725         * tests/test-nonblocking-reader.h: New file.
8726         * tests/test-nonblocking-misc.h: New file.
8727         * modules/nonblocking-pipe-tests: New file.
8728         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
8729
8730 2011-04-16  Bruno Haible  <bruno@clisp.org>
8731
8732         gettext: Clarify the needed programmer actions.
8733         * modules/gettext (Notice): New field.
8734         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
8735
8736 2011-04-16  Bruno Haible  <bruno@clisp.org>
8737
8738         strchrnul: Tweak last commit.
8739         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
8740         bug.
8741         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
8742         as in _GL_FUNCDECL_SYS.
8743         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
8744         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
8745
8746 2011-04-15  Eric Blake  <eblake@redhat.com>
8747
8748         strchrnul: work around cygwin bug
8749         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
8750         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
8751         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
8752         * modules/string (Makefile.am): Substitute it.
8753         * lib/string.in.h (strchrnul): Use it.
8754
8755 2011-04-15  Bruno Haible  <bruno@clisp.org>
8756
8757         Don't require lib/stdio-write.c when only module 'stdio' is used.
8758         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
8759         invocation.
8760         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
8761
8762 2011-04-14  Bruno Haible  <bruno@clisp.org>
8763
8764         Support non-blocking pipe I/O in read() on native Windows.
8765         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
8766         (read): New declaration.
8767         * lib/read.c: New file.
8768         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
8769         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
8770         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
8771         vscanf): New declarations.
8772         * lib/stdio-read.c: New file.
8773         * m4/read.m4: New file.
8774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
8775         REPLACE_READ.
8776         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
8777         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8778         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
8779         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
8780         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
8781         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8782         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8783         * modules/read: New file.
8784         * modules/nonblocking (Files): Add lib/stdio-read.c.
8785         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
8786         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
8787         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8788         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8789         * modules/pread (Depends-on): Add read.
8790         * modules/safe-read (Depends-on): Likewise.
8791         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
8792         gets, scanf, vfscanf, vscanf): Verify signatures.
8793         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
8794         problem with non-blocking pipes.
8795         * doc/posix-functions/fgetc.texi: Likewise.
8796         * doc/posix-functions/fgets.texi: Likewise.
8797         * doc/posix-functions/fread.texi: Likewise.
8798         * doc/posix-functions/fscanf.texi: Likewise.
8799         * doc/posix-functions/getc.texi: Likewise.
8800         * doc/posix-functions/getchar.texi: Likewise.
8801         * doc/posix-functions/gets.texi: Likewise.
8802         * doc/posix-functions/scanf.texi: Likewise.
8803         * doc/posix-functions/vfscanf.texi: Likewise.
8804         * doc/posix-functions/vscanf.texi: Likewise.
8805
8806 2011-04-14  Bruno Haible  <bruno@clisp.org>
8807
8808         Support non-blocking pipe I/O in write() on native Windows.
8809         * lib/write.c (rpl_write): Split a write request that failed merely
8810         because the byte count was larger than the pipe buffer's size.
8811         * doc/posix-functions/write.texi: Mention the problem with large byte
8812         counts.
8813
8814 2011-04-14  Bruno Haible  <bruno@clisp.org>
8815
8816         wchar: Ensure that wchar_t gets defined on uClibc.
8817         * lib/wchar.in.h: On uClibc, include <stddef.h>.
8818         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
8819
8820 2011-04-13  Bruno Haible  <bruno@clisp.org>
8821
8822         safe-write, full-read: Avoid unnecessary compilation units.
8823         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
8824         (Depends-on): Remove safe-read. Add ssize_t.
8825         * modules/full-read (Files): Add lib/full-write.c.
8826         (Depends-on): Add full-write.
8827
8828 2011-04-13  Bruno Haible  <bruno@clisp.org>
8829
8830         Support non-blocking pipe I/O and SIGPIPE in pwrite().
8831         * modules/pwrite (Depends-on): Add 'write'.
8832
8833 2011-04-13  Bruno Haible  <bruno@clisp.org>
8834
8835         Support non-blocking pipe I/O in write() on native Windows.
8836         * lib/unistd.in.h (write): Enable replacement also if
8837         GNULIB_UNISTD_H_NONBLOCKING is 1.
8838         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
8839         (rpl_write): When failing to write on a non-blocking pipe, change
8840         errno from ENOSPC to EAGAIN.
8841         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
8842         putchar, puts, vfprintf, vprintf): Enable replacement also if
8843         GNULIB_STDIO_H_NONBLOCKING is 1.
8844         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
8845         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
8846         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
8847         CALL_WITH_SIGPIPE_EMULATION.
8848         (CALL_WITH_SIGPIPE_EMULATION): Use them.
8849         * m4/nonblocking.m4: New file.
8850         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
8851         for non-blocking I/O support.
8852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8853         GNULIB_UNISTD_H_NONBLOCKING.
8854         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
8855         required for non-blocking I/O support.
8856         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
8857         * modules/nonblocking (Files): Add m4/nonblocking.m4,
8858         lib/stdio-write.c, m4/asm-underscore.m4.
8859         (Depends-on): Add stdio, unistd.
8860         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
8861         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
8862         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
8863         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
8864         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
8865         problem with non-blocking pipes.
8866         * doc/posix-functions/fputc.texi: Likewise.
8867         * doc/posix-functions/fputs.texi: Likewise.
8868         * doc/posix-functions/fwrite.texi: Likewise.
8869         * doc/posix-functions/printf.texi: Likewise.
8870         * doc/posix-functions/putc.texi: Likewise.
8871         * doc/posix-functions/putchar.texi: Likewise.
8872         * doc/posix-functions/puts.texi: Likewise.
8873         * doc/posix-functions/vfprintf.texi: Likewise.
8874         * doc/posix-functions/vprintf.texi: Likewise.
8875         * doc/posix-functions/write.texi: Likewise.
8876
8877 2011-04-10  Jim Meyering  <meyering@redhat.com>
8878
8879         maint.mk: prohibit doubled words
8880         Detect them also when they're separated by a newline.
8881         There are 3 ways to customize it:
8882           - disable the test on a per file basis, as usual with rules using
8883             $(VC_LIST_EXCEPT)
8884           - replace the default doubled-word-selecting regexp (affects all files)
8885           - ignore a particular file-vs-doubled-word match
8886         I nearly used that last one to ignore the "is is" match in
8887         coreutils' NEWS file, since the text was "ls -is is ..."
8888         To do that, I would have added this line to cfg.mk:
8889           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
8890         but it would have ignored any "is is" match in NEWS.
8891         Low probability, but still...
8892         Instead, I changed the text, slightly:
8893           -  ls -is is now consistent with ls -lis in ignoring values returned
8894           +  "ls -is" is now consistent with ls -lis in ignoring values returned
8895         * top/maint.mk (prohibit_double_word_RE_): Provide default.
8896         (prohibit_doubled_word_): Define.
8897         (sc_prohibit_doubled_word): New rule.
8898         (sc_prohibit_the_the): Remove.  Subsumed by the above.
8899
8900 2011-04-10  Jim Meyering  <meyering@redhat.com>
8901
8902         maint: fix doubled-word typo in comment
8903         * m4/gethostname.m4: s/is is/it is/
8904         * m4/getdomainname.m4: Likewise.
8905
8906 2011-04-10  Jim Meyering  <meyering@redhat.com>
8907
8908         maint: remove doubled word: s/it it/it/
8909         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
8910
8911 2011-04-10  Jim Meyering  <meyering@redhat.com>
8912
8913         maint.mk: remove useless semicolon and backslash
8914         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
8915         semicolon and backslash.
8916
8917 2011-04-10  Bruno Haible  <bruno@clisp.org>
8918
8919         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
8920         * modules/stdint-tests (Depends-on): Add wchar.
8921
8922 2011-04-10  Jim Meyering  <meyering@redhat.com>
8923
8924         maint: remove doubled words in comments, e.g., s/a a/a/
8925         * lib/strptime.c (day_of_the_week): s/the the/the/
8926         * tests/test-chown.h (test_chown): s/a a/a/
8927
8928         test-chown.h: correct a cast
8929         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
8930         when the destination is a stat.st_gid.
8931
8932 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
8933
8934         getaddrinfo: Fix test for sa_len member.
8935         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
8936         include <sys/types.h> before <sys/socket.h>.
8937
8938 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8939
8940         maint: change "can not" to "cannot"
8941         * doc/posix-functions/iconv.texi (iconv): This one crossed line
8942         boundaries.
8943
8944 2011-04-09  Jim Meyering  <meyering@redhat.com>
8945
8946         maint: change "a a" to "a"
8947         * tests/test-lchown.h (test_lchown): s/a a/a/
8948
8949         maint.mk: prohibit \<the the\>
8950         * top/maint.mk (sc_prohibit_the_the): New rule.
8951
8952         maint: fix "the the" in comment
8953         * lib/count-one-bits.h: s/the the/the/
8954
8955         maint: change "can not" to "cannot"
8956         But do not change the occurrences in maintain.texi or in
8957         build-aux/po/Makefile.in.in, which I presume comes from gettext.
8958         * doc/gnulib-tool.texi: s/can not/cannot/
8959         * doc/posix-functions/accept.texi (accept): Likewise.
8960         * doc/posix-functions/socket.texi (socket): Likewise.
8961         * lib/mbrtowc.c: Likewise.
8962
8963         maint.mk: prohibit use of "can not"
8964         * top/maint.mk (sc_prohibit_can_not): New rule.
8965         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
8966
8967 2011-04-09  Bruno Haible  <bruno@clisp.org>
8968
8969         careadlinkat: Guard against misuse of careadlinkatcwd.
8970         * lib/careadlinkat.c: Include <stdlib.h>.
8971         (careadlinkatcwd): Check that the fd argument is as expected.
8972
8973 2011-04-09  Bruno Haible  <bruno@clisp.org>
8974
8975         careadlinkat: Use common coding style.
8976         * lib/careadlinkat.c: Move gnulib includes after system includes.
8977
8978 2011-04-09  Bruno Haible  <bruno@clisp.org>
8979
8980         careadlinkat: Clarify specification.
8981         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
8982         (careadlinkatcwd): Add comment.
8983         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
8984
8985 2011-04-09  Bruno Haible  <bruno@clisp.org>
8986
8987         areadlinkat: Avoid link error on many platforms.
8988         * modules/areadlinkat (Depends-on): Add areadlink.
8989
8990 2011-04-09  Bruno Haible  <bruno@clisp.org>
8991
8992         allocator, careadlinkat: Fix double-inclusion guard.
8993         * lib/allocator.h: Fix double-inclusion guard.
8994         * lib/careadlinkat.h: Likewise.
8995
8996 2011-04-09  Bruno Haible  <bruno@clisp.org>
8997
8998         relocatable-prog-wrapper: Update after module 'areadlink' changed.
8999         * lib/relocwrapper.c: Update dependencies hierarchy.
9000         * build-aux/install-reloc: Update list of files to be compiled.
9001         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
9002         lib/allocator.[hc].
9003
9004 2011-04-08  Eric Blake  <eblake@redhat.com>
9005
9006         strftime: silence gnulib-tool warning
9007         * modules/strftime-tests (Depends-on): Drop automatic dependency.
9008
9009 2011-04-08  Bruno Haible  <bruno@clisp.org>
9010
9011         verify: Fix syntax error with GCC 4.6 in C++ mode.
9012         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
9013         (HAVE_STATIC_ASSERT): New macro.
9014         (verify_true, verify): Use 'static_assert' if it is supported and
9015         '_Static_assert' is not supported.
9016
9017 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
9018
9019         allocator: New module.
9020         * modules/allocator, lib/allocator.c: New files.
9021         * lib/allocator.h (stdlib_allocator): New decl.
9022         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
9023         Remove.  Do not include <stdlib.h>.
9024         (careadlinkat): Use stdlib_allocator instead of rolling our own.
9025         * modules/careadlinkat (Files): Remove lib/allocator.h.
9026         (Depends-on): Add allocator.
9027
9028         stdlib: let modules use system malloc, realloc
9029         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
9030         if !_GL_USE_STDLIB_ALLOC.
9031         (malloc, realloc): Limit this change to a smaller scope.
9032
9033         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
9034         (malloc, realloc): Don't #undef; no longer needed.
9035         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9036         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9037         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
9038         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9039         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9040         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9041         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9042         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
9043
9044         careadlinkat: rename members to avoid problem
9045         * lib/allocator.h (struct allocator): Rename members from
9046         malloc/realloc to allocate/reallocate, to avoid problems if malloc
9047         and realloc are #define'd.  Reported by Eric Blake in
9048         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
9049         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
9050
9051 2011-04-08  Eric Blake  <eblake@redhat.com>
9052
9053         nonblocking: reduce dependency
9054         * tests/test-nonblocking.c: Only test sockets when in use.
9055         * modules/nonblocking-tests (Depends-on): Drop socket.
9056         (Makefile.am): Link even if sockets are not present.
9057         * modules/pipe2-tests (Makefile.am): Likewise.
9058         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
9059
9060         pipe2: fix O_NONBLOCK support on mingw
9061         * modules/pipe2 (Depends-on): Add nonblocking.
9062         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
9063         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
9064         * tests/test-nonblocking.c (main): Likewise.
9065         * modules/pipe2-tests (Makefile.am): Avoid link failure.
9066
9067         fcntl-h: fix O_ACCMODE on cygwin
9068         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
9069         * lib/fcntl.in.h (O_ACCMODE): Fix it.
9070
9071         pipe-filter: drop O_NONBLOCK workarounds
9072         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
9073         * modules/pipe-filter-ii (Depends-on): Likewise.
9074         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
9075
9076         nonblocking: provide O_NONBLOCK for mingw
9077         * modules/nonblocking (Depends-on): Add open.
9078         (configure.ac): Set new witness macro.
9079         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
9080         * modules/fcntl-h (Makefile.am): Substitute it.
9081         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
9082         nonblocking module is in use.
9083         * lib/nonblocking.c: Adjust portability test.
9084         * lib/open.c (open): Don't let native open see gnulib flag.
9085         * tests/test-fcntl-h.c (main): Enhance test.
9086         * tests/test-open.h (test_open): Likewise.
9087         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
9088
9089         careadlinkat: fix compilation error on mingw
9090         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
9091         within struct allocator.
9092
9093 2011-04-06  Eric Blake  <eblake@redhat.com>
9094
9095         binary-io: relicense under LGPLv2+
9096         * modules/binary-io (License): Relax to LGPLv2+.
9097         Requested for libvirt, and required by pipe2.
9098
9099 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
9100
9101         verify: use _Static_assert if available
9102         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
9103         (verify_true, verify): Use it if available.  This generates better
9104         diagnostics with GCC 4.6.0 and later.
9105
9106 2011-04-05  Bruno Haible  <bruno@clisp.org>
9107
9108         Remove leftover generated .h files after config.status changed.
9109
9110         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
9111         GL_GENERATE_ALLOCA_H.
9112         * modules/alloca-opt (Makefile.am): Remove alloca.h if
9113         GL_GENERATE_ALLOCA_H evaluates to false.
9114
9115         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
9116         GL_GENERATE_ARGZ_H.
9117         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
9118         evaluates to false.
9119
9120         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
9121         GL_GENERATE_BYTESWAP_H.
9122         * modules/byteswap (Makefile.am): Remove byteswap.h if
9123         GL_GENERATE_BYTESWAP_H evaluates to false.
9124
9125         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
9126         GL_GENERATE_ERRNO_H.
9127         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
9128         evaluates to false.
9129
9130         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
9131         GL_GENERATE_FLOAT_H.
9132         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
9133         evaluates to false.
9134
9135         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
9136         GL_GENERATE_FNMATCH_H.
9137         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
9138         GL_GENERATE_FNMATCH_H evaluates to false.
9139
9140         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
9141         GL_GENERATE_GLOB_H.
9142         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
9143         evaluates to false.
9144
9145         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
9146         automake conditional GL_GENERATE_ICONV_H.
9147         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
9148         evaluates to false.
9149
9150         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
9151         GL_GENERATE_NETINET_IN_H.
9152         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
9153         GL_GENERATE_NETINET_IN_H evaluates to false.
9154
9155         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
9156         conditional GL_GENERATE_PTHREAD_H.
9157         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
9158         * modules/pthread (Makefile.am): Remove pthread.h if
9159         GL_GENERATE_PTHREAD_H evaluates to false.
9160
9161         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
9162         GL_GENERATE_SCHED_H.
9163         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
9164         evaluates to false.
9165
9166         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
9167         conditional GL_GENERATE_SELINUX_CONTEXT_H.
9168         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
9169         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
9170
9171         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
9172         GL_GENERATE_STDARG_H.
9173         * modules/stdarg (Makefile.am): Remove stdarg.h if
9174         GL_GENERATE_STDARG_H evaluates to false.
9175
9176         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
9177         GL_GENERATE_STDBOOL_H.
9178         * modules/stdbool (Makefile.am): Remove stdbool.h if
9179         GL_GENERATE_STDBOOL_H evaluates to false.
9180
9181         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
9182         conditional GL_GENERATE_STDDEF_H.
9183         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
9184         * modules/stddef (Makefile.am): Remove stddef.h if
9185         GL_GENERATE_STDDEF_H evaluates to false.
9186
9187         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
9188         GL_GENERATE_STDINT_H.
9189         * modules/stdint (Makefile.am): Remove stdint.h if
9190         GL_GENERATE_STDINT_H evaluates to false.
9191
9192         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
9193         GL_GENERATE_SYSEXITS_H.
9194         * modules/sysexits (Makefile.am): Remove sysexits.h if
9195         GL_GENERATE_SYSEXITS_H evaluates to false.
9196
9197         Reported by Karl Berry and Ralf Wildenhues.
9198
9199 2011-04-05  Bruno Haible  <bruno@clisp.org>
9200
9201         Ensure to rebuild generated .h files when config.status has changed.
9202         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
9203         config.status.
9204         * modules/ctype (Makefile.am): Likewise.
9205         * modules/dirent (Makefile.am): Likewise.
9206         * modules/errno (Makefile.am): Likewise.
9207         * modules/fcntl-h (Makefile.am): Likewise.
9208         * modules/float (Makefile.am): Likewise.
9209         * modules/getopt-posix (Makefile.am): Likewise.
9210         * modules/glob (Makefile.am): Likewise.
9211         * modules/iconv-h (Makefile.am): Likewise.
9212         * modules/inttypes (Makefile.am): Likewise.
9213         * modules/langinfo (Makefile.am): Likewise.
9214         * modules/locale (Makefile.am): Likewise.
9215         * modules/math (Makefile.am): Likewise.
9216         * modules/netdb (Makefile.am): Likewise.
9217         * modules/netinet_in (Makefile.am): Likewise.
9218         * modules/poll-h (Makefile.am): Likewise.
9219         * modules/pthread (Makefile.am): Likewise.
9220         * modules/pty (Makefile.am): Likewise.
9221         * modules/sched (Makefile.am): Likewise.
9222         * modules/search (Makefile.am): Likewise.
9223         * modules/selinux-h (Makefile.am): Likewise.
9224         * modules/signal (Makefile.am): Likewise.
9225         * modules/spawn (Makefile.am): Likewise.
9226         * modules/stdarg (Makefile.am): Likewise.
9227         * modules/stdbool (Makefile.am): Likewise.
9228         * modules/stddef (Makefile.am): Likewise.
9229         * modules/stdint (Makefile.am): Likewise.
9230         * modules/stdio (Makefile.am): Likewise.
9231         * modules/stdlib (Makefile.am): Likewise.
9232         * modules/string (Makefile.am): Likewise.
9233         * modules/strings (Makefile.am): Likewise.
9234         * modules/sys_file (Makefile.am): Likewise.
9235         * modules/sys_ioctl (Makefile.am): Likewise.
9236         * modules/sys_select (Makefile.am): Likewise.
9237         * modules/sys_socket (Makefile.am): Likewise.
9238         * modules/sys_stat (Makefile.am): Likewise.
9239         * modules/sys_time (Makefile.am): Likewise.
9240         * modules/sys_times (Makefile.am): Likewise.
9241         * modules/sys_utsname (Makefile.am): Likewise.
9242         * modules/sys_wait (Makefile.am): Likewise.
9243         * modules/sysexits (Makefile.am): Likewise.
9244         * modules/termios (Makefile.am): Likewise.
9245         * modules/time (Makefile.am): Likewise.
9246         * modules/unistd (Makefile.am): Likewise.
9247         * modules/wchar (Makefile.am): Likewise.
9248         * modules/wctype-h (Makefile.am): Likewise.
9249         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
9250
9251 2011-04-05  Bruno Haible  <bruno@clisp.org>
9252
9253         pipe2: Relicense under LGPLv2+.
9254         * modules/pipe2 (License): Change to LGPLv2+.
9255         Requested by Eric Blake, for libvirt.
9256
9257 2011-04-05  Bruce Korb  <bkorb@gnu.org>
9258
9259         bootstrap: compute gnulib_extra_files after updating build_aux
9260         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
9261         change build_aux or also supply gnulib_extra_files.  Handle correctly.
9262
9263 2011-04-05  Eric Blake  <eblake@redhat.com>
9264
9265         bootstrap: preserve git whitelist item sorting
9266         * build-aux/bootstrap (sort_patterns): New function.
9267         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
9268
9269 2011-04-05  Simon Josefsson  <simon@josefsson.org>
9270
9271         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
9272         sc_space_tab check.
9273
9274 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
9275
9276         areadlink, areadlinkat: rewrite in terms of careadlinkat
9277         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
9278         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
9279         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
9280         (malloc, realloc): Remove #undefs.
9281         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
9282         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
9283         readlink, ssize_t, stdint, unistd.
9284         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
9285         areadlink, stdint.
9286
9287         careadlinkat: new module
9288         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
9289         * modules/careadlinkat: New files, written by me with
9290         a review and feedback from Ben Pfaff in
9291         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
9292
9293 2011-04-01  Bruno Haible  <bruno@clisp.org>
9294
9295         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
9296         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
9297         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
9298         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
9299         Reported by Bruce Korb <bruce.korb@gmail.com>.
9300
9301 2011-04-01  Bruno Haible  <bruno@clisp.org>
9302
9303         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
9304         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
9305         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
9306         * modules/wcpcpy (Depends-on): Add extensions.
9307         * modules/wcpncpy (Depends-on): Likewise.
9308         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
9309         systems.
9310         * doc/posix-functions/wcpncpy.texi: Likewise.
9311         * doc/posix-functions/wcwidth.texi: Likewise.
9312
9313 2011-03-31  Eric Blake  <eblake@redhat.com>
9314
9315         nonblocking: fix mingw test failures
9316         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
9317         non-blocking flag on regular file.
9318         (get_nonblocking_flag): Set errno on invalid fd.
9319         * tests/test-nonblocking.c (main): Avoid test failure on
9320         directories if fchdir is not active.
9321         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
9322
9323 2011-03-31  Bruno Haible  <bruno@clisp.org>
9324
9325         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
9326         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
9327         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
9328         Reported by Simon Josefsson <simon@josefsson.org>.
9329
9330 2011-03-31  Bruno Haible  <bruno@clisp.org>
9331         and Eric Blake  <eblake@redhat.com>
9332
9333         nonblocking: new module
9334         * modules/nonblocking: New module.
9335         * modules/nonblocking-tests: Likewise.
9336         * lib/nonblocking.h: New file.
9337         * lib/nonblocking.c: Likewise.
9338         * tests/test-nonblocking.c: New test.
9339         * lib/ioctl.c (ioctl) [mingw]: Update comment.
9340
9341 2011-03-30  Bruno Haible  <bruno@clisp.org>
9342
9343         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
9344         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
9345         instead of 'printf' format for GCC >= 4.4.
9346         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
9347         (fprintf, printf, vfprintf, vprintf): Declare with
9348         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
9349         the system's vfprintf() function.
9350         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
9351
9352 2011-03-30  Eric Blake  <eblake@redhat.com>
9353
9354         passfd: fix scoping bug
9355         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
9356         before sendmsg/recvmsg.
9357
9358         passfd: standardize coding conventions
9359         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
9360         can be learned at compile time.
9361         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
9362         ifdefs.
9363         (sendfd, recvfd): Follow gnulib code conventions.
9364
9365         passfd: fix incorrect sendmsg arguments
9366         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
9367         incorrect msg_controllen value.
9368         * modules/passfd-tests (Depends-on): Check for alarm.
9369         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
9370         Reported by Bastien ROUCARIES.
9371
9372 2011-03-30  Bruno Haible  <bruno@clisp.org>
9373
9374         c-strcasestr: Relicense under LGPLv2+.
9375         * modules/c-strcasestr (License): Change to LGPLv2+.
9376         Requested by Eric Blake, for libvirt.
9377
9378 2011-03-30  Simon Josefsson  <simon@josefsson.org>
9379
9380         * users.txt: Add libidn2.  Fix libtasn1 link.
9381
9382 2011-03-30  Jim Meyering  <meyering@redhat.com>
9383
9384         tests: readlink* ("",... fails with EINVAL on newer kernels
9385         readlink and readlinkat have typically failed with ENOENT for
9386         the invalid, empty file name,  "".  However, with the advent
9387         of linux-2.6.39, they fail with EINVAL.
9388         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
9389         when operating on the empty file name.
9390         * tests/test-readlink.h (test_readlink): Likewise.
9391
9392 2011-03-29  Bruno Haible  <bruno@clisp.org>
9393
9394         Relicense some modules under LGPLv2+, for libidn2.
9395         * modules/array-mergesort (License): Change to LGPLv2+.
9396         * modules/c-strcaseeq (License): Likewise.
9397         * modules/striconveh (License): Likewise.
9398         * modules/striconveha (License): Likewise.
9399         * modules/uniconv/base (License): Likewise.
9400         * modules/uniconv/u8-conv-from-enc (License): Likewise.
9401         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
9402         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
9403         * modules/unictype/base (License): Likewise.
9404         * modules/unictype/bidiclass-of (License): Likewise.
9405         * modules/unictype/category-M (License): Likewise.
9406         * modules/unictype/category-none (License): Likewise.
9407         * modules/unictype/category-of (License): Likewise.
9408         * modules/unictype/category-test (License): Likewise.
9409         * modules/unictype/category-test-withtable (License): Likewise.
9410         * modules/unictype/combining-class (License): Likewise.
9411         * modules/unictype/joiningtype-of (License): Likewise.
9412         * modules/unictype/scripts (License): Likewise.
9413         * modules/uninorm/base (License): Likewise.
9414         * modules/uninorm/canonical-decomposition (License): Likewise.
9415         * modules/uninorm/composition (License): Likewise.
9416         * modules/uninorm/decompose-internal (License): Likewise.
9417         * modules/uninorm/decomposition-table (License): Likewise.
9418         * modules/uninorm/nfc (License): Likewise.
9419         * modules/uninorm/nfd (License): Likewise.
9420         * modules/uninorm/u32-normalize (License): Likewise.
9421         * modules/unistr/base (License): Likewise.
9422         * modules/unistr/u32-cpy (License): Likewise.
9423         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
9424         * modules/unistr/u32-to-u8 (License): Likewise.
9425         * modules/unistr/u32-uctomb (License): Likewise.
9426         * modules/unistr/u8-check (License): Likewise.
9427         * modules/unistr/u8-mblen (License): Likewise.
9428         * modules/unistr/u8-mbtouc (License): Likewise.
9429         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
9430         * modules/unistr/u8-mbtoucr (License): Likewise.
9431         * modules/unistr/u8-prev (License): Likewise.
9432         * modules/unistr/u8-strlen (License): Likewise.
9433         * modules/unistr/u8-to-u32 (License): Likewise.
9434         * modules/unistr/u8-uctomb (License): Likewise.
9435         * modules/unitypes (License): Likewise.
9436         Requested by Simon Josefsson.
9437
9438 2011-03-29  Simon Josefsson  <simon@josefsson.org>
9439
9440         lib-symbol-visibility: Add a notice.
9441         * modules/lib-symbol-visibility (Notice): New field.
9442
9443 2011-03-29  Bruno Haible  <bruno@clisp.org>
9444
9445         getaddrinfo: Doc fix.
9446         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
9447         section "fixed in Gnulib".
9448
9449 2011-03-28  Simon Josefsson  <simon@josefsson.org>
9450
9451         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
9452         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
9453
9454 2011-03-26  Bruno Haible  <bruno@clisp.org>
9455
9456         unictype/property-byname: Reduce the number of load-time relocations.
9457         * lib/unictype/pr_byname.c: Include <stdlib.h>.
9458         (UC_PROPERTY_INDEX_*): New enumeration values.
9459         (uc_property_byname): Convert an index from the lookup table to an
9460         uc_property_t.
9461         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
9462         values.
9463
9464 2011-03-26  Bruno Haible  <bruno@clisp.org>
9465
9466         unictype/property-byname: Allow omitted word separators and aliases.
9467         * lib/unictype/pr_byname.gperf: Add property names without word
9468         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
9469         for 'space'.
9470
9471 2011-03-26  Bruno Haible  <bruno@clisp.org>
9472
9473         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
9474         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
9475         also hyphens to space.
9476         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
9477         without spaces.
9478         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
9479
9480 2011-03-26  Bruno Haible  <bruno@clisp.org>
9481
9482         unictype/joiningtype-byname: Recognize long names as well.
9483         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
9484         a long name.
9485         * lib/unictype/joiningtype_byname.c: Include <string.h>,
9486         unictype/joiningtype_byname.h.
9487         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
9488         * lib/unictype/joiningtype_byname.gperf: New file.
9489         * modules/unictype/joiningtype-byname (Files): Add
9490         lib/unictype/joiningtype_byname.gperf.
9491         (Depends-on): Add gperf.
9492         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
9493         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
9494         long names.
9495
9496         Tests for module 'unictype/joiningtype-longname'.
9497         * modules/unictype/joiningtype-longname-tests: New file.
9498         * tests/unictype/test-joiningtype_longname.c: New file.
9499
9500         New module 'unictype/joiningtype-longname'.
9501         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
9502         * lib/unictype/joiningtype_longname.c: New file.
9503         * modules/unictype/joiningtype-longname: New file.
9504         * modules/unictype/joiningtype-all (Depends-on): Add
9505         unictype/joiningtype-longname.
9506
9507 2011-03-26  Bruno Haible  <bruno@clisp.org>
9508
9509         unictype/bidiclass-byname: Recognize long names as well.
9510         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
9511         name.
9512         * lib/unictype/bidi_byname.c: Include <string.h>,
9513         unictype/bidi_byname.h.
9514         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
9515         * lib/unictype/bidi_byname.gperf: New file.
9516         * modules/unictype/bidiclass-byname (Files): Add
9517         lib/unictype/bidi_byname.gperf.
9518         (Depends-on): Add gperf.
9519         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
9520         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
9521         long names.
9522
9523         Tests for module 'unictype/bidiclass-longname'.
9524         * modules/unictype/bidiclass-longname-tests: New file.
9525         * tests/unictype/test-bidi_longname.c: New file.
9526
9527         New module 'unictype/bidiclass-longname'.
9528         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
9529         * lib/unictype/bidi_longname.c: New file.
9530         * modules/unictype/bidiclass-longname: New file.
9531         * modules/unictype/bidiclass-all (Depends-on): Add
9532         unictype/bidiclass-longname.
9533
9534 2011-03-26  Bruno Haible  <bruno@clisp.org>
9535
9536         unictype/bidi*: Rename modules.
9537         * modules/unictype/bidiclass-all: Renamed from
9538         modules/unictype/bidicategory-all.
9539         * modules/unictype/bidiclass-name: Renamed from
9540         modules/unictype/bidiclass-name.
9541         (Description): Update.
9542         * modules/unictype/bidiclass-name-tests: Renamed from
9543         modules/unictype/bidicategory-name-tests.
9544         * modules/unictype/bidiclass-byname: Renamed from
9545         modules/unictype/bidicategory-byname.
9546         (Description): Update.
9547         * modules/unictype/bidiclass-byname-tests: Renamed from
9548         modules/unictype/bidicategory-byname-tests.
9549         * modules/unictype/bidiclass-of: Renamed from
9550         modules/unictype/bidicategory-of.
9551         (Description): Update.
9552         * modules/unictype/bidiclass-of-tests: Renamed from
9553         modules/unictype/bidicategory-of-tests.
9554         * modules/unictype/bidiclass-test: Renamed from
9555         modules/unictype/bidicategory-test.
9556         (Description): Update.
9557         * modules/unictype/bidiclass-test-tests: Renamed from
9558         modules/unictype/bidicategory-test-tests.
9559         * modules/unictype/bidicategory-all: New file, a simple redirection.
9560         * modules/unictype/bidicategory-name: Likewise.
9561         * modules/unictype/bidicategory-byname: Likewise.
9562         * modules/unictype/bidicategory-of: Likewise.
9563         * modules/unictype/bidicategory-test: Likewise.
9564         * modules/unictype/property-bidi-* (Dependencies): Update.
9565         * lib/unictype/bidi_*.c: Update comment.
9566
9567 2011-03-26  Bruno Haible  <bruno@clisp.org>
9568
9569         unictype/bidi*: Rename functions, part 2.
9570         * modules/unictype/bidicategory-name (configure.ac): Update required
9571         libunistring version.
9572         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
9573
9574 2011-03-25  Bruno Haible  <bruno@clisp.org>
9575
9576         New module 'unictype/combining-class-all'.
9577         * modules/unictype/combining-class-all: New file.
9578
9579         Tests for module 'unictype/combining-class-byname'.
9580         * modules/unictype/combining-class-byname-tests: New file.
9581         * tests/unictype/test-combiningclass_byname.c: New file.
9582
9583         New module 'unictype/combining-class-byname'.
9584         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
9585         * lib/unictype/combiningclass_byname.c: New file.
9586         * lib/unictype/combiningclass_byname.gperf: New file.
9587         * modules/unictype/combining-class-byname: New file.
9588
9589         Tests for module 'unictype/combining-class-longname'.
9590         * modules/unictype/combining-class-longname-tests: New file.
9591         * tests/unictype/test-combiningclass_longname.c: New file.
9592
9593         New module 'unictype/combining-class-longname'.
9594         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
9595         * lib/unictype/combiningclass_longname.c: New file.
9596         * modules/unictype/combining-class-longname: New file.
9597
9598         Tests for module 'unictype/combining-class-name'.
9599         * modules/unictype/combining-class-name-tests: New file.
9600         * tests/unictype/test-combiningclass_name.c: New file.
9601
9602         New module 'unictype/combining-class-name'.
9603         * lib/unictype.in.h (uc_combining_class_name): New declaration.
9604         * lib/unictype/combiningclass_name.c: New file.
9605         * modules/unictype/combining-class-name: New file.
9606
9607 2011-03-25  Bruno Haible  <bruno@clisp.org>
9608
9609         unictype/combining-class: Rename source files.
9610         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
9611         of unictype/combining.h.
9612         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
9613         Update.
9614         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
9615         * modules/unictype/combining-class (Description): Fix.
9616         (Files, Makefile.am): Update.
9617         * tests/unictype/test-combiningclass.c: Renamed from
9618         tests/unictype/test-combining.c.
9619         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
9620
9621 2011-03-25  Bruno Haible  <bruno@clisp.org>
9622
9623         unictype: Update list of canonical combining classes.
9624         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
9625
9626 2011-03-25  Bruno Haible  <bruno@clisp.org>
9627
9628         unictype/category-byname: Recognize long names as well.
9629         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
9630         a long name.
9631         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
9632         unictype/categ_byname.h.
9633         (UC_CATEGORY_INDEX_*): New enumeration values.
9634         (uc_general_category_byname): Use uc_general_category_lookup and
9635         convert from index to value.
9636         * lib/unictype/categ_byname.gperf: New file.
9637         * modules/unictype/category-byname (Files): Add
9638         lib/unictype/categ_byname.gperf.
9639         (Depends-on): Add gperf.
9640         (Makefile.am): Add rule for generating unictype/categ_byname.h.
9641         * tests/unictype/test-categ_byname.c (main): Test the recognition of
9642         long names.
9643
9644         Tests for module 'unictype/category-longname'.
9645         * modules/unictype/category-longname-tests: New file.
9646         * tests/unictype/test-categ_longname.c: New file.
9647
9648         New module 'unictype/category-longname'.
9649         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
9650         * lib/unictype/categ_longname.c: New file.
9651         * modules/unictype/category-longname: New file.
9652         * modules/unictype/category-all (Depends-on): Add it.
9653
9654 2011-03-25  Bruno Haible  <bruno@clisp.org>
9655
9656         Tests for module 'unictype/category-LC'.
9657         * modules/unictype/category-LC-tests: New file.
9658         * tests/unictype/test-categ_LC.c: New file, automatically generated.
9659
9660         New module 'unictype/category-LC'.
9661         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
9662         (UC_CATEGORY_LC): New declaration.
9663         (UC_CASED_LETTER): New macro.
9664         * lib/gen-uni-tables.c (is_category_LC): New function.
9665         (output_categories): Also handle category LC.
9666         (UC_CATEGORY_MASK_LC): New enumeration value.
9667         (general_category_byname): Also handle category LC.
9668         * lib/unictype/categ_LC.c: New file.
9669         * lib/unictype/categ_LC.h: New file, automatically generated.
9670         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
9671         category LC.
9672         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
9673         * modules/unictype/category-LC: New file.
9674         * modules/unictype/category-byname (Depends-on): Add
9675         unictype/category-LC.
9676         * modules/unictype/category-all (Depends-on): Likewise.
9677
9678 2011-03-25  Eric Blake  <eblake@redhat.com>
9679
9680         xmalloc: revert yesterday's regression
9681         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
9682         realloc's underlying behavior (allowing allocation of zero-size
9683         objects, especially if malloc-gnu is also in use).
9684
9685 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
9686
9687         maint.mk: add missing version to VC-tag
9688         * top/maint.mk: git tag was missing actual tag name; add it.
9689
9690         valgrind: do leak checking, and exit with code 1 on error (not 0)
9691         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
9692         to VALGRIND.
9693
9694 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
9695
9696         posix-modules: say what it does.
9697         * posix-modules: Add a line to the --help output saying what it does.
9698
9699 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
9700
9701         xmalloc: Do not leak if underlying realloc is C99 compatible.
9702         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
9703         This avoids a leak on C99-based systems.  See
9704         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
9705
9706 2011-03-24  Eric Blake  <eblake@redhat.com>
9707
9708         realloc: document portability problem
9709         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
9710         passing 0 size to realloc.
9711
9712 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
9713
9714         doc: update users.txt
9715         * users.txt: Add cvsps, tmpwatch
9716
9717 2011-03-23  Matt Rice  <ratmice@gmail.com>
9718
9719         doc: update users.txt
9720         * users.txt: Add gdb.
9721
9722 2011-03-23  Jim Meyering  <meyering@redhat.com>
9723
9724         doc: update users.txt
9725         Looking through matches up to the following URL (there are still
9726         several more pages), I found several projects that use gnulib:
9727         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
9728         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
9729         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
9730
9731 2011-03-22  Bruno Haible  <bruno@clisp.org>
9732
9733         unictype/bidi*: Rename functions.
9734         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
9735         uc_bidi_class, uc_is_bidi_class): New declarations.
9736         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
9737         uc_bidi_category_byname.
9738         (uc_bidi_category_byname): New function.
9739         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
9740         u_bidi_category_name.
9741         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
9742         (uc_bidi_category_name): New function.
9743         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
9744         uc_bidi_category.
9745         (uc_bidi_category): New function.
9746         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
9747         uc_is_bidi_category. Invoke uc_bidi_class.
9748         (uc_is_bidi_category): New function.
9749         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
9750         instead of uc_bidi_category_byname.
9751         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
9752         instead of uc_bidi_category_name.
9753         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
9754         uc_bidi_category.
9755         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
9756         instead of uc_is_bidi_category.
9757
9758 2011-03-21  Bruno Haible  <bruno@clisp.org>
9759
9760         New module 'unictype/joininggroup-all'.
9761         * modules/unictype/joininggroup-all: New file.
9762
9763         Tests for module 'unictype/joininggroup-of'.
9764         * modules/unictype/joininggroup-of-tests: New file.
9765         * tests/unictype/test-joininggroup_of.c: New file.
9766         * tests/unictype/test-joininggroup_of.h: New file, automatically
9767         generated by gen-uni-tables.
9768
9769         New module 'unictype/joininggroup-of'.
9770         * modules/unictype/joininggroup-of: New file.
9771         * lib/unictype/joininggroup_of.c: New file.
9772         * lib/unictype/joininggroup_of.h: New file, automatically generated by
9773         gen-uni-tables.
9774
9775         Tests for module 'unictype/joininggroup-byname'.
9776         * modules/unictype/joininggroup-byname-tests: New file.
9777         * tests/unictype/test-joininggroup_byname.c: New file.
9778
9779         New module 'unictype/joininggroup-byname'.
9780         * modules/unictype/joininggroup-byname: New file.
9781         * lib/unictype/joininggroup_byname.c: New file.
9782         * lib/unictype/joininggroup_byname.gperf: New file.
9783
9784         Tests for module 'unictype/joininggroup-name'.
9785         * modules/unictype/joininggroup-name-tests: New file.
9786         * tests/unictype/test-joininggroup_name.c: New file.
9787
9788         New module 'unictype/joininggroup-name'.
9789         * modules/unictype/joininggroup-name: New file.
9790         * lib/unictype/joininggroup_name.c: New file.
9791         * lib/unictype/joininggroup_name.h: New file.
9792
9793         New module 'unictype/joiningtype-all'.
9794         * modules/unictype/joiningtype-all: New file.
9795
9796         Tests for module 'unictype/joiningtype-of'.
9797         * modules/unictype/joiningtype-of-tests: New file.
9798         * tests/unictype/test-joiningtype_of.c: New file.
9799         * tests/unictype/test-joiningtype_of.h: New file, automatically
9800         generated by gen-uni-tables.
9801
9802         New module 'unictype/joiningtype-of'.
9803         * modules/unictype/joiningtype-of: New file.
9804         * lib/unictype/joiningtype_of.c: New file.
9805         * lib/unictype/joiningtype_of.h: New file, automatically generated by
9806         gen-uni-tables.
9807
9808         Tests for module 'unictype/joiningtype-byname'.
9809         * modules/unictype/joiningtype-byname-tests: New file.
9810         * tests/unictype/test-joiningtype_byname.c: New file.
9811
9812         New module 'unictype/joiningtype-byname'.
9813         * modules/unictype/joiningtype-byname: New file.
9814         * lib/unictype/joiningtype_byname.c: New file.
9815
9816         Tests for module 'unictype/joiningtype-name'.
9817         * modules/unictype/joiningtype-name-tests: New file.
9818         * tests/unictype/test-joiningtype_name.c: New file.
9819
9820         New module 'unictype/joiningtype-name'.
9821         * modules/unictype/joiningtype-name: New file.
9822         * lib/unictype/joiningtype_name.c: New file.
9823
9824         unictype: Add support for Arabic shaping properties.
9825         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
9826         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
9827         declarations.
9828         (UC_JOINING_GROUP_*): New enumeration values.
9829         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
9830         declarations.
9831         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
9832         (unicode_joining_type): New variable.
9833         (UC_JOINING_GROUP_*): New enumeration values.
9834         (unicode_joining_group): New variable.
9835         (fill_arabicshaping, joining_type_as_c_identifier,
9836         output_joining_type_test, output_joining_type,
9837         joining_group_as_c_identifier, output_joining_group_test,
9838         output_joining_group): New functions.
9839         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
9840         fill_arabicshaping and output_joining_type_test, output_joining_type,
9841         output_joining_group_test, output_joining_group.
9842         Reported by Simon Josefsson.
9843
9844 2011-03-21  Jim Meyering  <meyering@redhat.com>
9845
9846         strftime: fix a bug in yesterday's change
9847         * lib/strftime.c (add): Accommodate width's initial value of -1.
9848         Otherwise, nstrftime would copy uninitialized data into
9849         the result buffer.
9850
9851 2011-03-21  Jim Meyering  <meyering@redhat.com>
9852
9853         tests: add strftime-tests module
9854         * tests/test-strftime.c: New file.
9855         * modules/strftime-tests: New module.
9856
9857 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9858
9859         strftime: don't assume a byte count fits in 'int'
9860         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
9861         found this problem by static analysis, using gcc -Wstrict-overflow
9862         (GCC 4.5.2, x86-64).  This reported an optimization that depended
9863         on an integer overflow having undefined behavior, but it turns out
9864         that the argument is a size, which might not fit in 'int' anyway,
9865
9866 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9867
9868         stdio: don't require ignore_value around fwrite
9869
9870         This patch works around libc bug 11959
9871         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
9872         Without this patch, applications must often write
9873         ignore_value (fwrite (...)) even though the ignore_value is
9874         not helpful here.  It's common to write many objects, using
9875         fwrite/printf/etc., and then use ferror to detect output error.
9876
9877         I considered making this patch optional, but decided against it,
9878         because libc is obviously being inconsistent here: there is no
9879         reason libc should insist that user code must inspect fwrite
9880         return's value without also insisting that it inspect printf's,
9881         putchar's, etc.  If user code wants to have a strict style where
9882         all these functions' values are checked (so that ferror need not
9883         be checked), we could add support for that style in a new gnulib
9884         module, but in the meantime it's better to be consistent and to
9885         support common usage.
9886
9887         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
9888         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
9889         that we are compiling in checking mode, and if not C++, and
9890         if not already wrapping fwrite for some other reason.
9891         (fwrite): #define to rpl_fwrite if the latter is defined.
9892
9893 2011-03-20  Bruno Haible  <bruno@clisp.org>
9894
9895         verror: Fix compilation error introduced on 2011-02-13.
9896         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
9897         instead of __attribute__.
9898         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9899
9900 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9901             Bruno Haible  <bruno@clisp.org>
9902
9903         socklen: do not depend on sys_socket
9904         While trying to modify Emacs to use gnulib's socklen module,
9905         I discovered a circular dependency: socklen depends on sys_socket
9906         and vice versa.  Emacs can use socklen, but it does not need
9907         sys_socket because it has its own substitute for sys/socket.h.
9908         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
9909         gl_TYPE_SOCKLEN_T.
9910         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
9911         gl_PREREQ_SYS_H_SOCKET.
9912         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
9913         gl_PREREQ_SYS_H_SOCKET.
9914         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
9915         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
9916         * modules/socklen (Depends-on): Do not depend on sys_socket.
9917         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
9918
9919 2011-03-20  Jim Meyering  <meyering@redhat.com>
9920
9921         maint.mk: sort file names *after* new transformation
9922         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
9923         prefix would have led to an unwarranted failure in GNU parted.
9924         Sort after that transformation.
9925
9926 2011-03-19  Jim Meyering  <meyering@redhat.com>
9927
9928         maint.mk: fix po-file syntax-check rule
9929         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
9930         Patch by Bruno Haible.
9931
9932 2011-03-19  Bruno Haible  <bruno@clisp.org>
9933
9934         socklen: Update comment.
9935         * m4/socklen.m4: Update comment about platforms.
9936
9937 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9938             Bruno Haible  <bruno@clisp.org>
9939
9940         inet_ntop, inet_pton: Simplify.
9941         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
9942         documented to provide socklen_t and we already depend on sys_socket.
9943         * modules/inet_pton (Depends-on): Likewise.
9944         * lib/arpa_inet.in.h: Adjust comment.
9945
9946 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9947             Bruno Haible  <bruno@clisp.org>
9948
9949         netdb: Simplify.
9950         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
9951         documented to provide socklen_t and we already depend on sys_socket.
9952         * lib/netdb.in.h: Adjust comment.
9953
9954 2011-03-19  Bruno Haible  <bruno@clisp.org>
9955
9956         sys_socket, netdb: Document problem with socklen_t.
9957         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
9958         platforms.
9959         * doc/posix-headers/netdb.texi: Likewise.
9960
9961 2011-03-18  Eric Blake  <eblake@redhat.com>
9962
9963         maint.mk: let po check work in VPATH build
9964         * top/maint.mk (po_file): Allow cfg.mk override.
9965         (sc_po_check): Allow VPATH use.
9966         Reported by Jiri Denemark.
9967
9968 2011-03-16  Jim Meyering  <meyering@redhat.com>
9969
9970         maint.mk: allow fine-grained syntax-check exclusion via Make variables
9971         Before, you would have had to create one .x-sc_ file per rule in order
9972         to exempt offending files.  Now, you may instead use a Make variable --
9973         usually defined in cfg.mk -- whose name identifies the affected rule.
9974         * top/maint.mk (_sc_excl): Define.
9975         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
9976         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
9977
9978 2011-03-13  Bruno Haible  <bruno@clisp.org>
9979
9980         ignore-value tests: Avoid warnings.
9981         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
9982         empty for gcc < 3.4.
9983
9984 2011-03-13  Bruno Haible  <bruno@clisp.org>
9985
9986         passfd: Fix link error on Solaris.
9987         * modules/passfd (Description): Correct.
9988         (Depends-on): Add socketlib.
9989         (Link): New section.
9990         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
9991
9992 2011-03-13  Bruno Haible  <bruno@clisp.org>
9993
9994         passfd: Fix link error on AIX 5.2.
9995         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
9996
9997 2011-03-13  Bruno Haible  <bruno@clisp.org>
9998
9999         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
10000         * lib/sys_socket.in.h: Include <stddef.h>.
10001         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
10002         CMSG_FIRSTHDR. Remove unused variable.
10003
10004 2011-03-13  Bruno Haible  <bruno@clisp.org>
10005
10006         passfd: Fix compilation error on OpenBSD.
10007         * lib/passfd.c: Include <sys/uio.h>.
10008
10009 2011-03-13  Bruno Haible  <bruno@clisp.org>
10010
10011         passfd test: Fix warnings.
10012         * tests/test-passfd.c: Include <sys/wait.h>.
10013         (main): Fix typo.
10014
10015 2011-03-13  Bruno Haible  <bruno@clisp.org>
10016
10017         passfd module, part 4, tweaks.
10018         * tests/test-passfd.c: Reorder includes.
10019         (main): Fix perror and printf calls.
10020
10021 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10022
10023         passfd module, part 4.
10024         * modules/passfd-tests: New file.
10025         * tests/test-passfd.c: New file.
10026
10027 2011-03-13  Jim Meyering  <meyering@redhat.com>
10028
10029         Makefile: rely on GNU make; derive syntax-check rule names
10030         Rather than requiring that each sc_ rule be listed as a dependent
10031         of "check", use features of GNU make to derive the list.
10032         * Makefile (syntax-check-rules): Define.
10033         (check): Depend on the new variable, not the hard-coded list.
10034
10035 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
10036             Bruno Haible  <bruno@clisp.org>
10037
10038         passfd module, part 3.
10039         * lib/passfd.h (recvfd): Add a flags argument.
10040         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
10041         (recvfd): Add a flags argument.
10042         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
10043         exists.
10044         * modules/passfd (Depends-on): Add cloexec.
10045         Suggested by Eric Blake.
10046
10047 2011-03-13  Bruno Haible  <bruno@clisp.org>
10048
10049         passfd module, part 2, tweaks.
10050         * modules/passfd (Files): Reorder.
10051         (Depends-on): Remove errno.
10052         (Include): Remove <sys/socket.h>, <sys/un.h>.
10053         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
10054         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
10055         specification header. Include <sys/socket.h> always. Don't include
10056         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
10057         (sendfd): Clarify that it sets errno when it fails.
10058         (recvfd): Fix specification.
10059
10060 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10061
10062         passfd module, part 2.
10063         * modules/passfd: New file.
10064         * lib/passfd.h: New file.
10065         * lib/passfd.c: New file.
10066
10067 2011-03-12  Bruno Haible  <bruno@clisp.org>
10068
10069         wcswidth, mbswidth: Avoid integer overflow.
10070         * lib/wcswidth.c: Include <limits.h>.
10071         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
10072         * lib/mbswidth.c: Include <limits.h>.
10073         (mbsnwidth): Avoid 'int' overflow.
10074         Reported by Jim Meyering.
10075
10076 2011-03-12  Bruno Haible  <bruno@clisp.org>
10077
10078         futimens, utimensat: Avoid endless recursion on Solaris 10.
10079         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
10080         Solaris.
10081         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
10082         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
10083
10084 2011-03-11  Jim Meyering  <meyering@redhat.com>
10085
10086         maint.mk: relax a regexp to accommodate other formatting styles
10087         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
10088         between "ngettext" and the following "(".
10089
10090 2011-03-11  Pádraig Brady <P@draigBrady.com>
10091
10092         maint.mk: suppress a false positive warning
10093         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
10094         diagnostics are marked with ngettext.
10095
10096 2011-03-10  Eric Blake  <eblake@redhat.com>
10097
10098         wchar: add explicit dependencies, for Tru64
10099         * modules/mbmemcasecoll (Depends-on): Add wchar.
10100         * modules/mbtowc (Depends-on): Likewise.
10101         * modules/vasnprintf (Depends-on): Likewise.
10102         * modules/unistdio/u-printf-args (Depends-on): Likewise.
10103         * modules/wctomb (Depends-on): Likewise.
10104         Reported by Peter O'Gorman.
10105
10106 2011-03-08  Bruno Haible  <bruno@clisp.org>
10107
10108         passfd module, part 1, tweaks.
10109         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
10110         Improve indentation. Improve AC_MSG_CHECKING messages.
10111         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
10112         gl_SOCKET_FAMILIES.
10113
10114 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10115
10116         passfd module, part 1.
10117         * m4/afunix.m4: New file.
10118         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
10119         sockets.
10120
10121 2011-03-08  Bruno Haible  <bruno@clisp.org>
10122
10123         regex-quote: New API.
10124         * lib/regex-quote.h: Include <stdbool.h>.
10125         (struct regex_quote_spec): New type.
10126         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
10127         New declarations.
10128         (regex_quote_length, regex_quote_copy, regex_quote): Take a
10129         'const struct regex_quote_spec *' argument.
10130         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
10131         (pcre_special): New constant.
10132         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
10133         New functions.
10134         (regex_quote_length, regex_quote_copy, regex_quote): Take a
10135         'const struct regex_quote_spec *' argument.
10136         * modules/regex-quote (Depends-on): Add stdbool.
10137         * tests/test-regex-quote.c (check): Update for new API. Add test for
10138         anchored results.
10139         * NEWS: Mention the API change.
10140         Reported by Reuben Thomas and Eric Blake.
10141
10142 2011-03-06  Bruno Haible  <bruno@clisp.org>
10143
10144         regex-quote: Fix creation of POSIX extended regular expressions.
10145         * lib/regex-quote.c (ere_special): Add grouping and alternation
10146         operators.
10147
10148 2011-03-05  Bruno Haible  <bruno@clisp.org>
10149
10150         doc: Improve doc regarding autopoint vs. gnulib.
10151         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
10152         disable autopoint while running autoreconf.
10153         Suggested by Ralf Wildenhues.
10154
10155 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10156
10157         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
10158         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
10159
10160 2011-03-03  Bruce Korb  <bkorb@gnu.org>
10161
10162         parse-duration: remove xalloc.h dependency
10163         * lib/parse-duration.c (parse_period): handle NULL return from
10164         strdup instead of calling xstrdup().
10165         * modules/parse-duration: remove "xalloc" dependency
10166
10167 2011-03-03  Matthew Booth  <mbooth@redhat.com>
10168
10169         bootstrap: honor m4_base when running aclocal
10170         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
10171
10172 2011-03-02  Jim Meyering  <meyering@redhat.com>
10173
10174         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
10175         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
10176         on request from Matt Booth.
10177
10178 2011-03-01  Eric Blake  <eblake@redhat.com>
10179
10180         test-link: work on Hurd
10181         * tests/test-link.h (test_link): Hurd rejects linking directories
10182         with EISDIR instead of the POSIX-mandated EPERM.
10183
10184 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
10185
10186         stdio: simplify by moving files to printf-posix, sigpipe
10187         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
10188         since this symbol is needed only if printf is replaced.
10189         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
10190         Require gl_ASM_SYMBOL_PREFIX.
10191         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
10192         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
10193         (Depends-on): Add 'raise'.
10194         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
10195         * modules/stdio (Files): Remove lib/stdio-write.c,
10196         m4/asm-underscore.m4.
10197         (Depends-on): Remove 'raise'.
10198
10199         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
10200         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
10201         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
10202         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
10203
10204 2011-02-28  Bruno Haible  <bruno@clisp.org>
10205
10206         localcharset: Assume ANSI C behaviour of free().
10207         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
10208         calling free().
10209         Suggested by Simon Josefsson <simon@josefsson.org>.
10210
10211 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
10212             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
10213             Bruno Haible  <bruno@clisp.org>  (tiny change)
10214
10215         On Cygwin, use /proc file system instead of win32 API.
10216         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
10217         Win32 file names.
10218         (DllMain): Simplify by removing Cygwin specific code.
10219         (find_shared_library_fullname): Use Linux specific implementation also
10220         for Cygwin.
10221         (get_shared_library_fullname): Update accordingly.
10222         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
10223         Win32 file names.
10224         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
10225         Cygwin specific code.
10226
10227 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
10228             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
10229
10230         Fix OpenMP flag detection for various Fortran compilers.
10231         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
10232         OpenMP-conditional compilation construct, to force compile
10233         failure with missing OpenMP flag.
10234         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
10235
10236 2011-02-25  Eric Blake  <eblake@redhat.com>
10237
10238         strstr: expand test coverage
10239         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
10240         compilation.
10241         * tests/test-memmem.c (main): Duplicate tests.
10242         * tests/test-strcasestr.c (main): Likewise.
10243         * tests/test-c-strcasestr.c (main): Likewise.
10244
10245 2011-02-25  Jim Meyering  <meyering@redhat.com>
10246
10247         maint.mk: detect missing-NL-at-EOF, too
10248         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
10249         it also detects when a file lacks a newline at EOF.
10250         (require_exactly_one_NL_at_EOF_): Renamed from
10251         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
10252         since people may well have .x-sc_... file names tied to the
10253         existing name.  Suggested by Eric Blake.
10254
10255 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
10256
10257         dirname: move m4/dos.m4 functionality into lib/dosname.h
10258
10259         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
10260         extracts symbols from it, puts them into config.h; but it's much
10261         easier to use the symbols directly.  filename.h already does this,
10262         but it disagrees with dos.m4 in some respects.  This patch
10263         introduces a different include file dosname.h that packages up
10264         dos.m4, and then later we can work on merging filename.h and
10265         dosname.h.  Applications that need only the easy-to-configure
10266         symbols should consider including dosname.h rather than dirname.h.
10267         * NEWS: Mention incompatible changes.
10268         * m4/dos.m4: Remove.
10269         * lib/dosname.h, modules/dosname: New files.
10270         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
10271         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
10272         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
10273         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
10274         Include dosname.h, not dirname.h.
10275         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
10276         Include dosname.h, for definitions of symbols like ISSLASH
10277         that used to be in config.h.
10278         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
10279         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10280         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10281         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10282         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
10283         * modules/rmdir (Files): Likewise.
10284         * modules/stat (Files): Likewise.
10285         * modules/unlink (Files): Likewise.
10286         * modules/dirname-lgpl (Depends-on): Add dosname.
10287         * modules/lstat (Depends-on): Likewise.
10288         * modules/openat (Depends-on): Likewise.
10289         * modules/rmdir (Depends-on): Likewise.
10290         * modules/savewd (Depends-on): Likewise.
10291         * modules/stat (Depends-on): Likewise.
10292         * modules/unlink (Depends-on): Likewise.
10293         * modules/openat (Depends-on): Remove dirname-lgpl.
10294         * modules/savewd (Depends-on): Likewise.
10295         * tests/test-dirname.c: Do not use removed symbols like
10296         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
10297         the remaining symbols, e.g., ISSLASH ('\\').
10298
10299 2011-02-25  Eric Blake  <eblake@redhat.com>
10300
10301         strstr: revert patches that introduced bug and pessimization
10302         * lib/str-two-way.h: Add another reference.
10303         (two_way_short_needle, two_way_long_needle): Revert changes from
10304         2011-02-24; they pessimize search speed.
10305         (critical_factorization): Partially revert changes from
10306         2010-06-22; they violate the requirement that the left half of the
10307         needle be smaller than the period of the needle.
10308
10309 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
10310
10311         filenamecat: remove unnecessary dependency on dirname-lgpl
10312         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
10313         is no direct dependency, just an indirect one via filenamecat-lgpl.
10314
10315         remove: remove unnecessary use of m4/dos.m4
10316         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
10317         * modules/remove (FILES): Remove m4/dos.m4.
10318
10319         * lib/openat-proc.c: Don't include dirname.h; not needed.
10320
10321         backupfile: remove unnecessary use of m4/dos.m4
10322         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
10323         of its symbols are used by the backupfile code.  backupfile.c does
10324         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
10325         for the rare case of programs that want all their backup file
10326         names to live within 8+3 limits, and dos.m4 doesn't address that.
10327         * modules/backupfile (Files): Remove m4/dos.m4.
10328
10329 2011-02-24  Jim Meyering  <meyering@redhat.com>
10330
10331         strstr: fix a bug whereby strstr would mistakenly return NULL
10332         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
10333         in period calculation.
10334         (two_way_long_needle): Likewise.
10335         The original problem was reported by Mike Stump in
10336         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
10337         Ralf Wildenhues provided the short needle and haystack.
10338         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
10339         Add a more involved test to trigger the bug in two_way_long_needle.
10340
10341 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10342
10343         gnulib-tool: remove use of bold display in help screen
10344         * gnulib-tool (func_usage): Do not use bold display anymore in the
10345         help screen.  That was just meant to be a temporary emphasis for a
10346         backward-incompatible change.
10347
10348 2011-02-23  Bruno Haible  <bruno@clisp.org>
10349
10350         Fix misindentation of preprocessor directives.
10351         * lib/argp-namefrob.h: Reindent preprocessor directives.
10352         * lib/getopt_int.h (struct _getopt_data): Likewise.
10353         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
10354         * lib/vasnprintf.c (decode_long_double): Likewise.
10355         * tests/test-argmatch.c: Insert blank lines, for clarity.
10356         * tests/test-exclude.c: Likewise.
10357
10358 2011-02-22  Bruno Haible  <bruno@clisp.org>
10359
10360         ioctl: Fix for MacOS X in 64-bit mode.
10361         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
10362         value.
10363         Suggested by Eric Blake.
10364         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
10365
10366 2011-02-22  Jim Meyering  <meyering@redhat.com>
10367
10368         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
10369         * Makefile (sc_cpp_indent_check): Don't limit the check to files
10370         in lib/.
10371
10372 2011-02-22  Eric Blake  <eblake@redhat.com>
10373
10374         maint: avoid any CDPATH issue
10375         * Makefile (sc_cpp_indent_check): Anchor cd argument.
10376
10377         maint: adjust cpp indentation for my modules, as well
10378         * Makefile (sc_cpp_indent_check): Add my name.
10379         * lib/fbufmode.c: Filter through cppi.
10380         * lib/fpurge.c: Likewise.
10381         * lib/freadable.c: Likewise.
10382         * lib/freading.c: Likewise.
10383         * lib/fwritable.c: Likewise.
10384         * lib/fwriting.c: Likewise.
10385         * lib/sigaction.c: Likewise.
10386
10387 2011-02-22  Jim Meyering  <meyering@redhat.com>
10388
10389         maint: adjust cpp indentation to reflect nesting depth
10390         I.e., in a block of code that begins with an unnested "#if",
10391         put one space between the "#" in column 1 and following token.
10392         For example,
10393         -#include <sys/vfs.h>
10394         +# include <sys/vfs.h>
10395         Do this only in .c files that are part of a module I maintain.
10396         * lib/linkat.c: Filter through cppi.
10397         * lib/nanosleep.c: Likewise.
10398         * lib/openat.c: Likewise.
10399         * lib/openat-die.c: Likewise.
10400         * lib/dup3.c: Likewise.
10401         * lib/fchownat.c: Likewise.
10402         * lib/flock.c: Likewise.
10403         * lib/fsync.c: Likewise.
10404         * lib/fts.c: Likewise.
10405         * lib/getpass.c: Likewise.
10406         * lib/gettimeofday.c: Likewise.
10407         * lib/userspec.c: Likewise.
10408         * Makefile (sc_cpp_indent_check): New rule, to check this.
10409
10410 2011-02-22  Bruno Haible  <bruno@clisp.org>
10411
10412         New module 'wctomb'.
10413         * lib/stdlib.in.h (wctomb): New declaration.
10414         * lib/wctomb.c: New file.
10415         * lib/wctomb-impl.h: New file.
10416         * m4/wctomb.m4: New file.
10417         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
10418         REPLACE_WCTOMB.
10419         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
10420         REPLACE_WCTOMB.
10421         * modules/wctomb: New file.
10422         * tests/test-stdlib-c++.cc: Test signature of wctomb.
10423         * doc/posix-functions/wctomb.texi: Mention the new module.
10424         * modules/wctob (Depends-on): Add wctomb.
10425
10426 2011-02-22  Bruno Haible  <bruno@clisp.org>
10427
10428         New module 'mbtowc'.
10429         * lib/stdlib.in.h (mbtowc): New declaration.
10430         * lib/mbtowc.c: New file.
10431         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
10432         * m4/mbtowc.m4: New file.
10433         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
10434         REPLACE_MBTOWC.
10435         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
10436         REPLACE_MBTOWC.
10437         * modules/mbtowc: New file.
10438         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
10439         * doc/posix-functions/mbtowc.texi: Mention the new module.
10440         * modules/btowc (Depends-on): Add mbtowc.
10441
10442 2011-02-22  Bruno Haible  <bruno@clisp.org>
10443
10444         wcrtomb: Add more tests for native Windows platforms.
10445         * tests/test-wcrtomb-w32-1.sh: New file.
10446         * tests/test-wcrtomb-w32-2.sh: New file.
10447         * tests/test-wcrtomb-w32-3.sh: New file.
10448         * tests/test-wcrtomb-w32-4.sh: New file.
10449         * tests/test-wcrtomb-w32-5.sh: New file.
10450         * tests/test-wcrtomb-w32.c: New file.
10451         * modules/wcrtomb-tests (Files): Add them.
10452         (Makefile.am): Arrange to run these tests.
10453         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
10454         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
10455
10456 2011-02-20  Bruno Haible  <bruno@clisp.org>
10457
10458         wcrtomb: Enhance test.
10459         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
10460
10461 2011-02-20  Bruno Haible  <bruno@clisp.org>
10462
10463         mbrtowc: Tiny optimization.
10464         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
10465
10466 2011-02-20  Jim Meyering  <meyering@redhat.com>
10467
10468         test-exclude.c: remove unmatched #endif
10469         * tests/test-exclude.c: Remove stray #endif, left over from
10470         the change of a week ago.
10471
10472 2011-02-19  Jim Meyering  <meyering@redhat.com>
10473
10474         git-version-gen: skip "-dirty" check when appropriate
10475         * build-aux/git-version-gen: Don't run any git commands when the
10476         version string comes from .tarball-version.  Prior to this, we
10477         would run git update-index --refresh even from a just-unpacked
10478         tarball directory, and that could affect a .git/ directory in a
10479         parent of the build directory.  Reported by Mike Frysinger.
10480
10481 2011-02-19  Bruno Haible  <bruno@clisp.org>
10482
10483         unictype/property-byname: Reduce the size of the 'data' segment.
10484         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
10485
10486 2011-02-19  Bruno Haible  <bruno@clisp.org>
10487
10488         unictype/scripts: Reduce the size of the 'data' segment.
10489         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
10490         '%pic'.
10491         * lib/unictype/scripts_byname.gperf: Regenerated.
10492
10493 2011-02-19  Bruno Haible  <bruno@clisp.org>
10494
10495         stdint: Update documentation.
10496         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
10497
10498 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
10499
10500         stdint: omit redundant check for wchar.h
10501         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
10502         always tests whether wchar.h exists, so remove the now-redundant test.
10503
10504 2011-02-18  Bruno Haible  <bruno@clisp.org>
10505
10506         stdint: Cut dependency to module 'wchar'.
10507         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
10508         include the necessary prerequisites.
10509         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
10510         * modules/stdint (Depends-on): Remove wchar.
10511         (Makefile.am): Substitute HAVE_WCHAR_H.
10512         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
10513
10514 2011-02-18  Eric Blake  <eblake@redhat.com>
10515
10516         longlong: skip, rather than fail, on cross-compilation
10517         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
10518         when cross-compiling; regression from 2011-02-16.
10519
10520 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10521
10522         * NEWS: Mention 2011-02-08 change to stdlib.
10523
10524 2011-02-17  Bruno Haible  <bruno@clisp.org>
10525
10526         getloadavg: Add comments about platforms.
10527         * m4/getloadavg.m4: Add comment.
10528         * lib/getloadavg.c: Likewise.
10529
10530 2011-02-17  Bruno Haible  <bruno@clisp.org>
10531
10532         getloadavg: Fix link error on Solaris 2.6.
10533         * modules/getloadavg (Link): New section.
10534         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
10535         linking test-getloadavg.
10536         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
10537         getloadavg.
10538
10539 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10540
10541         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
10542         It was 'int', but this doesn't match the IRIX 6.5 manual.
10543         Suggested by Bruno Haible in
10544         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
10545
10546 2011-02-17  Bruno Haible  <bruno@clisp.org>
10547
10548         havelib: Fix comments.
10549         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
10550         change.
10551
10552 2011-02-17  Bruno Haible  <bruno@clisp.org>
10553
10554         havelib: Update config.rpath.
10555         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
10556
10557 2011-02-17  Bruno Haible  <bruno@clisp.org>
10558
10559         getloadavg test: Add some plausibility checks.
10560         * tests/test-getloadavg.c (check_avg): Print a warning when the value
10561         is improbable.
10562
10563 2011-02-16  Eric Blake  <eblake@redhat.com>
10564
10565         maintainer-makefile: make syntax-check a no-op from tarballs
10566         * top/maint.mk (no-vc-detected): New rule.
10567         (local-checks-available): Use it to avoid hanging if someone tries
10568         'make syntax-check' from a tarball.  Also append to any non-syntax
10569         checks already defined in cfg.mk.
10570
10571 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
10572
10573         longlong: tune, particularly for common case of c99
10574
10575         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
10576         or running anything if c99, or if unsigned long long int does not
10577         work.  In either case, we know the answer without further tests.
10578         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
10579         it at most once, and use its results for both long long int and
10580         unsigned long long int.  This is more likely to be efficient in
10581         the common case where the program wants to check for both long
10582         long int and unsigned long long int.
10583         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
10584         since the answer is already known.
10585
10586 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
10587
10588         getloadavg: set errno
10589         * lib/getloadavg.c: Set errno when returning -1.  If no other
10590         error number looks appropriate, set it to ENOSYS if the getloadavg
10591         looks like it can't possibly ever work, ENOTSUP otherwise.
10592         Suggested by Bruno Haible in
10593         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
10594
10595         getloadavg: trim unused parts and speed up 'configure'
10596         * NEWS: Document this.
10597         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
10598         always compiled if getloadavg is absent.
10599         Move test code to ...
10600         * tests/test-getloadavg.c: New file, containing previous
10601         contents of test from lib/getloadavg.c.  It also contains
10602         suggestions by Bruno Haible in
10603         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
10604         * modules/getloadavg-tests: New file.
10605         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
10606         Do tests in the same order as they're needed for getloadavg.c.
10607         Omit setgid-related tests that generate symbols KMEM_GROUP,
10608         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
10609         Do only the tests that are needed to see whether the system has
10610         getloadavg, moving the other tests into ...
10611         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
10612         NLIST_NAME_UNION; nobody should be using it.  Do not define
10613         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
10614         relevant, as the user of this module shouldn't care how getloadavg
10615         is implemented.
10616
10617         getloadavg: omit unused var
10618         * lib/getloadavg.c (getloadavg): Omit unused local variable.
10619
10620 2011-02-15  Jim Meyering  <meyering@redhat.com>
10621
10622         doc: update users.txt
10623         * users.txt: Update iwhd's URL.
10624
10625 2011-02-13  Bruno Haible  <bruno@clisp.org>
10626
10627         Consistent macro naming for macros that use GCC __attribute__.
10628         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
10629         _ATTRIBUTE_NONNULL_.
10630         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
10631         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
10632         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
10633         ATTRIBUTE_DEPRECATED.
10634         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
10635         ATTRIBUTE_NORETURN.
10636         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10637         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10638         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10639         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10640         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
10641         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
10642         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
10643         ATTRIBUTE_SENTINEL.
10644         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
10645         ATTRIBUTE_RETURN_CHECK.
10646         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
10647         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
10648         ATTRIBUTE_NORETURN.
10649         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
10650         Reported by Paul Eggert.
10651
10652 2011-02-13  Bruno Haible  <bruno@clisp.org>
10653
10654         Don't interfere with a program's definition of __attribute__.
10655         * lib/argp.h (__attribute__): Remove definition.
10656         (_GL_ATTRIBUTE_FORMAT): New macro.
10657         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
10658         * lib/argp-fmtstream.h (__attribute__): Remove definition.
10659         (_GL_ATTRIBUTE_FORMAT): New macro.
10660         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
10661         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
10662         GCC 3 or newer.
10663         * lib/error.h (__attribute__): Remove definition.
10664         (_GL_ATTRIBUTE_FORMAT): New macro.
10665         (error, error_at_line): Use it.
10666         * lib/hash.h (__attribute__): Remove definition.
10667         (ATTRIBUTE_WUR): Update definition. Define always.
10668         * lib/openat.h (__attribute__): Remove definition.
10669         (ATTRIBUTE_NORETURN): Update definition. Define always.
10670         * lib/sigpipe-die.h (__attribute__): Remove definition.
10671         (ATTRIBUTE_NORETURN): Update definition. Define always.
10672         * lib/vasnprintf.h (__attribute__): Remove definition.
10673         (_GL_ATTRIBUTE_FORMAT): New macro.
10674         (asnprintf, vasnprintf): Use it.
10675         * lib/xalloc.h (__attribute__): Remove definition.
10676         (ATTRIBUTE_NORETURN): Update definition. Define always.
10677         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
10678         * lib/xmemdup0.h (__attribute__): Remove definition.
10679         (ATTRIBUTE_NORETURN): Update definition. Define always.
10680         * lib/xprintf.h (__attribute__): Remove definition.
10681         (_GL_ATTRIBUTE_FORMAT): New macro.
10682         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
10683         * lib/xstrtol.h (__attribute__): Remove definition.
10684         (ATTRIBUTE_NORETURN): Update definition. Define always.
10685         * lib/xvasprintf.h (__attribute__): Remove definition.
10686         (_GL_ATTRIBUTE_FORMAT): New macro.
10687         (xasprintf, xvasprintf): Use it.
10688         * tests/test-argmatch.c (__attribute__): Remove definition.
10689         (ATTRIBUTE_NORETURN): Update definition. Define always.
10690         * tests/test-exclude.c (__attribute__): Remove definition.
10691         (ATTRIBUTE_NORETURN): Update definition. Define always.
10692         Reported by Paul Eggert.
10693
10694 2011-02-13  Bruno Haible  <bruno@clisp.org>
10695
10696         mbrtowc: Add more tests for native Windows platforms.
10697         * tests/test-mbrtowc-w32-1.sh: New file.
10698         * tests/test-mbrtowc-w32-2.sh: New file.
10699         * tests/test-mbrtowc-w32-3.sh: New file.
10700         * tests/test-mbrtowc-w32-4.sh: New file.
10701         * tests/test-mbrtowc-w32-5.sh: New file.
10702         * tests/test-mbrtowc-w32.c: New file.
10703         * modules/mbrtowc-tests (Files): Add them.
10704         (Makefile.am): Arrange to run these tests.
10705         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
10706         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
10707
10708 2011-02-13  Bruno Haible  <bruno@clisp.org>
10709
10710         mbrtowc: Work around native Windows bug.
10711         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
10712         guess when no suitable locale for testing was found.
10713         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
10714
10715 2011-02-13  Bruno Haible  <bruno@clisp.org>
10716
10717         mbsinit: Work around mingw bug.
10718         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
10719         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
10720         Windows.
10721         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
10722
10723 2011-02-13  Bruno Haible  <bruno@clisp.org>
10724
10725         mbsinit: Don't crash for a NULL argument.
10726         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
10727         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
10728
10729 2011-02-13  Bruno Haible  <bruno@clisp.org>
10730
10731         Don't interfere with a program's definition of __attribute__.
10732         * lib/stdio.in.h (__attribute__): Remove definition.
10733         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
10734         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
10735         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
10736         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
10737         * lib/string.in.h (__attribute__): Remove definition.
10738         Reported by Paul Eggert.
10739
10740 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10741
10742         stdlib: don't get in the way of non-GCC __attribute__
10743         See thread starting at
10744         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
10745         Revert previous stdlib change, installing the following instead:
10746         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
10747         to get in the way of a non-GCC compiler that supports __attribute__.
10748         (_GL_ATTRIBUTE_RETURN): New macro.
10749         (_Exit): Use it instead of __attribute__.
10750
10751 2011-02-12  Bruno Haible  <bruno@clisp.org>
10752
10753         quotearg test: Avoid test failure on mingw.
10754         * tests/test-quotearg.sh: Convert the locale identifier from native
10755         Windows syntax to Unix syntax.
10756
10757 2011-02-12  Bruno Haible  <bruno@clisp.org>
10758
10759         setlocale: Prefer gnulib's override over libintl's override.
10760         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
10761         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
10762         GNULIB_defined_setlocale is set.
10763
10764 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10765
10766         stdlib: support non-GCC __attribute__
10767
10768         Fix a serious and tricky problem encountered when attempting to
10769         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
10770         5.5, but it crashed due to memory corruption on Solaris 10 with
10771         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
10772         bits that are otherwise zero.  This tagging is optional inside
10773         Emacs but is preferred and is used when __attribute__ ((__aligned
10774         (8))) works, as it does with both recent-enough GCC and with Sun C
10775         5.11.  However, Sun C 5.11 is not GCC and does not #define
10776         __GNUC__ and __GNUC_MINOR__.
10777
10778         When I added the getloadavg module to Emacs, it brought in
10779         stdlib.in.h, which contained this fragment:
10780
10781            #ifndef __attribute__
10782            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
10783            #  define __attribute__(Spec)   /* empty */
10784            # endif
10785            #endif
10786
10787         When files that include <stdlib.h> were compiled with Sun C 5.11,
10788         the above code disabled __attribute__ ((__aligned (8))), which
10789         caused variables to not be properly aligned, which eventually led
10790         to the pointer corruption mentioned above.  (This was a bit hard
10791         to diagnose, unfortunately.)
10792
10793         Several "#define __attribute__(X) /* empty */" code snippets need
10794         to be eradicated from Gnulib to work with non-GCC compilers that
10795         support __attribute__.  The Autoconf way to do this is to test for
10796         each kind of attribute that we want support for, and selectively
10797         enable that in source code.
10798
10799         Fix this problem just for stdlib.h, by adding a test for the
10800         __noreturn__ attribute, and change stdlib.in.h to use that test
10801         when needed.  This technique can be easily generalized to the
10802         other *.in.h files and attributes, and a similar technique can be
10803         used for *.h and *.c files.  This patch is enough to solve the
10804         problem for Emacs + getloadavg, and I thought I'd publish it for
10805         feedback before undertaking further, similar fixes in other
10806         modules.
10807
10808         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
10809         because it's not needed for stdlib.h.  It merely substitutes the
10810         value directly into stdlib.h.  We may well need to #define it, or
10811         similar symbols, for other modules, but it's nice to also have an
10812         option to not #define it for applications like Emacs that do not
10813         need it.
10814
10815         * lib/stdlib.in.h (__attribute__): Do not #define.
10816         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
10817         be defined only if the _Exit module is also used.
10818         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
10819         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
10820         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
10821         platforms.
10822         * modules/_Exit (Files): Add m4/attribute.m4.
10823         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
10824         * m4/attribute.m4: New file.
10825
10826 2011-02-12  Bruno Haible  <bruno@clisp.org>
10827
10828         wcsrtombs: Work around bug on native Windows.
10829         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
10830         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
10831         instead of len.
10832         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
10833
10834 2011-02-12  Bruno Haible  <bruno@clisp.org>
10835
10836         mbsrtowcs: Work around bug on native Windows.
10837         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
10838         against mingw bug.
10839         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
10840
10841 2011-02-12  Bruno Haible  <bruno@clisp.org>
10842
10843         Avoid setlocale bugs in tests.
10844         * modules/btowc (Dependencies): Add setlocale.
10845         * modules/c-strcase (Dependencies): Likewise.
10846         * modules/mbmemcasecmp (Dependencies): Likewise.
10847         * modules/mbmemcasecoll (Dependencies): Likewise.
10848         * modules/mbrtowc (Dependencies): Likewise.
10849         * modules/mbscasecmp (Dependencies): Likewise.
10850         * modules/mbscasestr (Dependencies): Likewise.
10851         * modules/mbschr (Dependencies): Likewise.
10852         * modules/mbscspn (Dependencies): Likewise.
10853         * modules/mbsinit (Dependencies): Likewise.
10854         * modules/mbsncasecmp (Dependencies): Likewise.
10855         * modules/mbsnrtowcs (Dependencies): Likewise.
10856         * modules/mbspbrk (Dependencies): Likewise.
10857         * modules/mbspcasecmp (Dependencies): Likewise.
10858         * modules/mbsrchr (Dependencies): Likewise.
10859         * modules/mbsrtowcs (Dependencies): Likewise.
10860         * modules/mbsspn (Dependencies): Likewise.
10861         * modules/mbsstr (Dependencies): Likewise.
10862         * modules/nl_langinfo (Dependencies): Likewise.
10863         * modules/quotearg (Dependencies): Likewise.
10864         * modules/unicase/locale-language (Dependencies): Likewise.
10865         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
10866         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
10867         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
10868         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
10869         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
10870         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
10871         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
10872         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
10873         * modules/vasnprintf-posix (Dependencies): Likewise.
10874         * modules/wcrtomb (Dependencies): Likewise.
10875         * modules/wcsnrtombs (Dependencies): Likewise.
10876         * modules/wcsrtombs (Dependencies): Likewise.
10877
10878 2011-02-12  Bruno Haible  <bruno@clisp.org>
10879
10880         setlocale: Workaround native Windows bug.
10881         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
10882         succeeds but sets LC_CTYPE to "C", report a failure.
10883         * tests/test-setlocale2.sh: New file.
10884         * tests/test-setlocale2.c: New file.
10885         * modules/setlocale-tests (Files): Add the new files.
10886         (Makefile.am): Enable test-setlocale2.sh test.
10887         * doc/posix-functions/setlocale.texi: Mention workaround.
10888
10889 2011-02-11  Bruno Haible  <bruno@clisp.org>
10890
10891         Tests for module 'setlocale'.
10892         * modules/setlocale-tests: New file.
10893         * tests/test-setlocale1.sh: New file.
10894         * tests/test-setlocale1.c: New file.
10895
10896         New module 'setlocale'.
10897         * lib/locale.in.h (setlocale): New declaration.
10898         * lib/setlocale.c: New file, based on
10899         gettext/gettext-runtime/intl/setlocale.c.
10900         * m4/setlocale.m4: New file.
10901         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
10902         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
10903         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
10904         REPLACE_SETLOCALE.
10905         * modules/setlocale: New file.
10906         * tests/test-locale-c++.cc: Test the declaration of setlocale.
10907         * doc/posix-functions/setlocale.texi: Mention the new module.
10908
10909 2011-02-11  Bruno Haible  <bruno@clisp.org>
10910
10911         Prepare for locale dependent tests on mingw.
10912         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
10913         because it has the wrong locale encoding.
10914         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
10915         French_France.1252 instead of "fr".
10916         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
10917         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
10918         because it has the wrong locale encoding.
10919         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
10920         native Windows, try Turkish_Turkey.65001.
10921         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
10922         Chinese_China.54936.
10923
10924         Prepare for locale dependent tests on mingw.
10925         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
10926         differently.
10927         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
10928         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
10929         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10930         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10931
10932 2011-02-11  Eric Blake  <eblake@redhat.com>
10933
10934         strptime: avoid compiler warnings
10935         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
10936         compiler warnings about dead code.
10937         Reported by Daniel P. Berrange.
10938
10939 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
10940
10941         doc: update users.txt
10942         * users.txt: Add rcs.
10943
10944 2011-02-10  John W. Eaton  <jwe@gnu.org>
10945
10946         doc: update users.txt
10947         * users.txt: Add octave.
10948
10949 2011-02-10  Jim Meyering  <meyering@redhat.com>
10950
10951         doc: update users.txt
10952         * users.txt: Add iwhd.
10953
10954 2011-02-09  Bruno Haible  <bruno@clisp.org>
10955
10956         gnulib-tool: Make copyright notice adjustment more robust.
10957         * gnulib-tool (func_import): In sed_transform_main_lib_file,
10958         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
10959         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
10960         License".
10961         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
10962
10963 2011-02-06  Bruno Haible  <bruno@clisp.org>
10964
10965         New module 'towctrans'.
10966         * modules/towctrans: New file.
10967         * lib/wctype.in.h (towctrans): New declaration.
10968         * lib/towctrans.c: New file.
10969         * lib/towctrans-impl.h: New file.
10970         * m4/towctrans.m4: New file.
10971         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
10972         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
10973         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
10974         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
10975         * doc/posix-functions/towctrans.texi: Mention the new module.
10976
10977 2011-02-06  Bruno Haible  <bruno@clisp.org>
10978
10979         New module 'wctrans'.
10980         * modules/wctrans: New file.
10981         * lib/wctype.in.h (wctrans): New declaration.
10982         * lib/wctrans.c: New file.
10983         * lib/wctrans-impl.h: New file.
10984         * m4/wctrans.m4: New file.
10985         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
10986         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
10987         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
10988         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
10989         * doc/posix-functions/wctrans.texi: Mention the new module.
10990
10991 2011-02-06  Bruno Haible  <bruno@clisp.org>
10992
10993         New module 'iswctype'.
10994         * modules/iswctype: New file.
10995         * lib/wctype.in.h (iswctype): New declaration.
10996         * lib/iswctype.c: New file.
10997         * lib/iswctype-impl.h: New file.
10998         * m4/iswctype.m4: New file.
10999         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
11000         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
11001         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
11002         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
11003         * doc/posix-functions/iswctype.texi: Mention the new module and the
11004         HP-UX 11.00 problem.
11005
11006 2011-02-06  Bruno Haible  <bruno@clisp.org>
11007
11008         New module 'wctype'.
11009         * modules/wctype: Change to represent the wctype() substitute.
11010         * lib/wctype.in.h (wctype): New declaration.
11011         * lib/wctype.c: New file.
11012         * lib/wctype-impl.h: New file.
11013         * m4/wctype.m4: New file.
11014         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
11015         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
11016         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
11017         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
11018         * doc/posix-functions/wctype.texi: Mention the new module and the
11019         HP-UX 11.00 problem.
11020
11021 2011-02-06  Bruno Haible  <bruno@clisp.org>
11022
11023         wctype-h: Ensure wctype_t and wctrans_t are defined.
11024         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
11025         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
11026         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
11027         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
11028         HAVE_WCTRANS_T.
11029         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
11030
11031 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11032
11033         flock: fix license typo
11034
11035         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
11036         omitted.
11037
11038 2011-02-08  Bruno Haible  <bruno@clisp.org>
11039
11040         Split large sed scripts, for HP-UX sed.
11041         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
11042         to avoid HP-UX limit of 99 commands, in the near future.
11043         * modules/stdlib (Makefile.am): Likewise.
11044         * modules/unistd (Makefile.am): Likewise.
11045         * modules/wchar (Makefile.am): Likewise.
11046         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11047         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
11048         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
11049
11050 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11051             Bruno Haible  <bruno@clisp.org>
11052
11053         stdlib: improve random_r modularization
11054         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
11055         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
11056         you also need the random_r module to get this material right.
11057         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
11058         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
11059         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
11060
11061 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11062
11063         stdlib: don't depend on stdint
11064         * lib/stdlib.in.h: Don't include <stdint.h> merely because
11065         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
11066         be independent of whether stdint.h is needed.
11067         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
11068         here, instead of ...
11069         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
11070         struct random_data should be using the random_r module, not just
11071         the stdlib module (which wouldn't make sense: what package needs
11072         just struct random_data without also needing random_r?).
11073         * modules/stdlib (Depends-on): Remove stdint.
11074
11075         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
11076         See the thread rooted at
11077         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
11078         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
11079         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
11080         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
11081         __VMS)); previously it was always included (via fcntl--.h).
11082         (getloadavg): Do not use c_strtod.  Instead, approximate it by
11083         hand; this is good enough for load averages.  Also, do not use
11084         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
11085         flags directly if available and don't bother otherwise.  (Packages
11086         that need the extra reliability should use the modules that define
11087         these flags on older platforms that lack them.)
11088         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
11089         fcntl-safer.
11090
11091 2011-02-08  Jim Meyering  <meyering@redhat.com>
11092
11093         di-set.h, ino-map.h: add multiple-inclusion guard
11094         Technically, the guard is required only for ino-map.h, due to its
11095         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
11096         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
11097         * lib/ino-map.h: Likewise.
11098
11099 2011-02-06  Bruno Haible  <bruno@clisp.org>
11100
11101         iswblank: Ensure declaration on glibc systems.
11102         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
11103         * modules/iswblank (Dependencies): Add 'extensions'.
11104         * doc/posix-functions/iswblank.texi: Document the glibc problem.
11105
11106 2011-02-06  Bruno Haible  <bruno@clisp.org>
11107
11108         New module 'iswblank'.
11109         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
11110         * modules/iswblank: New file.
11111         * modules/wctype-h (Files): Remove lib/iswblank.c.
11112         (Makefile.am): Substitute GNULIB_ISWBLANK.
11113         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
11114         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
11115         (gl_WCTYPE_H_DEFAULTS): New macro.
11116         (gl_WCTYPE_H): Require it. Remove iswblank related code.
11117         * modules/iswblank-tests: New file.
11118         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
11119         * tests/test-wctype-h.c (main): Remove iswblank tests.
11120         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
11121         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
11122         of 'wctype-h'.
11123         * NEWS: Mention the change.
11124         * modules/mbchar (Depends-on): Add iswblank.
11125
11126 2011-02-08  Bruno Haible  <bruno@clisp.org>
11127
11128         di-set tests: Refactor.
11129         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
11130         unnecessary includes.
11131         (ASSERT): Remove macro.
11132         (main): Make C90 compliant by avoiding variable declaration after
11133         statement.
11134         * modules/di-set-tests (Files): Add tests/macros.h.
11135
11136 2011-02-08  Bruno Haible  <bruno@clisp.org>
11137
11138         ino-map tests: Refactor.
11139         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
11140         unnecessary includes.
11141         (ASSERT): Remove macro.
11142         (main): Make C90 compliant by avoiding variable declaration after
11143         statement.
11144         * modules/ino-map-tests (Files): Add tests/macros.h.
11145
11146 2011-02-08  Jim Meyering  <meyering@redhat.com>
11147
11148         di-set: add "const" to a cast
11149         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
11150         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
11151
11152 2011-02-06  Bruno Haible  <bruno@clisp.org>
11153
11154         Rename module 'wctype' to 'wctype-h'.
11155         * modules/wctype-h: Renamed from modules/wctype.
11156         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
11157         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
11158         (Files, Depends-on, Makefile.am): Update.
11159         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
11160         (Files, Makefile.am): Update.
11161         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
11162         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
11163         * doc/posix-headers/wctype.texi: Update.
11164         * doc/posix-functions/iswalnum.texi: Update.
11165         * doc/posix-functions/iswalpha.texi: Update.
11166         * doc/posix-functions/iswblank.texi: Update.
11167         * doc/posix-functions/iswcntrl.texi: Update.
11168         * doc/posix-functions/iswdigit.texi: Update.
11169         * doc/posix-functions/iswgraph.texi: Update.
11170         * doc/posix-functions/iswlower.texi: Update.
11171         * doc/posix-functions/iswprint.texi: Update.
11172         * doc/posix-functions/iswpunct.texi: Update.
11173         * doc/posix-functions/iswspace.texi: Update.
11174         * doc/posix-functions/iswupper.texi: Update.
11175         * doc/posix-functions/iswxdigit.texi: Update.
11176         * doc/posix-functions/towlower.texi: Update.
11177         * doc/posix-functions/towupper.texi: Update.
11178         * NEWS: Mention the change.
11179         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
11180         * modules/mbchar (Dependencies): Likewise.
11181         * modules/mbswidth (Dependencies): Likewise.
11182         * modules/quotearg (Dependencies): Likewise.
11183         * modules/regex (Dependencies): Likewise.
11184         * modules/wcscasecmp (Dependencies): Likewise.
11185         * modules/wcsncasecmp (Dependencies): Likewise.
11186         * modules/wcwidth (Dependencies): Likewise.
11187
11188 2011-02-06  Bruno Haible  <bruno@clisp.org>
11189
11190         New module 'wcswidth'.
11191         * modules/wcswidth: New file.
11192         * lib/wchar.in.h (wcswidth): New declaration.
11193         * lib/wcswidth.c: New file.
11194         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
11195         * m4/wcswidth.m4: New file.
11196         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
11197         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
11198         REPLACE_WCSWIDTH.
11199         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
11200         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
11201         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
11202         * doc/posix-functions/wcswidth.texi: Mention the new module.
11203
11204 2011-02-06  Bruno Haible  <bruno@clisp.org>
11205
11206         New module 'wcstok'.
11207         * modules/wcstok: New file.
11208         * lib/wchar.in.h (wcstok): New declaration.
11209         * lib/wcstok.c: New file.
11210         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
11211         * m4/wcstok.m4: New file.
11212         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
11213         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
11214         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
11215         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
11216         * doc/posix-functions/wcstok.texi: Mention the new module.
11217
11218 2011-02-06  Bruno Haible  <bruno@clisp.org>
11219
11220         New module 'wcsstr'.
11221         * modules/wcsstr: New file.
11222         * lib/wchar.in.h (wcsstr): New declaration.
11223         * lib/wcsstr.c: New file.
11224         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
11225         * m4/wcsstr.m4: New file.
11226         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
11227         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
11228         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
11229         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
11230         * doc/posix-functions/wcsstr.texi: Mention the new module.
11231
11232 2011-02-06  Bruno Haible  <bruno@clisp.org>
11233
11234         New module 'wcspbrk'.
11235         * modules/wcspbrk: New file.
11236         * lib/wchar.in.h (wcspbrk): New declaration.
11237         * lib/wcspbrk.c: New file.
11238         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
11239         * m4/wcspbrk.m4: New file.
11240         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
11241         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
11242         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
11243         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
11244         * doc/posix-functions/wcspbrk.texi: Mention the new module.
11245
11246 2011-02-06  Bruno Haible  <bruno@clisp.org>
11247
11248         New module 'wcsspn'.
11249         * modules/wcsspn: New file.
11250         * lib/wchar.in.h (wcsspn): New declaration.
11251         * lib/wcsspn.c: New file.
11252         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
11253         * m4/wcsspn.m4: New file.
11254         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
11255         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
11256         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
11257         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
11258         * doc/posix-functions/wcsspn.texi: Mention the new module.
11259
11260 2011-02-06  Bruno Haible  <bruno@clisp.org>
11261
11262         New module 'wcscspn'.
11263         * modules/wcscspn: New file.
11264         * lib/wchar.in.h (wcscspn): New declaration.
11265         * lib/wcscspn.c: New file.
11266         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
11267         * m4/wcscspn.m4: New file.
11268         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
11269         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
11270         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
11271         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
11272         * doc/posix-functions/wcscspn.texi: Mention the new module.
11273
11274 2011-02-06  Bruno Haible  <bruno@clisp.org>
11275
11276         New module 'wcsrchr'.
11277         * modules/wcsrchr: New file.
11278         * lib/wchar.in.h (wcsrchr): New declaration.
11279         * lib/wcsrchr.c: New file.
11280         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
11281         * m4/wcsrchr.m4: New file.
11282         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
11283         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
11284         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
11285         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
11286         * doc/posix-functions/wcsrchr.texi: Mention the new module.
11287
11288 2011-02-06  Bruno Haible  <bruno@clisp.org>
11289
11290         New module 'wcschr'.
11291         * modules/wcschr: New file.
11292         * lib/wchar.in.h (wcschr): New declaration.
11293         * lib/wcschr.c: New file.
11294         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
11295         * m4/wcschr.m4: New file.
11296         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
11297         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
11298         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
11299         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
11300         * doc/posix-functions/wcschr.texi: Mention the new module.
11301
11302 2011-02-06  Bruno Haible  <bruno@clisp.org>
11303
11304         New module 'wcsdup'.
11305         * modules/wcsdup: New file.
11306         * lib/wchar.in.h (wcsdup): New declaration.
11307         * lib/wcsdup.c: New file.
11308         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
11309         * m4/wcsdup.m4: New file.
11310         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
11311         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
11312         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
11313         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
11314         * doc/posix-functions/wcsdup.texi: Mention the new module.
11315
11316 2011-02-06  Bruno Haible  <bruno@clisp.org>
11317
11318         New module 'wcsxfrm'.
11319         * modules/wcsxfrm: New file.
11320         * lib/wchar.in.h (wcsxfrm): New declaration.
11321         * lib/wcsxfrm.c: New file.
11322         * lib/wcsxfrm-impl.h: New file.
11323         * m4/wcsxfrm.m4: New file.
11324         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
11325         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
11326         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
11327         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
11328         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
11329
11330 2011-02-06  Bruno Haible  <bruno@clisp.org>
11331
11332         New module 'wcscoll'.
11333         * modules/wcscoll: New file.
11334         * lib/wchar.in.h (wcscoll): New declaration.
11335         * lib/wcscoll.c: New file.
11336         * lib/wcscoll-impl.h: New file.
11337         * m4/wcscoll.m4: New file.
11338         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
11339         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
11340         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
11341         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
11342         * doc/posix-functions/wcscoll.texi: Mention the new module.
11343
11344 2011-02-06  Bruno Haible  <bruno@clisp.org>
11345
11346         New module 'wcsncasecmp'.
11347         * modules/wcsncasecmp: New file.
11348         * lib/wchar.in.h (wcsncasecmp): New declaration.
11349         * lib/wcsncasecmp.c: New file.
11350         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
11351         * m4/wcsncasecmp.m4: New file.
11352         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
11353         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
11354         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
11355         HAVE_WCSNCASECMP.
11356         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
11357         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
11358
11359 2011-02-06  Bruno Haible  <bruno@clisp.org>
11360
11361         New module 'wcscasecmp'.
11362         * modules/wcscasecmp: New file.
11363         * lib/wchar.in.h (wcscasecmp): New declaration.
11364         * lib/wcscasecmp.c: New file.
11365         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
11366         * m4/wcscasecmp.m4: New file.
11367         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
11368         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
11369         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
11370         HAVE_WCSCASECMP.
11371         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
11372         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
11373
11374 2011-02-05  Bruno Haible  <bruno@clisp.org>
11375
11376         New module 'wcsncmp'.
11377         * modules/wcsncmp: New file.
11378         * lib/wchar.in.h (wcsncmp): New declaration.
11379         * lib/wcsncmp.c: New file.
11380         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
11381         * m4/wcsncmp.m4: New file.
11382         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
11383         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
11384         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
11385         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
11386         * doc/posix-functions/wcsncmp.texi: Mention the new module.
11387
11388 2011-02-05  Bruno Haible  <bruno@clisp.org>
11389
11390         New module 'wcscmp'.
11391         * modules/wcscmp: New file.
11392         * lib/wchar.in.h (wcscmp): New declaration.
11393         * lib/wcscmp.c: New file.
11394         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
11395         * m4/wcscmp.m4: New file.
11396         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
11397         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
11398         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
11399         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
11400         * doc/posix-functions/wcscmp.texi: Mention the new module.
11401
11402 2011-02-05  Bruno Haible  <bruno@clisp.org>
11403
11404         New module 'wcsncat'.
11405         * modules/wcsncat: New file.
11406         * lib/wchar.in.h (wcsncat): New declaration.
11407         * lib/wcsncat.c: New file.
11408         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
11409         * m4/wcsncat.m4: New file.
11410         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
11411         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
11412         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
11413         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
11414         * doc/posix-functions/wcsncat.texi: Mention the new module.
11415
11416 2011-02-05  Bruno Haible  <bruno@clisp.org>
11417
11418         New module 'wcscat'.
11419         * modules/wcscat: New file.
11420         * lib/wchar.in.h (wcscat): New declaration.
11421         * lib/wcscat.c: New file.
11422         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
11423         * m4/wcscat.m4: New file.
11424         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
11425         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
11426         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
11427         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
11428         * doc/posix-functions/wcscat.texi: Mention the new module.
11429
11430 2011-02-05  Bruno Haible  <bruno@clisp.org>
11431
11432         New module 'wcpncpy'.
11433         * modules/wcpncpy: New file.
11434         * lib/wchar.in.h (wcpncpy): New declaration.
11435         * lib/wcpncpy.c: New file.
11436         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
11437         * m4/wcpncpy.m4: New file.
11438         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
11439         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
11440         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
11441         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
11442         * doc/posix-functions/wcpncpy.texi: Mention the new module.
11443
11444 2011-02-05  Bruno Haible  <bruno@clisp.org>
11445
11446         New module 'wcsncpy'.
11447         * modules/wcsncpy: New file.
11448         * lib/wchar.in.h (wcsncpy): New declaration.
11449         * lib/wcsncpy.c: New file.
11450         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
11451         * m4/wcsncpy.m4: New file.
11452         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
11453         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
11454         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
11455         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
11456         * doc/posix-functions/wcsncpy.texi: Mention the new module.
11457
11458 2011-02-05  Bruno Haible  <bruno@clisp.org>
11459
11460         New module 'wcpcpy'.
11461         * modules/wcpcpy: New file.
11462         * lib/wchar.in.h (wcpcpy): New declaration.
11463         * lib/wcpcpy.c: New file.
11464         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
11465         * m4/wcpcpy.m4: New file.
11466         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
11467         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
11468         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
11469         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
11470         * doc/posix-functions/wcpcpy.texi: Mention the new module.
11471
11472 2011-02-05  Bruno Haible  <bruno@clisp.org>
11473
11474         New module 'wcscpy'.
11475         * modules/wcscpy: New file.
11476         * lib/wchar.in.h (wcscpy): New declaration.
11477         * lib/wcscpy.c: New file.
11478         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
11479         * m4/wcscpy.m4: New file.
11480         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
11481         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
11482         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
11483         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
11484         * doc/posix-functions/wcscpy.texi: Mention the new module.
11485
11486 2011-02-05  Bruno Haible  <bruno@clisp.org>
11487
11488         New module 'wcsnlen'.
11489         * modules/wcsnlen: New file.
11490         * lib/wchar.in.h (wcsnlen): New declaration.
11491         * lib/wcsnlen.c: New file.
11492         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
11493         * m4/wcsnlen.m4: New file.
11494         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
11495         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
11496         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
11497         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
11498         * doc/posix-functions/wcsnlen.texi: Mention the new module.
11499
11500 2011-02-05  Bruno Haible  <bruno@clisp.org>
11501
11502         New module 'wcslen'.
11503         * modules/wcslen: New file.
11504         * lib/wchar.in.h (wcslen): New declaration.
11505         * lib/wcslen.c: New file.
11506         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
11507         * m4/wcslen.m4: New file.
11508         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
11509         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
11510         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
11511         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
11512         * doc/posix-functions/wcslen.texi: Mention the new module.
11513
11514 2011-02-05  Bruno Haible  <bruno@clisp.org>
11515
11516         New module 'wmemset'.
11517         * modules/wmemset: New file.
11518         * lib/wchar.in.h (wmemset): New declaration.
11519         * lib/wmemset.c: New file.
11520         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
11521         * m4/wmemset.m4: New file.
11522         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
11523         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
11524         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
11525         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
11526         * doc/posix-functions/wmemset.texi: Mention the new module.
11527
11528 2011-02-05  Bruno Haible  <bruno@clisp.org>
11529
11530         New module 'wmemmove'.
11531         * modules/wmemmove: New file.
11532         * lib/wchar.in.h (wmemmove): New declaration.
11533         * lib/wmemmove.c: New file.
11534         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
11535         * m4/wmemmove.m4: New file.
11536         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
11537         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
11538         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
11539         HAVE_WMEMMOVE.
11540         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
11541         * doc/posix-functions/wmemmove.texi: Mention the new module.
11542
11543 2011-02-05  Bruno Haible  <bruno@clisp.org>
11544
11545         New module 'wmemcpy'.
11546         * modules/wmemcpy: New file.
11547         * lib/wchar.in.h (wmemcpy): New declaration.
11548         * lib/wmemcpy.c: New file.
11549         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
11550         * m4/wmemcpy.m4: New file.
11551         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
11552         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
11553         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
11554         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
11555         * doc/posix-functions/wmemcpy.texi: Mention the new module.
11556
11557 2011-02-05  Bruno Haible  <bruno@clisp.org>
11558
11559         New module 'wmemcmp'.
11560         * modules/wmemcmp: New file.
11561         * lib/wchar.in.h (wmemcmp): New declaration.
11562         * lib/wmemcmp.c: New file.
11563         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
11564         * m4/wmemcmp.m4: New file.
11565         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
11566         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
11567         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
11568         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
11569         * doc/posix-functions/wmemcmp.texi: Mention the new module.
11570
11571 2011-02-07  Jim Meyering  <meyering@redhat.com>
11572
11573         di-set, ino-map: new modules, from coreutils
11574         * lib/di-set.c: New file.
11575         * lib/di-set.h: Likewise.
11576         * lib/ino-map.c: Likewise.
11577         * lib/ino-map.h: Likewise.
11578         * modules/di-set: Likewise.
11579         * modules/di-set-tests: Likewise.
11580         * modules/ino-map: Likewise.
11581         * modules/ino-map-tests: Likewise.
11582         * tests/test-di-set.c: Likewise.
11583         * tests/test-ino-map.c: Likewise.
11584
11585 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
11586
11587         getloadavg: merge minor changes from Emacs
11588
11589         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
11590         (getloadavg): Use memset, not bzero.
11591
11592         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
11593         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11594         clash (bug#86).
11595
11596 2010-11-14  Bruno Haible  <bruno@clisp.org>
11597
11598         Allow multiple gnulib generated replacements to coexist.
11599         * lib/getopt.in.h (struct option): Avoid identical redefinition.
11600         * lib/inttypes.in.h (imaxdiv_t): Likewise.
11601         * lib/langinfo.in.h (nl_item): Likewise.
11602         * lib/math.in.h (_NaN, NAN): Likewise.
11603         * lib/netdb.in.h (struct addrinfo): Likewise.
11604         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
11605         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
11606         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
11607         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
11608         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
11609         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
11610         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
11611         pthread_mutexattr_init, pthread_mutexattr_settype,
11612         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
11613         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
11614         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
11615         pthread_spin_trylock, pthread_spin_unlock): Likewise.
11616         * lib/sched.in.h (struct sched_param): Likewise.
11617         * lib/se-selinux.in.h (security_class_t, security_context_t,
11618         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
11619         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
11620         lsetfilecon, fsetfilecon, security_check_context,
11621         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
11622         Likewise.
11623         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
11624         Likewise.
11625         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
11626         _gl_function_taking_int_returning_void_t, union sigval,
11627         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
11628         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
11629         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11630         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
11631         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
11632         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
11633         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
11634         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
11635         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
11636         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
11637         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
11638         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
11639         socklen_t, rpl_fd_isset): Likewise.
11640         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
11641         * lib/sys_time.in.h (struct timeval): Likewise.
11642         * lib/sys_times.in.h (struct tms): Likewise.
11643         * lib/sys_utsname.in.h (struct utsname):
11644         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
11645         * lib/unistd.in.h (getpagesize): Likewise.
11646         * lib/wchar.in.h (mbstate_t): Likewise.
11647         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
11648         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
11649         towlower, towupper): Likewise.
11650         Reported by Sam Steingold <sds@gnu.org>.
11651
11652 2011-02-05  Eric Blake  <eblake@redhat.com>
11653
11654         unsetenv: work around Haiku issues
11655         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
11656         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
11657
11658 2010-12-30  Bruce Korb  <bkorb@gnu.org>
11659
11660         libposix: avoid calling error() within libposix
11661         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
11662         is defined.
11663
11664 2011-02-05  Eric Blake  <eblake@redhat.com>
11665
11666         strerror_r-posix: port to cygwin
11667         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
11668         implementation.
11669         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
11670         * tests/test-strerror_r.c (main): Fix test.
11671         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11672         issue.
11673
11674 2011-02-05  Bruno Haible  <bruno@clisp.org>
11675
11676         New module 'wmemchr'.
11677         * modules/wmemchr: New file.
11678         * lib/wchar.in.h (wmemchr): New declaration.
11679         * lib/wmemchr.c: New file.
11680         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
11681         * m4/wmemchr.m4: New file.
11682         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
11683         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
11684         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
11685         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
11686         * doc/posix-functions/wmemchr.texi: Mention the new module.
11687
11688 2011-02-04  Eric Blake  <eblake@redhat.com>
11689
11690         fdopendir: detect FreeBSD bug
11691         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
11692         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
11693
11694 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
11695
11696         stdbool: do not define HAVE_STDBOOL_H
11697         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
11698         AC_HEADER_STDBOOL.  All uses changed.  Do not define
11699         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
11700         imported from the latest Autoconf git.  It was motivated by Emacs,
11701         which uses gnulib but does not need HAVE_STDBOOL_H.
11702
11703 2011-02-04  Bruno Haible  <bruno@clisp.org>
11704
11705         wcsnrtombs: Prepare for new module wwcsnrtombs.
11706         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
11707         * lib/wcsnrtombs.c: Include it.
11708         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
11709
11710         wcsrtombs: Prepare for new module wwcsrtombs.
11711         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
11712         * lib/wcsrtombs.c: Include it.
11713         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
11714
11715         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
11716         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
11717         * lib/mbsnrtowcs.c: Include it.
11718         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
11719
11720         mbsrtowcs: Prepare for new module mbsrtowwcs.
11721         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
11722         * lib/mbsrtowcs.c: Include it.
11723         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
11724
11725 2011-02-04  Bruno Haible  <bruno@clisp.org>
11726
11727         vasnprintf: Reduce use of malloc for small format strings.
11728         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
11729         (arguments): Add room for the first 7 arguments.
11730         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
11731         (char_directives, u8_directives, u16_directives, u32_directives): Add
11732         room for the first 7 directives.
11733         * lib/printf-parse.c: Include <string.h>.
11734         (PRINTF_PARSE): Change memory handling code so that it uses the first
11735         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
11736         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
11737         Reported by Pádraig Brady <P@draigbrady.com>.
11738
11739 2011-01-31  Eric Blake  <eblake@redhat.com>
11740
11741         dup2: work around Haiku bug
11742         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
11743         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
11744         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11745         * tests/test-dup2.c (main): Enhance test.
11746
11747 2011-01-31  Simon Josefsson  <simon@josefsson.org>
11748
11749         doc: off_t is not available in eglibc 2.11.2 stdio.h.
11750         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
11751         declared by eglibc 2.11.2.
11752         * lib/stdio.in.h: Likewise.
11753
11754 2011-01-31  Eric Blake  <eblake@redhat.com>
11755
11756         ignore-value: add missing test dependency
11757         * tests/test-ignore-value.c: Revert previous change; stdio.h
11758         provides off_t.
11759         * modules/ignore-value-tests (Depends-on): Add missing dependency.
11760
11761 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
11762
11763         mktime: clarify long_int width checking
11764         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
11765         the top level, to make it clearer that the assumption about
11766         long_int width is being checked.  See
11767         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
11768
11769 2011-01-30  Simon Josefsson  <simon@josefsson.org>
11770
11771         ignore-value: Fix self-test.
11772         * tests/test-ignore-value.c: Include sys/types.h for off_t.
11773
11774 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
11775
11776         TYPE_MAXIMUM: avoid theoretically undefined behavior
11777         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
11778         negative number, which the C Standard says has undefined behavior.
11779         In practice this is not a problem, but might as well do it by the book.
11780         Reported by Rich Felker and Eric Blake; see
11781         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
11782         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
11783         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11784         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11785         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
11786         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11787         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
11788
11789         mktime: #undef mktime before #defining it
11790         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
11791
11792         mktime: systematically normalize tm_isdst comparisons
11793         * lib/mktime.c (isdst_differ): New function.
11794         (__mktime_internal): Use it systematically for all isdst comparisons.
11795         This completes the fix for libc BZ #6723, and removes the need for
11796         normalizing tm_isdst.  See
11797         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
11798         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
11799
11800         mktime: fix some integer overflow issues and sidestep the rest
11801
11802         This was prompted by a bug report by Benjamin Lindner for MinGW
11803         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
11804         His bug is due to signed integer overflow (0 - INT_MIN), and I
11805         I scanned through mktime.c looking for other integer overflow
11806         problems, fixing all the bugs I found.
11807
11808         Although the C Standard says the resulting code is still not safe
11809         in the presence of integer overflow, in practice it should be good
11810         enough for all real-world two's-complement implementations, except
11811         for debugging environments that deliberately trap on integer
11812         overflow (e.g., gcc -ftrapv).
11813
11814         * lib/mktime.c (WRAPV): New macro.
11815         (SHR): Also check that long_int and time_t shift right in the
11816         usual way, before using the fast-but-unportable method.
11817         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
11818         used.  The code already assumed two's complement, so there's
11819         no need to test for alternatives.  All uses removed.
11820         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
11821         the C standard.  Problem reported by Rich Felker in
11822         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
11823         (twos_complement_arithmetic): Also check long_int and time_t.
11824         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
11825         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
11826         (__mktime_internal): Avoid integer overflow with unary subtraction
11827         in two instances where -1 - X is an adequate replacement for -X,
11828         since the calculations are approximate.
11829
11830 2011-01-29  Eric Blake  <eblake@redhat.com>
11831
11832         mktime: avoid infinite loop
11833         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
11834         type; behavior is still undefined but portable to all known targets.
11835         Reported by Rich Felker.
11836
11837 2011-01-29  Simon Josefsson  <simon@josefsson.org>
11838
11839         rename, unlink, same-inode: Relicense.
11840         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
11841         * modules/unlink (License): Likewise.
11842         * modules/same-inode (License): Likewise.
11843
11844 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
11845
11846         mktime: avoid problems on NetBSD 5 / i386
11847         * lib/mktime.c (long_int): New type.  This works around a problem
11848         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
11849         but time_t is 64 bits, and where I expect the existing code is
11850         wrong in some cases.
11851         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
11852         (ydhms_diff): Bring back the compile-time check for wide-enough
11853         year and yday.
11854
11855         mktime: fix misspelling in comment
11856         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
11857         This merges all recent glibc changes of importance.
11858
11859 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11860
11861         move-if-change: cope with concurrent mv of identical file.
11862         * build-aux/move-if-change (CMPPROG): Accept environment
11863         variable as an override for `cmp'.
11864         (usage): Document CMPPROG.
11865         Adjust comparison to drop stdout.  Cope with failure of mv if
11866         the target file exists and is identical to the source, for
11867         parallel builds.
11868         Report from H.J. Lu against binutils in PR binutils/12283.
11869
11870 2011-01-28  Bruce Korb  <bkorb@gnu.org>
11871
11872         * users.txt: Mention sharutils.
11873
11874 2011-01-28  Simon Josefsson  <simon@josefsson.org>
11875
11876         * users.txt: Mention OATH Toolkit.
11877
11878 2011-01-27  Bruno Haible  <bruno@clisp.org>
11879
11880         Prepare for supporting FreeBSD 10.
11881         * build-aux/config.libpath: Remove handling of freebsd1*.
11882
11883 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
11884
11885         Prepare for supporting FreeBSD 10.
11886         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
11887         match FreeBSD 10.0.
11888
11889 2011-01-27  Bruno Haible  <bruno@clisp.org>
11890
11891         vma-iter, get-rusage-as: Add OpenBSD support.
11892         * modules/vma-iter (configure.ac): Test for mquery.
11893         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
11894         * lib/vma-iter.c: Include <sys/mman.h>.
11895         (vma_iterate): Add an implementation based on mquery().
11896         * lib/resource-ext.h (get_rusage_as): Update comments.
11897         * lib/get-rusage-as.c: Likewise.
11898         * lib/get-rusage-data.c: Likewise.
11899
11900 2011-01-26  Karl Berry  <karl@gnu.org>
11901
11902         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
11903         variables to make it easier to override the makeinfo program used.
11904
11905 2011-01-26  Eric Blake  <eblake@redhat.com>
11906
11907         fcntl: work around Haiku F_DUPFD bugs
11908         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
11909         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
11910         cloexec bit on duplication.
11911         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
11912
11913 2011-01-26  Bruno Haible  <bruno@clisp.org>
11914
11915         Enable memory leak tests on AIX.
11916         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
11917         * tests/test-fprintf-posix3.c (main): Likewise.
11918
11919 2011-01-26  Bruno Haible  <bruno@clisp.org>
11920
11921         Tests for module 'get-rusage-data'.
11922         * modules/get-rusage-data-tests: New file.
11923         * tests/test-get-rusage-data.c: New file.
11924
11925         New module 'get-rusage-data'.
11926         * lib/resource-ext.h (get_rusage_data): New declaration.
11927         * lib/get-rusage-data.c: New file.
11928         * modules/get-rusage-data: New file.
11929
11930 2011-01-25  Bruno Haible  <bruno@clisp.org>
11931
11932         get-rusage-as: Allow for easier testing.
11933         * lib/resource-ext.h (get_rusage_as): Add comment.
11934         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
11935         (main): New function for interactive testing.
11936
11937 2011-01-25  Bruno Haible  <bruno@clisp.org>
11938
11939         vma-iter: Treat Haiku like BeOS.
11940         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
11941         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
11942
11943 2011-01-25  Eric Blake  <eblake@redhat.com>
11944
11945         c-stack: fix regression on cygwin when libsigsegv is present
11946         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
11947
11948 2011-01-24  Bruno Haible  <bruno@clisp.org>
11949
11950         vma-iter: Avoid empty intervals.
11951         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
11952         on an empty interval.
11953
11954 2011-01-24  Jim Meyering  <meyering@redhat.com>
11955
11956         u64: remove unnecessary #include
11957         * lib/u64.h: Don't include <stddef.h>.  It was not used.
11958
11959 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11960
11961         Allow the user to avoid the HAVE_RAW_DECL_* macros.
11962         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
11963
11964 2011-01-23  Bruno Haible  <bruno@clisp.org>
11965
11966         New module 'vma-iter'.
11967         * lib/vma-iter.h: New file.
11968         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
11969         * modules/vma-iter: New file.
11970         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
11971         for get_rusage_as_via_iterator.
11972         (vma_iterate_callback): New function.
11973         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
11974         * modules/get-rusage-as (Depends-on): Add vma-iter.
11975
11976 2011-01-23  Bruno Haible  <bruno@clisp.org>
11977
11978         uninorm: Tweak includes.
11979         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
11980         Reported by Jim Meyering.
11981
11982 2011-01-23  Bruno Haible  <bruno@clisp.org>
11983
11984         get-rusage-as: Improve on NetBSD.
11985         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
11986         /proc, like on FreeBSD.
11987
11988 2011-01-23  Jim Meyering  <meyering@redhat.com>
11989
11990         xreadlink.h: remove unnecessary #include
11991         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
11992
11993         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
11994         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
11995
11996 2011-01-23  Bruno Haible  <bruno@clisp.org>
11997
11998         get-rusage-as: Fix bug.
11999         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
12000         original limit when aborting the first loop.
12001
12002 2011-01-23  Bruno Haible  <bruno@clisp.org>
12003
12004         wctype: Ensure valid C syntax.
12005         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
12006         unconditionally, instead of gl_NEXT_HEADERS conditionally.
12007
12008 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
12009
12010         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
12011         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
12012         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
12013         as they are needed only for configure's test case.
12014         This removes two unnecessary symbols from config.h.
12015
12016         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
12017         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
12018         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
12019         AC_CHECK_HEADERS_ONCE on a header that we also invoke
12020         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
12021         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
12022         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
12023         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
12024         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12025         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12026         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
12027         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12028         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12029         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12030         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
12031         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12032         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12033         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
12034
12035 2011-01-21  Eric Blake  <eblake@redhat.com>
12036
12037         maintainer-makefile: work with older git for submodule check
12038         * top/maint.mk (public-submodule-commit): Rewrite to avoid
12039         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
12040         Reported by Matthias Bolte.
12041
12042         bootstrap: minor portability fixes
12043         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
12044         (usage): Omit leading capital and trailing . on help phrases, per
12045         GNU Coding Standards.
12046         (check_versions, top level): Prefix messages with script name.
12047
12048 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
12049
12050         bootstrap: support --no-git option
12051         * build-aux/bootstrap: Add --no-git option, to be used when
12052         --gnulib-srcdir points to the exact desired checkout.
12053
12054 2011-01-21  Eric Blake  <eblake@redhat.com>
12055
12056         strerror_r-posix: work with glibc 2.13
12057         * lib/strerror_r.c (strerror_r): Fix return type.
12058
12059 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12060             Bruno Haible  <bruno@clisp.org>
12061
12062         uN_strstr: New unit tests.
12063         * modules/unistr/u8-strstr-tests: New file.
12064         * modules/unistr/u16-strstr-tests: New file.
12065         * modules/unistr/u32-strstr-tests: New file.
12066         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
12067         * tests/unistr/test-u8-strstr.c: New file.
12068         * tests/unistr/test-u16-strstr.c: New file.
12069         * tests/unistr/test-u32-strstr.c: New file.
12070
12071 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12072             Bruno Haible  <bruno@clisp.org>
12073
12074         Make uN_strstr functions O(n) worst-case.
12075         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
12076         16-bit and 32-bit unit cases, use the unibyte algorithm from
12077         lib/mbsstr.c.
12078         * lib/unistr/u8-strstr.c: Include <string.h>.
12079         (UNIT_IS_UINT8_T): New macro.
12080         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
12081         (U_STRLEN, U_STRNLEN): New macros.
12082         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
12083         (U_STRLEN, U_STRNLEN): New macros.
12084         * modules/unistr/u8-strstr (Depends-on): Add strstr.
12085         (configure.ac): Update required libunistring version.
12086         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
12087         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
12088         malloca.
12089         (configure.ac): Update required libunistring version.
12090         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
12091         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
12092         malloca.
12093         (configure.ac): Update required libunistring version.
12094
12095 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12096             Bruno Haible  <bruno@clisp.org>
12097
12098         Prepare for faster uN_strstr functions.
12099         * lib/str-kmp.h: Support definable UNITs.
12100         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
12101         needle_len argument.
12102         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
12103         * lib/mbscasestr.c (mbscasestr): Likewise.
12104
12105 2011-01-21  Pádraig Brady <P@draigBrady.com>
12106
12107         malloca-tests: make faster by unsetting MALLOC_PERTURB_
12108         * tests/test-malloca.c (main): Unset the environment variable
12109         to greatly speed up the test.
12110         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
12111         * modules/malloca-tests: Depend on unsetenv.
12112
12113 2011-01-21  Pádraig Brady <P@draigBrady.com>
12114
12115         ignore-value: remove stdint dependency
12116         * lib/ignore-value.h: Remove <stdint.h>
12117         * modules/ignore-value: Remove stdint dependency.
12118
12119 2011-01-21  Jim Meyering  <meyering@redhat.com>
12120
12121         maint.mk: adjust variable name to be consistent with other gl_ vars
12122         * top/maint.mk (gl_public_submodule_commit): Rename the variable
12123         to be lower case.
12124
12125 2011-01-20  Jim Meyering  <meyering@redhat.com>
12126
12127         maint.mk: make "check" depend on public-submodule-commit by default
12128         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
12129
12130 2011-01-20  Bruno Haible  <bruno@clisp.org>
12131
12132         mbfile, mbiter: Complete change from 2008-12-21.
12133         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
12134         * m4/mbiter.m4 (gl_MBITER): Likewise.
12135
12136 2011-01-20  Jim Meyering  <meyering@redhat.com>
12137
12138         init.sh: insert space between each function name and "()"
12139         * tests/init.sh: Make it a little easier to see that a function's
12140         name is "warn_", and not "warn" when looking at the first part of
12141         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
12142
12143 2011-01-20  Jim Meyering  <meyering@redhat.com>
12144
12145         mountlist: clean up code formatting
12146         * lib/mountlist.c (read_file_system_list): Split a long line,
12147         correct bracing style, use NULL in place of "(struct statfs *)0",
12148         don't parenthesize return value, add spaces around "=" and after
12149         ";-in-for-stmt".
12150
12151 2011-01-14  Markus Duft <mduft@gentoo.org>
12152
12153         mountlist: add support for Interix
12154         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
12155         Apply statvfs to all entries of /dev/fs.
12156         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
12157         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
12158
12159 2011-01-20  Jim Meyering  <meyering@redhat.com>
12160
12161         maint.mk: improve the public-submodule-commit rule
12162         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
12163         to suppress printing of its commands... unless V=1.
12164         Add git submodule's --quiet option to suppress printing of e.g.,
12165         "Entering gnulib" output.
12166         "cd" into $(srcdir) before running git submodule.
12167
12168 2011-01-20  Bruno Haible  <bruno@clisp.org>
12169
12170         include_next: Fix bug introduced on 2011-01-18.
12171         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
12172         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
12173         ac_cv_header_... variable if the second argument is not 'check'.
12174         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
12175         gl_NEXT_HEADERS_INTERNAL.
12176
12177 2011-01-20  Bruno Haible  <bruno@clisp.org>
12178
12179         Allow the user to avoid the GNULIB_TEST_* macros.
12180         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
12181         Suggested by Paul Eggert.
12182
12183 2011-01-14  Jim Meyering  <meyering@redhat.com>
12184
12185         bootstrap: avoid failure when there is no .gitmodules file
12186         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
12187         has been assigned to, even when its value is the empty string.
12188         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
12189         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
12190         Reported by John W. Eaton <jwe@gnu.org>.
12191
12192 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
12193
12194         assume <ctype.h>, ..., <time.h> exist
12195         For years gnulib has been assuming the existence of the headers
12196         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
12197         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
12198         them, since they don't appear to be needed.
12199         * README (Portability guidelines): Document this.
12200         * lib/flock.c: Assume <fcntl.h> exists.
12201         * lib/regex_internal.h: Assume <locale.h> exists.
12202         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
12203         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
12204         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
12205         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
12206         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
12207         * m4/regex.m4 (gl_REGEX): Likewise.
12208         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
12209         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
12210         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
12211         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
12212         * tests/test-argp.c: Likewise.
12213         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
12214
12215         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
12216         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
12217         AA_APPLE_UNIVERSAL_BUILD.  See
12218         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
12219         * NEWS: Document this.
12220
12221 2011-01-19  Eric Blake  <eblake@redhat.com>
12222
12223         c-stack: assume stack overflow if SA_SIGINFO unsupported
12224         * lib/c-stack.c (SIGACTION_WORKS): Rename...
12225         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
12226         sigaction will work.
12227         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
12228         behavior match Linux.
12229         * tests/test-c-stack.c (main): Prefer NULL for pointers.
12230
12231         stdbool-tests: accomodate Haiku
12232         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
12233
12234         binary-io: fix O_TEXT on Haiku
12235         * modules/binary-io (Depends-on): Add fcntl-h.
12236         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
12237         than blindly undefining O_TEXT.
12238         Reported by Scott McCreary.
12239
12240 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12241
12242         include_next: do not check for standard headers like stddef.h
12243
12244         I found this problem when modifying Emacs to use gnulib.
12245         I noticed that it added HAVE_STDDEF_H to config.h, even though
12246         gnulib always assumes <stddef.h> exists as per README and this
12247         symbol is unnecessary.
12248         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
12249         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
12250         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
12251         faster for headers like stddef.h that are known to exist.
12252         (gl_CHECK_NEXT_HEADERS): Use it.
12253         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
12254         rather than gl_CHECK_NEXT_HEADERS.
12255         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
12256         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
12257
12258 2011-01-18  Eric Blake  <eblake@redhat.com>
12259
12260         ansi-c++-opt: skip C++ dependency style if C++ is unused
12261         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
12262         tests when we know C++ compilation is not desired.
12263         Reported by Scott McCreary.
12264
12265 2011-01-18  Bruno Haible  <bruno@clisp.org>
12266
12267         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
12268         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
12269         (main): Perform test also when getrlimit and setrlimit don't exist or
12270         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
12271         limiting the address space size using setrlimit, compare the address
12272         space size before and after the the test.
12273         * tests/test-dprintf-posix2.c: Likewise.
12274         * tests/test-fprintf-posix3.sh: Update skip messages.
12275         * tests/test-dprintf-posix2.sh: Likewise.
12276         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
12277         * modules/dprintf-posix-tests (Depends-on): Likewise.
12278         Reported by Bruce Korb <bkorb@gnu.org> and
12279         Gary V. Vaughan <gary@gnu.org>.
12280
12281 2011-01-18  Bruno Haible  <bruno@clisp.org>
12282
12283         get-rusage-as: Improvement for Cygwin.
12284         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
12285         areas that are merely reserved.
12286
12287 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12288
12289         strftime: remove dependencies on multibyte modules
12290
12291         strftime depended on mbrlen, mbsinit, and wchar, but these modules
12292         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
12293         only if __osf__ is defined, and I suspect OSF doesn't need these
12294         other modules.  If my guess is wrong, we'll need to come up with a
12295         variant of strftime that doesn't need the multibyte modules.
12296
12297         I discovered this problem when attempting modify Emacs to use the
12298         strftime module.  With the previous gnulib, this caused Emacs to
12299         need 31 new files, ranging from lib/config.charset to
12300         m4/wint_t.m4.  This was overkill and I expect would be offputting
12301         to the Emacs maintainers.  After this change, only 6 new files are
12302         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
12303         stdbool.m4, and tm_gmtoff.m4.
12304
12305         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
12306         Suggested by Bruno Haible in
12307         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
12308         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
12309         and do not check for wchar.h.
12310         * modules/strftime (Files): Remove m4/mbstate_t.m4.
12311         (Depends-on): Remove mbrlen, mbsinit, wchar.
12312
12313 2011-01-18  Bruno Haible  <bruno@clisp.org>
12314
12315         Tests for module 'get-rusage-as'.
12316         * modules/get-rusage-as-tests: New file.
12317         * tests/test-get-rusage-as.c: New file.
12318
12319         New module 'get-rusage-as'.
12320         * modules/get-rusage-as: New file.
12321         * lib/resource-ext.h: New file.
12322         * lib/get-rusage-as.c: New file.
12323
12324 2011-01-17  Eric Blake  <eblake@redhat.com>
12325
12326         sigaction: relax license from LGPLv3+ to LGPLv2+
12327         * modules/sigaction (License): Relax to LGPLv2+.
12328
12329 2011-01-14  Bruno Haible  <bruno@clisp.org>
12330
12331         filemode: Make function declarations usable in C++ mode.
12332         * lib/filemode.h: Enclose function declarations in extern "C" block.
12333         Reported by John W. Eaton <jwe@gnu.org>.
12334
12335 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
12336
12337         save-cwd: no longer include "xgetcwd.h"
12338         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
12339         This avoids a compilation failure in projects that use save-cwd
12340         without also using the xgetcwd module.
12341
12342 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12343
12344         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
12345         This is so that a program like Emacs, which needs only dtoastr,
12346         does not have to bother with distributing and compiling ftoastr
12347         and ldtoastr.
12348         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
12349         * modules/dtoastr, modules/ldtoastr: New files.
12350         * modules/ftoastr: Now works just for 'float'.
12351         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
12352         (Makefile.am): Remove ftoastr.h (not needed and no effect),
12353         dtoastr.c, ldtoastr.c.
12354
12355 2011-01-11  Jim Meyering  <meyering@redhat.com>
12356
12357         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
12358         There is no need to work around the lack of the fchdir function,
12359         since gnulib can now provide a replacement when required.
12360         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
12361         * modules/save-cwd (Depends-on): Add fchdir.
12362
12363 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12364
12365         openat, save-cwd: avoid xmalloc
12366
12367         This removes a direct (but undocumented) dependency of openat on
12368         xalloc, along with an indirect dependency via save-cwd.  It also
12369         removes a dependency of save-cwd on xgetcwd, and thereby
12370         indirectly on xalloc.  This change causes the openat substitute
12371         to fall back on save_cwd when memory is tight, and for save_cwd to
12372         fail instead of dying when memory is tight, but that's good enough.
12373         Problem and initial idea for fix reported by Bastien Roucaries in
12374         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
12375
12376         * lib/openat-proc.c: Include stdlib.h (for malloc), not
12377         xalloc.h (for xmalloc).
12378         (openat_proc_name): Use malloc, not xmalloc.
12379         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
12380         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
12381
12382         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
12383         This avoids heap allocation for file names whose lengths are in
12384         the range 512..1023, with the upper bound increasing to at most
12385         4031 depending on the platform's PATH_MAX.  (We do not want
12386         pathmax.h here as it might supply a non-constant PATH_MAX.)
12387         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
12388         Perhaps they should be moved to malloca.h?
12389         (OPENAT_BUFFER_SIZE): Use them.
12390
12391 2011-01-10  Bruno Haible  <bruno@clisp.org>
12392
12393         doc: Update users.txt.
12394         * users.txt: Add recutils.
12395
12396 2011-01-09  Karl Berry  <karl@gnu.org>
12397
12398         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
12399
12400         * doc/configmake.texi: New file.
12401         * doc/gnulib.texi: Include it.
12402         * modules/configmake: Move documentation from here.
12403
12404 2011-01-09  Bruno Haible  <bruno@clisp.org>
12405
12406         Update to Unicode 6.0.0.
12407         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
12408         (get_lbp): Update for Unicode 6.0.0.
12409         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
12410         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
12411         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
12412         U+11001, U+11038..U+11046. Remove U+06DE.
12413         (uc_width): Fix bounds of planes.
12414         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12415         lib/uniwidth/width.c.
12416         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
12417         trailing whitespace removed.
12418         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
12419         without comments, but with the original copyright notice.
12420         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
12421         * lib/unicase/ignorable.h: Likewise.
12422         * lib/unicase/tocasefold.h: Likewise.
12423         * lib/unicase/tolower.h: Likewise.
12424         * lib/unicase/totitle.h: Likewise.
12425         * lib/unicase/toupper.h: Likewise.
12426         * lib/unictype/bidi_of.h: Likewise.
12427         * lib/unictype/blocks.h: Likewise.
12428         * lib/unictype/categ_C.h: Likewise.
12429         * lib/unictype/categ_Cn.h: Likewise.
12430         * lib/unictype/categ_L.h: Likewise.
12431         * lib/unictype/categ_Ll.h: Likewise.
12432         * lib/unictype/categ_Lm.h: Likewise.
12433         * lib/unictype/categ_Lo.h: Likewise.
12434         * lib/unictype/categ_Lu.h: Likewise.
12435         * lib/unictype/categ_M.h: Likewise.
12436         * lib/unictype/categ_Mc.h: Likewise.
12437         * lib/unictype/categ_Me.h: Likewise.
12438         * lib/unictype/categ_Mn.h: Likewise.
12439         * lib/unictype/categ_N.h: Likewise.
12440         * lib/unictype/categ_Nd.h: Likewise.
12441         * lib/unictype/categ_No.h: Likewise.
12442         * lib/unictype/categ_P.h: Likewise.
12443         * lib/unictype/categ_Po.h: Likewise.
12444         * lib/unictype/categ_S.h: Likewise.
12445         * lib/unictype/categ_Sc.h: Likewise.
12446         * lib/unictype/categ_Sk.h: Likewise.
12447         * lib/unictype/categ_Sm.h: Likewise.
12448         * lib/unictype/categ_So.h: Likewise.
12449         * lib/unictype/categ_of.h: Likewise.
12450         * lib/unictype/combining.h: Likewise.
12451         * lib/unictype/ctype_alnum.h: Likewise.
12452         * lib/unictype/ctype_alpha.h: Likewise.
12453         * lib/unictype/ctype_graph.h: Likewise.
12454         * lib/unictype/ctype_lower.h: Likewise.
12455         * lib/unictype/ctype_print.h: Likewise.
12456         * lib/unictype/ctype_punct.h: Likewise.
12457         * lib/unictype/ctype_upper.h: Likewise.
12458         * lib/unictype/decdigit.h: Likewise.
12459         * lib/unictype/digit.h: Likewise.
12460         * lib/unictype/numeric.h: Likewise.
12461         * lib/unictype/pr_alphabetic.h: Likewise.
12462         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12463         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12464         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12465         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12466         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12467         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12468         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12469         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12470         * lib/unictype/pr_case_ignorable.h: Likewise.
12471         * lib/unictype/pr_cased.h: Likewise.
12472         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
12473         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
12474         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
12475         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
12476         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
12477         * lib/unictype/pr_combining.h: Likewise.
12478         * lib/unictype/pr_composite.h: Likewise.
12479         * lib/unictype/pr_currency_symbol.h: Likewise.
12480         * lib/unictype/pr_decimal_digit.h: Likewise.
12481         * lib/unictype/pr_deprecated.h: Likewise.
12482         * lib/unictype/pr_format_control.h: Likewise.
12483         * lib/unictype/pr_grapheme_base.h: Likewise.
12484         * lib/unictype/pr_grapheme_extend.h: Likewise.
12485         * lib/unictype/pr_grapheme_link.h: Likewise.
12486         * lib/unictype/pr_id_continue.h: Likewise.
12487         * lib/unictype/pr_id_start.h: Likewise.
12488         * lib/unictype/pr_ideographic.h: Likewise.
12489         * lib/unictype/pr_lowercase.h: Likewise.
12490         * lib/unictype/pr_math.h: Likewise.
12491         * lib/unictype/pr_numeric.h: Likewise.
12492         * lib/unictype/pr_other_alphabetic.h: Likewise.
12493         * lib/unictype/pr_other_id_continue.h: Likewise.
12494         * lib/unictype/pr_other_math.h: Likewise.
12495         * lib/unictype/pr_punctuation.h: Likewise.
12496         * lib/unictype/pr_sentence_terminal.h: Likewise.
12497         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12498         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12499         * lib/unictype/pr_unified_ideograph.h: Likewise.
12500         * lib/unictype/pr_uppercase.h: Likewise.
12501         * lib/unictype/pr_xid_continue.h: Likewise.
12502         * lib/unictype/pr_xid_start.h: Likewise.
12503         * lib/unictype/scripts.h: Likewise.
12504         * lib/unictype/scripts_byname.gperf: Likewise.
12505         * lib/unictype/sy_java_ident.h: Likewise.
12506         * lib/unigbrk/gbrkprop.h: Likewise.
12507         * lib/unilbrk/lbrkprop1.h: Likewise.
12508         * lib/unilbrk/lbrkprop2.h: Likewise.
12509         * lib/uninorm/decomposition-table2.h: Likewise.
12510         * lib/uniwbrk/wbrkprop.h: Likewise.
12511         * tests/unicase/test-cased.c: Likewise.
12512         * tests/unicase/test-ignorable.c: Likewise.
12513         * tests/unicase/test-uc_tolower.c: Likewise.
12514         * tests/unicase/test-uc_totitle.c: Likewise.
12515         * tests/unicase/test-uc_toupper.c: Likewise.
12516         * tests/unictype/test-categ_C.c: Likewise.
12517         * tests/unictype/test-categ_Cn.c: Likewise.
12518         * tests/unictype/test-categ_L.c: Likewise.
12519         * tests/unictype/test-categ_Ll.c: Likewise.
12520         * tests/unictype/test-categ_Lm.c: Likewise.
12521         * tests/unictype/test-categ_Lo.c: Likewise.
12522         * tests/unictype/test-categ_Lu.c: Likewise.
12523         * tests/unictype/test-categ_M.c: Likewise.
12524         * tests/unictype/test-categ_Mc.c: Likewise.
12525         * tests/unictype/test-categ_Me.c: Likewise.
12526         * tests/unictype/test-categ_Mn.c: Likewise.
12527         * tests/unictype/test-categ_N.c: Likewise.
12528         * tests/unictype/test-categ_Nd.c: Likewise.
12529         * tests/unictype/test-categ_No.c: Likewise.
12530         * tests/unictype/test-categ_P.c: Likewise.
12531         * tests/unictype/test-categ_Po.c: Likewise.
12532         * tests/unictype/test-categ_S.c: Likewise.
12533         * tests/unictype/test-categ_Sc.c: Likewise.
12534         * tests/unictype/test-categ_Sk.c: Likewise.
12535         * tests/unictype/test-categ_Sm.c: Likewise.
12536         * tests/unictype/test-categ_So.c: Likewise.
12537         * tests/unictype/test-ctype_alnum.c: Likewise.
12538         * tests/unictype/test-ctype_alpha.c: Likewise.
12539         * tests/unictype/test-ctype_graph.c: Likewise.
12540         * tests/unictype/test-ctype_lower.c: Likewise.
12541         * tests/unictype/test-ctype_print.c: Likewise.
12542         * tests/unictype/test-ctype_punct.c: Likewise.
12543         * tests/unictype/test-ctype_upper.c: Likewise.
12544         * tests/unictype/test-decdigit.h: Likewise.
12545         * tests/unictype/test-digit.h: Likewise.
12546         * tests/unictype/test-numeric.h: Likewise.
12547         * tests/unictype/test-pr_alphabetic.c: Likewise.
12548         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12549         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
12550         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
12551         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12552         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12553         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12554         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12555         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12556         * tests/unictype/test-pr_case_ignorable.c: Likewise.
12557         * tests/unictype/test-pr_cased.c: Likewise.
12558         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
12559         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
12560         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
12561         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
12562         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
12563         * tests/unictype/test-pr_combining.c: Likewise.
12564         * tests/unictype/test-pr_composite.c: Likewise.
12565         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12566         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12567         * tests/unictype/test-pr_deprecated.c: Likewise.
12568         * tests/unictype/test-pr_format_control.c: Likewise.
12569         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12570         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12571         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12572         * tests/unictype/test-pr_id_continue.c: Likewise.
12573         * tests/unictype/test-pr_id_start.c: Likewise.
12574         * tests/unictype/test-pr_ideographic.c: Likewise.
12575         * tests/unictype/test-pr_lowercase.c: Likewise.
12576         * tests/unictype/test-pr_math.c: Likewise.
12577         * tests/unictype/test-pr_numeric.c: Likewise.
12578         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12579         * tests/unictype/test-pr_other_id_continue.c: Likewise.
12580         * tests/unictype/test-pr_other_math.c: Likewise.
12581         * tests/unictype/test-pr_punctuation.c: Likewise.
12582         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12583         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12584         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12585         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12586         * tests/unictype/test-pr_uppercase.c: Likewise.
12587         * tests/unictype/test-pr_xid_continue.c: Likewise.
12588         * tests/unictype/test-pr_xid_start.c: Likewise.
12589         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12590         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12591         changes.
12592         * lib/unictype/categ_Cc.h: Likewise.
12593         * lib/unictype/categ_Cf.h: Likewise.
12594         * lib/unictype/categ_Co.h: Likewise.
12595         * lib/unictype/categ_Cs.h: Likewise.
12596         * lib/unictype/categ_Lt.h: Likewise.
12597         * lib/unictype/categ_Nl.h: Likewise.
12598         * lib/unictype/categ_Pc.h: Likewise.
12599         * lib/unictype/categ_Pd.h: Likewise.
12600         * lib/unictype/categ_Pe.h: Likewise.
12601         * lib/unictype/categ_Pf.h: Likewise.
12602         * lib/unictype/categ_Pi.h: Likewise.
12603         * lib/unictype/categ_Ps.h: Likewise.
12604         * lib/unictype/categ_Z.h: Likewise.
12605         * lib/unictype/categ_Zl.h: Likewise.
12606         * lib/unictype/categ_Zp.h: Likewise.
12607         * lib/unictype/categ_Zs.h: Likewise.
12608         * lib/unictype/ctype_blank.h: Likewise.
12609         * lib/unictype/ctype_cntrl.h: Likewise.
12610         * lib/unictype/ctype_digit.h: Likewise.
12611         * lib/unictype/ctype_space.h: Likewise.
12612         * lib/unictype/ctype_xdigit.h: Likewise.
12613         * lib/unictype/mirror.h: Likewise.
12614         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12615         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12616         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12617         * lib/unictype/pr_bidi_control.h: Likewise.
12618         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12619         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12620         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12621         * lib/unictype/pr_bidi_pdf.h: Likewise.
12622         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12623         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12624         * lib/unictype/pr_dash.h: Likewise.
12625         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12626         * lib/unictype/pr_diacritic.h: Likewise.
12627         * lib/unictype/pr_extender.h: Likewise.
12628         * lib/unictype/pr_hex_digit.h: Likewise.
12629         * lib/unictype/pr_hyphen.h: Likewise.
12630         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12631         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12632         * lib/unictype/pr_ignorable_control.h: Likewise.
12633         * lib/unictype/pr_iso_control.h: Likewise.
12634         * lib/unictype/pr_join_control.h: Likewise.
12635         * lib/unictype/pr_left_of_pair.h: Likewise.
12636         * lib/unictype/pr_line_separator.h: Likewise.
12637         * lib/unictype/pr_logical_order_exception.h: Likewise.
12638         * lib/unictype/pr_non_break.h: Likewise.
12639         * lib/unictype/pr_not_a_character.h: Likewise.
12640         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12641         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12642         * lib/unictype/pr_other_id_start.h: Likewise.
12643         * lib/unictype/pr_other_lowercase.h: Likewise.
12644         * lib/unictype/pr_other_uppercase.h: Likewise.
12645         * lib/unictype/pr_paired_punctuation.h: Likewise.
12646         * lib/unictype/pr_paragraph_separator.h: Likewise.
12647         * lib/unictype/pr_pattern_syntax.h: Likewise.
12648         * lib/unictype/pr_pattern_white_space.h: Likewise.
12649         * lib/unictype/pr_private_use.h: Likewise.
12650         * lib/unictype/pr_quotation_mark.h: Likewise.
12651         * lib/unictype/pr_radical.h: Likewise.
12652         * lib/unictype/pr_soft_dotted.h: Likewise.
12653         * lib/unictype/pr_space.h: Likewise.
12654         * lib/unictype/pr_titlecase.h: Likewise.
12655         * lib/unictype/pr_variation_selector.h: Likewise.
12656         * lib/unictype/pr_white_space.h: Likewise.
12657         * lib/unictype/pr_zero_width.h: Likewise.
12658         * lib/unictype/sy_c_ident.h: Likewise.
12659         * lib/unictype/sy_c_whitespace.h: Likewise.
12660         * lib/unictype/sy_java_whitespace.h: Likewise.
12661         * lib/uninorm/composition-table.gperf: Likewise.
12662         * lib/uninorm/decomposition-table1.h: Likewise.
12663         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
12664         LB8.
12665         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12666         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12667         * modules/unictype/*: Bump version number of expected libunistring
12668         version.
12669
12670 2011-01-09  Bruno Haible  <bruno@clisp.org>
12671
12672         Update to Unicode 5.2.0.
12673         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
12674         trailing whitespace removed.
12675
12676 2011-01-09  Bruno Haible  <bruno@clisp.org>
12677
12678         New Unicode character properties, from Unicode 5.2.0.
12679         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
12680         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
12681         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
12682         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
12683         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
12684         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
12685         uc_is_property_cased, uc_is_property_case_ignorable,
12686         uc_is_property_changes_when_lowercased,
12687         uc_is_property_changes_when_uppercased,
12688         uc_is_property_changes_when_titlecased,
12689         uc_is_property_changes_when_casefolded,
12690         uc_is_property_changes_when_casemapped): New declarations.
12691         * lib/unictype/pr_byname.gperf: Add the new properties.
12692         * modules/unictype/property-byname (Depends-on): Depend on the new
12693         properties modules.
12694         * modules/unictype/property-all (Depends-on): Likewise.
12695         * MODULES.html.sh (Unicode string functions): Add
12696         unictype/property-case-ignorable, unictype/property-cased,
12697         unictype/property-changes-when-casefolded,
12698         unictype/property-changes-when-casemapped,
12699         unictype/property-changes-when-lowercased,
12700         unictype/property-changes-when-titlecased,
12701         unictype/property-changes-when-uppercased.
12702
12703         New module 'unictype/property-changes-when-casemapped'.
12704         * modules/unictype/property-changes-when-casemapped: New file.
12705         * lib/unictype/pr_changes_when_casemapped.c: New file.
12706         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
12707         generated by gen-uni-tables.
12708         * modules/unictype/property-changes-when-casemapped-tests: New file.
12709         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
12710         automatically generated by gen-uni-tables.
12711
12712         New module 'unictype/property-changes-when-casefolded'.
12713         * modules/unictype/property-changes-when-casefolded: New file.
12714         * lib/unictype/pr_changes_when_casefolded.c: New file.
12715         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
12716         generated by gen-uni-tables.
12717         * modules/unictype/property-changes-when-casefolded-tests: New file.
12718         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
12719         automatically generated by gen-uni-tables.
12720
12721         New module 'unictype/property-changes-when-titlecased'.
12722         * modules/unictype/property-changes-when-titlecased: New file.
12723         * lib/unictype/pr_changes_when_titlecased.c: New file.
12724         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
12725         generated by gen-uni-tables.
12726         * modules/unictype/property-changes-when-titlecased-tests: New file.
12727         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
12728         automatically generated by gen-uni-tables.
12729
12730         New module 'unictype/property-changes-when-uppercased'.
12731         * modules/unictype/property-changes-when-uppercased: New file.
12732         * lib/unictype/pr_changes_when_uppercased.c: New file.
12733         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
12734         generated by gen-uni-tables.
12735         * modules/unictype/property-changes-when-uppercased-tests: New file.
12736         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
12737         automatically generated by gen-uni-tables.
12738
12739         New module 'unictype/property-changes-when-lowercased'.
12740         * modules/unictype/property-changes-when-lowercased: New file.
12741         * lib/unictype/pr_changes_when_lowercased.c: New file.
12742         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
12743         generated by gen-uni-tables.
12744         * modules/unictype/property-changes-when-lowercased-tests: New file.
12745         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
12746         automatically generated by gen-uni-tables.
12747
12748         New module 'unictype/property-case-ignorable'.
12749         * modules/unictype/property-case-ignorable: New file.
12750         * lib/unictype/pr_case_ignorable.c: New file.
12751         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
12752         by gen-uni-tables.
12753         * modules/unictype/property-case-ignorable-tests: New file.
12754         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
12755         generated by gen-uni-tables.
12756
12757         New module 'unictype/property-cased'.
12758         * modules/unictype/property-cased: New file.
12759         * lib/unictype/pr_cased.c: New file.
12760         * lib/unictype/pr_cased.h: New file, automatically generated by
12761         gen-uni-tables.
12762         * modules/unictype/property-cased-tests: New file.
12763         * tests/unictype/test-pr_cased.c: New file, automatically generated by
12764         gen-uni-tables.
12765
12766 2011-01-09  Bruno Haible  <bruno@clisp.org>
12767
12768         Update to Unicode 5.2.0.
12769         * lib/gen-uni-tables.c (output_predicate, output_category,
12770         output_combclass, output_bidi_category, output_decimal_digit_test,
12771         output_decimal_digit, output_digit_test, output_digit,
12772         output_numeric_test, output_numeric, output_mirror, output_scripts,
12773         output_scripts_byname, output_blocks, output_ident_category): Fix
12774         comment header.
12775         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
12776         get_wbp.
12777         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
12778         items.
12779         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
12780         Changes_When_Lowercased, Changes_When_Uppercased,
12781         Changes_When_Titlecased, Changes_When_Casefolded,
12782         Changes_When_Casemapped.
12783         (is_property_alphabetic, is_property_default_ignorable_code_point):
12784         Update for Unicode 5.2.0.
12785         (is_property_cased, is_property_case_ignorable,
12786         is_property_changes_when_lowercased,
12787         is_property_changes_when_uppercased,
12788         is_property_changes_when_titlecased,
12789         is_property_changes_when_casefolded,
12790         is_property_changes_when_casemapped): New functions.
12791         (output_properties): Output also the properties cased, case_ignorable,
12792         changes_when_lowercased, changes_when_uppercased,
12793         changes_when_titlecased, changes_when_casefolded,
12794         changes_when_casemapped.
12795         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
12796         Unicode TR#11 revision 17 -> 19.
12797         (LBP_CP): New enumeration value.
12798         (LBP_*): Adjust values accordingly.
12799         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12800         TR#14 revision 22 -> 24.
12801         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
12802         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
12803         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12804         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
12805         is_WBP_MIDLETTER.
12806         (output_composition_tables): Allow for 24 bits instead of 16 bits in
12807         the code1 and code2 of each composition rule.
12808         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
12809         * lib/unicase/ignorable.h: Likewise.
12810         * lib/unicase/tocasefold.h: Likewise.
12811         * lib/unicase/tolower.h: Likewise.
12812         * lib/unicase/totitle.h: Likewise.
12813         * lib/unicase/toupper.h: Likewise.
12814         * lib/unictype/bidi_of.h: Likewise.
12815         * lib/unictype/blocks.h: Likewise.
12816         * lib/unictype/categ_C.h: Likewise.
12817         * lib/unictype/categ_Cf.h: Likewise.
12818         * lib/unictype/categ_Cn.h: Likewise.
12819         * lib/unictype/categ_L.h: Likewise.
12820         * lib/unictype/categ_Ll.h: Likewise.
12821         * lib/unictype/categ_Lm.h: Likewise.
12822         * lib/unictype/categ_Lo.h: Likewise.
12823         * lib/unictype/categ_Lu.h: Likewise.
12824         * lib/unictype/categ_M.h: Likewise.
12825         * lib/unictype/categ_Mc.h: Likewise.
12826         * lib/unictype/categ_Mn.h: Likewise.
12827         * lib/unictype/categ_N.h: Likewise.
12828         * lib/unictype/categ_Nd.h: Likewise.
12829         * lib/unictype/categ_Nl.h: Likewise.
12830         * lib/unictype/categ_No.h: Likewise.
12831         * lib/unictype/categ_P.h: Likewise.
12832         * lib/unictype/categ_Pd.h: Likewise.
12833         * lib/unictype/categ_Po.h: Likewise.
12834         * lib/unictype/categ_S.h: Likewise.
12835         * lib/unictype/categ_Sc.h: Likewise.
12836         * lib/unictype/categ_So.h: Likewise.
12837         * lib/unictype/categ_of.h: Likewise.
12838         * lib/unictype/combining.h: Likewise.
12839         * lib/unictype/ctype_alnum.h: Likewise.
12840         * lib/unictype/ctype_alpha.h: Likewise.
12841         * lib/unictype/ctype_graph.h: Likewise.
12842         * lib/unictype/ctype_lower.h: Likewise.
12843         * lib/unictype/ctype_print.h: Likewise.
12844         * lib/unictype/ctype_punct.h: Likewise.
12845         * lib/unictype/ctype_upper.h: Likewise.
12846         * lib/unictype/decdigit.h: Likewise.
12847         * lib/unictype/digit.h: Likewise.
12848         * lib/unictype/numeric.h: Likewise.
12849         * lib/unictype/pr_alphabetic.h: Likewise.
12850         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12851         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12852         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12853         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12854         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12855         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12856         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12857         * lib/unictype/pr_combining.h: Likewise.
12858         * lib/unictype/pr_composite.h: Likewise.
12859         * lib/unictype/pr_currency_symbol.h: Likewise.
12860         * lib/unictype/pr_dash.h: Likewise.
12861         * lib/unictype/pr_decimal_digit.h: Likewise.
12862         * lib/unictype/pr_deprecated.h: Likewise.
12863         * lib/unictype/pr_diacritic.h: Likewise.
12864         * lib/unictype/pr_extender.h: Likewise.
12865         * lib/unictype/pr_grapheme_base.h: Likewise.
12866         * lib/unictype/pr_grapheme_extend.h: Likewise.
12867         * lib/unictype/pr_grapheme_link.h: Likewise.
12868         * lib/unictype/pr_id_continue.h: Likewise.
12869         * lib/unictype/pr_id_start.h: Likewise.
12870         * lib/unictype/pr_ideographic.h: Likewise.
12871         * lib/unictype/pr_ignorable_control.h: Likewise.
12872         * lib/unictype/pr_logical_order_exception.h: Likewise.
12873         * lib/unictype/pr_lowercase.h: Likewise.
12874         * lib/unictype/pr_numeric.h: Likewise.
12875         * lib/unictype/pr_other_alphabetic.h: Likewise.
12876         * lib/unictype/pr_punctuation.h: Likewise.
12877         * lib/unictype/pr_sentence_terminal.h: Likewise.
12878         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12879         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12880         * lib/unictype/pr_unified_ideograph.h: Likewise.
12881         * lib/unictype/pr_uppercase.h: Likewise.
12882         * lib/unictype/pr_xid_continue.h: Likewise.
12883         * lib/unictype/pr_xid_start.h: Likewise.
12884         * lib/unictype/pr_zero_width.h: Likewise.
12885         * lib/unictype/scripts.h: Likewise.
12886         * lib/unictype/scripts_byname.gperf: Likewise.
12887         * lib/unictype/sy_java_ident.h: Likewise.
12888         * lib/unigbrk/gbrkprop.h: Likewise.
12889         * lib/unilbrk/lbrkprop1.h: Likewise.
12890         * lib/unilbrk/lbrkprop2.h: Likewise.
12891         * lib/unilbrk/lbrktables.h: Likewise.
12892         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
12893         LBP_CP. Implement rule LB30.
12894         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
12895         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
12896         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
12897         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
12898         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
12899         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
12900         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
12901         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
12902         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
12903         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
12904         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
12905         bits instead of 16 bits in the code1 and code2 of each composition
12906         rule.
12907         (uc_composition): Update for Unicode 5.2.0.
12908         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
12909         * lib/uninorm/decomposition-table2.h: Likewise.
12910         * lib/uniwbrk/wbrkprop.h: Likewise.
12911         * tests/unicase/test-cased.c: Likewise.
12912         * tests/unicase/test-ignorable.c: Likewise.
12913         * tests/unicase/test-uc_tolower.c: Likewise.
12914         * tests/unicase/test-uc_totitle.c: Likewise.
12915         * tests/unicase/test-uc_toupper.c: Likewise.
12916         * tests/unictype/test-categ_C.c: Likewise.
12917         * tests/unictype/test-categ_Cf.c: Likewise.
12918         * tests/unictype/test-categ_Cn.c: Likewise.
12919         * tests/unictype/test-categ_L.c: Likewise.
12920         * tests/unictype/test-categ_Ll.c: Likewise.
12921         * tests/unictype/test-categ_Lm.c: Likewise.
12922         * tests/unictype/test-categ_Lo.c: Likewise.
12923         * tests/unictype/test-categ_Lu.c: Likewise.
12924         * tests/unictype/test-categ_M.c: Likewise.
12925         * tests/unictype/test-categ_Mc.c: Likewise.
12926         * tests/unictype/test-categ_Mn.c: Likewise.
12927         * tests/unictype/test-categ_N.c: Likewise.
12928         * tests/unictype/test-categ_Nd.c: Likewise.
12929         * tests/unictype/test-categ_Nl.c: Likewise.
12930         * tests/unictype/test-categ_No.c: Likewise.
12931         * tests/unictype/test-categ_P.c: Likewise.
12932         * tests/unictype/test-categ_Pd.c: Likewise.
12933         * tests/unictype/test-categ_Po.c: Likewise.
12934         * tests/unictype/test-categ_S.c: Likewise.
12935         * tests/unictype/test-categ_Sc.c: Likewise.
12936         * tests/unictype/test-categ_So.c: Likewise.
12937         * tests/unictype/test-ctype_alnum.c: Likewise.
12938         * tests/unictype/test-ctype_alpha.c: Likewise.
12939         * tests/unictype/test-ctype_graph.c: Likewise.
12940         * tests/unictype/test-ctype_lower.c: Likewise.
12941         * tests/unictype/test-ctype_print.c: Likewise.
12942         * tests/unictype/test-ctype_punct.c: Likewise.
12943         * tests/unictype/test-ctype_upper.c: Likewise.
12944         * tests/unictype/test-decdigit.h: Likewise.
12945         * tests/unictype/test-digit.h: Likewise.
12946         * tests/unictype/test-numeric.h: Likewise.
12947         * tests/unictype/test-pr_alphabetic.c: Likewise.
12948         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12949         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12950         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
12951         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12952         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12953         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12954         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12955         * tests/unictype/test-pr_combining.c: Likewise.
12956         * tests/unictype/test-pr_composite.c: Likewise.
12957         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12958         * tests/unictype/test-pr_dash.c: Likewise.
12959         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12960         * tests/unictype/test-pr_deprecated.c: Likewise.
12961         * tests/unictype/test-pr_diacritic.c: Likewise.
12962         * tests/unictype/test-pr_extender.c: Likewise.
12963         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12964         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12965         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12966         * tests/unictype/test-pr_id_continue.c: Likewise.
12967         * tests/unictype/test-pr_id_start.c: Likewise.
12968         * tests/unictype/test-pr_ideographic.c: Likewise.
12969         * tests/unictype/test-pr_ignorable_control.c: Likewise.
12970         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
12971         * tests/unictype/test-pr_lowercase.c: Likewise.
12972         * tests/unictype/test-pr_numeric.c: Likewise.
12973         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12974         * tests/unictype/test-pr_punctuation.c: Likewise.
12975         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12976         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12977         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12978         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12979         * tests/unictype/test-pr_uppercase.c: Likewise.
12980         * tests/unictype/test-pr_xid_continue.c: Likewise.
12981         * tests/unictype/test-pr_xid_start.c: Likewise.
12982         * tests/unictype/test-pr_zero_width.c: Likewise.
12983         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12984         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
12985         changed behaviour: line breaking is now disallowed between a letter
12986         or '=' and '('.
12987         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12988         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12989         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
12990         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
12991         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12992         lib/uniwidth/width.c.
12993         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
12994         without comments, but with the original copyright notice.
12995         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12996         changes.
12997         * lib/unictype/categ_Cc.h: Likewise.
12998         * lib/unictype/categ_Co.h: Likewise.
12999         * lib/unictype/categ_Cs.h: Likewise.
13000         * lib/unictype/categ_Lt.h: Likewise.
13001         * lib/unictype/categ_Me.h: Likewise.
13002         * lib/unictype/categ_Pc.h: Likewise.
13003         * lib/unictype/categ_Pe.h: Likewise.
13004         * lib/unictype/categ_Pf.h: Likewise.
13005         * lib/unictype/categ_Pi.h: Likewise.
13006         * lib/unictype/categ_Ps.h: Likewise.
13007         * lib/unictype/categ_Sk.h: Likewise.
13008         * lib/unictype/categ_Sm.h: Likewise.
13009         * lib/unictype/categ_Z.h: Likewise.
13010         * lib/unictype/categ_Zl.h: Likewise.
13011         * lib/unictype/categ_Zp.h: Likewise.
13012         * lib/unictype/categ_Zs.h: Likewise.
13013         * lib/unictype/ctype_blank.h: Likewise.
13014         * lib/unictype/ctype_cntrl.h: Likewise.
13015         * lib/unictype/ctype_digit.h: Likewise.
13016         * lib/unictype/ctype_space.h: Likewise.
13017         * lib/unictype/ctype_xdigit.h: Likewise.
13018         * lib/unictype/mirror.h: Likewise.
13019         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
13020         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
13021         * lib/unictype/pr_bidi_block_separator.h: Likewise.
13022         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
13023         * lib/unictype/pr_bidi_common_separator.h: Likewise.
13024         * lib/unictype/pr_bidi_control.h: Likewise.
13025         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
13026         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
13027         * lib/unictype/pr_bidi_pdf.h: Likewise.
13028         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
13029         * lib/unictype/pr_bidi_whitespace.h: Likewise.
13030         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
13031         * lib/unictype/pr_format_control.h: Likewise.
13032         * lib/unictype/pr_hex_digit.h: Likewise.
13033         * lib/unictype/pr_hyphen.h: Likewise.
13034         * lib/unictype/pr_ids_binary_operator.h: Likewise.
13035         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
13036         * lib/unictype/pr_iso_control.h: Likewise.
13037         * lib/unictype/pr_join_control.h: Likewise.
13038         * lib/unictype/pr_left_of_pair.h: Likewise.
13039         * lib/unictype/pr_line_separator.h: Likewise.
13040         * lib/unictype/pr_math.h: Likewise.
13041         * lib/unictype/pr_non_break.h: Likewise.
13042         * lib/unictype/pr_not_a_character.h: Likewise.
13043         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
13044         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
13045         * lib/unictype/pr_other_id_continue.h: Likewise.
13046         * lib/unictype/pr_other_id_start.h: Likewise.
13047         * lib/unictype/pr_other_lowercase.h: Likewise.
13048         * lib/unictype/pr_other_math.h: Likewise.
13049         * lib/unictype/pr_other_uppercase.h: Likewise.
13050         * lib/unictype/pr_paired_punctuation.h: Likewise.
13051         * lib/unictype/pr_paragraph_separator.h: Likewise.
13052         * lib/unictype/pr_pattern_syntax.h: Likewise.
13053         * lib/unictype/pr_pattern_white_space.h: Likewise.
13054         * lib/unictype/pr_private_use.h: Likewise.
13055         * lib/unictype/pr_quotation_mark.h: Likewise.
13056         * lib/unictype/pr_radical.h: Likewise.
13057         * lib/unictype/pr_soft_dotted.h: Likewise.
13058         * lib/unictype/pr_space.h: Likewise.
13059         * lib/unictype/pr_titlecase.h: Likewise.
13060         * lib/unictype/pr_variation_selector.h: Likewise.
13061         * lib/unictype/pr_white_space.h: Likewise.
13062         * lib/unictype/sy_c_ident.h: Likewise.
13063         * lib/unictype/sy_c_whitespace.h: Likewise.
13064         * lib/unictype/sy_java_whitespace.h: Likewise.
13065         * modules/uni*/*: Bump version number of expected libunistring version.
13066         Reported by Simon Josefsson.
13067
13068 2011-01-09  Karl Heuer  <kwzh@gnu.org>
13069
13070         useless-if-before-free: fix typo in --help and make the internal,
13071         automatic version date update process work once again.
13072         --help output contained a NUL character instead of the
13073         backslash-zero that was intended.  Also, the "must lie within
13074         the first 8 lines" line is on line 9, and hence not getting
13075         automatically updated.
13076         * build-aux/useless-if-before-free: Fix the former by adding a
13077         backslash, and the latter by condensing the three lines of what-it-does
13078         to a single line, leaving one line of slack for the future.
13079
13080 2011-01-09  Bruno Haible  <bruno@clisp.org>
13081
13082         uniwidth/width: Fix width of U+1D173..U+1D17A.
13083         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
13084         symbolic_width, output_width_property_test): New functions.
13085         (main): Invoke output_nonspacing_property, output_width_property_test.
13086         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
13087         U+1D173..U+1D17A.
13088         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
13089         1.
13090         * modules/uniwidth/*: Bump version number of expected libunistring
13091         version.
13092         * modules/unilbrk/*: Likewise.
13093
13094 2011-01-08  Bruno Haible  <bruno@clisp.org>
13095
13096         uninorm tests: Preserve copyright of Unicode data file.
13097         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
13098         Mention modifications.
13099
13100 2011-01-08  Bruno Haible  <bruno@clisp.org>
13101
13102         gen-uni-tables: Prepare for Unicode 5.2.0.
13103         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
13104         (debug_output_lbp, output_lbp): Update.
13105
13106 2011-01-08  Bruno Haible  <bruno@clisp.org>
13107
13108         unilbrk: Clarify gen-uni-tables.c code.
13109         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
13110         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
13111         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
13112
13113 2011-01-07  Bruno Haible  <bruno@clisp.org>
13114
13115         strtod: Restore errno when successfully parsing Infinity or NaN.
13116         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
13117         restore the original errno.
13118
13119 2011-01-07  Bruno Haible  <bruno@clisp.org>
13120
13121         remove test: Avoid failure on HP-UX 11.
13122         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
13123
13124 2011-01-07  Bruno Haible  <bruno@clisp.org>
13125
13126         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
13127         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
13128         error code.
13129
13130 2011-01-07  Pádraig Brady <P@draigBrady.com>
13131
13132         ignore-value: fixup comments, and add Eric Blake
13133         as an author since he rewrote the macros.
13134         * lib/ignore-value.h (ignore_value):  State that
13135         we now support aggregates.  Also specify exactly
13136         when the GCC warn_unused_result feature was added.
13137
13138 2011-01-06  Eric Blake  <eblake@redhat.com>
13139
13140         ignore-value: support aggregate types
13141         * lib/ignore-value.h (ignore_value): Provide separate gcc
13142         definition.
13143         * modules/ignore-value-tests: New test module.
13144         * tests/test-ignore-value.c: New test.
13145
13146         maint.mk: improve sc_prohibit_strcmp regex
13147         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
13148         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
13149         definition of STRNEQ.
13150
13151         signal: work around Haiku issue with SIGBUS
13152         * lib/siglist.h: Add comment.
13153         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
13154         strsignal's favoring of SIGSEGV.
13155         * tests/test-signal.c (main): Avoid test failure.
13156         * doc/posix-headers/signal.texi (signal.h): Document the issue.
13157         Reported by Scott McCreary.
13158
13159         maint.mk: add pre-release check to ensure submodule commits are public
13160         * top/maint.mk (public-submodule-commit): New rule.
13161         (submodule-checks): New variable.
13162         (alpha beta stable): Depend on the variable.
13163
13164 2011-01-05  Pádraig Brady <P@draigBrady.com>
13165         and Jim Meyering  <meyering@redhat.com>
13166
13167         ignore-value: make ignore_value more generic; deprecate ignore_ptr
13168         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
13169         (ATTRIBUTE_DEPRECATED): Define.
13170         (_ignore_case): New function.
13171         (ignore_value): New macro, to replace the old function.
13172         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
13173         * modules/ignore-value (Depends-on): Add stdint.
13174
13175 2011-01-04  Eric Blake  <eblake@redhat.com>
13176
13177         doc: regenerate INSTALL
13178         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
13179         @firstparagraphindent support, now that autoconf dropped it.
13180         (INSTALL_PRELUDE): Reinstate old macro.
13181         * doc/install.texi: Resync from autoconf.
13182         * doc/INSTALL: Reflect recent autoconf update.
13183         * doc/INSTALL.ISO: Likewise.
13184         * doc/INSTALL.UTF-8: Likewise.
13185         Reported by Karl Berry.
13186
13187 2011-01-04  Bruce Korb  <address@hidden>
13188
13189         git-version-gen: avoid a sub-shell
13190         * build-aux/git-version-gen: Redirect stderr in `...` via
13191         "exec 2>...", rather than via an added sub-shell.
13192
13193 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
13194
13195         git-version-gen: use (...) rather than sh -c '...'
13196         * build-aux/git-version-gen: Rather than hard-coding a shell's name
13197         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
13198
13199 2011-01-03  Jim Meyering  <meyering@redhat.com>
13200
13201         git-version-gen: convert leading TABs to spaces
13202         * build-aux/git-version-gen: Expand leading TABs.
13203
13204         git-version-gen: handle failed "git rev-list"
13205         * build-aux/git-version-gen: Rather than leaking a "fatal" error
13206         from git and proceeding as if it had succeeded but printed no SHA1
13207         checksums, suppress the diagnostic and handle the failure.
13208         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
13209
13210         git-version-gen: include command name in one more diagnostic
13211         * build-aux/git-version-gen: When the required .tarball-version file
13212         was missing or unreadable, you might see the diagnostic from "cat",
13213         but no trace of the name of the invoking script.  Now, you still see
13214         the diagnostic from cat, but also get one from "git-version-gen: ".
13215         Inspired by a patch from Bruce Korb.
13216
13217         update-copyright: adjust test to match changed code
13218         * tests/test-update-copyright.sh: Change test's expected output
13219         to match new actual output.
13220
13221 2011-01-02  Bruno Haible  <bruno@clisp.org>
13222
13223         getlogin_r: Avoid test failure on HP-UX 11.
13224         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
13225         ERANGE when the second argument is zero.
13226         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
13227         portability problem.
13228
13229 2011-01-02  Bruce Korb  <bkorb@gnu.org>
13230
13231         * build-aux/update-copyright: doc Simon's changes
13232
13233 2011-01-02  Simon Josefsson  <simon@josefsson.org>
13234
13235         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
13236         environment variable.
13237
13238 2011-01-02  Bruno Haible  <bruno@clisp.org>
13239
13240         unigbrk: Avoid gcc warnings.
13241         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
13242         unused variable.
13243         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
13244         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
13245         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
13246         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
13247         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
13248         Change type of first argument to 'const char *'.
13249         (main): Remove unused variable.
13250         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
13251         type of first argument to 'const char *'.
13252         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
13253         Likewise.
13254         (main): Change type of variable 's'.
13255         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
13256         to 'int'.
13257
13258 2011-01-02  Bruno Haible  <bruno@clisp.org>
13259
13260         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
13261         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
13262         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
13263         bug.
13264         * lib/pwrite.c: Undo 2010-12-31 patch.
13265         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
13266
13267 2011-01-02  Bruno Haible  <bruno@clisp.org>
13268
13269         pread: Fix test whether it works.
13270         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
13271
13272 2011-01-02  Bruno Haible  <bruno@clisp.org>
13273
13274         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
13275         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
13276         ends in "6". Don't require a specific month name. Try also the locale
13277         names found on HP-UX 11 and Solaris 7.
13278
13279 2011-01-02  Bruno Haible  <bruno@clisp.org>
13280
13281         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
13282         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
13283         C linkage.
13284         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
13285
13286 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13287
13288         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
13289         for consistency, since the "cluster" term is not used elsewhere.
13290         * lib/unigbrk.in.h: Update name.
13291         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
13292         * lib/unigbrk/u16-grapheme-next.c: Update name.
13293         * lib/unigbrk/u16-grapheme-prev.c: Update name.
13294         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
13295         * lib/unigbrk/u32-grapheme-next.c: Update name.
13296         * lib/unigbrk/u32-grapheme-prev.c: Update name.
13297         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
13298         * lib/unigbrk/u8-grapheme-next.c: Update name.
13299         * lib/unigbrk/u8-grapheme-prev.c: Update name.
13300         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
13301         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
13302         Suggested by Bruno Haible.
13303
13304 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13305
13306         Remove module 'u8-grapheme-len' as too redundant with
13307         'u8-grapheme-next'.
13308         * modules/unigbrk/u8-grapheme-len: Delete file.
13309         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
13310         * lib/unigbrk.in.h: Remove prototype for deleted function.
13311         * lib/unigbrk/u8-grapheme-len.c: Delete file.
13312         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
13313
13314         Remove module 'u16-grapheme-len' as too redundant with
13315         'u16-grapheme-next'.
13316         * modules/unigbrk/u16-grapheme-len: Delete file.
13317         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
13318         * lib/unigbrk.in.h: Remove prototype for deleted function.
13319         * lib/unigbrk/u16-grapheme-len.c: Delete file.
13320         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
13321
13322         Remove module 'u32-grapheme-len' as too redundant with
13323         'u32-grapheme-next'.
13324         * modules/unigbrk/u32-grapheme-len: Delete file.
13325         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
13326         * lib/unigbrk.in.h: Remove prototype for deleted function.
13327         * lib/unigbrk/u32-grapheme-len.c: Delete file.
13328         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
13329
13330         Suggested by Bruno Haible.
13331
13332 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13333
13334         * unigbrk.in.h: Fix typo: "ben" => "been".
13335         Reported by Bruno Haible.
13336
13337 2011-01-01  Jim Meyering  <meyering@redhat.com>
13338
13339         maint: update almost all copyright ranges to include 2011
13340         Run the new "make update-copyright" rule.
13341
13342 2011-01-01  Jim Meyering  <meyering@redhat.com>
13343
13344         maint: update-copyright: exempt doc/INSTALL*
13345         * Makefile (update-copyright): Also exclude doc/INSTALL*,
13346         since they are generated.  Suggested by Bruno Haible.
13347
13348 2011-01-01  Jim Meyering  <meyering@redhat.com>
13349
13350         maint: refine the update-copyright rule
13351         * Makefile (update-copyright): Also exclude any file that includes
13352         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
13353         code that merely generates the comment.
13354
13355 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13356
13357         New module 'u8-grapheme-len'.
13358         * modules/unigbrk/u8-grapheme-len: New file.
13359         * modules/unigbrk/u8-grapheme-len-tests: New file.
13360         * lib/unigbrk.in.h: Add prototype for new function.
13361         * lib/unigbrk/u8-grapheme-len.c: New file.
13362         * tests/unigbrk/test-u8-grapheme-len.c: New file.
13363
13364         New module 'u16-grapheme-len'.
13365         * modules/unigbrk/u16-grapheme-len: New file.
13366         * modules/unigbrk/u16-grapheme-len-tests: New file.
13367         * lib/unigbrk.in.h: Add prototype for new function.
13368         * lib/unigbrk/u16-grapheme-len.c: New file.
13369         * tests/unigbrk/test-u16-grapheme-len.c: New file.
13370
13371         New module 'u32-grapheme-len'.
13372         * modules/unigbrk/u32-grapheme-len: New file.
13373         * modules/unigbrk/u32-grapheme-len-tests: New file.
13374         * lib/unigbrk.in.h: Add prototype for new function.
13375         * lib/unigbrk/u32-grapheme-len.c: New file.
13376         * tests/unigbrk/test-u32-grapheme-len.c: New file.
13377
13378         New module 'u8-grapheme-next'.
13379         * modules/unigbrk/u8-grapheme-next: New file.
13380         * modules/unigbrk/u8-grapheme-next-tests: New file.
13381         * lib/unigbrk.in.h: Add prototype for new function.
13382         * lib/unigbrk/u8-grapheme-next.c: New file.
13383         * tests/unigbrk/test-u8-grapheme-next.c: New file.
13384
13385         New module 'u16-grapheme-next'.
13386         * modules/unigbrk/u16-grapheme-next: New file.
13387         * modules/unigbrk/u16-grapheme-next-tests: New file.
13388         * lib/unigbrk.in.h: Add prototype for new function.
13389         * lib/unigbrk/u16-grapheme-next.c: New file.
13390         * tests/unigbrk/test-u16-grapheme-next.c: New file.
13391
13392         New module 'u32-grapheme-next'.
13393         * modules/unigbrk/u32-grapheme-next: New file.
13394         * modules/unigbrk/u32-grapheme-next-tests: New file.
13395         * lib/unigbrk.in.h: Add prototype for new function.
13396         * lib/unigbrk/u32-grapheme-next.c: New file.
13397         * tests/unigbrk/test-u32-grapheme-next.c: New file.
13398
13399         New module 'u8-grapheme-prev'.
13400         * modules/unigbrk/u8-grapheme-prev: New file.
13401         * modules/unigbrk/u8-grapheme-prev-tests: New file.
13402         * lib/unigbrk.in.h: Add prototype for new function.
13403         * lib/unigbrk/u8-grapheme-prev.c: New file.
13404         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
13405
13406         New module 'u16-grapheme-prev'.
13407         * modules/unigbrk/u16-grapheme-prev: New file.
13408         * modules/unigbrk/u16-grapheme-prev-tests: New file.
13409         * lib/unigbrk.in.h: Add prototype for new function.
13410         * lib/unigbrk/u16-grapheme-prev.c: New file.
13411         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
13412
13413         New module 'u32-grapheme-prev'.
13414         * modules/unigbrk/u32-grapheme-prev: New file.
13415         * modules/unigbrk/u32-grapheme-prev-tests: New file.
13416         * lib/unigbrk.in.h: Add prototype for new function.
13417         * lib/unigbrk/u32-grapheme-prev.c: New file.
13418         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
13419
13420         New module 'u8-grapheme-breaks'.
13421         * modules/unigbrk/u8-grapheme-breaks: New file.
13422         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
13423         * lib/unigbrk.in.h: Add prototype for new function.
13424         * lib/unigbrk/u8-grapheme-breaks.c: New file.
13425         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
13426
13427         New module 'u16-grapheme-breaks'.
13428         * modules/unigbrk/u16-grapheme-breaks: New file.
13429         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
13430         * lib/unigbrk.in.h: Add prototype for new function.
13431         * lib/unigbrk/u16-grapheme-breaks.c: New file.
13432         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
13433
13434         New module 'u32-grapheme-breaks'.
13435         * modules/unigbrk/u32-grapheme-breaks: New file.
13436         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
13437         * lib/unigbrk.in.h: Add prototype for new function.
13438         * lib/unigbrk/u32-grapheme-breaks.c: New file.
13439         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
13440
13441         New module 'ulc-grapheme-breaks'.
13442         * modules/unigbrk/ulc-grapheme-breaks: New file.
13443         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
13444         * m4/locale-ar.m4: New file.
13445         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
13446         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
13447         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
13448
13449 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13450
13451         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
13452         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
13453         modified how this file was generated before I initially submitted
13454         the module, but failed to regenerate it.  This meant that several
13455         of the level2 entries were wrong.
13456         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
13457         Remove the division-by-2 that is folded into the table now that
13458         gbrkprop.h has been regenerated properly.  Now -1 entries are
13459         handled correctly.
13460
13461         New module 'unigbrk/uc-gbrk-prop-tests'.
13462         * modules/unigbrk/uc-gbrk-prop-tests: New file.
13463         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
13464         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
13465         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
13466
13467 2011-01-01  Bruno Haible  <bruno@clisp.org>
13468
13469         Avoid use of hexadecimal escapes.
13470         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
13471         instead of hexadecimal escapes.
13472
13473 2011-01-01  Jim Meyering  <meyering@redhat.com>
13474
13475         maint: new rule to update copyright year ranges
13476         * Makefile (update-copyright): New rule.
13477
13478         maint: indent with TABs in Makefile
13479         * Makefile: Expand leading sequences of spaces to TABs
13480
13481         version-etc: update the copyright year it reports
13482         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
13483
13484 2010-12-31  Bruno Haible  <bruno@clisp.org>
13485
13486         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
13487         * lib/isfinite.c (zerof, zerod, zerol): New variables.
13488         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
13489         zero.
13490
13491 2010-12-31  Bruno Haible  <bruno@clisp.org>
13492
13493         pwrite: Work around HP-UX 11.11 bug.
13494         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
13495         works and set REPLACE_PWRITE if not.
13496         * lib/pwrite.c (pwrite): Add an implementation that uses the system
13497         function.
13498         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
13499
13500 2010-12-31  Bruno Haible  <bruno@clisp.org>
13501
13502         pread: Work around HP-UX 11 bugs.
13503         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
13504         and set REPLACE_PREAD if not.
13505         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
13506
13507 2010-12-31  Eric Blake  <eblake@redhat.com>
13508
13509         nl_langinfo: fix YESEXPR on Irix 6.5
13510         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
13511         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
13512         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
13513         it.
13514
13515 2010-12-31  Bruno Haible  <bruno@clisp.org>
13516
13517         iconv: Document HP-UX 11 bug.
13518         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
13519
13520 2010-12-31  Bruno Haible  <bruno@clisp.org>
13521
13522         ldexpl: Fix link error on HP-UX 11.
13523         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
13524         LDEXPL_LIBM, using $ISNANL_LIBM.
13525
13526 2010-12-31  Eric Blake  <eblake@redhat.com>
13527
13528         ftello: avoid compilation failure with SunStudio c89
13529         * lib/ftello.c (ftello): Use lseek, not llseek.
13530
13531         tests: avoid failing coreutils tests on cygwin
13532         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
13533         (create_exe_shims_): Return 0 when skipping.
13534
13535 2010-12-31  Bruno Haible  <bruno@clisp.org>
13536
13537         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
13538         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
13539
13540 2010-12-31  Bruno Haible  <bruno@clisp.org>
13541
13542         waitpid: Fix link error in C++ mode.
13543         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
13544
13545 2010-12-31  Bruno Haible  <bruno@clisp.org>
13546
13547         isnan: Use GCC built-ins when possible.
13548         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
13549         __builtin_isnan.
13550         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
13551         (isnan): Define using GCC built-ins for GCC >= 4.0.
13552
13553 2010-12-31  Bruno Haible  <bruno@clisp.org>
13554
13555         isnand: Fix mistake.
13556         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
13557         __builtin_isnand.
13558
13559 2010-12-31  Bruno Haible  <bruno@clisp.org>
13560
13561         open: Avoid C++ error on HP-UX 11.
13562         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
13563
13564 2010-12-31  Bruno Haible  <bruno@clisp.org>
13565
13566         time_r: Add missing declarations on HP-UX 11.
13567         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
13568         instead of HAVE_LOCALTIME_R.
13569         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
13570         HAVE_LOCALTIME_R always.
13571         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
13572         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
13573         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
13574         HAVE_LOCALTIME_R.
13575         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
13576         * doc/posix-functions/localtime_r.texi: Likewise.
13577
13578 2010-12-29  Eric Blake  <eblake@redhat.com>
13579
13580         mountlist: tweak previous commit
13581         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
13582         Reported by Paul Eggert.
13583
13584         mountlist: fix local drive detection on cygwin
13585         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
13586         that works for cygwin.
13587
13588 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13589
13590         ftoastr, snprintf: ftoastr + snprintf module
13591         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
13592         since the snprintf module now should be good enough here.
13593         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
13594         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
13595         and gl_MODULE_INDICATOR([snprintf]), but the former enables
13596         GNULIB_SNPRINTF only for the test directory, and the latter
13597         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
13598         seems to suffice by itself.
13599
13600 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13601
13602         alloca: one step towards thread-safety
13603         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
13604         need for a static variable.  All callers changed.  This does not
13605         make the alloca replacement thread-safe, but it's one step.
13606
13607         tests: minor indenting change
13608         * tests/init.sh: Sync from coreutils housekeeping patch
13609         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
13610         to keep lines within 80 columns.
13611
13612 2010-12-28  Jim Meyering  <meyering@redhat.com>
13613
13614         regex: don't infloop on persistent failing calloc
13615         * lib/regexec.c (build_trtable): Return failure indication upon
13616         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
13617         In glibc, this was fixed for version 2.13:
13618         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
13619
13620 2010-12-28  Bruno Haible  <bruno@clisp.org>
13621             Paul Eggert <eggert@cs.ucla.edu>
13622
13623         linkat: Make implementation robust against system behaviour variations.
13624         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
13625         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
13626         way, and to -2 if it needs a generic runtime test.
13627         * lib/linkat.c (solaris_optimized_link_immediate,
13628         solaris_optimized_link_follow): New functions.
13629         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
13630         (check_same_link): Use it.
13631
13632 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
13633
13634         New module 'unigbrk/base'.
13635         * modules/unigbrk/base: New file.
13636         * lib/unigbrk.in.h: New file.
13637
13638         New module 'unigbrk/uc-gbrk-prop'.
13639         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
13640         * modules/unigbrk/uc-gbrk-prop: New file.
13641         * lib/unigbrk/gbrkprop.h: New file.
13642         * lib/unigbrk/uc-gbrk-prop.c: New file.
13643
13644         New module 'unigbrk/uc-is-grapheme-break'.
13645         * modules/unigbrk/uc-is-grapheme-break: New file.
13646         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
13647         * lib/unigbrk/uc-is-grapheme-break.c: New file.
13648         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
13649         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
13650         * tests/unigbrk/GraphemeBreakTest.txt: New file.
13651
13652         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
13653
13654 2010-12-27  Bruno Haible  <bruno@clisp.org>
13655
13656         linkat test: Avoid failure on Solaris 11 2010-11.
13657         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
13658
13659 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13660
13661         utimens: work around glibc rounding bug on more platforms
13662         * lib/utimens.c (fdutimens): Work around rounding bug even if
13663         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
13664         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
13665
13666 2010-12-27  Bruno Haible  <bruno@clisp.org>
13667
13668         select tests: Improve comments.
13669         * tests/test-select.c (do_select): Add comments.
13670
13671 2010-12-27  Bruno Haible  <bruno@clisp.org>
13672
13673         select tests: Safer way of handling timeout.
13674         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
13675         at every invocation.
13676
13677 2010-12-27  Bruno Haible  <bruno@clisp.org>
13678
13679         select tests: Use 'bool' where appropriate.
13680         * tests/test-select.c (connect_to_socket): Change argument type to
13681         'bool'.
13682
13683 2010-12-27  Bruno Haible  <bruno@clisp.org>
13684
13685         select tests: Use existing modules.
13686         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
13687         (configure.ac): Don't test for unistd.h.
13688         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
13689         declared in <unistd.h>.
13690
13691 2010-12-27  Bruno Haible  <bruno@clisp.org>
13692
13693         mbrtowc: Work around a Solaris 7 bug.
13694         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
13695         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
13696         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
13697         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
13698         MBRTOWC_NULL_ARG1_BUG.
13699         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
13700         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
13701         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
13702         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
13703
13704 2010-12-27  Jim Meyering  <meyering@redhat.com>
13705
13706         read-file.c: tweak syntax
13707         * lib/read-file.c (fread_file): Remove space after "*" in function
13708         definitions.
13709
13710 2010-12-27  Bruno Haible  <bruno@clisp.org>
13711
13712         times test: Avoid gcc warnings on OSF/1.
13713         * tests/test-times.c (main): Cast printf arguments from clock_t to
13714         'long int'.
13715
13716 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13717
13718         utimens: work around glibc rounding bug on older Linux kernels
13719         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
13720         on Linux with a glibc whose utimes might not work, then work
13721         around a longstanding glibc bug involving rounding rather than
13722         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
13723         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13724
13725 2010-12-26  Bruno Haible  <bruno@clisp.org>
13726
13727         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
13728         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
13729         _GL_CXXALIAS_SYS.
13730         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13731
13732 2010-12-26  Bruno Haible  <bruno@clisp.org>
13733
13734         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
13735         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
13736         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13737         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
13738         looking for the declaration.
13739         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
13740         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
13741         problem.
13742         * doc/posix-functions/inet_pton.texi: Likewise.
13743
13744 2010-12-26  Bruno Haible  <bruno@clisp.org>
13745
13746         arpa_inet: Use the common idioms with C++ support.
13747         * lib/arpa_inet.in.h: Include c++defs.h.
13748         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
13749         support.
13750         * modules/arpa_inet (Depends-on): Add c++defs.
13751         (Makefile.am): Substitute the contents of c++defs.h.
13752         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
13753         * modules/arpa_inet-c++-tests: New file.
13754         * tests/test-arpa_inet-c++.cc: New file.
13755
13756 2010-12-25  Bruno Haible  <bruno@clisp.org>
13757
13758         Fix more C++ link errors on Solaris 8.
13759         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
13760         $(LIB_EACCESS).
13761         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
13762         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
13763         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
13764         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
13765         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
13766
13767 2010-12-25  Bruno Haible  <bruno@clisp.org>
13768
13769         printf-posix: Fix link error when a non-GCC compiler is used.
13770         * lib/stdio.in.h (printf): When not using GCC, override printf
13771         correctly.
13772         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13773
13774 2010-12-25  Bruno Haible  <bruno@clisp.org>
13775
13776         strerror_r-posix: Update doc.
13777         * doc/posix-functions/strerror_r.texi: Update doc about the return
13778         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
13779
13780 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13781
13782         utimens: simplify the logic of the previous change
13783         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
13784         This should not affect whether the test succeeds or fails.
13785
13786         utimens: configure better on hosts with NFS clock skew
13787         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
13788         uses the clock of the local host.  It might use the clock of the
13789         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
13790         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13791
13792 2010-12-25  Bruno Haible  <bruno@clisp.org>
13793
13794         ptsname test: Avoid failure on Solaris.
13795         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
13796         open a pseudo-terminal; don't use BSD-style ptys.
13797         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
13798
13799 2010-12-25  Bruno Haible  <bruno@clisp.org>
13800
13801         ptsname: Avoid ERANGE failure on some systems.
13802         * lib/ptsname.c (buffer): Increase size.
13803
13804 2010-12-25  Bruno Haible  <bruno@clisp.org>
13805
13806         rename, renameat: Avoid test failures at NFS mounted locations.
13807         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
13808         so that subsequent mkdir calls succeed.
13809
13810 2010-12-25  Bruno Haible  <bruno@clisp.org>
13811
13812         iswblank: Fix C++ link error on Solaris 8.
13813         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
13814         _GL_FUNCDECL_SYS.
13815
13816 2010-12-25  Bruno Haible  <bruno@clisp.org>
13817
13818         unistd: Fix C++ link error on Solaris 8.
13819         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
13820
13821 2010-12-25  Bruno Haible  <bruno@clisp.org>
13822
13823         readlink doc: Mention an old glibc bug.
13824         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
13825
13826 2010-12-25  Bruno Haible  <bruno@clisp.org>
13827
13828         fcntl-h: Fix for use of C++ on glibc systems.
13829         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13830         also on glibc systems in C++ mode.
13831         Reported by Gary V. Vaughan <gary@gnu.org>.
13832
13833 2010-12-25  Bruno Haible  <bruno@clisp.org>
13834
13835         roundl-ieee: Make it work on OSF/1 5.1 with cc.
13836         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
13837
13838 2010-12-25  Bruno Haible  <bruno@clisp.org>
13839
13840         truncl-ieee: Make it work on OSF/1 5.1 with cc.
13841         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
13842         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
13843         test whether truncl works according to ISO C 99 with IEC 60559.
13844         * m4/truncl-ieee.m4: New file.
13845         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
13846         m4/signbit.m4.
13847         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
13848
13849 2010-12-25  Bruno Haible  <bruno@clisp.org>
13850
13851         ceill-ieee: Make it work on OSF/1 5.1 with cc.
13852         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
13853         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
13854         test whether ceill works according to ISO C 99 with IEC 60559.
13855         * m4/ceill-ieee.m4: New file.
13856         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
13857         m4/signbit.m4.
13858         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
13859
13860 2010-12-25  Bruno Haible  <bruno@clisp.org>
13861
13862         Ensure all prerequisites of <wchar.h> are included.
13863         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
13864         before <wchar.h>.
13865         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13866         gl_MBRLEN_NUL_RETVAL): Likewise.
13867         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13868         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
13869         AC_FUNC_MBRTOWC): Likewise.
13870         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13871         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
13872         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13873         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13874         Likewise.
13875         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13876         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
13877         (gl_WCHAR_H): Improve comments.
13878         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
13879
13880 2010-12-25  Bruno Haible  <bruno@clisp.org>
13881
13882         strtok_r: Fix C syntax error in autoconf macro.
13883         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
13884         characters in test program.
13885
13886 2010-12-24  Bruno Haible  <bruno@clisp.org>
13887
13888         ceil, trunc, round: Fix gcc warnings.
13889         * lib/ceil.c (MIN): Undefine before redefining.
13890         * lib/trunc.c (MIN): Likewise.
13891         * lib/round.c (MIN): Likewise.
13892         Include <math.h> first.
13893
13894 2010-12-24  Bruno Haible  <bruno@clisp.org>
13895
13896         select tests: Avoid failures on OSF/1 5.1.
13897         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
13898         failure of closing the last socket; it may fail with ECONNRESET.
13899
13900 2010-12-24  Eric Blake  <eblake@redhat.com>
13901
13902         stdint: avoid HP-UX 10.20 preprocessor bug
13903         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
13904         than #if.
13905         * tests/test-floor2.c (main): Likewise.
13906         Reported by Peter O'Gorman.
13907
13908         pipe: make obsoletion transition easier
13909         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
13910         * modules/pipe (Files): Include revived file.
13911         (Include): Drop reference, to mirror getdate's behavior.
13912
13913 2010-12-24  Bruno Haible  <bruno@clisp.org>
13914
13915         sys_socket: Hide mismatch of declarations on NonStop Kernel.
13916         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
13917         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
13918         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13919
13920 2010-12-24  Bruno Haible  <bruno@clisp.org>
13921
13922         gethostname: Ensure declaration on NonStop Kernel.
13923         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
13924         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13925
13926 2010-12-24  Bruno Haible  <bruno@clisp.org>
13927
13928         sys_select: Ensure all necessary types on NonStop Kernel.
13929         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
13930         include <sys/time.h>.
13931         * doc/posix-headers/sys_select.texi: Mention that it's missing on
13932         NonStop Kernel.
13933         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13934
13935 2010-12-24  Bruno Haible  <bruno@clisp.org>
13936
13937         sys_select: Remove unneeded include.
13938         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
13939         have <sys/select.h>.
13940
13941 2010-12-24  Bruno Haible  <bruno@clisp.org>
13942
13943         gethostname: Provide a fallback for HOST_NAME_MAX.
13944         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
13945         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
13946         instead.
13947         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13948
13949 2010-12-24  Bruno Haible  <bruno@clisp.org>
13950
13951         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
13952         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
13953         (SA_RESTART): Likewise.
13954         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13955
13956 2010-12-24  Bruno Haible  <bruno@clisp.org>
13957
13958         signal: Define NSIG.
13959         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
13960         * tests/test-signal.c (nsig): New variable.
13961         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13962
13963 2010-12-24  Bruno Haible  <bruno@clisp.org>
13964
13965         rename, renameat: Avoid test failures on OSF/1 5.1.
13966         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
13967         alternative error codes.
13968         * tests/test-renameat.c (main): Likewise.
13969
13970 2010-12-24  Bruno Haible  <bruno@clisp.org>
13971
13972         *printf: Detect large precisions bug on Solaris 10/SPARC.
13973         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
13974         by Paul Eggert.
13975         * tests/test-snprintf-posix.h (test_function): Add this test code here
13976         too.
13977         * tests/test-sprintf-posix.h (test_function): Likewise.
13978         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13979         * tests/test-vasprintf-posix.c (test_function): Likewise.
13980         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
13981         around by gnulib.
13982         * doc/posix-functions/printf.texi: Likewise.
13983         * doc/posix-functions/snprintf.texi: Likewise.
13984         * doc/posix-functions/sprintf.texi: Likewise.
13985         * doc/posix-functions/vfprintf.texi: Likewise.
13986         * doc/posix-functions/vprintf.texi: Likewise.
13987         * doc/posix-functions/vsnprintf.texi: Likewise.
13988         * doc/posix-functions/vsprintf.texi: Likewise.
13989         * doc/posix-functions/dprintf.texi: Undo last commit.
13990         * doc/posix-functions/vdprintf.texi: Likewise.
13991
13992 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13993
13994         tests: port test-fdutimensat.c to Solaris 8
13995         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
13996         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
13997         On Solaris 8, it fails with errno == ENOSYS, because there is no
13998         futimens (so it can't use the fd), and there is no lutimens (so it
13999         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
14000
14001         vsnprintf: make more consistent with snprintf; doc fixes
14002
14003         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
14004         the byte count return problem was promoted from the snprintf-posix
14005         to the snprintf module.
14006         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14007         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
14008         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
14009         * tests/test-snprintf.c (main): Check the byte count returned.
14010         * tests/test-vsnprintf.c (main): Likewise.
14011
14012 2010-12-23  Eric Blake  <eblake@redhat.com>
14013
14014         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
14015         * modules/sigpipe (License): Relax license.
14016
14017 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14018
14019         doc: document Solaris printf bug with large float precisions
14020         * doc/posix-functions/dprintf.texi (dprintf):
14021         * doc/posix-functions/fprintf.texi (fprintf):
14022         * doc/posix-functions/printf.texi (printf):
14023         * doc/posix-functions/snprintf.texi (snprintf):
14024         * doc/posix-functions/sprintf.texi (sprintf):
14025         * doc/posix-functions/vdprintf.texi (vdprintf):
14026         * doc/posix-functions/vfprintf.texi (vfprintf):
14027         * doc/posix-functions/vprintf.texi (vprintf):
14028         * doc/posix-functions/vsnprintf.texi (vsnprintf):
14029         * doc/posix-functions/vsprintf.texi (vsprintf):
14030         Mention that these functions mishandle large floating point
14031         precisions on Solaris 10.  The same bug is also present in Solaris
14032         8, and I assume earlier.  This causes "cd gnulib-tests; make
14033         check" to fail on Solaris 8 (and I assume, later) when building
14034         the latest coreutils, in test-vasprintf-posix's call to
14035         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
14036         the wide flavors (e.g., wprintf) so this patch just updates the
14037         documentation for the narrow ones.
14038
14039         test-posixtm.c: add two tests
14040         * tests/test-posixtm.c: Add two tests, to highlight the
14041         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
14042         around this bug; this is merely to document it.
14043
14044 2010-12-22  Bruno Haible  <bruno@clisp.org>
14045
14046         getlogin_r: Work around portability problem on OSF/1.
14047         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
14048         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
14049         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
14050         test for a truncated result.
14051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
14052         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
14053         * modules/getlogin_r (Depends-on): Add memchr.
14054         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
14055
14056 2010-12-22  Bruno Haible  <bruno@clisp.org>
14057
14058         ptsname: Avoid test failure on OSF/1 5.1.
14059         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
14060         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
14061         (same_slave): New function.
14062         (main): Use it to compare ptsname's result with the expected file name.
14063
14064 2010-12-22  Bruno Haible  <bruno@clisp.org>
14065
14066         Port extended stdio modules to HP NonStop Kernel.
14067         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
14068         macros.
14069         * lib/fbufmode.c: Update comments.
14070         * lib/fflush.c: Likewise.
14071         * lib/fpurge.c: Likewise.
14072         * lib/freadable.c: Likewise.
14073         * lib/freadahead.c: Likewise.
14074         * lib/freading.c: Likewise.
14075         * lib/freadptr.c: Likewise.
14076         * lib/freadseek.c: Likewise.
14077         * lib/fseeko.c: Likewise.
14078         * lib/fseterr.c: Likewise.
14079         * lib/fwritable.c: Likewise.
14080         * lib/fwriting.c: Likewise.
14081         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14082
14083 2010-12-22  Bruno Haible  <bruno@clisp.org>
14084
14085         ttyname_r: Work around bug on OSF/1 5.1.
14086         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
14087         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
14088         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
14089         present.
14090         * lib/ttyname_r.c (ttyname_r): Update comments.
14091
14092 2010-12-22  Bruno Haible  <bruno@clisp.org>
14093
14094         round: Implement result sign according to IEEE 754.
14095         * lib/round.c (MIN, MINUS_ZERO): New macros.
14096         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
14097         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
14098         * tests/test-round-ieee.c (main): Likewise.
14099         * tests/test-roundl-ieee.c (main): Likewise.
14100
14101         trunc: Implement result sign according to IEEE 754.
14102         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
14103         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
14104         * tests/test-trunc2.c: Include minus-zero.h.
14105         (MINUS_ZERO): New macro.
14106         (trunc_reference): Keep in sync with lib/trunc.c.
14107         * tests/test-truncf2.c: Include minus-zero.h.
14108         (MINUS_ZERO): New macro.
14109         (truncf_reference): Keep in sync with lib/trunc.c.
14110         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
14111         * tests/test-trunc-ieee.c (main): Likewise.
14112         * tests/test-truncl-ieee.c (main): Likewise.
14113
14114         ceil: Implement result sign according to IEEE 754.
14115         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
14116         (FUNC): Return -0.0 for -1 < x < 0.
14117         * tests/test-ceil2.c: Include minus-zero.h.
14118         (MINUS_ZERO): New macro.
14119         (ceil_reference): Keep in sync with lib/ceil.c.
14120         * tests/test-ceilf2.c: Include minus-zero.h.
14121         (MINUS_ZERO): New macro.
14122         (ceilf_reference): Keep in sync with lib/ceil.c.
14123         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
14124         * tests/test-ceil-ieee.c (main): Likewise.
14125         * tests/test-ceill-ieee.c (main): Likewise.
14126
14127         floor: Implement result sign according to IEEE 754.
14128         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
14129         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
14130         * tests/test-floorf2.c (floorf_reference): Likewise.
14131         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
14132         * tests/test-floor-ieee.c (main): Likewise.
14133         * tests/test-floorl-ieee.c (main): Likewise.
14134
14135 2010-12-22  Bruno Haible  <bruno@clisp.org>
14136
14137         getaddrinfo: Update doc.
14138         * doc/posix-functions/gai_strerror.texi: Return type is also different
14139         on AIX and HP-UX.
14140
14141 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14142
14143         getaddrinfo, inet_ntop: Update doc for Solaris.
14144         * doc/posix-functions/gai_strerror.texi: Return type is also an
14145         issue on Solaris 9 and earlier.
14146         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
14147         on Solaris 10 and earlier.
14148
14149 2010-12-21  Bruno Haible  <bruno@clisp.org>
14150
14151         New module 'roundl-ieee'.
14152         * modules/roundl-ieee: New file.
14153         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
14154         test whether roundl works according to ISO C 99 with IEC 60559.
14155         * m4/roundl-ieee.m4: New file.
14156         * modules/roundl-ieee-tests: New file.
14157         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
14158         * tests/test-roundl.c (main): Remove signbit tests.
14159         * modules/roundl-tests (Depends-on): Remove signbit.
14160         * doc/posix-functions/roundl.texi: Mention the new module.
14161
14162 2010-12-21  Bruno Haible  <bruno@clisp.org>
14163
14164         New module 'truncl-ieee'.
14165         * modules/truncl-ieee: New file.
14166         * modules/truncl-ieee-tests: New file.
14167         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
14168         * tests/test-truncl.c (main): Remove signbit tests.
14169         * modules/truncl-tests (Depends-on): Remove signbit.
14170         * doc/posix-functions/truncl.texi: Mention the new module.
14171
14172 2010-12-21  Bruno Haible  <bruno@clisp.org>
14173
14174         New module 'ceill-ieee'.
14175         * modules/ceill-ieee: New file.
14176         * modules/ceill-ieee-tests: New file.
14177         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
14178         * tests/test-ceill.c (main): Remove signbit tests.
14179         * modules/ceill-tests (Depends-on): Remove signbit.
14180         * doc/posix-functions/ceill.texi: Mention the new module.
14181
14182 2010-12-21  Bruno Haible  <bruno@clisp.org>
14183
14184         New module 'floorl-ieee'.
14185         * modules/floorl-ieee: New file.
14186         * modules/floorl-ieee-tests: New file.
14187         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
14188         * tests/test-floorl.c (main): Remove signbit tests.
14189         * modules/floorl-tests (Depends-on): Remove signbit.
14190         * doc/posix-functions/floorl.texi: Mention the new module.
14191
14192 2010-12-21  Bruno Haible  <bruno@clisp.org>
14193
14194         New module 'round-ieee'.
14195         * modules/round-ieee: New file.
14196         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
14197         whether round works according to ISO C 99 with IEC 60559.
14198         * m4/round-ieee.m4: New file.
14199         * modules/round-ieee-tests: New file.
14200         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
14201         * tests/test-round1.c (main): Remove signbit tests.
14202         * modules/round-tests (Depends-on): Remove 'signbit'.
14203         * doc/posix-functions/round.texi: Mention the new module.
14204
14205 2010-12-21  Bruno Haible  <bruno@clisp.org>
14206
14207         New module 'trunc-ieee'.
14208         * modules/trunc-ieee: New file.
14209         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
14210         whether trunc works according to ISO C 99 with IEC 60559.
14211         * m4/trunc-ieee.m4: New file.
14212         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
14213         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
14214         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
14215         * modules/trunc-ieee-tests: New file.
14216         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
14217         * tests/test-trunc1.c (main): Remove signbit tests.
14218         * modules/trunc-tests (Depends-on): Remove 'signbit'.
14219         * doc/posix-functions/trunc.texi: Mention the new module.
14220
14221 2010-12-21  Bruno Haible  <bruno@clisp.org>
14222
14223         New module 'ceil-ieee'.
14224         * modules/ceil-ieee: New file.
14225         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
14226         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
14227         ISO C 99 with IEC 60559.
14228         * m4/ceil-ieee.m4: New file.
14229         * modules/ceil (Files): Add lib/ceil.c.
14230         (Depends-on): Add 'float'.
14231         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14232         * lib/math.in.h (ceil): New declaration.
14233         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
14234         REPLACE_CEIL.
14235         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
14236         * modules/ceil-ieee-tests: New file.
14237         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
14238         * tests/test-math-c++.cc: Check the signature of 'ceil'.
14239         * doc/posix-functions/ceil.texi: Mention the new module.
14240
14241 2010-12-21  Bruno Haible  <bruno@clisp.org>
14242
14243         New module 'floor-ieee'.
14244         * modules/floor-ieee: New file.
14245         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
14246         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
14247         ISO C 99 with IEC 60559.
14248         * m4/floor-ieee.m4: New file.
14249         * modules/floor (Files): Add lib/floor.c.
14250         (Depends-on): Add 'float'.
14251         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14252         * lib/math.in.h (floor): New declaration.
14253         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
14254         REPLACE_FLOOR.
14255         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
14256         * modules/floor-ieee-tests: New file.
14257         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
14258         * tests/test-math-c++.cc: Check the signature of 'floor'.
14259         * doc/posix-functions/floor.texi: Mention the new module.
14260
14261 2010-12-21  Bruno Haible  <bruno@clisp.org>
14262
14263         New module 'roundf-ieee'.
14264         * modules/roundf-ieee: New file.
14265         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
14266         test whether roundf works according to ISO C 99 with IEC 60559.
14267         * m4/roundf-ieee.m4: New file.
14268         * modules/roundf-ieee-tests: New file.
14269         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
14270         * tests/test-roundf1.c (main): Remove signbit tests.
14271         * modules/roundf-tests (Depends-on): Remove 'signbit'.
14272         * doc/posix-functions/roundf.texi: Mention the new module.
14273
14274 2010-12-21  Bruno Haible  <bruno@clisp.org>
14275
14276         New module 'truncf-ieee'.
14277         * modules/truncf-ieee: New file.
14278         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
14279         test whether truncf works according to ISO C 99 with IEC 60559.
14280         * m4/truncf-ieee.m4: New file.
14281         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
14282         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
14283         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
14284         * modules/truncf-ieee-tests: New file.
14285         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
14286         * tests/test-truncf1.c (main): Remove signbit tests.
14287         * modules/truncf-tests (Depends-on): Remove 'signbit'.
14288         * doc/posix-functions/truncf.texi: Mention the new module.
14289
14290 2010-12-21  Bruno Haible  <bruno@clisp.org>
14291
14292         New module 'ceilf-ieee'.
14293         * modules/ceilf-ieee: New file.
14294         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
14295         test whether ceilf works according to ISO C 99 with IEC 60559.
14296         * m4/ceilf-ieee.m4: New file.
14297         * modules/ceilf-ieee-tests: New file.
14298         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
14299         * tests/test-ceilf1.c (main): Remove signbit tests.
14300         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
14301         * doc/posix-functions/ceilf.texi: Mention the new module.
14302
14303 2010-12-21  Bruno Haible  <bruno@clisp.org>
14304
14305         New module 'floorf-ieee'.
14306         * modules/floorf-ieee: New file.
14307         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
14308         test whether floorf works according to ISO C 99 with IEC 60559.
14309         * m4/floorf-ieee.m4: New file.
14310         * modules/floorf-ieee-tests: New file.
14311         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
14312         * tests/test-floorf1.c (main): Remove signbit tests.
14313         * modules/floorf-tests (Depends-on): Remove 'signbit'.
14314         * doc/posix-functions/floorf.texi: Mention the new module.
14315
14316 2010-12-21  Bruno Haible  <bruno@clisp.org>
14317
14318         Support for minus zero in autoconf macros.
14319         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
14320         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
14321         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
14322         * tests/minus-zero.h: Update comments.
14323
14324 2010-12-21  Bruno Haible  <bruno@clisp.org>
14325
14326         Tests for module 'ceil'.
14327         * modules/ceil-tests: New file.
14328         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
14329         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
14330
14331 2010-12-21  Bruno Haible  <bruno@clisp.org>
14332
14333         Tests for module 'floor'.
14334         * modules/floor-tests: New file.
14335         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
14336         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
14337
14338 2010-12-21  Bruno Haible  <bruno@clisp.org>
14339
14340         math: Fix indentation.
14341         * lib/math.in.h (floorf): Fix indentation.
14342
14343 2010-12-21  Bruno Haible  <bruno@clisp.org>
14344
14345         Fix cross-compilation guesses on Solaris.
14346         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
14347         not match "solaris2.10".
14348         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14349         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
14350         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
14351
14352 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
14353
14354         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
14355         This fixes a problem observed with the latest coreutils snapshot
14356         that caused a test to fail on Solaris 8.  src/csplit.c's call
14357         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
14358         earlier, instead of returning the number of bytes that would have
14359         been generated; this causes csplit to incorrectly report memory
14360         exhaustion.
14361         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
14362         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
14363         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
14364         comments to match.
14365         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
14366         Fix typo in matching older versions of Solaris: "solaris2.10"
14367         is matched by the shell pattern "solaris2.[0-9]*".  This matters
14368         only for guessing while cross-compiling.
14369         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
14370
14371 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
14372
14373         ftoastr: fix comment again
14374         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14375         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
14376         Also, simplify example a bit by using flags = 0.
14377
14378 2010-12-20  Bruno Haible  <bruno@clisp.org>
14379
14380         round*, trunc*: Update documentation regarding glibc.
14381         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
14382         * doc/posix-functions/round.texi: Likewise.
14383         * doc/posix-functions/roundl.texi: Likewise.
14384         * doc/posix-functions/truncf.texi: Likewise.
14385         * doc/posix-functions/trunc.texi: Likewise.
14386         * doc/posix-functions/truncl.texi: Likewise.
14387
14388 2010-12-20  Bruno Haible  <bruno@clisp.org>
14389
14390         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
14391         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
14392         * doc/posix-functions/round.texi: Likewise.
14393         * doc/posix-functions/roundl.texi: Likewise.
14394
14395 2010-12-20  Bruno Haible  <bruno@clisp.org>
14396
14397         ttyname_r: Add missing declaration on HP-UX 11.
14398         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
14399         HAVE_TTYNAME_R.
14400         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
14401         declared. Set HAVE_TTYNAME_R always.
14402         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14403         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
14404         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
14405         HAVE_TTYNAME_R.
14406         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
14407
14408 2010-12-20  Bruno Haible  <bruno@clisp.org>
14409
14410         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
14411         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
14412         * doc/posix-functions/getlogin_r.texi: Likewise.
14413         * tests/test-getlogin.c: Include <errno.h>.
14414         (main): Avoid test failure on HP-UX 11.11.
14415         * tests/test-getlogin_r.c (main): Likewise.
14416
14417 2010-12-20  Bruno Haible  <bruno@clisp.org>
14418
14419         getlogin_r: Add missing declaration on HP-UX 11.
14420         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
14421         declared also when it exists as a function.
14422         * doc/posix-functions/getlogin_r.texi: Document this workaround.
14423
14424 2010-12-20  Bruno Haible  <bruno@clisp.org>
14425
14426         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
14427         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
14428         through wcrtomb.
14429
14430 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14431
14432         ftoastr: fix comment
14433         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14434         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
14435
14436 2010-12-19  Bruno Haible  <bruno@clisp.org>
14437
14438         isnan: Ensure it is a macro.
14439         * lib/math.in.h (isnan): Define as a macro if not already a macro.
14440         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
14441         Solaris.
14442
14443 2010-12-19  Bruno Haible  <bruno@clisp.org>
14444
14445         ldexpl test: Fix link error on OSF/1 5.1.
14446         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
14447
14448 2010-12-19  Bruno Haible  <bruno@clisp.org>
14449
14450         wctype: Make it work in C++ mode on OSF/1 5.1.
14451         * lib/wctype.in.h (iswblank): Declare but not define here.
14452         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
14453         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
14454         * modules/wctype (Files): Add lib/iswblank.c.
14455
14456 2010-12-19  Bruno Haible  <bruno@clisp.org>
14457
14458         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
14459         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
14460         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
14461
14462 2010-12-19  Bruno Haible  <bruno@clisp.org>
14463
14464         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
14465         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
14466         _POSIX_PII_SOCKET.
14467         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
14468         * doc/posix-functions/recvfrom.texi: Likewise.
14469         * doc/posix-functions/send.texi: Likewise.
14470         * doc/posix-functions/sendto.texi: Likewise.
14471
14472 2010-12-19  Bruno Haible  <bruno@clisp.org>
14473
14474         tcgetsid: Add missing declaration on OSF/1 5.1.
14475         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
14476         HAVE_TCGETSID.
14477         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
14478         Don't set HAVE_TCGETSID.
14479         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
14480         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
14481         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
14482         HAVE_TCGETSID.
14483         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
14484
14485 2010-12-19  Bruno Haible  <bruno@clisp.org>
14486
14487         stdio: Fix problem with popen() declaration on OSF/1 5.1.
14488         * lib/stdio.in.h: During the include_next statement, let recursive
14489         includes of this file include only the system header file.
14490
14491 2010-12-19  Bruno Haible  <bruno@clisp.org>
14492
14493         iconv_open: Fix regression from 2010-12-04.
14494         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
14495         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
14496
14497 2010-12-19  Bruno Haible  <bruno@clisp.org>
14498
14499         stdbool test: Avoid a gcc warning.
14500         * tests/test-stdbool.c (main): Fail if e1 is false.
14501         Reported by Jim Meyering.
14502
14503 2010-12-19  Jim Meyering  <meyering@redhat.com>
14504
14505         setenv: restore to working order
14506         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
14507         mistakenly removed.
14508         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
14509         HAVE_SETENV.
14510         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
14511         HAVE_SETENV.
14512
14513 2010-12-19  Bruno Haible  <bruno@clisp.org>
14514
14515         Document some different function declarations on OSF/1 5.1.
14516         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
14517         * doc/posix-functions/inet_ntop.texi: Likewise.
14518         * doc/posix-functions/gethostname.texi: Likewise.
14519         * lib/unistd.in.h (gethostname): Update comment.
14520
14521 2010-12-19  Bruno Haible  <bruno@clisp.org>
14522
14523         doc: Mention vasprintf-posix module.
14524         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
14525         the 'vasprintf-posix' module.
14526         * doc/glibc-functions/vasprintf.texi: Likewise.
14527
14528 2010-12-19  Bruno Haible  <bruno@clisp.org>
14529
14530         unsetenv: Add missing declaration on OSF/1 5.1.
14531         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
14532         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
14533         Don't set HAVE_UNSETENV. In the test program, set _BSD.
14534         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
14535         not HAVE_UNSETENV.
14536         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
14537         HAVE_UNSETENV.
14538         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
14539
14540 2010-12-19  Bruno Haible  <bruno@clisp.org>
14541
14542         setenv: Add missing declaration on OSF/1 5.1.
14543         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
14544         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
14545         declared. Don't set HAVE_SETENV.
14546         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
14547         not HAVE_SETENV.
14548         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
14549         HAVE_SETENV.
14550         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
14551
14552 2010-12-19  Bruno Haible  <bruno@clisp.org>
14553
14554         nl_langinfo tests: Avoid gcc warning.
14555         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
14556
14557 2010-12-19  Bruno Haible  <bruno@clisp.org>
14558
14559         mknod: Avoid error in C++ mode on OSF/1 with GCC.
14560         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
14561         _GL_CXXALIAS_SYS.
14562
14563 2010-12-19  Bruno Haible  <bruno@clisp.org>
14564
14565         stdbool: Relax test.
14566         * tests/test-stdbool.c (e): Don't require that casts from a variable's
14567         address to 'bool' work in static initializer, for compilers other than
14568         GCC.
14569
14570 2010-12-19  Bruno Haible  <bruno@clisp.org>
14571
14572         ftello: Add missing declaration on OSF/1 5.1.
14573         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
14574         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
14575         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
14576         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
14577         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
14578
14579 2010-12-19  Bruno Haible  <bruno@clisp.org>
14580
14581         fseeko: Add missing declaration on OSF/1 5.1.
14582         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
14583         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
14584         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
14585         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
14586         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
14587
14588 2010-12-19  Bruno Haible  <bruno@clisp.org>
14589
14590         fchdir: Add missing declaration on OSF/1 5.1.
14591         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
14592         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
14593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
14594         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
14595         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
14596
14597 2010-12-19  Bruno Haible  <bruno@clisp.org>
14598
14599         relocatable-prog-wrapper: Separate from relocatable-prog.
14600         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
14601         uninstall-relocwrapper rule here.
14602         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
14603         Reported by Ian Beckwith <ianb@erislabs.net>.
14604
14605 2010-12-19  Bruno Haible  <bruno@clisp.org>
14606
14607         unistr/u8-mbsnlen: Add missing dependency.
14608         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
14609         Reported by Ian Beckwith <ianb@erislabs.net>.
14610
14611 2010-12-19  Bruno Haible  <bruno@clisp.org>
14612
14613         iconv: Make it possible again to use this module without 'iconv-h'.
14614         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
14615         if it is not defined.
14616         Reported by Ian Beckwith <ianb@erislabs.net>.
14617
14618 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14619
14620         acl: port to Solaris 8 when copying from tmpfs to ufs
14621         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
14622         error number.  Problem observed on Solaris 8 with latest
14623         coreutils, with "mv A B", where A is on a tmpfs file system and B
14624         is on a ufs file system.  This caused coreutils' mv/part-symlink
14625         test to fail.
14626
14627         tests: set fail=0 at start
14628         * tests/init.sh (setup_): Move fail=0 initialization here ...
14629         (mktempd_): ... from here, so that tests can rely on fail being
14630         set to 0 initially.  This fixes a problem in coreutils; see:
14631         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
14632
14633 2010-12-18  Bruno Haible  <bruno@clisp.org>
14634
14635         memmem-simple: Stylistic changes.
14636         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
14637         Fix preprocessor directive indentation.
14638
14639 2010-12-15  Pádraig Brady <P@draigBrady.com>
14640
14641         memmem, memmem-simple: reorganize and expand empty needle check
14642         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
14643         functional checks to memmem-simple so that one has a fully functional
14644         memmem by using just this module.
14645         Restrict the performance only check to the memmem module.
14646         Also expand the empty needle check to ensure the correct
14647         pointer is returned, not just a non NULL pointer.
14648         * doc/glibc-functions/memmem.texi: Rearrange the portability
14649         documentation to correlate with the rearranged checks.
14650         Clarify exactly how the memmem and memmem-simple modules
14651         relate to each other.
14652
14653 2010-12-15  Pádraig Brady <P@draigBrady.com>
14654             Bruno Haible  <bruno@clisp.org>
14655
14656         Improve cross-compilation guesses for uClibc.
14657         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
14658         that uClibc does not have the glibc bug.
14659         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
14660         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
14661
14662 2010-12-14  Eric Blake  <eblake@redhat.com>
14663
14664         configmake: provide fallbacks for oldest supported autotools
14665         * m4/configmake.m4: New file.
14666         * modules/configmake (Files): Ship it.
14667         (configure.ac): Use it to guarantee fallbacks.
14668
14669 2010-12-13  Pádraig Brady <P@draigBrady.com>
14670
14671         read-file: Improve handling of large files
14672         * lib/read-file.c (fread_file): Minimize realloc()s
14673         for regular files, and better manage sizes around SIZE_MAX.
14674
14675 2010-12-13  Eric Blake  <eblake@redhat.com>
14676
14677         cloexec, fcntl: relax license
14678         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
14679         consent from all contributors.
14680         * modules/fcntl (License): Likewise.
14681
14682 2010-12-10  Bruno Haible  <bruno@clisp.org>
14683
14684         Tests for module 'pipe-posix'.
14685         * modules/pipe-posix-tests: New file.
14686         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
14687
14688 2010-12-10  Bruno Haible  <bruno@clisp.org>
14689
14690         pipe-posix: Make it work in C++ mode.
14691         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
14692         (pipe): Use common idiom, not a macro definition.
14693         * lib/pipe.c: New file.
14694         * m4/pipe.m4: New file.
14695         * modules/pipe-posix (Description): Enhance.
14696         (Files): Add lib/pipe.c, m4/pipe.m4.
14697         (configure.ac): Invoke gl_FUNC_PIPE.
14698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
14699         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
14700         * tests/test-unistd-c++.cc: Check the signature of pipe.
14701
14702 2010-12-10  Bruno Haible  <bruno@clisp.org>
14703
14704         Rename module 'pipe' to 'spawn-pipe'.
14705         * modules/spawn-pipe: New file, renamed from modules/pipe.
14706         (Files, configure.ac, Makefile.am): Update.
14707         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
14708         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
14709         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
14710         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
14711         "spawn-pipe.h" instead of "pipe.h".
14712         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
14713         to gl_SPAWN_PIPE.
14714         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
14715         (Files, Makefile.am): Update.
14716         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
14717         Update.
14718         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
14719         Include "spawn-pipe.h" instead of "pipe.h".
14720         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
14721         * lib/javacomp.c: Likewise.
14722         * lib/javaversion.c: Likewise.
14723         * lib/pipe-filter-gi.c: Likewise.
14724         * lib/pipe-filter-ii.c: Likewise.
14725         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
14726         * modules/javacomp (Depends-on): Likewise.
14727         * modules/javaversion (Depends-on): Likewise.
14728         * modules/pipe-filter-gi (Depends-on): Likewise.
14729         * modules/pipe-filter-ii (Depends-on): Likewise.
14730         * MODULES.html.sh (Executing programs): Update.
14731         * NEWS: Mention the change.
14732
14733 2010-12-10  Eric Blake  <eblake@redhat.com>
14734
14735         pipe-posix: new module
14736         * modules/pipe-posix: New file.
14737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
14738         (gl_UNISTD_H): Check for declaration.
14739         * modules/unistd (Makefile.am): Substitute it.
14740         * lib/unistd.in.h (pipe): Provide it for mingw.
14741         * doc/posix-functions/pipe.texi (pipe): Update documentation.
14742         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
14743
14744 2010-12-07  Bruno Haible  <bruno@clisp.org>
14745
14746         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
14747         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
14748         u8_strcmp_gnu.
14749         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
14750
14751 2010-12-06  Bruno Haible  <bruno@clisp.org>
14752
14753         Update internal documentation.
14754         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
14755
14756 2010-12-04  Bruno Haible  <bruno@clisp.org>
14757
14758         Put more information about failed tests into the test return codes.
14759         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
14760         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
14761         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14762         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14763         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14764         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14765         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14766         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14767         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
14768         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14769         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
14770         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14771         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14772         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14773         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
14774         returns a bit mask.
14775         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14776         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
14777         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
14778         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
14779         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14780         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14781         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14782         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14783         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14784         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
14785         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14786         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14787         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14788         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14789         * m4/link.m4 (gl_FUNC_LINK): Likewise.
14790         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14791         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
14792         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
14793         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14794         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
14795         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14796         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14797         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14798         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14799         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14800         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14801         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
14802         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14803         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14804         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
14805         gl_PRINTF_PRECISION): Likewise.
14806         * m4/regex.m4 (gl_REGEX): Likewise.
14807         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14808         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14809         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
14810         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14811         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14812         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14813         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
14814         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
14815         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14816         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14817         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
14818         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14819         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
14820         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14821         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14822         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14823         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14824         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14825         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14826         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
14827         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
14828         enumerated value.
14829         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
14830
14831 2010-12-04  Bruno Haible  <bruno@clisp.org>
14832
14833         Update for Solaris 11 2010-11.
14834         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
14835         Express, released in November 2010.
14836
14837 2010-12-04  Bruno Haible  <bruno@clisp.org>
14838
14839         nproc: Relax license.
14840         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
14841         and Paul Eggert.
14842         Requested by Ludovic Courtès <ludo@gnu.org>.
14843
14844 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
14845
14846         utimecmp: fine-grained src to nearby coarse-grained dest
14847
14848         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
14849         and the source is on a file system with higher-resolution time
14850         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
14851         not work, and the time stamps are close together, the algorithm to
14852         determine the exact resolution from the read-back mtime was buggy:
14853         it had a "!=" where it should have had an "==".  This bug has been
14854         in the code ever since it was introduced to gnulib.
14855         Problem reported by Dan Jacobson in
14856         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
14857
14858 2010-11-30  Bruno Haible  <bruno@clisp.org>
14859
14860         strerror_r-posix: Fix autoconf test.
14861         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
14862
14863 2010-11-28  Bruno Haible  <bruno@clisp.org>
14864             Paul Eggert  <eggert@cs.ucla.edu>
14865
14866         Tests for module 'getdomainname'.
14867         * modules/getdomainname-tests: New file.
14868         * tests/test-getdomainname.c: New file, based on
14869         tests/test-gethostname.c.
14870
14871 2010-11-28  Bruno Haible  <bruno@clisp.org>
14872             Paul Eggert  <eggert@cs.ucla.edu>
14873
14874         getdomainname: Use the system function when possible.
14875         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
14876         (getdomainname): Replace if needed. Provide the declaration if it is
14877         missing. Don't use _GL_CXXALIAS_SYS_CAST.
14878         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
14879         (getdomainname): When the system has getdomainname, call the system
14880         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
14881         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
14882         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
14883         found in libnsl. Look for the declaration also in <netdb.h>. Replace
14884         the function if its second argument is of type 'int' or if it is found
14885         in libnsl.
14886         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
14887         <sys/systeminfo.h> and sysinfo().
14888         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
14889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14890         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
14891         HAVE_GETDOMAINNAME.
14892         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
14893         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
14894         * doc/glibc-functions/getdomainname.texi: Document the problems with
14895         the getdomainname declaration.
14896
14897 2010-11-28  Bruno Haible  <bruno@clisp.org>
14898
14899         sys_socket: Ensure ss_family field on AIX.
14900         * lib/sys_socket.in.h (ss_family): New macro definition.
14901         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
14902         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
14903         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14904         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14905         * modules/sys_socket (Makefile.am): Substitute
14906         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14907         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
14908
14909 2010-11-27  Bruno Haible  <bruno@clisp.org>
14910
14911         readline: Improve configure output.
14912         * m4/readline.m4 (gl_FUNC_READLINE): Make the
14913         "checking for readline..." result understandable.
14914
14915 2010-11-27  Bruno Haible  <bruno@clisp.org>
14916
14917         *printf-posix: Detect a bug on Solaris 10/x86.
14918         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
14919         for floating-point output.
14920         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
14921         directive.
14922         * tests/test-snprintf-posix.h (test_function): Likewise.
14923         * tests/test-sprintf-posix.h (test_function): Likewise.
14924         * tests/test-vasprintf-posix.c (test_function): Likewise.
14925         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
14926         * doc/posix-functions/printf.texi: Likewise.
14927         * doc/posix-functions/snprintf.texi: Likewise.
14928         * doc/posix-functions/sprintf.texi: Likewise.
14929         * doc/posix-functions/vfprintf.texi: Likewise.
14930         * doc/posix-functions/vprintf.texi: Likewise.
14931         * doc/posix-functions/vsnprintf.texi: Likewise.
14932         * doc/posix-functions/vsprintf.texi: Likewise.
14933         * doc/glibc-functions/obstack_printf.texi: Likewise.
14934         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14935
14936 2010-11-27  Bruno Haible  <bruno@clisp.org>
14937
14938         Fix link error when module libunistring-optional is in use.
14939         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
14940         * modules/striconveha-tests (Makefile.am): Likewise.
14941
14942 2010-11-27  Bruno Haible  <bruno@clisp.org>
14943
14944         regex: Mention link dependencies.
14945         * modules/regex (Link): New section.
14946         * modules/rpmatch (Link): Likewise.
14947         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
14948
14949 2010-11-27  Bruno Haible  <bruno@clisp.org>
14950
14951         ftoastr: Fix compilation error on Solaris.
14952         * lib/ftoastr.c: Include <config.h>.
14953
14954 2010-11-27  Bruno Haible  <bruno@clisp.org>
14955
14956         getloadavg: Update documentation.
14957         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
14958
14959 2010-11-27  Bruno Haible  <bruno@clisp.org>
14960
14961         sys_socket: Fix test whether the functions are declared.
14962         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
14963         not <sys/select.h>.
14964
14965 2010-11-27  Bruno Haible  <bruno@clisp.org>
14966
14967         getpass: Make sure to get system declaration on some platforms.
14968         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
14969         gl_USE_SYSTEM_EXTENSIONS.
14970         * modules/getpass (Depends-on): Add extensions.
14971
14972 2010-11-26  Bruno Haible  <bruno@clisp.org>
14973
14974         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
14975         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
14976         'iconv' module is present.
14977         (ICONV_CONST): New macro.
14978         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
14979         ICONV_CONST.
14980         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
14981         set ICONV_CONST.
14982         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
14983         here.
14984         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
14985         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
14986         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
14987         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
14988         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
14989         present.
14990
14991 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14992
14993         ftoastr: comment fix
14994         * lib/ftoastr.c: "little" -> "little or no" in comment
14995
14996 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
14997
14998         stdint: port to GCC 4.3 + OSX + Octave
14999         On this platform, stdint.h is buggy and defines int64_t to long
15000         long int.  The replacement defined it to long int, causing
15001         problems with C++ style name mangling.  Instead, trust the system
15002         definition if INT64_MAX is defined, and likewise for the unsigned
15003         variant.   Problem reported by Jarno Rajahalme in
15004         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
15005         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
15006         and don't mess with int64_t and INT64_MAX in this case.
15007         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
15008
15009 2010-11-24  Bruno Haible  <bruno@clisp.org>
15010
15011         doc: Corrections regarding MacOS X 10.4 and 10.5.
15012         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
15013         MacOS X.
15014         Reported by Simon Josefsson.
15015
15016 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
15017
15018         Uninstall ".bin" files installed by relocwrapper.
15019         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
15020         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
15021         unless it is already there.
15022
15023 2010-11-21  Bruno Haible  <bruno@clisp.org>
15024
15025         Update for NetBSD 5.0.
15026         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
15027         NetBSD; the test fails on NetBSD 5.0.
15028         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
15029         about NetBSD.
15030
15031 2010-11-21  Bruno Haible  <bruno@clisp.org>
15032
15033         Update for HP-UX 11.23 and HP-UX 11.31.
15034         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
15035         HP-UX.
15036
15037 2010-11-21  Bruno Haible  <bruno@clisp.org>
15038
15039         Update for MacOS X 10.5.
15040         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
15041         MacOS X; the test fails on MacOS X 10.5.8.
15042         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
15043         about MacOS X.
15044
15045 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
15046
15047         bootstrap: add bootstrap_sync option.
15048         See discussion at
15049         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
15050         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
15051         * build-aux/bootstrap: Accept --bootstrap-sync to update
15052         bootstrap if it is not identical to the local gnulib's
15053         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
15054         enable this by default.  Accept --no-bootstrap-sync to disable
15055         it.
15056
15057 2010-11-20  Bruno Haible  <bruno@clisp.org>
15058
15059         Ensure that <features.h> is included before __GLIBC__ is tested.
15060         * lib/printf-parse.h: Include <features.h>.
15061         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
15062         Reported by Mike Frysinger <vapier@gentoo.org>.
15063
15064         Ensure that <features.h> is included before __GLIBC__ is tested.
15065         * lib/wchar.in.h: Include <features.h>.
15066         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
15067         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
15068         Reported by Mike Frysinger <vapier@gentoo.org>.
15069
15070         Ensure that <features.h> is included before __GLIBC__ is tested.
15071         * lib/arpa_inet.in.h: Include <features.h>.
15072         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
15073         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
15074         Reported by Mike Frysinger <vapier@gentoo.org>.
15075
15076         Ensure that <features.h> is included before __GLIBC__ is tested.
15077         * build-aux/link-warning.h: Include <features.h>.
15078         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
15079         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
15080         Reported by Mike Frysinger <vapier@gentoo.org>.
15081
15082         Ensure that <features.h> is included before __GLIBC__ is tested.
15083         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
15084         Reported by Mike Frysinger <vapier@gentoo.org>.
15085
15086 2010-11-20  Bruno Haible  <bruno@clisp.org>
15087
15088         memmem: Fix autoconf test.
15089         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
15090
15091 2010-11-20  Bruno Haible  <bruno@clisp.org>
15092
15093         Port to uClibc.
15094         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
15095         * lib/fcntl.in.h: Likewise.
15096         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
15097         * lib/mbrtowc.c (mbrtowc): Likewise.
15098         * lib/relocatable.c (find_shared_library_fullname): Likewise.
15099         * lib/strerror_r.c: Likewise.
15100         * lib/unistr/u8-strnlen.c: Likewise.
15101         * lib/vasnprintf.c (decimal_point_char): Likewise.
15102         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
15103         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
15104         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
15105         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
15106         * tests/test-sigaction.c (handler, main): Likewise.
15107         * lib/freading.h: Treat uClibc like a non-glibc platform.
15108         * lib/freading.c: Likewise.
15109         * lib/gettext.h: Likewise.
15110         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
15111         Likewise.
15112         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
15113         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
15114         * lib/propername.c (proper_name_utf8): Likewise.
15115         * lib/spawn.in.h: Likewise.
15116         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
15117         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
15118         mem_cd_iconveh_internal): Likewise.
15119         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
15120         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
15121         strstr, strcasestr): Likewise.
15122         * lib/unicodeio.c (unicode_to_mb): Likewise.
15123         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
15124         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
15125         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
15126         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
15127         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
15128         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
15129         * lib/unistr/u8-stpncpy.c: Likewise.
15130         * lib/vasnprintf.c (VASNPRINTF): Likewise.
15131         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
15132         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15133         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15134         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
15135         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
15136         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
15137         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
15138         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
15139         Likewise.
15140         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15141         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15142         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
15143         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15144         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
15145         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15146         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15147         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15148         * tests/test-getopt.h (OPTIND_MIN): Likewise.
15149         * tests/test-striconveha.c (main): Likewise.
15150         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15151         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
15152         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
15153         * doc/posix-functions/getline.texi: Likewise.
15154         Reported by Mike Frysinger <vapier@gentoo.org>.
15155
15156 2010-11-20  Bruno Haible  <bruno@clisp.org>
15157
15158         nproc: Fix condition.
15159         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
15160         HAVE_PTHREAD_AFFINITY_NP.
15161
15162 2010-11-20  Bruno Haible  <bruno@clisp.org>
15163
15164         Fix a comment.
15165         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
15166
15167 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
15168
15169         ftoastr: don't assume snprintf
15170         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
15171         Implement a subset of snprintf here, by using sprintf safely.
15172         * modules/ftoastr (Depends-on): Remove snprintf.
15173
15174 2010-11-19  Jim Meyering  <meyering@redhat.com>
15175
15176         test-rename.h: fix compilation failure
15177         * tests/test-rename.h (test_rename): Add omitted "}".
15178
15179 2010-11-17  Jim Meyering  <meyering@redhat.com>
15180
15181         maint.mk: add a URL discussing the no-@acronym policy
15182         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
15183
15184 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
15185
15186         ftoastr: depend on snprintf, improve comments
15187         * lib/ftoastr.c: Also mention Loitsch's draft.
15188         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
15189         needed in the current implementation, but it might simplify
15190         speeding up the code later.
15191         * modules/ftoastr: Depend on snprintf; this improves portability.
15192         Suggested by Bruno Haible in the same email.
15193
15194         ftoastr: port to hosts lacking strtof and strtold
15195         Problem reported by Bruno Haible in
15196         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
15197         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
15198         environment and strtold (and presumably strtof) are not available.
15199         * modules/ftoastr (Files): Add m4/c-strtod.m4.
15200         (configure.ac): Require gl_C99_STRTOLD.
15201
15202 2010-11-18  Bruno Haible  <bruno@clisp.org>
15203
15204         c-strtold: Avoid link error on AIX 7.
15205         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
15206         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
15207         (gl_C_STRTOLD): Test whether strtold_l exists.
15208         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15209
15210 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15211
15212         intprops: new macro INT_BITS_STRLEN_BOUND
15213         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
15214         ftoastr.h.  This exposes an internal of intprops.h that was formerly
15215         not exposed.  Also, it uses a slightly tighter bound than before;
15216         though this makes no practical difference, we might as well be as
15217         tight as we easily can.
15218
15219         ftoastr: new module, for lossless conversion of floats to short strings
15220         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
15221         * modules/ftoastr: New files.
15222
15223 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
15224
15225         bootstrap: port to Solaris sed
15226         * build-aux/bootstrap (get_version): Port to Solaris sed.
15227         See Ralf Wildenhues's note in
15228         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
15229
15230 2010-11-14  Jim Meyering  <meyering@redhat.com>
15231
15232         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
15233         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
15234         and move definition closer to sole use.
15235
15236 2010-11-13  Jim Meyering  <meyering@redhat.com>
15237
15238         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
15239         Now we require at least autoconf-2.59, which means the work-around
15240         is no longer needed.
15241         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
15242         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15243         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
15244         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
15245         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
15246
15247 2010-11-13  Bruno Haible  <bruno@clisp.org>
15248
15249         rename, renameat: Avoid test failures at NFS mounted locations.
15250         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
15251         functions.
15252         (test_rename): Use assert_nonexistent.
15253         * tests/test-rename.c: Include <dirent.h>.
15254         * tests/test-renameat.c: Likewise.
15255         Reported by Gary V. Vaughan <gary@gnu.org>.
15256
15257         rename, renameat: Document Linux bug with NFS
15258         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
15259         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
15260         * doc/posix-functions/renameat.texi: Likewise.
15261         Suggested by Eric Blake.
15262
15263 2010-11-13  Bruno Haible  <bruno@clisp.org>
15264
15265         rename test: Add comments.
15266         * tests/test-rename.h (test_rename): Add structure and comments.
15267
15268 2010-11-13  Eric Blake  <eblake@redhat.com>
15269
15270         maintainer-makefile: cover a few more files
15271         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
15272         scripts generated within C files, for libvirt.
15273
15274 2010-11-13  Bruno Haible  <bruno@clisp.org>
15275
15276         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
15277         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
15278         character, return the number of bytes that belong together, not always
15279         1.
15280         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
15281         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
15282         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
15283         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
15284         number of bytes of an invalid character.
15285         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
15286         (main): Invoke it.
15287         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
15288         results.
15289         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
15290         malformed byte sequences.
15291         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
15292         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
15293         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
15294         Reported by Ben Pfaff and Paolo Bonzini.
15295
15296 2010-11-13  Bruno Haible  <bruno@clisp.org>
15297
15298         openat: Work around glibc bug with fchownat() and empty file names.
15299         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
15300         (gl_FUNC_FCHOWNAT): Invoke it.
15301         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
15302         * doc/posix-functions/fchownat.texi: Document the glibc bug.
15303         Reported by Gary V. Vaughan <gary@gnu.org>.
15304
15305 2010-11-13  Bruno Haible  <bruno@clisp.org>
15306
15307         openat: Ensure autoconf macro ordering.
15308         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
15309         gl_USE_SYSTEM_EXTENSIONS.
15310         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
15311
15312 2010-11-13  Bruno Haible  <bruno@clisp.org>
15313
15314         Update comments.
15315         * lib/unistr/u8-check.c: Update file name in comments.
15316         * lib/unistr/u8-mblen.c: Likewise.
15317         * lib/unistr/u8-prev.c: Likewise.
15318         * lib/unistr/u8-strmblen.c: Likewise.
15319         * lib/unistr/u8-strmbtouc.c: Likewise.
15320
15321 2010-11-13  Jim Meyering  <meyering@redhat.com>
15322
15323         tests: avoid test failure on Solaris 10 due to lack of PATH export
15324         * tests/test-update-copyright.sh: Don't forget to export PATH.
15325
15326         init.sh: ensure that IFS is defined, just in case...
15327         * tests/init.sh (setup_): Ensure that IFS is defined,
15328         so that saving and restoring it works as expected.  This
15329         appears to be useful at least for an old version of dash
15330         from a long time ago (RH 6).  See here for details:
15331         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
15332
15333         maint.mk: tighten "test a == b" check
15334         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
15335         test to files that contain something like #!/bin/sh.
15336         Without this, coreutils would get two false positives in
15337         the comments of C source files.
15338
15339 2010-11-12  Eric Blake  <eblake@redhat.com>
15340
15341         bootstrap: fix typo in previous attempt
15342         * build-aux/bootstrap (buildreq): Correct the grouping.
15343         Reported by Paul Eggert.
15344
15345         maintainer-makefile: prohibit test x == x
15346         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
15347         Based on a report by Matthias Bolte.
15348
15349         bootstrap: allow FreeBSD gzip
15350         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
15351         which has no '.' and goes to stderr.
15352         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
15353         Reported by Matthias Bolte.
15354
15355         maintainer-makefile: check for i18n setup
15356         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
15357         will likely work.
15358
15359 2010-11-12  Bruno Haible  <bruno@clisp.org>
15360
15361         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
15362         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
15363         * lib/nanosleep.c (nanosleep): Likewise.
15364
15365 2010-11-11  Bruno Haible  <bruno@clisp.org>
15366
15367         fcntl-h: Fix for use of C++ on glibc systems.
15368         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
15369         also on glibc systems in C++ mode.
15370         Reported by Gary V. Vaughan <gary@gnu.org>.
15371
15372 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15373
15374         mknod: avoid false failure with dash
15375         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
15376
15377 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15378
15379         unlink: Fix "is it should" typo in diagnostic.
15380         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
15381         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
15382
15383 2010-11-11  Bruno Haible  <bruno@clisp.org>
15384
15385         Tests for module 'strerror_r-posix'.
15386         * modules/strerror_r-posix-tests: New file.
15387         * tests/test-strerror_r.c: New file.
15388         * tests/test-string-c++.cc: Check the signature of strerror_r.
15389
15390         New module 'strerror_r-posix'.
15391         * lib/string.in.h (strerror_r): New declaration.
15392         * lib/strerror_r.c: New file.
15393         * m4/strerror_r.m4: New file.
15394         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
15395         of strerror_r.
15396         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
15397         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15398         * modules/strerror_r-posix: New file.
15399         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
15400         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15401         * doc/posix-functions/strerror_r.texi: Mention the new module and the
15402         portability problems.
15403
15404 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
15405
15406         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
15407         line is also considered for output. Quoted function name in shell
15408         command, so temporary files for functions like MyClass::operator()
15409         are removed correctly without errors.
15410
15411 2010-11-09  Bruno Haible  <bruno@clisp.org>
15412
15413         * doc/posix-functions/strerror.texi: List more failing platforms.
15414
15415         * doc/posix-functions/strerror.texi: Add a comment.
15416
15417 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
15418
15419         fdopendir: fix bug on MacOS X when low on file descriptors
15420
15421         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
15422         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
15423         All callers changed.
15424         (fdopendir): Invoke save_cwd at the top level, not after using
15425         multiple dup() calls to use up file descriptors.  Then retry
15426         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
15427         less than the maximum number of open file descriptors, because
15428         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
15429         on Mac OS X 10.6.4 for tar 1.24
15430         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
15431         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
15432         and for tar 1.25
15433         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
15434
15435 2010-11-07  Bruno Haible  <bruno@clisp.org>
15436
15437         vasnprintf: Support I flag on glibc systems.
15438         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
15439         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
15440         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
15441         snprintf function.
15442         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
15443         glibc systems.
15444         * tests/test-vasnprintf-posix3.c: New file.
15445         * modules/vasnprintf-posix-tests (Files): Add it.
15446         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
15447
15448 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15449
15450         [html] Fix copy/paste bug: Use unique name for compiler warnings.
15451         * MODULES.html.sh: For compiler warnings, use name
15452         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
15453
15454 2010-11-05  Eric Blake  <eblake@redhat.com>
15455
15456         ceil, floor: avoid spurious failure with icc
15457         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
15458         [denormals-as-zero] when optimizing without -mieee-fp option.
15459         * tests/test-floorf2.c (floorf_reference): Likewise.
15460         * tests/test-ceilf1.c (dummy): New function.
15461         (main): Use it to outsmart icc's optimization.
15462         * tests/test-floorf1.c (dummy, main): Likewise.
15463
15464         tests: require working signbit
15465         * modules/ceilf-tests (Depends-on): Add signbit.
15466         * modules/ceill-tests (Depends-on): Likewise.
15467         * modules/floorf-tests (Depends-on): Likewise.
15468         * modules/floorl-tests (Depends-on): Likewise.
15469         * modules/round-tests (Depends-on): Likewise.
15470         * modules/roundf-tests (Depends-on): Likewise.
15471         * modules/roundl-tests (Depends-on): Likewise.
15472         * modules/trunc-tests (Depends-on): Likewise.
15473         * modules/truncf-tests (Depends-on): Likewise.
15474         * modules/truncl-tests (Depends-on): Likewise.
15475
15476         strtod: work around icc bug
15477         * lib/strtod.c (minus_zero): Define to working value.
15478         (strtod): Use it to avoid icc bug.
15479
15480         copysign: enhance tests
15481         * modules/copysign-tests (Files): Add minus-zero.h.
15482         * tests/test-copysign.c (main): Also test zeros.
15483
15484 2010-11-04  Eric Blake  <eblake@redhat.com>
15485
15486         ceil, floor, round, trunc: enhance tests of -0
15487         * tests/test-ceilf1.c (main): Ensure correct sign of result.
15488         * tests/test-ceill.c (main): Likewise.
15489         * tests/test-floorf1.c (main): Likewise.
15490         * tests/test-floorl.c (main): Likewise.
15491         * tests/test-round1.c (main): Likewise.
15492         * tests/test-roundf1.c (main): Likewise.
15493         * tests/test-roundl.c (main): Likewise.
15494         * tests/test-trunc1.c (main): Likewise.
15495         * tests/test-truncf1.c (main): Likewise.
15496         * tests/test-truncl.c (main): Likewise.
15497
15498 2010-11-04  Eric Blake  <eblake@redhat.com>
15499
15500         frexp, tests: work around ICC bug with -zero
15501         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
15502         works with more compilers.
15503         * tests/minus-zero.h: New file.
15504         * modules/ceilf-tests (Files): Include it.
15505         * modules/ceill-tests (Files): Likewise.
15506         * modules/floorf-tests (Files): Likewise.
15507         * modules/floorl-tests (Files): Likewise.
15508         * modules/frexp-nolibm-tests (Files): Likewise.
15509         * modules/frexp-tests (Files): Likewise.
15510         * modules/frexpl-nolibm-tests (Files): Likewise.
15511         * modules/frexpl-tests (Files): Likewise.
15512         * modules/isnan-tests (Files): Likewise.
15513         * modules/isnand-nolibm-tests (Files): Likewise.
15514         * modules/isnand-tests (Files): Likewise.
15515         * modules/isnanf-nolibm-tests (Files): Likewise.
15516         * modules/isnanf-tests (Files): Likewise.
15517         * modules/isnanl-nolibm-tests (Files): Likewise.
15518         * modules/isnanl-tests (Files): Likewise.
15519         * modules/round-tests (Files): Likewise.
15520         * modules/roundf-tests (Files): Likewise.
15521         * modules/roundl-tests (Files): Likewise.
15522         * modules/ldexpl-tests (Files): Likewise.
15523         * modules/signbit-tests (Files): Likewise.
15524         * modules/snprintf-posix-tests (Files): Likewise.
15525         * modules/sprintf-posix-tests (Files): Likewise.
15526         * modules/strtod-tests (Files): Likewise.
15527         * modules/trunc-tests (Files): Likewise.
15528         * modules/truncf-tests (Files): Likewise.
15529         * modules/truncl-tests (Files): Likewise.
15530         * modules/vsnprintf-posix-tests (Files): Likewise.
15531         * modules/vsprintf-posix-tests (Files): Likewise.
15532         * modules/vasnprintf-posix-tests (Files): Likewise.
15533         * modules/vasprintf-posix-tests (Files): Likewise.
15534         * tests/test-ceilf1.c (main): Use it.
15535         * tests/test-ceill.c (main): Likewise.
15536         * tests/test-floorf1.c (main): Likewise.
15537         * tests/test-floorl.c (main): Likewise.
15538         * tests/test-frexp.c (main): Likewise.
15539         * tests/test-frexpl.c (main): Likewise.
15540         * tests/test-isnan.c (main): Likewise.
15541         * tests/test-isnand.h (main): Likewise.
15542         * tests/test-isnanf.h (main): Likewise.
15543         * tests/test-isnanl.h (main): Likewise.
15544         * tests/test-ldexpl.c (main): Likewise.
15545         * tests/test-round.c (main): Likewise.
15546         * tests/test-roundf.c (main): Likewise.
15547         * tests/test-roundl.c (main): Likewise.
15548         * tests/test-signbit.c (test_signbitf, test_signbitd)
15549         (test_signbitl): Likewise.
15550         * tests/test-snprintf-posix.h (test_function): Likewise.
15551         * tests/test-sprintf-posix.h (test_function): Likewise.
15552         * tests/test-strtod.c (main): Likewise.
15553         * tests/test-trunc1.c (main): Likewise.
15554         * tests/test-truncf1.c (main): Likewise.
15555         * tests/test-truncl.c (main): Likewise.
15556
15557         isnanl: work around icc bug
15558         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
15559
15560 2010-11-03  Eric Blake  <eblake@redhat.com>
15561
15562         tests: fix compiler warnings
15563         * tests/test-getopt.h (test_getopt): Fix condition.
15564         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15565         * tests/test-pipe2.c (main): Likewise.
15566         * tests/test-quotearg-simple.c (main): Avoid icc warning.
15567
15568         utimens: fix broken m4 test
15569         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
15570
15571 2010-10-28  Bruno Haible  <bruno@clisp.org>
15572
15573         posix_spawn*, getdtablesize: Relax license.
15574         * modules/posix_spawn (License): Change to LGPLv2+.
15575         * modules/posix_spawnp (License): Likewise.
15576         * modules/posix_spawn-internal (License): Likewise.
15577         * modules/posix_spawnattr_init (License): Likewise.
15578         * modules/posix_spawnattr_getflags (License): Likewise.
15579         * modules/posix_spawnattr_setflags (License): Likewise.
15580         * modules/posix_spawnattr_getpgroup (License): Likewise.
15581         * modules/posix_spawnattr_setpgroup (License): Likewise.
15582         * modules/posix_spawnattr_getschedparam (License): Likewise.
15583         * modules/posix_spawnattr_setschedparam (License): Likewise.
15584         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
15585         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
15586         * modules/posix_spawnattr_getsigdefault (License): Likewise.
15587         * modules/posix_spawnattr_setsigdefault (License): Likewise.
15588         * modules/posix_spawnattr_getsigmask (License): Likewise.
15589         * modules/posix_spawnattr_setsigmask (License): Likewise.
15590         * modules/posix_spawnattr_destroy (License): Likewise.
15591         * modules/posix_spawn_file_actions_init (License): Likewise.
15592         * modules/posix_spawn_file_actions_addclose (License): Likewise.
15593         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
15594         * modules/posix_spawn_file_actions_addopen (License): Likewise.
15595         * modules/posix_spawn_file_actions_destroy (License): Likewise.
15596         * modules/getdtablesize (License): Likewise.
15597         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
15598
15599 2010-10-26  Bruno Haible  <bruno@clisp.org>
15600
15601         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
15602         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
15603         Cygwin and mingw.
15604         Suggested by Eric Blake.
15605
15606 2010-10-26  Bruno Haible  <bruno@clisp.org>
15607
15608         stdio: Work around compilation error due to renameat() on Solaris 10.
15609         * lib/stdio.in.h: Include <unistd.h> on Solaris.
15610         * lib/renameat.c: Don't include <unistd.h> here.
15611         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
15612         Reported by Paul Eggert and Eric Blake.
15613
15614 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
15615
15616         renameat: port to Solaris 10, which declares renameat in unistd.h
15617
15618         * lib/renameat.c: Include unistd.h before stdio.h, because
15619         Solaris 10 declares renameat in unistd.h.  Problem encountered
15620         when building GNU tar 1.24 on Solaris 10.
15621
15622 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15623
15624         fdopendir: fix C89 compilation
15625         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
15626         compilers.
15627
15628 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
15629
15630         inttostr: simplify by removing unnecessary redundancy
15631         * lib/anytostr.c: Don't include verify.h.
15632         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
15633         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
15634         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
15635         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
15636         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
15637         Likewise.
15638         * modules/inttostr (Depends-on): Remove 'verify'.
15639
15640 2010-10-23  Bruno Haible  <bruno@clisp.org>
15641
15642         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
15643         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
15644         Reported by Eric Blake.
15645
15646 2010-10-23  Bruno Haible  <bruno@clisp.org>
15647
15648         Tests: Fix LOCALE_JA on MirBSD 10.
15649         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
15650         to an UTF-8 locale.
15651         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
15652         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15653         Reported by Eric Blake.
15654
15655 2010-10-21  Bruno Haible  <bruno@clisp.org>
15656
15657         nl_langinfo test: Avoid test failure on NetBSD 5.
15658         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
15659         Reported by Eric Blake.
15660
15661 2010-10-21  Eric Blake  <eblake@redhat.com>
15662
15663         c-stack: work around libsigsegv 2.8 bug
15664         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
15665         overflow on at least PowerPC64.
15666
15667 2010-10-17  Bruno Haible  <bruno@clisp.org>
15668
15669         userspec: Drop redundant file.
15670         * modules/userspec (Files): Remove lib/inttostr.h.
15671
15672 2010-10-17  Bruno Haible  <bruno@clisp.org>
15673
15674         nl_langinfo tests: Silence some warnings.
15675         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
15676         Reported by Jim Meyering.
15677
15678 2010-10-17  Bruno Haible  <bruno@clisp.org>
15679
15680         Make use of GCC's attribute __alloc_size__.
15681         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
15682         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
15683         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
15684         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
15685         __alloc_size__.
15686         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
15687         Suggested by Jim Meyering.
15688
15689 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
15690
15691         bootstrap: anchor .gitignore entries.
15692         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
15693         with...
15694         (insert_vc_ignore): ... this new function, which prepends `/' to
15695         all .gitignore entries before passing them to
15696         insert_sorted_if_absent.
15697
15698 2010-10-16  Bruno Haible  <bruno@clisp.org>
15699
15700         nextafter: Fix configure check.
15701         * modules/nextafter (configure.ac): Correct expected prototype.
15702
15703 2010-10-16  Bruno Haible  <bruno@clisp.org>
15704
15705         termios: Update documentation.
15706         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
15707
15708 2010-10-16  Bruno Haible  <bruno@clisp.org>
15709
15710         tests: Make them compile with TinyCC.
15711         * tests/test-strstr.c (main): Remove parentheses around array
15712         initializer.
15713
15714 2010-10-15  Eric Blake  <eblake@redhat.com>
15715
15716         ignore-value: make header idempotent
15717         * lib/ignore-value.h: Add double-inclusion guards.
15718         Reported by Stefan Berger.
15719
15720 2010-10-15  Jim Meyering  <meyering@redhat.com>
15721
15722         GNUmakefile: handle "stable" target, not "major"
15723         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
15724         lists in maint.mk and announce-gen.  Without this, "make stable"
15725         would fail to ensure that $(VERSION) is up to date.
15726
15727 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
15728
15729         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
15730         & co.
15731
15732 2010-10-14  Bruno Haible  <bruno@clisp.org>
15733
15734         vasnprintf: Don't set errno to 0.
15735         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
15736         block that sets it to 0.
15737         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
15738
15739 2010-10-14  Bruno Haible  <bruno@clisp.org>
15740
15741         socketlib: Fix.
15742         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
15743         gl_PREREQ_SYS_H_WINSOCK2.
15744         Reported by Ian Beckwith <ianb@erislabs.net>.
15745
15746 2010-10-13  Jim Meyering  <meyering@redhat.com>
15747
15748         test-select-stdin.c: avoid warn_unused_result warnings
15749         * tests/test-select-stdin.c: Include "macros.h".
15750         ASSERT that read and fflush succeed.
15751
15752 2010-10-13  Jim Meyering  <meyering@redhat.com>
15753
15754         git-version-gen: do require git-VC'd files in cwd
15755         * build-aux/git-version-gen: Reject a git version string
15756         if there are no commits associated with the current directory.
15757         This avoids an unlikely false-positive (unrelated dir whose parent
15758         repository also contains a tag matching v*), as pointed out
15759         by Giuseppe Scrivano in
15760         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
15761
15762 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
15763
15764         argv-iter: omit nonconforming declaration
15765         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
15766         enum arg_iter_err declaration, which doesn't conform to C99.
15767         Solaris 10 cc warns about this.
15768
15769 2010-10-13  Eric Blake  <eblake@redhat.com>
15770
15771         termios: fix compilation on mingw
15772         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
15773         (gl_TERMIOS_H): Adjust it on mingw.
15774         * modules/termios (Makefile.am): Substitute new key.
15775         * lib/termios.in.h (includes): Make include_next conditional.
15776         * doc/posix-headers/termios.texi (termios.h): Update
15777         documentation.
15778         Reported by Daniel P. Berrange.
15779
15780 2010-10-13  Jim Meyering  <meyering@redhat.com>
15781
15782         git-version-gen: don't require that .git/ be in the current dir
15783         * build-aux/git-version-gen: Adjust this script so that it works
15784         when run from any working directory beneath the top-level .git/-
15785         containing directory.  Inspired by a patch from Giuseppe Scrivano,
15786         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
15787
15788         test-select: avoid warn_unused_result warnings
15789         * tests/test-select.c: Include "macros.h".
15790         ASSERT that each call to read, write, and pipe succeeds.
15791         While not technically required, also check each "close".
15792         * modules/select-tests (Files): Add tests/macros.h.
15793
15794         test-symlinkat: remove declaration of unused local
15795         * tests/test-symlinkat.c (main): Remove unused local, "buf".
15796
15797         test-inttostr: avoid shadowing warnings
15798         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
15799         and use malloc rather than the stack for the same reason as
15800         mentioned in the comment justifying the other allocation.
15801
15802 2010-10-11  Bruno Haible  <bruno@clisp.org>
15803
15804         stdlib: Allow multiple gnulib generated replacements to coexist.
15805         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
15806         Reported by Sam Steingold <sds@gnu.org>.
15807
15808 2010-10-11  Jim Meyering  <meyering@redhat.com>
15809
15810         fix a documentation typo
15811         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
15812
15813 2010-10-11  Eric Blake  <eblake@redhat.com>
15814
15815         futimens: work around Solaris 11 bug
15816         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
15817         * tests/test-futimens.h (test_futimens): Enhance, rather than
15818         weaken test.
15819         * doc/posix-functions/futimens.texi (futimens): Document the bug.
15820
15821 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
15822
15823         Indentation.
15824         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
15825         higher-level operators more to the left.
15826
15827 2010-10-11  Jim Meyering  <meyering@redhat.com>
15828
15829         test-futimens: avoid unwarranted test failure on Solaris 5.11
15830         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
15831         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
15832         because it tries to dereference the NULL name argument.
15833
15834 2010-10-11  Bruno Haible  <bruno@clisp.org>
15835
15836         Indentation.
15837         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
15838         indentation.
15839
15840 2010-10-11  Jim Meyering  <meyering@redhat.com>
15841
15842         spawn.in.h: make indentation consistent with parentheses
15843         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
15844         Make indentation consistent with parentheses.
15845
15846 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
15847
15848         Fix mismatched parens in previous commit
15849         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
15850         parens.
15851
15852 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15853
15854         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
15855
15856         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
15857         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
15858         * lib/malloca.c: Include "verify.h".
15859         (verify1): Remove, replacing with a verify call.
15860         * lib/relocwrapper.c (verify1): Likewise.
15861         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
15862         Likewise.
15863         * modules/malloca (Depends-on): Add 'verify'.
15864         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
15865         * modules/vasnprintf (Depends-on): Add 'verify'.
15866         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15867         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15868         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15869         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15870         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15871         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15872         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15873
15874         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
15875
15876         Formerly the style was sometimes 2*X - 1, because the C standard
15877         was wrongly thought to disallow ?: in integral constant expressions.
15878         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
15879         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
15880         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15881         * lib/stdint.in.h (_verify_intmax_size): Likewise.
15882         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
15883         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
15884         verify that time_t cannot be floating.
15885
15886 2010-10-08  Eric Blake  <eblake@redhat.com>
15887
15888         time: enforce recent POSIX ruling that time_t is integral
15889         * lib/time.in.h (__time_t_must_be_integral): Detect any
15890         problematic systems, allowing the rest of gnulib to assume POSIX.
15891
15892 2010-10-08  Jim Meyering  <meyering@redhat.com>
15893
15894         fdopendir: fix a bug on systems lacking openat and /proc support
15895         OpenBSD 4.7 is one such system.  The most noticeable effect was
15896         failure of any application making nontrivial use of fts: rm, du,
15897         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
15898           ./rm: traversal failed: `a': Bad file descriptor
15899         Debugging that, you see that even though FD 6 was closed just
15900         prior to the opendir call in fd_clone_opendir, its resulting
15901         dir->dd_fd was 8, rather than the expected value of 6:
15902
15903         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
15904         93                close (fd);
15905         (gdb) n
15906         94                dir = fd_clone_opendir (dupfd);
15907         (gdb) n
15908         95                saved_errno = errno;
15909         (gdb) p dir->dd_fd
15910         $11 = 8
15911
15912         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
15913         The problem is that on OpenBSD, fd_clone_opendir has to resort
15914         to using the old-style save/restore CWD mechanism, due to its
15915         lack of openat/proc support, and *that* would steal the FD (6)
15916         that opendir was supposed to use.
15917
15918         The fix is to squirrel away the desired FD so that save_cwd uses a
15919         different one, and then free the dest FD right before calling opendir.
15920         That guarantees opendir will use the required file descriptor.
15921
15922         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
15923
15924 2010-10-08  Bruno Haible  <bruno@clisp.org>
15925
15926         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
15927         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
15928
15929 2010-10-08  Bruno Haible  <bruno@clisp.org>
15930
15931         nanosleep: Make replacement POSIX compliant.
15932         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
15933         is out of range.
15934         Reported by Jim Meyering.
15935
15936 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15937
15938         bootstrap: add hook for altering gnulib.mk, for Bison
15939         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
15940         the Bison bootstrapping process can rewrite file names and variables
15941         in this file before later parts of 'bootstrap' use the file.
15942         Bison wants to include lib/gnulib.mk from the top-level makefile,
15943         so it needs the file names in this file to be relative to the top
15944         level, not relative to lib; plus it needs variable names to be
15945         rewritten.
15946         (slurp): Use the new function.
15947
15948         bootstrap: reformat for readability
15949         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
15950
15951 2010-10-08  Eric Blake  <eblake@redhat.com>
15952
15953         docs: update cygwin progress
15954         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
15955         1.7.7.
15956         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
15957         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
15958         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
15959         * doc/posix-functions/carg.texi (carg): Likewise.
15960         * doc/posix-functions/cargf.texi (cargf): Likewise.
15961         * doc/posix-functions/casin.texi (casin): Likewise.
15962         * doc/posix-functions/casinf.texi (casinf): Likewise.
15963         * doc/posix-functions/casinh.texi (casinh): Likewise.
15964         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
15965         * doc/posix-functions/catan.texi (catan): Likewise.
15966         * doc/posix-functions/catanf.texi (catanf): Likewise.
15967         * doc/posix-functions/catanh.texi (catanh): Likewise.
15968         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
15969         * doc/posix-functions/ccos.texi (ccos): Likewise.
15970         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
15971         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
15972         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
15973         * doc/posix-functions/cexp.texi (cexp): Likewise.
15974         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
15975         * doc/posix-functions/cimag.texi (cimag): Likewise.
15976         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
15977         * doc/posix-functions/clog.texi (clog): Likewise.
15978         * doc/posix-functions/clogf.texi (clogf): Likewise.
15979         * doc/posix-functions/conj.texi (conj): Likewise.
15980         * doc/posix-functions/conjf.texi (conjf): Likewise.
15981         * doc/posix-functions/cpow.texi (cpow): Likewise.
15982         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
15983         * doc/posix-functions/cproj.texi (cproj): Likewise.
15984         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
15985         * doc/posix-functions/creal.texi (creal): Likewise.
15986         * doc/posix-functions/crealf.texi (crealf): Likewise.
15987         * doc/posix-functions/csin.texi (csin): Likewise.
15988         * doc/posix-functions/csinf.texi (csinf): Likewise.
15989         * doc/posix-functions/csinh.texi (csinh): Likewise.
15990         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
15991         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
15992         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
15993         * doc/posix-functions/ctan.texi (ctan): Likewise.
15994         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
15995         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
15996         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
15997         * doc/posix-headers/complex.texi (complex.h): Likewise.
15998
15999 2010-10-07  Jim Meyering  <meyering@redhat.com>
16000
16001         parse-datetime: avoid compilation failure on OpenBSD 4.7
16002         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
16003         This works around a compilation failure on OpenBSD 4.7:
16004         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
16005
16006 2010-10-07  Eric Blake  <eblake@redhat.com>
16007
16008         docs: update cygwin progress
16009         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
16010         1.7.6.
16011         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
16012         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
16013         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
16014         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
16015         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
16016         Likewise.
16017         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
16018         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
16019         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
16020         Likewise.
16021         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
16022         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
16023         Likewise.
16024         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
16025         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
16026         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
16027         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
16028         Likewise.
16029         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
16030         Likewise.
16031         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
16032
16033         docs: update parse-datetime history
16034         * doc/parse-datetime.texi (Authors of parse_datetime): Better
16035         documentation of this function's history and alternatives.
16036
16037         cygwin: use more robust version check
16038         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
16039         exclude an eventual cygwin 1.9.1.
16040         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16041         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
16042         (gl_FUNC_STRCASESTR): Likewise.
16043         Reported by Bruno Haible.
16044
16045 2010-10-06  Bruno Haible  <bruno@clisp.org>
16046
16047         string, sys_select: Avoid #including large headers unless necessary.
16048         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
16049         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
16050         OSF/1, BeOS, Haiku.
16051         Reported by Jim Meyering.
16052
16053 2010-10-05  Eric Blake  <eblake@redhat.com>
16054
16055         memmem, strstr, strcasestr: fix bug with long periodic needle
16056         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
16057         periodic needle having false positive.
16058         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
16059         and cygwin 1.7.7.
16060         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
16061         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
16062         (gl_FUNC_STRCASESTR): Likewise.
16063         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16064         * tests/test-memmem.c (main): Expose the bug.
16065         * tests/test-strcasestr.c (main): Likewise.
16066         * tests/test-strstr.c (main): Likewise.
16067         * tests/test-c-strcasestr.c (main): Likewise.
16068         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
16069         * doc/posix-functions/strstr.texi (strstr): Likewise.
16070         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
16071         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
16072
16073 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16074
16075         parse-datetime: do some more renaming
16076         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
16077         parse_datetime, not get_date.  Mention the renaming.
16078         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
16079         in comments.
16080         * m4/bison.m4: Likewise.
16081
16082 2010-10-05  Eric Blake  <eblake@redhat.com>
16083
16084         parse-datetime: better name than get_date
16085         * NEWS: Reword the deprecation notice.
16086         * modules/get_date: Rename to modules/parse-datetime.
16087         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
16088         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
16089         * lib/get_date.y: Rename to lib/parse-datetime.y.
16090         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
16091         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
16092         * doc/getdate.texi: Provide fallback wrapper.
16093         * lib/getdate.h: Move guts, and wrap...
16094         * lib/parse-datetime.h: ...new file.
16095         * lib/parse-datetime.y (get_date): Rename...
16096         (parse_datetime): ...to this.
16097         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
16098         (gl_PARSE_DATETIME): ...to this.
16099         * doc/posix-functions/getdate.texi (get_date): Provide fallback
16100         documentation.
16101         * modules/getdate (Files): Provide fallback docs and header.
16102         (Notice, Depends-on): Update references.
16103         * tests/test-parse-datetime.c: Likewise.
16104         * DEPENDENCIES: Likewise.
16105         * MODULES.html.sh (Date and time <time.h>): Likewise.
16106         * doc/parse-datetime.texi (Date input formats)
16107         (Authors of parse_datetime): Likewise.
16108         * modules/parse-datetime (Files, configure.ac, Makefile.am)
16109         (Include): Likewise.
16110         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
16111         * gnulib-tool: Likewise.
16112         * m4/bison.m4 (gl_BISON): Likewise.
16113         Suggested by Bruno Haible.
16114
16115 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16116
16117         more ports to Solaris tr, which needs [] around ranges
16118         * gnulib-tool: Solaris tr needs [] around ranges.
16119         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16120         * tests/test-pipe-filter-gi1.c (main): Likewise.
16121         * tests/test-pipe-filter-ii1.c (main): Likewise.
16122
16123 2010-10-05  Eric Blake  <eblake@redhat.com>
16124
16125         bootstrap: fix Solaris regression
16126         * build-aux/bootstrap (check_versions): Solaris tr still needs []
16127         around ranges.
16128         Reported by Pádraig Brady.
16129
16130         bootstrap: work with pkg-config
16131         * build-aux/bootstrap (check_versions): Also transliterate - in
16132         prerequisite name.
16133         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
16134         prerequisites that were already found, to avoid confusion.
16135         Reported by Justin Clift.
16136
16137         faccessat: remove unused wrappers
16138         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
16139         presence of these wrappers dragged in -lgen on Solaris.
16140         Reported by Clemens Brogi; fix suggested by Paul Eggert.
16141
16142 2010-10-05  Jim Meyering  <meyering@redhat.com>
16143
16144         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
16145         * Makefile (sc_pragma_columns): New syntax-check rule.
16146
16147 2010-10-04  Bruno Haible  <bruno@clisp.org>
16148
16149         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
16150         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
16151         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
16152         Reported by Bruce Korb and Eric Blake.
16153
16154 2010-10-04  Bruno Haible  <bruno@clisp.org>
16155
16156         threadlib: Make option --with-libpth-prefix work.
16157         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
16158         use $LIBPTH, not just -lpth.
16159
16160 2010-10-04  Bruno Haible  <bruno@clisp.org>
16161
16162         Avoid line length limitation from HP NonStop system header files.
16163         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
16164         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
16165         * lib/ctype.in.h: Likewise.
16166         * lib/dirent.in.h: Likewise.
16167         * lib/errno.in.h: Likewise.
16168         * lib/fcntl.in.h: Likewise.
16169         * lib/float.in.h: Likewise.
16170         * lib/getopt.in.h: Likewise.
16171         * lib/iconv.in.h: Likewise.
16172         * lib/inttypes.in.h: Likewise.
16173         * lib/langinfo.in.h: Likewise.
16174         * lib/locale.in.h: Likewise.
16175         * lib/math.in.h: Likewise.
16176         * lib/netdb.in.h: Likewise.
16177         * lib/netinet_in.in.h: Likewise.
16178         * lib/poll.in.h: Likewise.
16179         * lib/pthread.in.h: Likewise.
16180         * lib/pty.in.h: Likewise.
16181         * lib/sched.in.h: Likewise.
16182         * lib/se-selinux.in.h: Likewise.
16183         * lib/search.in.h: Likewise.
16184         * lib/signal.in.h: Likewise.
16185         * lib/spawn.in.h: Likewise.
16186         * lib/stdarg.in.h: Likewise.
16187         * lib/stddef.in.h: Likewise.
16188         * lib/stdint.in.h: Likewise.
16189         * lib/stdio.in.h: Likewise.
16190         * lib/stdlib.in.h: Likewise.
16191         * lib/string.in.h: Likewise.
16192         * lib/strings.in.h: Likewise.
16193         * lib/sys_file.in.h: Likewise.
16194         * lib/sys_ioctl.in.h: Likewise.
16195         * lib/sys_select.in.h: Likewise.
16196         * lib/sys_socket.in.h: Likewise.
16197         * lib/sys_stat.in.h: Likewise.
16198         * lib/sys_time.in.h: Likewise.
16199         * lib/sys_times.in.h: Likewise.
16200         * lib/sys_utsname.in.h: Likewise.
16201         * lib/sys_wait.in.h: Likewise.
16202         * lib/sysexits.in.h: Likewise.
16203         * lib/termios.in.h: Likewise.
16204         * lib/time.in.h: Likewise.
16205         * lib/unistd.in.h: Likewise.
16206         * lib/wchar.in.h: Likewise.
16207         * lib/wctype.in.h: Likewise.
16208         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
16209         * modules/ctype (Makefile.am): Likewise.
16210         * modules/dirent (Makefile.am): Likewise.
16211         * modules/errno (Makefile.am): Likewise.
16212         * modules/fcntl-h (Makefile.am): Likewise.
16213         * modules/float (Makefile.am): Likewise.
16214         * modules/getopt-posix (Makefile.am): Likewise.
16215         * modules/iconv-h (Makefile.am): Likewise.
16216         * modules/inttypes (Makefile.am): Likewise.
16217         * modules/langinfo (Makefile.am): Likewise.
16218         * modules/locale (Makefile.am): Likewise.
16219         * modules/math (Makefile.am): Likewise.
16220         * modules/netdb (Makefile.am): Likewise.
16221         * modules/netinet_in (Makefile.am): Likewise.
16222         * modules/poll-h (Makefile.am): Likewise.
16223         * modules/pthread (Makefile.am): Likewise.
16224         * modules/pty (Makefile.am): Likewise.
16225         * modules/sched (Makefile.am): Likewise.
16226         * modules/search (Makefile.am): Likewise.
16227         * modules/selinux-h (Makefile.am): Likewise.
16228         * modules/signal (Makefile.am): Likewise.
16229         * modules/spawn (Makefile.am): Likewise.
16230         * modules/stdarg (Makefile.am): Likewise.
16231         * modules/stddef (Makefile.am): Likewise.
16232         * modules/stdint (Makefile.am): Likewise.
16233         * modules/stdio (Makefile.am): Likewise.
16234         * modules/stdlib (Makefile.am): Likewise.
16235         * modules/string (Makefile.am): Likewise.
16236         * modules/strings (Makefile.am): Likewise.
16237         * modules/sys_file (Makefile.am): Likewise.
16238         * modules/sys_ioctl (Makefile.am): Likewise.
16239         * modules/sys_select (Makefile.am): Likewise.
16240         * modules/sys_socket (Makefile.am): Likewise.
16241         * modules/sys_stat (Makefile.am): Likewise.
16242         * modules/sys_time (Makefile.am): Likewise.
16243         * modules/sys_times (Makefile.am): Likewise.
16244         * modules/sys_utsname (Makefile.am): Likewise.
16245         * modules/sys_wait (Makefile.am): Likewise.
16246         * modules/sysexits (Makefile.am): Likewise.
16247         * modules/termios (Makefile.am): Likewise.
16248         * modules/time (Makefile.am): Likewise.
16249         * modules/unistd (Makefile.am): Likewise.
16250         * modules/wchar (Makefile.am): Likewise.
16251         * modules/wctype (Makefile.am): Likewise.
16252
16253 2010-10-04  Bruno Haible  <bruno@clisp.org>
16254
16255         read-file tests: Avoid a test failure on NonStop Kernel.
16256         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
16257         a regular file.
16258         Reported by Joachim Schmitz <schmitz@hp.com>.
16259
16260 2010-10-03  Bruno Haible  <bruno@clisp.org>
16261
16262         gnulib-tool: Fixes for --create-testdir with --libtool.
16263         * gnulib-tool (func_get_automake_snippet): Don't augment
16264         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
16265         an executable.
16266         (func_create_testdir): Handle module 'alloca' like func_import.
16267         Reported by Bruce Korb <bruce.korb@gmail.com>.
16268
16269 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
16270
16271         Avoid some lines longer than 80 characters.
16272         * lib/stdint.in.h: Break long comment lines.
16273         * lib/math.in.h: Likewise.
16274         (_GL_NUM_UINT_WORDS): New macro, for readability.
16275         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
16276         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
16277         * lib/stdlib.in.h: Likewise.
16278         * lib/spawn.in.h: Likewise.
16279         * lib/sys_socket.in.h: Update an URL.
16280         * lib/sys_stat.in.h: Break long line.
16281
16282 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
16283
16284         Improve pmccabe2html.
16285         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
16286         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
16287         when the sources change. Remove the line in the HTML about "Used
16288         ranges" (which implied that there might be other unused ranges),
16289         rename "Resume" to "Summary" (easier to understand for more users).
16290         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
16291         styles, and some unnecessary blank lines.
16292
16293 2010-10-03  Bruno Haible  <bruno@clisp.org>
16294             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
16295
16296         acl: Add support for ACLs on NonStop Kernel.
16297         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
16298         Check whether the function aclsort() exists.
16299         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
16300         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
16301         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16302         (acl_nontrivial [HAVE_ACLSORT]: New function.
16303         (file_has_acl): Implement for NonStop Kernel.
16304         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16305         (qset_acl): Implement for NonStop Kernel.
16306         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
16307         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16308         (main): Implement for NonStop Kernel.
16309         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
16310         Kernel. Handle this flavor.
16311         * tests/test-set-mode-acl.sh: Likewise.
16312         * tests/test-copy-acl.sh: Likewise.
16313         * tests/test-copy-file.sh: Likewise.
16314
16315 2010-10-03  Bruno Haible  <bruno@clisp.org>
16316
16317         Info about ACLs on NonStop Kernel.
16318         * doc/acl-resources.txt: Add info about NonStop Kernel.
16319         References by Joachim Schmitz <schmitz@hp.com>.
16320
16321 2010-10-02  Bruno Haible  <bruno@clisp.org>
16322
16323         Define missing EDQUOT on NonStop Kernel.
16324         * lib/errno.in.h (EDQUOT): Assign a value if missing.
16325         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
16326         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
16327         missing.
16328         * doc/posix-headers/errno.texi: Mention the NSK bug.
16329         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
16330         Reported by Joachim Schmitz <schmitz@hp.com>.
16331
16332 2010-10-02  Bruno Haible  <bruno@clisp.org>
16333
16334         Update doc for POSIX:2008.
16335         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
16336         Update URL of POSIX specification.
16337
16338 2010-10-02  Bruno Haible  <bruno@clisp.org>
16339
16340         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
16341         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
16342         from gnulib, not from Automake.
16343
16344 2010-10-02  Bruno Haible  <bruno@clisp.org>
16345
16346         New module 'system-posix'.
16347         * modules/system-posix: New file.
16348         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
16349         module is present.
16350         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
16351         GNULIB_SYSTEM_POSIX.
16352         * modules/stdlib (Depends-on): Remove sys_wait.
16353         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
16354         * doc/posix-functions/system.texi: Mention the new module.
16355         * doc/posix-headers/stdlib.texi: Likewise.
16356         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
16357         define test_sys_wait_macros to a no-op.
16358         Reported by Sam Steingold <sds@gnu.org>.
16359
16360 2010-09-30  Bruno Haible  <bruno@clisp.org>
16361
16362         More renaming from 'getdate' to 'get_date'.
16363         * doc/get_date.texi: Renamed from doc/getdate.texi.
16364         * modules/get_date (Files): Update.
16365         * MODULES.html.sh (Date and time <time.h>): Update.
16366         * DEPENDENCIES: Update.
16367         * gnulib-tool: Update comment.
16368         * m4/bison.m4 (gl_BISON): Likewise.
16369         * m4/get_date.m4 (gl_GET_DATE): Likewise.
16370
16371 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
16372
16373         bootstrap: support ACLOCAL_FLAGS during aclocal
16374         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
16375         can add additional -I dir for third-party .m4 files.
16376
16377 2010-09-30  Eric Blake  <eblake@redhat.com>
16378
16379         bootstrap: use glibtoolize on MacOS
16380         * build-aux/bootstrap (check_versions): Convert libtool into
16381         libtoolize.
16382         (tool search): Move libtool check earlier, and look for
16383         glibtoolize for MacOS.
16384         (gnulib_tool_options): Auto-add --libtool when appropriate.
16385         Reported by Justin Clift.
16386
16387         poll: fix typo that broke test on MacOS
16388         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
16389         Reported by Justin Clift.
16390
16391         getdate: rename to get_date
16392         Note: getdate.h is not renamed, to minimize client impact.
16393         * modules/getdate: Mark obsolete.  Move old contents...
16394         * modules/get_date: ...to new module name.
16395         * modules/getdate-tests: Move...
16396         * modules/get_date-tests: ...here.
16397         * m4/getdate.m4: Move...
16398         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
16399         * lib/getdate.y: Move...
16400         * lib/get_date.y: ...here.
16401         * tests/test-getdate.c: Move...
16402         * tests/test-get_date.c: ...here.
16403         * doc/posix-functions/getdate.texi (getdate): Update name.
16404         * NEWS: Mention the change.
16405
16406 2010-09-29  Bruno Haible  <bruno@clisp.org>
16407
16408         Separate the module 'waitpid' from the module 'sys_wait'.
16409         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
16410         present.
16411         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
16412         gl_MODULE_INDICATOR_FOR_TESTS.
16413         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
16414         * modules/sys_wait (Depends-on): Remove waitpid.
16415         (Makefile.am): Substitute GNULIB_WAITPID.
16416         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
16417         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
16418         signature only if the 'waitpid' module is present.
16419         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
16420         * NEWS: Mention the change.
16421         * modules/grantpt (Depends-on): Add waitpid.
16422         * modules/wait-process (Depends-on): Likewise.
16423
16424 2010-09-29  Bruno Haible  <bruno@clisp.org>
16425
16426         More tests for module 'sys_wait'.
16427         * modules/sys_wait-c++-tests: New file.
16428         * tests/test-sys_wait-c++.cc: New file.
16429         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
16430         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16431
16432 2010-09-29  Bruno Haible  <bruno@clisp.org>
16433
16434         New module 'waitpid'.
16435         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
16436         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
16437         Don't include <process.h>.
16438         (waitpid): Declare only, using modern idiom.
16439         * m4/waitpid.m4: New file.
16440         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
16441         * modules/waitpid: New file.
16442         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
16443         (Makefile.am): Update.
16444         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16445
16446 2010-09-28  Bruno Haible  <bruno@clisp.org>
16447
16448         poll: Assume ANSI C.
16449         * lib/poll.c (poll): Use an ANSI C declaration.
16450
16451 2010-09-28  Bruno Haible  <bruno@clisp.org>
16452
16453         poll-h: Create poll.h on all platforms.
16454         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
16455         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
16456         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
16457         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
16458         (gl_REPLACE_POLL_H): Don't set POLL_H.
16459         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
16460         * modules/poll-h (Depends-on): Add include_next.
16461         (Makefile.am): Create poll.h unconditionally. Substitute also
16462         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
16463
16464 2010-09-28  Bruno Haible  <bruno@clisp.org>
16465
16466         Tests for module 'poll-h'.
16467         * modules/poll-h-c++-tests: New file.
16468         * tests/test-poll-h-c++.cc: New file.
16469
16470         Tests for module 'poll-h'.
16471         * modules/poll-h-tests: New file.
16472         * tests/test-poll-h.c: New file.
16473
16474 2010-09-28  Bruno Haible  <bruno@clisp.org>
16475
16476         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
16477         * modules/poll-h (Depends-on): Add 'extensions'.
16478
16479 2010-09-28  Bruno Haible  <bruno@clisp.org>
16480
16481         New module 'poll-h'.
16482         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
16483         (poll): Use modern idiom.
16484         * modules/poll-h: New file.
16485         * modules/poll (Files): Remove lib/poll.in.h.
16486         (Depends-on): Add poll-h.
16487         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
16488         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
16489         * m4/poll_h.m4: New file.
16490         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
16491         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
16492         and invoke gl_REPLACE_POLL_H.
16493         * lib/poll.c: Use common idiom.
16494         * tests/test-poll.c: Likewise.
16495         * doc/posix-headers/poll.texi: Mention the poll-h module.
16496         Suggested by Eric Blake.
16497
16498 2010-09-26  Bruno Haible  <bruno@clisp.org>
16499
16500         sys_wait: Implement WSTOPSIG.
16501         * lib/sys_wait.in.h (WSTOPSIG): New macro.
16502         Reported by Simon Josefsson.
16503
16504 2010-09-26  Simon Josefsson  <simon@josefsson.org>
16505
16506         stdlib, sys_wait: Avoid compilation error on mingw.
16507         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
16508
16509 2010-09-26  Bruno Haible  <bruno@clisp.org>
16510
16511         stdlib tests: Avoid code duplication.
16512         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
16513         * modules/sys_wait-tests (Files): Likewise.
16514         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
16515         * tests/test-stdlib.c: Include test-sys_wait.h.
16516         (main): Invoke test_sys_wait_macros.
16517         * tests/test-sys_wait.c: Include test-sys_wait.h.
16518         (main): Invoke test_sys_wait_macros.
16519
16520 2010-09-25  Simon Josefsson  <simon@josefsson.org>
16521
16522         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
16523         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
16524         sure Windows sockets are working before calling getaddrinfo.
16525         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
16526         * doc/gnulib.texi (Windows sockets): Fix typo.
16527
16528 2010-09-25  Bruno Haible  <bruno@clisp.org>
16529
16530         Tests for module 'regex-quote'.
16531         * modules/regex-quote-tests: New file.
16532         * tests/test-regex-quote.c: New file.
16533
16534         New module 'regex-quote'.
16535         * lib/regex-quote.h: New file.
16536         * lib/regex-quote.c: New file.
16537         * modules/regex-quote: New file.
16538         Suggested by Reuben Thomas <rrt@sc3d.org>.
16539
16540 2010-09-24  Bruno Haible  <bruno@clisp.org>
16541
16542         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
16543         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
16544
16545 2010-09-23  Bruno Haible  <bruno@clisp.org>
16546
16547         setenv: Relax license.
16548         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
16549         Blake.
16550         Requested by Eric Blake.
16551
16552 2010-09-22  Bruno Haible  <bruno@clisp.org>
16553
16554         termios: Relax license.
16555         * modules/termios (License): Change to LGPLv2+.
16556         Requested by Eric Blake.
16557
16558 2010-09-22  Bruno Haible  <bruno@clisp.org>
16559
16560         threadlib: Allow the package to change the default to 'no'.
16561         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
16562         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
16563         Reported by Paul Eggert.
16564
16565 2010-09-22  Pádraig Brady  <P@draigbrady.com>
16566             Bruno Haible  <bruno@clisp.org>
16567
16568         Fix endless loop in mbmemcasecoll.
16569         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
16570         byte.
16571         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
16572
16573 2010-09-22  Bruno Haible  <bruno@clisp.org>
16574
16575         Tests for module 'memcoll'.
16576         * modules/memcoll-tests: New file.
16577         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
16578
16579         memcoll, xmemcoll: Clarify size vs. length.
16580         * modules/memcoll.c (memcoll0): Clarify specification.
16581         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
16582         passed to collate_error.
16583
16584 2010-09-22  Bruno Haible  <bruno@clisp.org>
16585
16586         Tests for module 'memcasecmp'.
16587         * modules/memcasecmp-tests: New file.
16588         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
16589
16590 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16591
16592         * lib/pthread.in.h: Add split double-inclusion guard, and include
16593         system <pthread.h> if there is one.  Use @@-style as in other
16594         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
16595         pthread.h doesn't.
16596         (pthread_mutexattr_destroy, pthread_mutexattr_init):
16597         (pthread_mutexattr_settype, pthread_mutex_trylock):
16598         New static inline functions, if there's no system <pthread.h>.
16599         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
16600         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
16601         Approximate with mutexes if the system lacks spinlocks, as in
16602         MacOS.
16603         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
16604         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
16605         @@-style.  Check for spinlocks separately.
16606         (gl_PTHREAD_DEFAULTS): New macro.
16607         * modules/pthread: Redo to use a more typical style for in.h files.
16608
16609 2010-09-21  Eric Blake  <eblake@redhat.com>
16610
16611         net_if: enhance tests
16612         * tests/test-net_if.c (main): Move signature checks earlier.
16613         Print failures to stderr.
16614         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
16615         Document the bug that we do not yet fix.
16616
16617 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16618
16619         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
16620         about gnulib, not GSS.
16621
16622 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16623
16624         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
16625         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
16626         for Emacs.
16627         * build-aux/pmccabe2html: Make Makefile.am example code more
16628         cut-and-paste friendly.
16629
16630 2010-09-21  Simon Josefsson  <simon@josefsson.org>
16631
16632         * tests/test-net_if.c: New file.
16633         * modules/net_if-tests: New file.
16634
16635 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
16636
16637         pthread: add pthread_spin_destroy
16638         * lib/pthread.in.h (pthread_spin_destroy): New function.
16639
16640 2010-09-19  Bruno Haible  <bruno@clisp.org>
16641
16642         gnulib-tool: Fix --help output.
16643         * gnulib-tool (func_usage): Fix help message.
16644         Reported by Reuben Thomas <rrt@sc3d.org>.
16645
16646 2010-09-18  Jim Meyering  <meyering@redhat.com>
16647
16648         maint.mk: avoid unexpanded \n in two diagnostics
16649         * top/maint.mk (sc_prohibit_always_true_header_tests):
16650         Don't use a literal \n in a halt=... assignment.  It would not be
16651         expanded, and the two \n bytes would appear in the diagnostic output
16652         rather than the desired newline.  Use halt=$$(printf ... instead.
16653         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16654
16655 2010-09-18  Bruno Haible  <bruno@clisp.org>
16656
16657         netinet_in: Doc tweak.
16658         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
16659         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16660
16661 2010-09-18  Jim Meyering  <meyering@redhat.com>
16662
16663         init.sh: correct an outdated comment
16664         * tests/init.sh (create_exe_shims_):  s/function/alias/
16665
16666         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
16667         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
16668         a file named "*.exe" is removed between the glob expansion and the
16669         processing of that oddly named file.
16670
16671 2010-09-17  Eric Blake  <eblake@redhat.com>
16672
16673         mirbsd: add some more support
16674         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
16675         in BSD family.
16676         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
16677         devices as OpenBSD.
16678         * m4/host-os.m4 (mirbsd): Add MirBSD.
16679
16680         tests: fix unportable assumption on sys/wait.h
16681         * tests/test-sys_wait.c (main): Relax test.
16682         * tests/test-stdlib.c (main): Likewise.
16683
16684         init.sh: accomodate directory with no .exes
16685         * tests/init.sh: Accomodate directory containing only scripts.
16686
16687         tests: avoid compiler warning
16688         * tests/test-stdlib.c (main): Use the variable.
16689
16690         fdutimens, fdutimensat: update signature, again
16691         * lib/utimens.h (gl_futimens): Delete, and move signature...
16692         (fdutimens): ...here.
16693         (fdutimensat): Rearrange signature.
16694         (lutimensat): Rename variable for clarity.
16695         * lib/fdutimensat.c (fdutimensat): Update signature.
16696         * lib/utimens.c (fdutimens): Likewise.
16697         (gl_futimens): Delete.
16698         (utimens, lutimens): Update callers.
16699         * lib/futimens.c (futimens): Likewise.
16700         * tests/test-fdutimensat.c: Likewise.
16701         * tests/test-utimens.c: Likewise.
16702         * tests/test-futimens.h: Update comment.
16703         * NEWS: Mention this.
16704         Suggested by Paul Eggert.
16705
16706 2010-09-17  Bruno Haible  <bruno@clisp.org>
16707
16708         Take over the maintenance of some older macros from Autoconf.
16709         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
16710         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
16711         GNU Autoconf.
16712         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
16713         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
16714
16715 2010-09-17  Eric Blake  <eblake@redhat.com>
16716
16717         fdutimensat: drop atflag validation
16718         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
16719         with valid fd, to close a race scenario where futimens is
16720         unsupported and FILE was replaced by a symlink.
16721         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
16722         accordingly.
16723         Suggested by Paul Eggert.
16724
16725 2010-09-16  Bruno Haible  <bruno@clisp.org>
16726
16727         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
16728         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
16729
16730 2010-09-16  Bruno Haible  <bruno@clisp.org>
16731
16732         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
16733         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
16734         login_tty exists.
16735         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16736
16737 2010-09-16  Bruno Haible  <bruno@clisp.org>
16738
16739         login_tty: Make the replacement code work on BSD systems.
16740         * lib/login_tty.c: Include <sys/ioctl.h>.
16741         (login_tty): Use ioctl TIOCSCTTY when available.
16742         * modules/login_tty (Depends-on): Add sys_ioctl.
16743         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16744
16745 2010-09-16  Bruno Haible  <bruno@clisp.org>
16746
16747         login_tty: Stricter unit test.
16748         * modules/login_tty-tests (Depends-on): Add tcgetsid.
16749         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
16750         and tcgetsid() after login_tty.
16751         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16752
16753 2010-09-16  Bruno Haible  <bruno@clisp.org>
16754
16755         New module 'tcgetsid'.
16756         * lib/tcgetsid.c: New file.
16757         * m4/tcgetsid.m4: New file.
16758         * modules/tcgetsid: New file.
16759         * modules/termios (Depends-on): Add c++defs, warn-on-use.
16760         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
16761         GNULIB_TCGETSID, HAVE_TCGETSID.
16762         * lib/termios.in.h: Include <sys/types.h>.
16763         (tcgetsid): New declaration.
16764         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
16765         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
16766         * doc/posix-functions/tcgetsid.texi: Mention the new module.
16767         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
16768
16769 2010-09-16  Bruno Haible  <bruno@clisp.org>
16770
16771         Tests for module 'termios'.
16772         * modules/termios-c++-tests: New file.
16773         * modules/termios-tests: New file.
16774         * tests/test-termios-c++.cc: New file.
16775         * tests/test-termios.c: New file.
16776
16777         New module 'termios'.
16778         * modules/termios: New file.
16779         * lib/termios.in.h: New file.
16780         * m4/termios_h.m4: New file.
16781         * doc/posix-headers/termios.texi: Mention the new module.
16782
16783 2010-09-16  Eric Blake  <eblake@redhat.com>
16784
16785         fdutimensat: add an atflag parameter
16786         * lib/fdutimensat.c (fdutimensat): Add new parameter.
16787         * lib/utimens.h (fdutimensat): Update prototype.
16788         * tests/test-fdutimensat.c: Adjust test to match.
16789         * NEWS: Document the change.
16790         Suggested by Paul Eggert.
16791
16792 2010-09-16  Bruno Haible  <bruno@clisp.org>
16793
16794         Fix typos in comments.
16795         * lib/striconveh.h: Fix typo in comment.
16796         * lib/login_tty.c (login_tty): Likewise.
16797
16798 2010-09-15  Bruno Haible  <bruno@clisp.org>
16799
16800         stdlib: clarify MirBSD WEXITSTATUS bug
16801         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
16802         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16803
16804 2010-09-15  Eric Blake  <eblake@redhat.com>
16805
16806         stdlib: work around MirBSD WEXITSTATUS bug
16807         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
16808         * modules/stdlib (Depends-on): Add sys_wait.
16809         * tests/test-sys_wait.c (main): Enhance test.
16810         * tests/test-stdlib.c (main): Likewise.
16811         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
16812
16813         docs: mention MacOS issue with WEXITSTATUS(constant)
16814         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
16815         issue.
16816         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16817
16818         strnlen: add tests
16819         * modules/strnlen-tests: New file.
16820         * tests/test-strnlen.c: Likewise.
16821
16822 2010-09-14  Bruno Haible  <bruno@clisp.org>
16823
16824         unistr/base: Avoid link errors when module 'libunistring' is also used.
16825         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
16826         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
16827         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
16828         Declare also when HAVE_LIBUNISTRING is set.
16829         Reported by Pádraig Brady <P@draigbrady.com>.
16830
16831 2010-09-14  Eric Blake  <eblake@redhat.com>
16832
16833         test-rawmemchr: make more robust
16834         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
16835         (Depends-on, configure.ac): Add needed prerequisites to use it.
16836         * modules/memchr-tests (Files, Depends-on, configure.ac):
16837         Likewise, to avoid implicit reliance on memchr module prereqs.
16838         * tests/test-memchr.c (main): Ensure proper masking.
16839         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
16840         reads.
16841
16842         memchr: detect glibc Alpha bug
16843         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
16844         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
16845         Alpha.
16846         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
16847         * tests/test-memchr.c (main): Enhance test.
16848         Reported by Nelson H. F. Beebe.
16849
16850 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16851
16852         fts, getcwd, glob: audit for dirfd returning -1
16853         * lib/fts.c (opendir): Remove #define; no longer used.
16854         (opendirat): New arg PDIR_FD.  All callers changed.
16855         (fts_build, _opendir2): Use new opendirat to avoid the need for
16856         dirfd, or for checking whether dirfd returns a negative value.
16857         Don't use opendir; always use openat followed by fdopendir.
16858         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
16859         it.
16860         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
16861         returns -1 here.
16862         * modules/fts (Depends-on): Remove dirfd.
16863         * modules/getcwd (Depends-on): Likewise.
16864
16865 2010-09-13  Eric Blake  <eblake@redhat.com>
16866
16867         float: fix broken MirBSD header
16868         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
16869         * doc/posix-headers/float.texi (float.h): Document it.
16870
16871 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16872
16873         fts: use O_NOFOLLOW to avoid race condition when opening a directory
16874         * lib/fts.c (opendirat): New arg extra_flags.
16875         (__opendir2): Use it to avoid following symlinks when opening
16876         a directory, if symlinks are not supposed to be followed.  See
16877         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
16878
16879         fdopendir: preserve argument fd before returning
16880         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
16881         (fdopendir_with_dup, fd_clone_opendir): New static functions.
16882         (fdopendir): Use them, arranging for FD to be open to the same
16883         directory that it was when it started.  (It might be temporarily
16884         closed while fdopendir is running, so this not thread- or
16885         signal-safe.)  Be careful to do the right thing even when file
16886         descriptors are scarce and dup fails with errno == EMFILE.  See
16887         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
16888
16889 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
16890
16891         regex: Pass the system regex if its only problem is 32-bit regoff_t.
16892         * NEWS: Document change.
16893         * m4/regex.m4: Disable test for regoff_t size.
16894
16895 2010-09-13  Jim Meyering  <meyering@redhat.com>
16896
16897         fts: don't operate on an invalid file descriptor after failed dup
16898         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
16899         negative file descriptor.
16900
16901 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
16902
16903         savedir: add streamsavedir, deprecate fdsavedir
16904         * NEWS: Mention deprecation of fdsavedir.
16905         * lib/savedir.c (streamsavedir): New extern function, whose name
16906         ends in "savedir" to be consistent with the others.  This differs
16907         from savedirstream in that it doesn't close its argument.  The
16908         next version of GNU tar will use this instead of fdsavedir, to
16909         avoid some race conditions and conserve file descriptors.
16910         (savedirstream): Reimplement as a wrapper around streamsavedir.
16911         (fdsavedir): Add a comment deprecating this function.  As far as
16912         I know, only GNU tar used it, and GNU tar doesn't need it any more.
16913         * lib/savedir.h (streamsavedir): New decl.
16914         (fdsavedir): Add a comment deprecating this.
16915
16916 2010-09-10  Bruno Haible  <bruno@clisp.org>
16917
16918         langinfo: Fix last commit.
16919         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
16920         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
16921         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16922
16923 2010-09-10  Bruno Haible  <bruno@clisp.org>
16924
16925         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
16926         * lib/progreloc.c (O_EXEC): Define fallback.
16927
16928 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16929
16930         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
16931         * NEWS: Document recent changes to fcntl-h.
16932         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
16933         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
16934         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
16935         Similarly for O_SEARCH; this last was already true, but not documented.
16936         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
16937         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
16938         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
16939         Likewise.
16940         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
16941         is zero, not whether it is defined.
16942         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
16943         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
16944         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
16945
16946 2010-09-10  Bruno Haible  <bruno@clisp.org>
16947
16948         langinfo, nl_langinfo: Fix for IRIX 5.3.
16949         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
16950         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
16951         HAVE_LANGINFO_YESEXPR.
16952         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
16953         HAVE_LANGINFO_YESEXPR.
16954         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
16955         HAVE_LANGINFO_T_FMT_AMPM is 0.
16956         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
16957         HAVE_LANGINFO_YESEXPR is 0.
16958         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
16959         NOEXPR.
16960         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
16961         * doc/posix-functions/nl_langinfo.texi: Likewise.
16962         Reported by Eric Blake.
16963
16964 2010-09-10  Bruno Haible  <bruno@clisp.org>
16965
16966         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
16967         * doc/glibc-functions/login_tty.texi: Mention the include file problem
16968         on FreeBSD 8.0 and OpenBSD 4.6.
16969         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
16970         * m4/pty_h.m4 (gl_PTY_H): Likewise.
16971         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
16972         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
16973         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
16974         ac_includes_default.
16975         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16976
16977 2010-09-09  Eric Blake  <eblake@redhat.com>
16978
16979         strsignal: work around NetBSD bug
16980         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
16981         * lib/string.in.h (includes): Likewise.
16982         * doc/posix-functions/strsignal.texi (strsignal): Document the
16983         bug.
16984         Reported by Nelson H. F. Beebe.
16985
16986         gnulib-tool: work with NetBSD /bin/sh
16987         * gnulib-tool (func_cache_var, func_cache_lookup_module)
16988         (func_get_description, func_get_comment, func_get_status)
16989         (func_get_notice, func_get_applicability, func_get_filelist)
16990         (func_get_dependencies, func_get_autoconf_early_snippet)
16991         (func_get_autoconf_snippet, func_get_automake_snippet)
16992         (func_get_include_directive, func_get_link_directive)
16993         (func_get_license, func_get_maintainer, func_import): Avoid
16994         shell syntax errors from parsing syntax extensions.
16995
16996 2010-09-09  Bruno Haible  <bruno@clisp.org>
16997
16998         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16999         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
17000         a reliable way to determine whether the 'alias' command works.
17001
17002 2010-09-08  Jim Meyering  <meyering@redhat.com>
17003
17004         init.sh: penalize a set-x-impaired shell; don't disqualify it
17005         * tests/init.sh: Too many shells corrupt application stderr when
17006         you set -x, so we can't afford to disqualify them, since at least
17007         on Irix-6.5, that would disqualify all bourne shells.
17008         Instead, use a two-pass approach.
17009         On the first pass, try to find a shell that meets the stricter
17010         condition that set -x does not corrupt stderr.
17011         If no shell meets the stricter condition, retest each candidate
17012         shell, but without that extra condition.  Finally, when
17013         VERBOSE=yes is requested and set -x might cause trouble, simply
17014         issue a warning and refrain from enabling debug output.
17015
17016 2010-09-08  Eric Blake  <eblake@redhat.com>
17017
17018         unsetenv: fix OpenBSD bug
17019         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
17020         * doc/posix-functions/unsetenv.texi (unsetenv): Update
17021         documentation.
17022         Reported by Jim Meyering.
17023
17024         strtod: work around IRIX 6.5 bug
17025         * lib/strtod.c (strtod): Reparse number on shorter string if
17026         exponent parse was invalid.
17027         * tests/test-strtod.c (main): Add check for "0x1p 2".
17028         Reported by Tom G. Christensen.
17029
17030         getopt: optimize previous patch
17031         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
17032         empty variable.  Speed up awk script.
17033         Reported by Paolo Bonzini.
17034
17035 2010-09-08  Jim Meyering  <meyering@redhat.com>
17036
17037         test.sh: disqualify shells for which set -x corrupts stderr
17038         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
17039         and OpenBSD 4.7.  They make it so with "set -x", environment settings
17040         appear in stderr output.  For example, this command:
17041             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
17042         prints "P=1" on those two systems:
17043
17044 2010-09-08  Bruno Haible  <bruno@clisp.org>
17045
17046         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
17047         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
17048         commands, because some shells ignore redirections when there is an
17049         error in the command lookup.
17050         Reported by Eric Blake.
17051
17052 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
17053
17054         * lib/regex.h: Fix a mention of `regex_compile' (should be
17055         `re_compile_pattern').
17056         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
17057         (re_set_registers): Correct name of parameter in comment.
17058
17059         * doc/regex.texi: Add documentation for missing syntax flags.
17060         Remove commented-out documentation of defunct syntax option
17061         RE_NO_EMPTY_ALTS.
17062         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
17063         Add documentation of re_set_registers.
17064         Document trick to re-use a pattern buffer by setting fastmap manually.
17065         Update documentation of struct re_pattern_buffer per public members.
17066         Uncomment documentation of equivalence class operators and
17067         collating symbol operators, since they are now implemented,
17068         Explain leftmost-longest matching in relation to alternatives.
17069         Tidy documentation of substring matching.
17070         Remove POSIX documentation, which is done better in
17071         glibc, and refer the reader there. Keep BSD API documentation, as
17072         that is not readily available elsewhere.
17073
17074 2010-09-07  Eric Blake  <eblake@redhat.com>
17075
17076         getopt: handle POSIXLY_CORRECT set but not exported
17077         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
17078         export state of POSIXLY_CORRECT, due to bash set -o posix.
17079         Reported by Dustin J. Mitchell.
17080
17081 2010-09-05  Bruno Haible  <bruno@clisp.org>
17082
17083         gnulib-tool: Highlight the changed options.
17084         * gnulib-tool (func_usage): Display the --import, --add-import,
17085         --remove-import explanations in bold font.
17086
17087 2010-09-06  Karl Berry  <karl@gnu.org>
17088
17089         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
17090
17091 2010-09-05  Bruno Haible  <bruno@clisp.org>
17092
17093         uniwidth/width: Update comment.
17094         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
17095         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
17096
17097 2010-09-05  Bruno Haible  <bruno@clisp.org>
17098
17099         isinf, isnan: Relax license.
17100         * modules/isinf (License): Change from GPL to LGPL, with consent from
17101         Ben Pfaff.
17102         * modules/isnan (License): Likewise.
17103         Requested by Ludovic Courtès.
17104
17105 2010-09-04  Bruno Haible  <bruno@clisp.org>
17106
17107         gnulib-tool: Help migration from --import to --add-import or --update.
17108         * gnulib-tool: Emit a verbose error message when --import is used
17109         without any module name.
17110
17111 2010-09-04  Bruno Haible  <bruno@clisp.org>
17112
17113         Update doc about gnulib-tool.
17114         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
17115         'gnulib-tool --update' in more detail.
17116         Reported by Eric Blake.
17117
17118 2010-09-04  Bruno Haible  <bruno@clisp.org>
17119
17120         gnulib-tool: Change --import. New options --add/remove-import.
17121         * gnulib-tool: New options --add-import, --remove-import.
17122         (func_usage): Document them.
17123         (have_associative): Define always.
17124         (func_import): In import mode, don't merge the specified settings with
17125         the cached settings. Implement remove-import mode.
17126         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
17127         Explain when to use them versus --import.
17128         (Simple update): Use --add-import instead of --import.
17129         * NEWS: Mention the change.
17130
17131 2010-09-04  Bruno Haible  <bruno@clisp.org>
17132
17133         * doc/gnulib-tool.texi (Initial import): Update paragraph about
17134         separate gnulib.mk.
17135
17136 2010-09-04  Bruno Haible  <bruno@clisp.org>
17137
17138         gnulib-tool: Don't talk about CVS any more.
17139         * gnulib-tool (func_usage, func_import): Write "version control"
17140         instead of CVS.
17141
17142 2010-09-04  Jim Meyering  <meyering@redhat.com>
17143
17144         maint.mk: avoid obscure sc_copyright_check failure in coreutils
17145         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
17146         false positives (whose names may be ill-chosen) when searching
17147         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
17148         would cause a false-positive.
17149
17150         avoid coreutils "make distcheck" failure
17151         Coreutils tests with an absolute build directory name that contains
17152         a space.  Not quoting this directory name caused a failure.
17153         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
17154         * tests/test-vc-list-files-cvs.sh: Likewise.
17155
17156 2010-09-04  Bruno Haible  <bruno@clisp.org>
17157
17158         gnulib-tool: Avoid error when run in a package without Makefile.am.
17159         * gnulib-tool: When collecting the m4dirs in a package that does not
17160         have a Makefile.am, eliminate those directories that contain no
17161         gnulib-cache.m4. Fix expression that counts these directories.
17162
17163 2010-09-04  Bruno Haible  <bruno@clisp.org>
17164
17165         update-copyright test: Improve output when perl is missing or too old.
17166         * tests/test-update-copyright.sh: Move test of Perl version down after
17167         the test whether Perl exists. Provide an explanation relating Perl's
17168         error message to Automake's SKIP: message.
17169
17170 2010-09-04  Bruno Haible  <bruno@clisp.org>
17171
17172         Don't augment PATH in TESTS_ENVIRONMENT.
17173         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
17174         set abs_aux_dir instead of augmenting PATH.
17175         * modules/vc-list-files-tests (Makefile.am): Likewise.
17176         * tests/test-update-copyright.sh: Augment PATH here.
17177         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
17178         path_prepend_.
17179         * tests/test-vc-list-files-git.sh: Likewise.
17180
17181 2010-09-04  Jim Meyering  <meyering@redhat.com>
17182
17183         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
17184         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
17185
17186 2010-09-04  Bruno Haible  <bruno@clisp.org>
17187
17188         strdup: Fix compilation error in C++ mode.
17189         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
17190         the macro.
17191
17192 2010-09-04  Bruno Haible  <bruno@clisp.org>
17193
17194         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
17195         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
17196         macro into a function.
17197         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17198
17199 2010-09-04  Bruno Haible  <bruno@clisp.org>
17200
17201         Set PATH_SEPARATOR the same way autoconf does.
17202         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
17203         the value of PATH_SEPARATOR the same way autoconf-generated configure
17204         scripts do.
17205         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
17206         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17207
17208 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17209
17210         Set PATH_SEPARATOR the same way autoconf does.
17211         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
17212         the same way autoconf-generated configure scripts do.
17213         * posix-modules: Likewise.
17214
17215 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17216
17217         hash: fix safe_hasher const typo
17218         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
17219         const; otherwise, there is a type error later.
17220
17221 2010-09-02  Jim Meyering  <meyering@redhat.com>
17222
17223         test-update-copyright.sh: require perl 5.8.0
17224         * tests/test-update-copyright.sh: Require 5.8.0,
17225         which Tom G. Christensen has confirmed is adequate,
17226         while 5.6.1 is not.
17227
17228 2010-09-02  Eric Blake  <eblake@redhat.com>
17229
17230         tests: init.sh improvements for re-exec'ing with zsh
17231         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
17232         -vx through shell re-exec.
17233         Reported by Tom G. Christensen.
17234
17235         wctype: fix typo in previous commit
17236         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
17237         Reported by Ludovic Courtès.
17238
17239 2010-09-02  Jim Meyering  <meyering@redhat.com>
17240
17241         test-update-copyright.sh: skip test if Perl is too old
17242         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
17243         Reported by Tom G. Christensen.
17244
17245 2010-09-02  Bruno Haible  <bruno@clisp.org>
17246
17247         wctype: Avoid compilation error on IRIX 6.5.30.
17248         * lib/wctype.in.h (iswblank): Declare with a replacement if
17249         REPLACE_ISWBLANK is set.
17250         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
17251         declared. Set REPLACE_ISWBLANK.
17252         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
17253         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
17254         * doc/posix-headers/wctype.texi: Likewise.
17255         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17256
17257 2010-09-01  Bruno Haible  <bruno@clisp.org>
17258
17259         New module 'socketlib'.
17260         * modules/socketlib: New file.
17261         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
17262         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
17263         * modules/sockets (Depends-on): Add socketlib.
17264         Suggested by Sam Steingold <sds@gnu.org>.
17265
17266 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17267
17268         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
17269
17270         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
17271         when one needs search access to a directory but not read access.
17272         On systems where it is available, it works in some cases where
17273         O_RDONLY does not, namely on directories that are searchable but
17274         not readable, and which need only to be searchable.  If O_SEARCH
17275         is not available, fall back to the traditional method of using
17276         O_RDONLY.
17277
17278         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
17279         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
17280         when opening a directory that needs only to be searchable.
17281         * lib/chdir-safer.c (chdir_no_follow): Likewise.
17282         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
17283         * lib/openat-proc.c (openat_proc_name): Likewise.
17284         * lib/openat.c (openat_needs_fchdir): Likewise.
17285         * lib/save-cwd.c (save_cwd): Likewise.
17286         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
17287
17288 2010-08-28  Bruno Haible  <bruno@clisp.org>
17289
17290         New module 'host-cpu-c-abi'.
17291         * modules/host-cpu-c-abi: New file.
17292         * m4/host-cpu-c-abi.m4: New file, based on part of
17293         clisp/src/m4/general.m4.
17294         Requested by Sam Steingold <sds@gnu.org>.
17295
17296 2010-08-31  Eric Blake  <eblake@redhat.com>
17297         and Jim Meyering  <meyering@redhat.com>
17298
17299         hash: factor, and guard against misbehaving hasher function
17300         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
17301         of table->hasher's return value.  Also protect against a hash value
17302         so large that adding it to table->bucket results in a NULL pointer.
17303         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
17304         Use it in place of open-coded check-and-abort.
17305
17306 2010-08-30  Bruno Haible  <bruno@clisp.org>
17307
17308         hash: silence spurious clang warning
17309         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
17310         Reported by Eric Blake.
17311
17312 2010-08-30  Eric Blake  <eblake@redhat.com>
17313
17314         strstr, memmem, strcasestr: avoid leaked shell message
17315         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
17316         FreeBSD.
17317         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17318         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17319
17320         tests: silence clang warning
17321         * tests/test-malloca.c (do_allocation): Avoid dead store.
17322
17323 2010-08-29  Bruno Haible  <bruno@clisp.org>
17324
17325         gettext: Fix recent mistake.
17326         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
17327
17328 2010-08-29  Bruno Haible  <bruno@clisp.org>
17329
17330         selinux-h: Offer a --without-selinux option.
17331         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
17332         --without-selinux was specified, skip all tests and define
17333         HAVE_SELINUX_SELINUX_H to 0.
17334         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
17335         set LIB_SELINUX to empty.
17336         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
17337         gl_LIBSELINUX. If --without-selinux was specified, replace
17338         selinux/context.h.
17339         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
17340
17341 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17342             Bruno Haible  <bruno@clisp.org>
17343
17344         Make the module 'realloc-gnu' work again on AIX and OSF/1.
17345         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
17346         of HAVE_REALLOC.
17347         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
17348         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
17349         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
17350         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17351
17352 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17353             Bruno Haible  <bruno@clisp.org>
17354
17355         Make the module 'calloc-gnu' work again on AIX and OSF/1.
17356         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
17357         HAVE_CALLOC.
17358         * lib/xmalloc.c: Update accordingly.
17359         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
17360         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
17361         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
17362
17363 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17364             Bruno Haible  <bruno@clisp.org>
17365
17366         Make the module 'malloc-gnu' work again on AIX and OSF/1.
17367         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
17368         HAVE_MALLOC.
17369         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
17370         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
17371         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17372
17373 2010-08-29  Bruno Haible  <bruno@clisp.org>
17374
17375         Update modules list.
17376         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
17377         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
17378         (String handling <string.h>): Add astrxfrm.
17379         (File system functions): Add readlinkat.
17380
17381 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17382
17383         Tests for module 'realloc-gnu'.
17384         * modules/realloc-gnu-tests: New file.
17385         * tests/test-realloc-gnu.c: New file.
17386
17387         Tests for module 'calloc-gnu'.
17388         * modules/calloc-gnu-tests: New file.
17389         * tests/test-calloc-gnu.c: New file.
17390
17391         Tests for module 'malloc-gnu'.
17392         * modules/malloc-gnu-tests: New file.
17393         * tests/test-malloc-gnu.c: New file.
17394
17395 2010-08-28  Bruno Haible  <bruno@clisp.org>
17396
17397         Rename module 'realloc' -> 'realloc-gnu'.
17398         * modules/realloc-gnu: New file, copied from modules/realloc.
17399         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
17400         obsolete.
17401         * modules/mgetgroups (Depends-on): Update.
17402         * doc/posix-functions/realloc.texi: Update.
17403         * NEWS: Mention the change.
17404
17405         Rename module 'calloc' -> 'calloc-gnu'.
17406         * modules/calloc-gnu: New file, copied from modules/calloc.
17407         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
17408         obsolete.
17409         * doc/posix-functions/calloc.texi: Update.
17410         * NEWS: Mention the change.
17411
17412         Rename module 'malloc' -> 'malloc-gnu'.
17413         * modules/malloc-gnu: New file, copied from modules/malloc.
17414         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
17415         obsolete.
17416         * modules/argp (Depends-on): Update.
17417         * modules/regex (Depends-on): Update.
17418         * doc/posix-functions/malloc.texi: Update.
17419         * NEWS: Mention the change.
17420
17421 2010-08-28  Eric Blake  <eblake@redhat.com>
17422
17423         pread, pwrite: add missing dependency
17424         * modules/pread (Depends-on): Add extensions.
17425         * modules/pwrite (Depends-on): Likewise.
17426
17427 2010-08-28  Bruno Haible  <bruno@clisp.org>
17428
17429         unistr/u*-strchr: Fix tests dependencies.
17430         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
17431         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
17432         Reported by Ian Beckwith <ianb@erislabs.net>.
17433
17434 2010-08-28  Bruno Haible  <bruno@clisp.org>
17435
17436         read-file: Don't occupy too much unused memory.
17437         * lib/read-file.c (fread_file): Shrink the buffer at the end.
17438
17439 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
17440             Eric Blake  <eblake@redhat.com>
17441             Bruno Haible  <bruno@clisp.org>
17442
17443         read-file: Avoid memory reallocations with regular files.
17444         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
17445         (fread_file): With regular files, use the remaining length as the
17446         initial buffer size.  Check against overflow.
17447         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
17448         sys_stat.
17449
17450 2010-08-28  Bruno Haible  <bruno@clisp.org>
17451
17452         ftello: Relax license.
17453         * modules/ftello (License): Relax to LGPLv2+.
17454         Reported by Eric Blake.
17455
17456 2010-08-28  Bruno Haible  <bruno@clisp.org>
17457
17458         Avoid relocwrapper link errors due to gnulib replacement functions.
17459         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
17460         function.
17461         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17462
17463 2010-08-28  Bruno Haible  <bruno@clisp.org>
17464
17465         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
17466         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
17467         defined.
17468         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
17469         Suggested by Eric Blake.
17470
17471 2010-08-28  Bruno Haible  <bruno@clisp.org>
17472
17473         sys_socket, netdb: Ensure socklen_t gets defined.
17474         * modules/sys_socket (Depends-on): Add socklen.
17475         * modules/netdb (Depends-on): Likewise.
17476         * modules/getaddrinfo (Depends-on): Remove socklen.
17477         * modules/getsockopt (Depends-on): Likewise.
17478         * modules/setsockopt (Depends-on): Likewise.
17479         * tests/test-sys_socket.c: Check that socklen_t is defined.
17480         * tests/test-netdb.c: Likewise.
17481         * m4/socklen.m4: Update comments.
17482         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17483
17484 2010-08-27  Eric Blake  <eblake@redhat.com>
17485
17486         login_tty: add missing dependency
17487         * modules/login_tty (Depends-on): Add pty.
17488
17489 2010-08-26  Eric Blake  <eblake@redhat.com>
17490
17491         lib-symbol-versions: fix m4 quoting
17492         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
17493         format for AC_LINK_IFELSE.
17494
17495         glob: fix compile test
17496         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
17497
17498         btowc: fix missing file
17499         * modules/btowc (Files): Also ship locale-fr.m4.
17500
17501         lseek: fix link test
17502         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
17503         AC_LINK_IFELSE.
17504
17505         include_next: silence autoconf 2.68 warning
17506         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
17507         AC_COMPILE_IFELSE as special.
17508         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
17509         autoconf < 2.68.
17510
17511         acl: fix compilation test
17512         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
17513         AC_COMPILE_IFELSE.
17514
17515 2010-08-26  Bruno Haible  <bruno@clisp.org>
17516
17517         Modernize AC_TRY_RUN invocations.
17518         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
17519         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17520         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
17521         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
17522         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
17523         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17524         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17525         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17526         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17527         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17528         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17529         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17530         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17531         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17532         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17533         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17534         gl_MBRLEN_NUL_RETVAL): Likewise.
17535         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17536         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
17537         Likewise.
17538         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17539         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17540         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17541         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17542         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
17543         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
17544         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
17545         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
17546         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
17547         Likewise.
17548         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17549         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
17550         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17551         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17552         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17553         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17554         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17555         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
17556         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17557         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17558
17559 2010-08-26  Bruno Haible  <bruno@clisp.org>
17560
17561         Modernize AC_TRY_LINK invocations.
17562         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
17563         AC_TRY_LINK.
17564         * m4/argp.m4 (gl_ARGP): Likewise.
17565         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
17566         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17567         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
17568         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
17569         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
17570         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
17571         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
17572         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
17573         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
17574         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
17575         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
17576         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
17577         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
17578         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17579         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17580         * m4/hostent.m4 (gl_HOSTENT): Likewise.
17581         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17582         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
17583         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17584         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
17585         Likewise.
17586         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
17587         Likewise.
17588         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
17589         Likewise.
17590         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17591         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
17592         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
17593         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
17594         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
17595         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17596         * m4/servent.m4 (gl_SERVENT): Likewise.
17597         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
17598         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
17599         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
17600         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
17601         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17602         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17603         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17604         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17605         * modules/tsearch-tests (configure.ac): Likewise.
17606
17607 2010-08-26  Bruno Haible  <bruno@clisp.org>
17608
17609         Modernize AC_TRY_COMPILE invocations.
17610         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
17611         AC_TRY_COMPILE.
17612         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
17613         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
17614         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17615         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
17616         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17617         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17618         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17619         * m4/lock.m4 (gl_LOCK): Likewise.
17620         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
17621         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17622         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
17623         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
17624         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17625         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
17626         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
17627         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
17628         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17629         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17630         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17631         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17632         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
17633         extraneous semicolon.
17634
17635 2010-08-26  Jim Meyering  <meyering@redhat.com>
17636
17637         stat-time: relax license LGPL
17638         * modules/stat-time (License): Change from GPL to LGPL,
17639         with consent from all contributors, for use in libguile.
17640         Requested by Ludovic Courtès.
17641
17642 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
17643
17644         poll: return immediately on POLLHUP.
17645         * lib/poll.c (poll): Always set timeout before wait_timeout is
17646         computed.
17647
17648 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17649
17650         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
17651         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
17652         rmdir ("dir/.//"), unlinkat.
17653
17654 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17655
17656         stdbool: avoid spurious failure with modern xlc
17657         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17658
17659 2010-08-24  Bruno Haible  <bruno@clisp.org>
17660
17661         getloadavg: simplify code
17662         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
17663         gl_have_func. Update comments.
17664
17665 2010-08-24  Eric Blake  <eblake@redhat.com>
17666
17667         getloadavg: don't define SVR4 on cygwin
17668         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
17669         only define SVR4 when -lkvm is required.
17670         Reported by Yaakov Selkowitz.
17671
17672 2010-08-24  Bruno Haible  <bruno@clisp.org>
17673
17674         priv-set: fix comment
17675         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
17676
17677 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17678
17679         priv-set: fix comments
17680         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
17681         to match code, as suggested by David Bartley in:
17682         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
17683
17684 2010-08-23  Eric Blake  <eblake@redhat.com>
17685
17686         stdbool: avoid rejecting clang
17687         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17688         * tests/test-stdbool.c: Enable more tests if using the system
17689         <stdbool.h> instead of the gnulib replacement.
17690         (main): Move xlc bug test to a runtime test for all compilers.
17691         Reported by Anders Kaseorg.
17692
17693         argz: fix shell quoting issue
17694         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
17695         Reported by Charles Wilson.
17696
17697 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
17698             Erik Faye-Lund <kusmabite@gmail.com>
17699
17700         poll, select: handle ERROR_BROKEN_PIPE.
17701         * lib/poll.c (win32_compute_revents): Return POLLHUP when
17702         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17703         * lib/select.c (win32_compute_revents): Do not mark a pipe
17704         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17705
17706 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
17707
17708         fts: allow compilation with C++
17709         * lib/fts_.h: Specify extern "C" linkage with C++.
17710
17711 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17712
17713         Fix gnulib-tool sed script de-commentation for AIX sed.
17714         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
17715         sed.
17716
17717 2010-08-17  Eric Blake  <eblake@redhat.com>
17718
17719         test-stddef: test for (some) offsetof bugs
17720         * tests/test-stddef.c: Enhance test to ensure correct type of
17721         offsetof.
17722         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
17723         that we are not fixing at this time.
17724
17725 2010-08-15  Bruno Haible  <bruno@clisp.org>
17726
17727         stpncpy: Allow stpncpy to be defined as a macro.
17728         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
17729         if it's already correctly declared.
17730         * lib/string.in.h (stpncpy): Undefine before redefining.
17731         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
17732
17733 2010-08-14  Bruno Haible  <bruno@clisp.org>
17734
17735         Rename module 'memxfrm' to 'amemxfrm'.
17736         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
17737         (amemxfrm): Renamed from memxfrm.
17738         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
17739         (amemxfrm): Renamed from memxfrm.
17740         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
17741         * NEWS: Mention the change.
17742         * MODULES.html.sh (String handling <string.h>): Update.
17743         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
17744         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
17745         * lib/unicase/u16-casexfrm.c: Likewise.
17746         * lib/unicase/u32-casexfrm.c: Likewise.
17747         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
17748         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
17749         * lib/uninorm/u16-normxfrm.c: Likewise.
17750         * lib/uninorm/u32-normxfrm.c: Likewise.
17751         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
17752         memxfrm.
17753         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
17754         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
17755         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
17756         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
17757         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
17758         Suggested by Paul Eggert.
17759
17760 2010-08-14  Bruno Haible  <bruno@clisp.org>
17761
17762         Tests for module 'astrxfrm'.
17763         * modules/astrxfrm-tests: New file.
17764         * tests/test-astrxfrm.c: New file.
17765
17766         New module 'astrxfrm'.
17767         * lib/astrxfrm.h: New file.
17768         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
17769         * modules/astrxfrm: New file.
17770
17771 2010-08-14  Reuben Thomas <rrt@sc3d.org>
17772
17773         regex: Tweak doc.
17774         * doc/regex.texi (Overview): Don't mention regex.c.
17775         (GNU Regular Expression Compiling): Likewise.
17776         (Match-end-of-line Operator): Mention 'not_eol'.
17777
17778 2010-08-14  Brian Gough  <bjg@gnu.org>
17779             Bruno Haible  <bruno@clisp.org>
17780
17781         git-merge-changelog: add doc relating to use with bzr and hg.
17782         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
17783
17784 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
17785
17786         pthread: fix pthread.h creation for srcdir != builddir
17787         * modules/pthread (Makefile.am): Fix the rule to work also in a
17788         non-srcdir build.
17789
17790 2010-08-13  Karl Berry  <karl@gnu.org>
17791
17792         * doc/regex.texi (Predefined Syntaxes): @smallexample.
17793         * doc/posix-*/*: force line break before @url of POSIX
17794         specifications.
17795         Suggested by Werner Lemberg.
17796
17797 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17798
17799         strtod: fix const diagnostic
17800         * lib/strtod.c (strtod): Don't assign const char * to char *,
17801         as this elicits a warning from GCC when warnings are enabled.
17802
17803 2010-08-10  Pádraig Brady <P@draigbrady.com>
17804         and Eric Blake  <eblake@redhat.com>
17805
17806         copy-acl: ignore ENOTSUP on HP-UX
17807         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
17808         so that it is available for HP-UX.
17809         * lib/copy-acl.c (qcopy_acl): Use it.
17810         Reported by Patrick M. Callahan.
17811
17812 2010-08-10  Eric Blake  <eblake@redhat.com>
17813
17814         open, chown: relax license
17815         * modules/open (License): Change to LGPLv2+, with consent by all
17816         authors, for use in augeas.
17817         * modules/chown (License): Likewise.
17818         * modules/lchown (Likewise): Likewise.
17819         Requested by Adam Stokes.
17820
17821 2010-08-09  Karl Berry  <karl@gnu.org>
17822
17823         * build-aux/ar-lib: new file, import from Automake.
17824         * config/srclist.txt: autocheck for updates.
17825
17826 2010-08-09  Eric Blake  <eblake@redhat.com>
17827
17828         readlinkat: adjust client modules
17829         * modules/areadlinkat (Depends-on): Use readlinkat, not
17830         symlinkat.
17831         * modules/areadlinkat-with-size (Depends-on): Likewise.
17832
17833         mknod: be more vocal about danger of running tests as root
17834         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
17835         root, since that is just asking for problems.
17836         Suggested by Bruno Haible, based on a report by Rainer Tammer.
17837
17838         readlinkat: split into its own module
17839         * modules/symlinkat: Split readlinkat...
17840         * modules/readlinkat: ...into separate module.
17841         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
17842         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
17843         * lib/symlinkat.c (readlinkat): Move...
17844         * lib/readlinkat.c: ...into new file.
17845         * modules/symlinkat-tests: Split readlinkat test...
17846         * modules/readlinkat-tests: ...into separate module.
17847         * tests/test-symlinkat.c: Split...
17848         * tests/test-readlinkat.c: ...into new file.
17849         * NEWS: Document the split.
17850         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17851         * lib/unistd.in.h (readlinkat): Likewise.
17852         Suggested by Bruno Haible.
17853
17854 2010-08-08  Bruno Haible  <bruno@clisp.org>
17855
17856         memxfrm: Speed up.
17857         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
17858         that usually only one call to strxfrm is necessary for each string
17859         part.
17860         Reported by Paul Eggert <eggert@cs.ucla.edu>.
17861
17862 2010-08-07  Karl Berry  <karl@gnu.org>
17863
17864         * doc/posix-headers/limits.texi,
17865         * doc/posix-functions/malloc.texi,
17866         * doc/posix-functions/strsignal.texi: missing @item.
17867         * doc/ld-version-script.texi: spurious leading i.
17868         * doc/regex.texi (Interval Operators): no commas inside @var.
17869
17870 2010-08-01  Bruno Haible  <bruno@clisp.org>
17871
17872         Integrate the regex documentation.
17873         * doc/gnulib.texi: Define 'cn' index.
17874         (Regular expressions): New a chapter that includes regex.texi and
17875         regexprops-generic.texi.
17876         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
17877         syntax.
17878
17879         Whitespace cleanup.
17880         * doc/regex.texi: Remove trailing spaces.
17881
17882         Add regex documentation.
17883         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
17884         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
17885         Written by Kathy A. Hargreaves and Karl Berry.
17886
17887 2010-08-01  Bruno Haible  <bruno@clisp.org>
17888
17889         link: Update documentation.
17890         * doc/posix-functions/link.texi: Update regarding Solaris.
17891
17892 2010-07-31  Bruno Haible  <bruno@clisp.org>
17893
17894         Update modules list.
17895         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
17896         (String handling <string.h>): Add memcmp2, memxfrm.
17897         (Container data structures): Add xlist, xsublist, xoset.
17898         (Core language properties): Add alignof, unused-parameter.
17899         (Process control, Numeric conversion functions <stdlib.h>): Renamed
17900         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
17901         (Unibyte characters <ctype.h>): New section.
17902         (String handling <string.h>): New section.
17903         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
17904         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
17905         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
17906         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
17907         tan, tanh, tanl, y0, y1, yn.
17908         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
17909         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
17910         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
17911         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
17912         unlockpt, vdprintf, vdprintf-posix.
17913         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
17914         (File system functions): Add concat-filename, sys_file, sys_ioctl,
17915         xconcat-filename.
17916         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
17917         getdtablesize, pipe2, pipe2-safer.
17918         (Security): New section.
17919         (Networking functions): Add accept4.
17920         (Signal handling): Add sigpipe.
17921         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
17922         mbmemcasecoll.
17923         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
17924         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
17925         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
17926         pipe-filter-ii.
17927         (Misc): Add argp-version-etc, login_tty, parse-duration.
17928
17929 2010-07-31  Bruno Haible  <bruno@clisp.org>
17930
17931         Improve doc in MODULES.html.
17932         * modules/linkat (Description): Add the word "function".
17933         * modules/mkfifo (Description): Likewise.
17934         * modules/mknod (Description): Likewise.
17935         * modules/remove (Description): Likewise.
17936         * modules/renameat (Description): Likewise.
17937         * modules/stat (Description): Likewise.
17938         * modules/symlink (Description): Likewise.
17939         * modules/unlink (Description): Likewise.
17940
17941 2010-07-31  Bruno Haible  <bruno@clisp.org>
17942
17943         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
17944         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
17945         option --enable/disable-c++ instead of --enable/disable-cxx.
17946         * NEWS: Mention the change.
17947
17948 2010-07-31  Bruno Haible  <bruno@clisp.org>
17949
17950         readlink, areadlink: Relax test a bit.
17951         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
17952         alternative to ENOTDIR.
17953         * tests/test-areadlink.h (test_areadlink): Likewise.
17954         Reported by Rainer Tammer.
17955
17956 2010-07-31  Bruno Haible  <bruno@clisp.org>
17957
17958         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
17959         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
17960         character, perform the search using U_STRCHR.
17961         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
17962         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
17963         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
17964         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
17965         Suggested by Paolo Bonzini.
17966
17967 2010-07-31  Bruno Haible  <bruno@clisp.org>
17968
17969         unistr/u*-strstr: Fix dependencies.
17970         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
17971         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
17972         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
17973
17974 2010-07-31  Bruno Haible  <bruno@clisp.org>
17975
17976         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
17977         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
17978         the beginning of the loop.
17979         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
17980         cases in 'switch' statement.
17981
17982         unistr/u8-strchr: Fix several bugs.
17983         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
17984         the string. When not found, return NULL, not a pointer near the end.
17985
17986         More tests for unistr/u8-strchr.
17987         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
17988         that the function does not read past the first occurrence of the byte
17989         being searched.
17990         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
17991         * tests/unistr/test-u16-strchr.c (main): New function.
17992         * tests/unistr/test-u32-strchr.c (main): New function.
17993
17994 2010-07-31  Bruno Haible  <bruno@clisp.org>
17995
17996         posix-modules: Ignore backup files of documentation files.
17997         * posix-modules: grep only through files named *.texi.
17998
17999 2010-07-31  Bruno Haible  <bruno@clisp.org>
18000
18001         symlinkat: Fix documentation.
18002         * doc/posix-functions/readlinkat.texi: Fix module name.
18003
18004 2010-07-31  Bruno Haible  <bruno@clisp.org>
18005
18006         fchownat: Replace also when chown has the trailing slash bug.
18007         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
18008         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
18009         introduced on 2010-04-10.
18010         Reported by Rainer Tammer.
18011
18012 2010-07-31  Bruno Haible  <bruno@clisp.org>
18013
18014         linkat: Work around AIX 7.1 bug.
18015         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
18016         whether linkat handles trailing slash correctly. If not, replace linkat
18017         and define LINKAT_TRAILING_SLASH_BUG.
18018         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
18019         check whether (fd1,file1) points to a directory if file1 or file2 ends
18020         in a slash. Code taken from lib/link.c.
18021         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
18022         Reported by Rainer Tammer.
18023
18024 2010-07-31  Bruno Haible  <bruno@clisp.org>
18025
18026         Correctly determine whether pow is available in libc on AIX 7 with xlc.
18027         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
18028         This disables an xlc optimization that was causing wrong test results.
18029         Reported by Rainer Tammer.
18030
18031 2010-07-31  Bruno Haible  <bruno@clisp.org>
18032
18033         iconv: Work around AIX 6.1..7.1 bug.
18034         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
18035         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
18036         cross-compiling, guess no on all versions of AIX.
18037         Reported by Rainer Tammer.
18038
18039 2010-07-31  Bruno Haible  <bruno@clisp.org>
18040
18041         readlink: Relax test a bit.
18042         * tests/test-readlink.h (test_readlink): Allow different errno value
18043         when readlink is called with a file name that ends in / and refers to
18044         a file.
18045         Suggested by Eric Blake.
18046         Reported by Rainer Tammer.
18047
18048 2010-07-31  Bruno Haible  <bruno@clisp.org>
18049
18050         copysign: Does not require -lm on glibc systems.
18051         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
18052         gl_COMMON_DOUBLE_MATHFUNC.
18053         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
18054
18055 2010-07-31  Bruno Haible  <bruno@clisp.org>
18056
18057         duplocale: Work around AIX 7.1 bug.
18058         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
18059         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
18060         * lib/duplocale.c (rpl_duplocale): Update comment.
18061         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
18062         Reported by Rainer Tammer.
18063
18064 2010-07-30  Bruno Haible  <bruno@clisp.org>
18065
18066         dirfd: Avoid link error on AIX 7.1.
18067         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
18068         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
18069         exist, set REPLACE_DIRFD.
18070         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
18071         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
18072         * doc/posix-functions/dirfd.texi: Update.
18073         Reported by Rainer Tammer.
18074
18075 2010-07-30  Eric Blake  <eblake@redhat.com>
18076
18077         strtod: next round of AIX fixes
18078         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
18079         exponent.
18080         * tests/test-strtod.c (main): Enhance tests.
18081         * doc/posix-functions/strtod.texi (strtod): Document next bug.
18082         Reported by Rainer Tammer.
18083
18084         futimens: fix configure check
18085         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
18086         Reported by Bruno Haible.
18087
18088 2010-07-30  Bruno Haible  <bruno@clisp.org>
18089
18090         getline: Update regarding AIX.
18091         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
18092         Reported by Rainer Tammer.
18093
18094 2010-07-30  Bruno Haible  <bruno@clisp.org>
18095
18096         wcwidth: Drop replacement on AIX 7.
18097         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
18098         AIX 7.
18099         Reported by Rainer Tammer.
18100
18101 2010-07-30  Bruno Haible  <bruno@clisp.org>
18102
18103         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
18104         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
18105         a 'char *'.
18106         Reported by Rainer Tammer.
18107
18108 2010-07-30  Bruno Haible  <bruno@clisp.org>
18109
18110         unlink: Update regarding AIX.
18111         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
18112         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
18113         Reported by Rainer Tammer.
18114
18115 2010-07-30  Bruno Haible  <bruno@clisp.org>
18116
18117         symlink: Update regarding AIX.
18118         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
18119         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
18120         Reported by Rainer Tammer.
18121
18122 2010-07-30  Bruno Haible  <bruno@clisp.org>
18123
18124         strndup: Update regarding AIX.
18125         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
18126         AIX 7.
18127         Reported by Rainer Tammer.
18128
18129 2010-07-30  Bruno Haible  <bruno@clisp.org>
18130
18131         stat: Update regarding AIX.
18132         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
18133         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
18134         Reported by Rainer Tammer.
18135
18136 2010-07-30  Bruno Haible  <bruno@clisp.org>
18137
18138         truncl: Fix autoconf test.
18139         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
18140         whether truncl works.
18141         Reported by Rainer Tammer.
18142
18143 2010-07-30  Bruno Haible  <bruno@clisp.org>
18144
18145         round: Update regarding AIX.
18146         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
18147         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
18148         Reported by Rainer Tammer.
18149
18150 2010-07-30  Bruno Haible  <bruno@clisp.org>
18151
18152         rename: Update regarding AIX.
18153         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
18154         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
18155         Reported by Rainer Tammer.
18156
18157 2010-07-30  Bruno Haible  <bruno@clisp.org>
18158
18159         printf.m4: Update regarding AIX.
18160         * m4/printf.m4: Update comments regarding AIX.
18161         Reported by Rainer Tammer.
18162
18163 2010-07-30  Bruno Haible  <bruno@clisp.org>
18164
18165         iconv: Update regarding AIX.
18166         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
18167         AIX 7.
18168         Reported by Rainer Tammer.
18169
18170 2010-07-30  Bruno Haible  <bruno@clisp.org>
18171
18172         getopt: Update regarding AIX.
18173         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
18174         no on AIX.
18175         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
18176         Reported by Rainer Tammer.
18177
18178 2010-07-30  Bruno Haible  <bruno@clisp.org>
18179
18180         ldexpl; Update regarding AIX.
18181         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
18182         on AIX 7.
18183         Reported by Rainer Tammer.
18184
18185 2010-07-30  Bruno Haible  <bruno@clisp.org>
18186
18187         frexpl: Update regarding AIX.
18188         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
18189         on AIX 7.
18190         Reported by Rainer Tammer.
18191
18192 2010-07-30  Bruno Haible  <bruno@clisp.org>
18193
18194         open, fopen: Update regarding AIX.
18195         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
18196         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
18197         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
18198         * doc/posix-functions/fopen.texi: Likewise.
18199         Reported by Rainer Tammer.
18200
18201 2010-07-30  Bruno Haible  <bruno@clisp.org>
18202
18203         chown: Update doc regarding AIX.
18204         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
18205         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
18206         Reported by Rainer Tammer.
18207
18208 2010-07-30  Eric Blake  <eblake@redhat.com>
18209
18210         strtod: fix bug in replacement function on AIX
18211         * lib/strtod.c (strtod): Special case broken "0x" parse in
18212         underlying strtod.
18213         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
18214         * doc/posix-functions/strtod.texi (strtod): Likewise.
18215         Reported by Rainer Tammer.
18216
18217 2010-07-30  Bruno Haible  <bruno@clisp.org>
18218
18219         mbrlen: Fix cross-compilation guess for AIX.
18220         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
18221         guess. Leftover from 2008-12-22.
18222
18223 2010-07-30  Bruno Haible  <bruno@clisp.org>
18224
18225         mbrtowc: Fix cross-compilation guess for AIX.
18226         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
18227         guess. Leftover from 2008-12-21.
18228
18229 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
18230
18231         init.sh: work around trap limitation of some shells
18232         * tests/init.sh (setup_): Move exit trap outside of shell function.
18233
18234 2010-07-29  Eric Blake  <eblake@redhat.com>
18235
18236         strtod: aid debugging
18237         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
18238         understanding why strtod is rejected.
18239
18240 2010-07-28  Bruno Haible  <bruno@clisp.org>
18241
18242         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
18243         * lib/unistr/u8-chr.c: Include <string.h>.
18244         * tests/unistr/test-u8-chr.c: Likewise.
18245         * tests/unistr/test-u16-chr.c: Likewise.
18246         * tests/unistr/test-u32-chr.c: Likewise.
18247         * tests/unistr/test-u8-strchr.c: Likewise.
18248         * tests/unistr/test-u16-strchr.c: Likewise.
18249         * tests/unistr/test-u32-strchr.c: Likewise.
18250         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
18251         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
18252         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
18253         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
18254
18255 2010-07-28  Bruno Haible  <bruno@clisp.org>
18256
18257         Use spaces for indentation, not tabs.
18258         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
18259
18260 2010-07-27  Bruno Haible  <bruno@clisp.org>
18261
18262         mbspcasecmp: Fix function specification.
18263         * lib/string.in.h (mbspcasecmp): Fix specification comment.
18264         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
18265         Reported by Eric Blake <eblake@redhat.com>.
18266
18267 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
18268
18269         timespec: use cast and not conditional, as truncation isn't possible
18270         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
18271         instead of a conditional.  Comment about the situation in more detail.
18272         This undoes most of the 2009-10-29 patch.
18273
18274 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
18275
18276         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
18277         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
18278         * lib/unistr/u8-strchr.c: Likewise.
18279         * modules/unistr/u8-chr: Depend on memchr.
18280
18281         unistr/u*-strchr: add tests
18282         * modules/unistr/u8-strchr-tests: New file.
18283         * modules/unistr/u16-strchr-tests: New file.
18284         * modules/unistr/u32-strchr-tests: New file.
18285         * tests/unistr/test-strchr.h: New file.
18286         * tests/unistr/test-u8-strchr.c: New file.
18287         * tests/unistr/test-u16-strchr.c: New file.
18288         * tests/unistr/test-u32-strchr.c: New file.
18289
18290         unistr/u*-chr: test multibyte sequences more
18291         * tests/unistr/test-chr.h: Do complete testing of the characters in the
18292         test vector.
18293         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
18294         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
18295         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
18296
18297         unistr/u*-chr: test multibyte sequences
18298         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
18299
18300         unistr/u*-chr: prepare for multibyte tests
18301         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
18302         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
18303         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
18304         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
18305         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
18306         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
18307
18308 2010-07-18  Bruno Haible  <bruno@clisp.org>
18309
18310         unistr/u8-strchr: Optimize non-ASCII argument case.
18311         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
18312         because the first byte often matches anyway.
18313         Reported by Pádraig Brady <P@draigbrady.com>.
18314
18315 2010-07-15  Karl Berry  <karl@gnu.org>
18316
18317         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
18318
18319 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
18320
18321         getcwd: on Solaris, work better if ancestors are inaccessible
18322         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
18323         buffer and size, try again with a large buffer.  This works better
18324         on Solaris, since its getcwd succeeds even if the path to the root
18325         is inaccessible, and this is helpful in common cases such as .zfs
18326         hidden directories.  Problem reported by J Chapman Flack in
18327         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
18328         Use system getcwd if it's declared, not merely if it's partly
18329         working; use the partly-working test only to avoid needless effort
18330         if the system getcwd fails.
18331         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
18332         comment that was already obsolete and is now even more obsolete.
18333         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
18334         now might call strdup.
18335
18336 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
18337
18338         pthread: Add enough so that coreutils/src/sort.c compiles.
18339         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
18340         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
18341         gnulib. Include <sched.h> and <time.h>, as per POSIX.
18342         Include <sys/types.h>, in case it defines pthread_t.
18343         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
18344         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
18345         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
18346         (pthread_rwlockattr_t, pthread_spinlock_t):
18347         New typedefs, if HAVE_PTHREAD_T is not defined.
18348         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
18349         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
18350         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
18351         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
18352         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
18353         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
18354         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
18355         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
18356         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
18357         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
18358         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
18359         New macros.
18360         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
18361         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
18362         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
18363         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
18364         (pthread_spin_unlock): New dummy functions.
18365         (pthread_create): Return EAGAIN; don't set errno.
18366         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
18367         require AC_C_INLINE.
18368         * modules/pthread (Depends-on): Add sched, time.
18369         (pthread.h): Use AM_V_GEN.
18370
18371 2010-07-13  Bruno Haible  <bruno@clisp.org>
18372
18373         striconveh: Don't malloc memory if the result buffer is sufficient.
18374         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
18375         buffer if its size is sufficient.
18376         Reported by Ludovic Courtès <ludo@gnu.org>.
18377
18378 2010-07-13  Bruno Haible  <bruno@clisp.org>
18379
18380         strtod: Add safety check.
18381         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
18382
18383 2010-07-12  Bruno Haible  <bruno@clisp.org>
18384
18385         Unify tests that set gl_cv_func_ldexpl_no_libm.
18386         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
18387         gl_FUNC_LDEXPL.
18388         (gl_FUNC_LDEXPL): Invoke it.
18389         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18390
18391 2010-07-12  Bruno Haible  <bruno@clisp.org>
18392
18393         Unify tests that set gl_cv_func_ldexp_no_libm.
18394         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
18395         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
18396         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
18397         (configure.ac): Simply invoke gl_FUNC_LDEXP.
18398         * modules/strtod (Files): Add m4/ldexp.m4.
18399
18400 2010-07-12  Bruno Haible  <bruno@clisp.org>
18401
18402         Unify tests that set gl_cv_func_frexpl_no_libm.
18403         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
18404         gl_FUNC_FREXPL_NO_LIBM.
18405         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
18406         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18407
18408 2010-07-12  Bruno Haible  <bruno@clisp.org>
18409
18410         Unify tests that set gl_cv_func_frexp_no_libm.
18411         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
18412         gl_FUNC_FREXP_NO_LIBM.
18413         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
18414         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
18415
18416 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18417
18418         memcoll: clarify sizes versus lengths, document better, and tweak perf
18419         * lib/memcoll.c (strcoll_loop, memcoll0):
18420         Improve quality of descriptive comments.  Name variables
18421         consistently as to whether they are lengths (which do not include
18422         terminating null) versus sizes (which do).
18423         * lib/xmemcoll.c (xmemcoll0): Likewise.
18424         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
18425         returned when s1size == 0; this is easier to compile and saves
18426         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
18427
18428 2010-07-12  Bruno Haible  <bruno@clisp.org>
18429
18430         Tests for module '_Exit'.
18431         * modules/_Exit-tests: New file.
18432         * tests/test-_Exit.sh: New file.
18433         * tests/test-_Exit.c: New file.
18434
18435         New module '_Exit'.
18436         * lib/stdlib.in.h (__attribute__): New macro.
18437         (_Exit): New declaration.
18438         * lib/_Exit.c: New file.
18439         * m4/_Exit.m4: New file.
18440         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
18441         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
18442         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
18443         * modules/_Exit: New file.
18444         * tests/test-stdlib-c++.cc (_Exit): Check signature.
18445         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
18446
18447 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18448
18449         strtod: make it more-accurate typically, and don't require libm
18450         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
18451         Include limits.h.  Don't include string.h.
18452         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
18453         (locale_isspace): New function, so that no casts are needed to
18454         check whether *s is a space.
18455         (ldexp): Provide an unused dummy if not available.
18456         (scale_radix_exp, parse_number, underlying_strtod): New functions.
18457         (strtod): Use them.  This implementation prefers to use the
18458         underlying strtod if available, falling back on our own code
18459         only to fix known bugs.  This is more likely to produce an
18460         accurate result.  Also, it avoids the use of libm functions.
18461         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
18462         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
18463         was absent, but it caused a test failure with coreutils.
18464         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
18465         with libm.
18466         * modules/strtod (Makefile.am, Link): libm is no longer needed.
18467         * modules/strtod-tests (Makefile.am): Likewise.
18468
18469 2010-07-11  Pádraig Brady  <P@draigBrady.com>
18470             Bruno Haible  <bruno@clisp.org>
18471
18472         unistr/u8-strchr: Optimize ASCII argument case.
18473         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
18474
18475 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
18476
18477         (x)memcoll: minor tweaks
18478         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
18479         is after the type that it qualifies.
18480         (memcoll0): Likewise.
18481         * lib/memcoll.h (memcoll0): Likewise.
18482         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
18483         * lib/xmemcoll.h (xmemcoll0): Likewise.
18484         * lib/memcoll.c (memcoll0): Correct the comment.  This function
18485         differs from memcoll in that the NUL byte is part of the argument.
18486         Omit the abort-checks, as performance is a real issue here.  Plus,
18487         the checks were wrong anyway (an off-by-one error).  Omit local
18488         variable 'diff', as it's a bit clearer that way.
18489         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
18490         no longer needed.
18491
18492 2010-07-08  Chen Guo <chenguo4@yahoo.com>
18493
18494         (x)memcoll: speedup when input is known to be NUL delimited
18495         * lib/memcoll.c: Include stdlib.
18496         (memcoll0): New function.
18497         (strcoll_loop): New function, refactored for use in both memcoll
18498         and memcoll0.
18499         * lib/memcoll.h (memcoll0): Add prototype.
18500         * lib/xmemcoll.c (xmemcoll0): New function.
18501         (collate_error): New function, refactored for use in both xmemcoll
18502         and xmemcoll0.
18503         * lib/xmemcoll.h (xmemcoll0): Add prototype.
18504         * m4/memcoll.m4: add inline invocation.
18505
18506 2010-07-06  Pádraig Brady  <P@draigBrady.com>
18507
18508         * build-aux/bootstrap: Remove any local translations
18509         from the translation project synchronization directory,
18510         so that local only translations are not distributed.
18511
18512 2010-07-04  Bruno Haible  <bruno@clisp.org>
18513
18514         fsusage: Clarify which code applies to which platforms.
18515         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
18516         platform.
18517         * lib/fsusage.c (get_fs_usage): Likewise.
18518
18519 2010-07-04  Bruno Haible  <bruno@clisp.org>
18520
18521         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
18522         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
18523         Reported by Martin Lambers <marlam@marlam.de>.
18524
18525 2010-07-04  Jim Meyering  <meyering@redhat.com>
18526
18527         hash: once again explicitly disallow insertion of NULL
18528         * lib/hash.c (hash_insert0): Reinstate just-removed test:
18529         inserting a NULL pointer cannot work with these functions.
18530         Add a comment with details.
18531         This reverts part of the 2010-07-01 commit, 5bef1a35
18532         "hash: extend module to deal with non-pointer keys".
18533
18534 2010-07-01  Bruno Haible  <bruno@clisp.org>
18535
18536         stdbool: Update doc.
18537         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
18538         Info from Christian Weisgerber <naddy@mips.inka.de>.
18539
18540 2010-07-01  Jim Meyering  <meyering@redhat.com>
18541
18542         hash: extend module to deal with non-pointer keys
18543         * lib/hash.c (hash_insert0): New interface, much like hash_insert
18544         but that allows insertion of non-pointer entries.
18545         Do not disallow an ENTRY value of NULL.
18546         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
18547         * lib/hash.h (hash_insert0): Declare.
18548
18549 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18550
18551         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
18552         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
18553         not present (i.e. with autoconf 2.59 and when using gettextize, not
18554         gnulib), require AC_GNU_SOURCE instead.
18555
18556 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
18557
18558         idpriv-drop: Fix tests.
18559         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
18560         not to the test-idpriv-droptemp program.
18561
18562 2010-06-29  Bruno Haible  <bruno@clisp.org>
18563
18564         string: Fix syntax error with g++ 2.96.
18565         * lib/string.in.h (__pure__): Remove definition.
18566         (_GL_ATTRIBUTE_PURE): New macro.
18567         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
18568         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
18569         Reported by Christian Weisgerber <naddy@mips.inka.de>.
18570
18571 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
18572
18573         unitypes: Fix bug introduced on 2010-05-18.
18574         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
18575
18576 2010-06-22  Eric Blake  <eblake@redhat.com>
18577
18578         memmem: slight optimization
18579         * lib/str-two-way.h (critical_factorization): Update comments.
18580         Reduce work during factorization phase.
18581         Reported by Carlos Bueno <carlos@bueno.org>.
18582
18583 2010-06-21  Bruno Haible  <bruno@clisp.org>
18584
18585         Fix HAVE_CALLOC_POSIX misnomer.
18586         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
18587         !HAVE_CALLOC_POSIX.
18588         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
18589         HAVE_CALLOC_POSIX.
18590         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
18591         instead of HAVE_CALLOC_POSIX.
18592         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
18593         HAVE_CALLOC_POSIX.
18594
18595         Use modern idiom for calloc() replacement.
18596         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
18597         AC_FUNC_CALLOC.
18598         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
18599         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
18600         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18601         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
18602         (gl_REPLACE_CALLOC): New macro.
18603
18604 2010-06-21  Bruno Haible  <bruno@clisp.org>
18605
18606         Fix HAVE_REALLOC_POSIX misnomer.
18607         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
18608         !HAVE_REALLOC_POSIX.
18609         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
18610         HAVE_REALLOC_POSIX.
18611         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
18612         instead of HAVE_REALLOC_POSIX.
18613         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
18614         HAVE_REALLOC_POSIX.
18615
18616         Use modern idiom for realloc() replacement.
18617         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
18618         AC_FUNC_REALLOC.
18619         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
18620         Autoconf's AC_FUNC_REALLOC.
18621         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18622         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
18623         (gl_REPLACE_REALLOC): New macro.
18624         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18625
18626 2010-06-21  Bruno Haible  <bruno@clisp.org>
18627
18628         Fix HAVE_MALLOC_POSIX misnomer.
18629         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
18630         !HAVE_MALLOC_POSIX.
18631         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
18632         HAVE_MALLOC_POSIX.
18633         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
18634         instead of HAVE_MALLOC_POSIX.
18635         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
18636         HAVE_MALLOC_POSIX.
18637
18638         Use modern idiom for malloc() replacement.
18639         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
18640         AC_FUNC_MALLOC.
18641         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
18642         Autoconf's AC_FUNC_MALLOC.
18643         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18644         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
18645         (gl_REPLACE_MALLOC): New macro.
18646         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18647
18648 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
18649
18650         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
18651         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
18652         This macro takes 3 arguments, not 4.
18653
18654 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
18655
18656         ipv6: fix detection under mingw
18657         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
18658         in6_addr.
18659
18660 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
18661
18662         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
18663         that strtod() works when cross-compiling to a glibc version known
18664         to work.
18665
18666 2010-06-15  Bruno Haible  <bruno@clisp.org>
18667
18668         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
18669
18670 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
18671
18672         select: Correct timeout.
18673         * lib/select.c (rpl_select): Compute wait_timeout correctly.
18674
18675 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18676
18677         git-version-gen: init shell var to avoid env var influence
18678         * build-aux/git-version-gen (v): Init shell var to empty.
18679
18680 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
18681
18682         priv-set: Don't assume that priv.h exists merely because getppriv does.
18683         See Jan Andersen's bug report about AIX 5L in
18684         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
18685         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
18686         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
18687         * lib/priv-set.h: Likewise.
18688         * tests/test-priv-set.c: Likewise.
18689
18690 2010-06-13  Bruno Haible  <bruno@clisp.org>
18691
18692         relocatable: Make it easier to test whether to install wrappers.
18693         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
18694         RELOCATABLE_VIA_WRAPPER.
18695
18696 2010-06-13  Bruno Haible  <bruno@clisp.org>
18697
18698         gnulib-tool: Display specified modules and dependencies differently.
18699         * gnulib-tool (func_show_module_list): New function.
18700         (func_import, func_create_testdir): Invoke it.
18701         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
18702
18703 2010-06-13  Bruno Haible  <bruno@clisp.org>
18704
18705         gnulib-tool: Align code of func_import and func_create_testdir.
18706         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
18707         specified_modules.
18708
18709 2010-06-12  Jim Meyering  <meyering@redhat.com>
18710
18711         test-inttostr: avoid spurious failure on Solaris 9
18712         * tests/test-inttostr.c (main): Skip the test when snprintf fails
18713         to accept "%ju".  Reported by Bruno Haible.
18714
18715 2010-06-11  Jim Meyering  <meyering@redhat.com>
18716
18717         test-sys_socket: mark variables as used more readably
18718         * tests/test-sys_socket.c (main): Mark otherwise unused variables
18719         as "used" explicitly via (void) statement casts.  This is more
18720         readable than using them in an artificial return expression.
18721         Suggestion from Bruno Haible.
18722
18723 2010-06-11  Bruno Haible  <bruno@clisp.org>
18724
18725         Avoid some more warnings from "gcc -Wwrite-strings".
18726         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
18727         to 'const char *'.
18728         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
18729         * tests/test-c-strcasestr.c (main): Likewise.
18730         * tests/test-mbscasestr1.c (main): Likewise.
18731         * tests/test-mbscasestr2.c (main): Likewise.
18732         * tests/test-memmem.c (main): Likewise.
18733         * tests/test-strstr.c (main): Likewise.
18734         * tests/test-strcasestr.c (main): Likewise.
18735
18736 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18737
18738         init.sh: change framework_failure_ to fail with status 99, not 1
18739         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
18740         automake's parallel-tests rule that this is an unexpected failure,
18741         even if the test is listed in XFAIL_TESTS.
18742
18743 2010-06-11  Jim Meyering  <meyering@redhat.com>
18744
18745         test-inttostr: avoid warnings about 4-6KB literal strings
18746         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
18747         Include "macros.h", for its definition of ASSERT.
18748         (CK): s/assert/ASSERT/
18749         * modules/inttostr-tests (Files): Add macros.h.
18750
18751         init.sh: don't use $ME_ or skip_ before they are defined
18752         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
18753         their first uses.  Also hoist their companions: warn_, fail_,
18754         framework_failure_, $stderr_fileno.  Prompted by a patch from
18755         Stefano Lattarini.
18756
18757         test-sys_socket: avoid set-but-not-used warnings from gcc
18758         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
18759         avoid warning about set-but-not-used variables.
18760
18761         test-xvasprintf: avoid 'const' discard warnings
18762         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
18763         "const" when assigning from literal strings.
18764         (test_xasprintf): Add "void" in function argument list to placate
18765         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
18766
18767         tests: avoid compilation warnings in argmatch and exclude tests...
18768         in packages that define ARGMATCH_DIE_DECL, like coreutils.
18769         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
18770         Since it always exits, declare with the "noreturn" attribute.
18771         * tests/test-argmatch.c: Likewise.
18772
18773         tests: avoid 'const' discard warnings in mbsstr tests
18774         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
18775         * tests/test-mbsstr2.c (main): Likewise.
18776
18777         test-verify: avoid warning from gcc's -Wmissing-declarations
18778         * tests/test-verify.c (function): Declare to be static.
18779
18780         test-inttostr.c: include <string.h> for use of strcmp
18781         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
18782
18783         test-linkat: avoid failed assertion on "other" architectures
18784         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
18785         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
18786         sparc: https://bugs.launchpad.net/bugs/591968
18787
18788 2010-06-11  Jim Meyering  <meyering@redhat.com>
18789
18790         printf.m4: avoid autoconf's "Expanded Before Required" warning
18791         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
18792         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
18793         autoconf warning.
18794
18795 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
18796
18797         Replacement header templates are now named with ".in", not "_".
18798         * doc/gnulib-intro.texi: Correct.
18799
18800 2010-06-10  Jim Meyering  <meyering@redhat.com>
18801
18802         inttostr-tests: depend on snprintf, not snprintf-posix
18803         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
18804         snprintf-posix, to avoid this aclocal failure:
18805           missing file gnulib-tests/vasnprintf.c
18806           configure.ac:45: error: expected source file, required through \
18807           AC_LIBSOURCES, not found
18808
18809 2010-06-10  Jim Meyering  <meyering@redhat.com>
18810
18811         inttostr: add a new function, inttostr, and tests
18812         The namesake function was not available.  The existence of the
18813         template file, inttostr.c makes its addition nontrivial.
18814         * lib/anytostr.c: Rename from inttostr.c.
18815         (anytostr): Rename from inttostr.
18816         * lib/inttostr.c: New file.
18817         * modules/inttostr (Files): Add anytostr.c.
18818         (Makefile.am): Set lib_SOURCES instead of ...
18819         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
18820         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
18821         * lib/offtostr.c: Likewise.
18822         * lib/uinttostr.c: Likewise.
18823         * lib/umaxtostr.c: Likewise.
18824         * modules/inttostr-tests: New file.
18825         * tests/test-inttostr.c: New file.  Test these functions.
18826
18827 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
18828             Bruno Haible  <bruno@clisp.org>
18829
18830         Add "Extending Gnulib" chapter to manual.
18831         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
18832         chapter.
18833         (Extending Gnulib): New chapter.
18834         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
18835         chapter.
18836
18837 2010-06-09  Bruno Haible  <bruno@clisp.org>
18838
18839         Avoid relocwrapper link errors due to gnulib replacement functions.
18840         * lib/areadlink.c: Use the system's malloc, realloc functions.
18841         (areadlink): Set errno to ENOMEM explicitly.
18842         * modules/areadlink (Depends-on): Remove malloc-posix.
18843         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18844
18845 2010-06-09  Bruno Haible  <bruno@clisp.org>
18846
18847         Avoid relocwrapper link errors due to gnulib replacement functions.
18848         * lib/canonicalize-lgpl.c: Use the system's malloc function.
18849         * lib/malloca.c: Likewise.
18850         * lib/relocatable.c: Likewise.
18851         * lib/progreloc.c: Use the system's malloc, sprintf functions.
18852         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
18853         * lib/setenv.c: Use the system's malloc, realloc functions.
18854         * lib/strerror.c: Use the system's sprintf function.
18855         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18856
18857 2010-06-04  Bruno Haible  <bruno@clisp.org>
18858
18859         Prefer documented low-level autoconf macro names.
18860         * m4/lib-link.m4: Use m4_translit instead of translit.
18861         * m4/environ.m4: Likewise.
18862         * m4/mathfunc.m4: Likewise.
18863         * m4/onceonly.m4: Likewise.
18864         * m4/stdint.m4: Likewise.
18865         Suggested by Eric Blake.
18866
18867 2010-06-04  Martin Lambers  <marlam@marlam.de>
18868             Bruno Haible  <bruno@clisp.org>
18869
18870         havelib: Allow library names with '+' characters.
18871         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
18872         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
18873
18874 2010-06-09  Bruno Haible  <bruno@clisp.org>
18875
18876         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
18877         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
18878         realloc failed.
18879
18880 2010-06-08  Peter Simons  <simons@cryp.to>
18881
18882         maint.mk: make the news-check rule more configurable
18883         * top/maint.mk (news-check-lines-spec): New variable.
18884         (news-check): Use "sed -n 1,10p" in place of "head".
18885
18886 2010-06-07  Jim Meyering  <meyering@redhat.com>
18887
18888         do-release-commit-and-tag: fix typo in --help
18889         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
18890
18891         regex: avoid new dead-code warning with gcc-4.6.0
18892         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
18893         if-block containing a while-loop.  It's been unused for at least
18894         5 years.
18895
18896 2010-06-05  Bruno Haible  <bruno@clisp.org>
18897
18898         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
18899         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
18900
18901 2010-06-04  Bruno Haible  <bruno@clisp.org>
18902
18903         Update to GNU gettext 0.18.1.
18904         * modules/gettext (configure.ac): Require gettext infrastructure from
18905         version 0.18.1.
18906
18907 2010-06-03  Bruno Haible  <bruno@clisp.org>
18908
18909         Don't use AC_LIBOBJ with file names in subdirectories.
18910         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
18911         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
18912         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
18913         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
18914         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
18915         gl_LIBUNISTRING_LIBSOURCE.
18916         (Makefile.am): Augment lib_SOURCES here, conditionally.
18917         * NEWS: Drop requirement for Automake option 'subdir-objects'.
18918
18919 2010-06-03  Bruno Haible  <bruno@clisp.org>
18920
18921         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
18922         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
18923         expansion does not end with a newline.
18924         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
18925         unnecessary newline.
18926
18927 2010-06-03  Bruno Haible  <bruno@clisp.org>
18928
18929         Reduce dependencies.
18930         * tests/test-quotearg.h: New file, extracted from
18931         tests/test-quotearg.c.
18932         * tests/test-quotearg-simple.c: New file, extracted from
18933         tests/test-quotearg.c.
18934         * tests/test-quotearg.c: Don't include <ctype.h>.
18935         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
18936         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
18937         use_quote_double_quotes, use_quotearg_colon): Moved to
18938         tests/test-quotearg.h.
18939         (results_g, flag_results, custom_quotes, custom_results): Moved
18940         to tests/test-quotearg-simple.c.
18941         (main): Moved the part that does not depend on gettext to
18942         tests/test-quotearg-simple.c. Return 77 if the test cannot be
18943         performed.
18944         * modules/quotearg-simple: New file.
18945         * modules/quotearg-simple-tests: New file.
18946         * modules/quotearg (Depends-on): Add quotearg-simple.
18947         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
18948         (Files): Add tests/test-quotearg.h.
18949         Reported by Paolo Bonzini.
18950
18951 2010-06-03  Bruno Haible  <bruno@clisp.org>
18952
18953         Reduce dependencies.
18954         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
18955
18956 2010-06-03  Bruno Haible  <bruno@clisp.org>
18957
18958         time: Undefine more broken macros.
18959         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
18960         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
18961         Reported by Eric Blake.
18962
18963 2010-06-03  Bruno Haible  <bruno@clisp.org>
18964
18965         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
18966         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
18967         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
18968         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
18969         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
18970         Reported by Ludovic Courtès <ludo@gnu.org>.
18971
18972 2010-06-02  Eric Blake  <eblake@redhat.com>
18973
18974         time: work with mingw + pthreads-win32 library
18975         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
18976         if timespec is defined only in pthread.h.
18977         * modules/time (Makefile.am): Substitute it.
18978         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
18979         <pthread.h>, when needed.
18980         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
18981         from the library.
18982
18983 2010-05-31  Bruno Haible  <bruno@clisp.org>
18984
18985         Avoid expanding two macros in the wrong order.
18986         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
18987         gl_LIBUNISTRING if it is defined.
18988         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
18989         autoconf >= 2.64.
18990         Reported by Ludovic Courtès <ludo@gnu.org>.
18991
18992 2010-05-27  Jim Meyering  <meyering@redhat.com>
18993
18994         maint.mk: also prohibit "#undef" of always-defined symbols
18995         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
18996         Allow more than one space before the symbol name.
18997         (sc_prohibit_always-defined_macros): Use grep's -E, now that
18998         the regexp uses alternation.
18999
19000 2010-05-26  Eric Blake  <eblake@redhat.com>
19001
19002         maint.mk: avoid echo -e
19003         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
19004         Convert all uses of echo -* to printf.
19005         Reported by Matthias Bolte.
19006
19007 2010-05-25  Bruno Haible  <bruno@clisp.org>
19008
19009         Update to GNU gettext 0.18, part 2.
19010         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
19011         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
19012
19013 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19014
19015         Add missing include in test-pwrite.c.
19016         * tests/test-pwrite.c: Include string.h, for strcmp.
19017
19018 2010-05-24  Bruno Haible  <bruno@clisp.org>
19019
19020         * NEWS: Mention requirement for Automake option 'subdir-objects'.
19021
19022 2010-05-24  Bruno Haible  <bruno@clisp.org>
19023
19024         Don't use conversion with transliteration in u{8,16,32}_strcoll.
19025         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
19026         iconveh_error argument.
19027         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
19028         U_STRCONV_TO_LOCALE.
19029         * lib/unistr/u16-strcoll.c: Likewise.
19030         * lib/unistr/u32-strcoll.c: Likewise.
19031         * modules/unistr/u8-strcoll (Depends-on): Add
19032         uniconv/u8-strconv-to-enc, localcharset. Remove
19033         uniconv/u8-strconv-to-locale.
19034         (configure.ac): Bump version number.
19035         * modules/unistr/u16-strcoll (Depends-on): Add
19036         uniconv/u16-strconv-to-enc, localcharset. Remove
19037         uniconv/u16-strconv-to-locale.
19038         (configure.ac): Bump version number.
19039         * modules/unistr/u32-strcoll (Depends-on): Add
19040         uniconv/u32-strconv-to-enc, localcharset. Remove
19041         uniconv/u32-strconv-to-locale.
19042         (configure.ac): Bump version number.
19043
19044 2010-05-24  Bruno Haible  <bruno@clisp.org>
19045
19046         Avoid a test failure on NetBSD 5.0.
19047         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
19048         an iconv() bug.
19049
19050 2010-05-24  Bruno Haible  <bruno@clisp.org>
19051
19052         Adjust #include directive style.
19053         * modules/regex (Includes): Recommend to write <regex.h>.
19054
19055 2010-05-24  Bruno Haible  <bruno@clisp.org>
19056
19057         regex: Don't require alloca.
19058         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
19059         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
19060         only inside if (0).
19061
19062 2010-05-23  Jim Meyering  <meyering@redhat.com>
19063
19064         test-renameat.c: include <sys/stat.h>
19065         * tests/test-renameat.c: Include <sys/stat.h>; required for
19066         definition of S_IS* macros.
19067
19068 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
19069
19070         Update maintainer documentation for 'relocatable-prog' module.
19071         * doc/relocatable-maint.texi: Update.
19072         Comments by Bruno Haible.
19073
19074 2010-05-23  Bruno Haible  <bruno@clisp.org>
19075
19076         git-merge-changelog: Enable --split-merged-entry by default.
19077         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
19078         (usage): Don't mention this option any more.
19079         Reported by Ralf Wildenhues.
19080
19081 2010-05-23  Jim Meyering  <meyering@redhat.com>
19082
19083         test-pwrite: do not leave behind a test file named "out"
19084         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
19085         The trivial-looking use of init.sh is really necessary.
19086         It ensures that the temporary file, "out", is created in
19087         a temporary directory, and removed upon termination.
19088         * tests/test-pwrite.sh: Re-add file.
19089         * modules/pwrite-tests: Reference it.
19090
19091 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19092
19093         Fix output redirection buglet in init.sh.
19094         * tests/init.sh: Fix redirection of stderr.
19095
19096 2010-05-20  Simon Josefsson  <simon@josefsson.org>
19097
19098         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
19099
19100 2010-05-17  Simon Josefsson  <simon@josefsson.org>
19101
19102         * modules/valgrind-tests: New file.
19103         * m4/valgrind-tests.m4: New file.
19104         * doc/valgrind-tests.texi: New file.
19105         * doc/gnulib.texi (Running self-tests under valgrind): New
19106         section.
19107
19108 2010-05-19  Bruno Haible  <bruno@clisp.org>
19109
19110         Clean up dead code in recent commit.
19111         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
19112         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
19113         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
19114         Suggested by Paolo Bonzini.
19115
19116 2010-05-19  Bruno Haible  <bruno@clisp.org>
19117
19118         Avoid valgrind error reports from libunistring.
19119         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
19120         * modules/libunistring (Files): Add it.
19121         * modules/libunistring-optional (Files): Likewise.
19122
19123 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
19124             Bruno Haible  <bruno@clisp.org>
19125
19126         New module 'libunistring-optional'.
19127         * modules/libunistring-optional: New file.
19128         * m4/libunistring-base.m4: New file.
19129         * m4/libunistring-optional.m4: New file.
19130         * lib/unicase.in.h: Renamed from lib/unicase.h.
19131         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
19132         * lib/unictype.in.h: Renamed from lib/unictype.h.
19133         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
19134         * lib/uniname.in.h: Renamed from lib/uniname.h.
19135         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
19136         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
19137         * lib/unistr.in.h: Renamed from lib/unistr.h.
19138         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
19139         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
19140         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
19141         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
19142         gl_LIBUNISTRING. If the library was found, determine the installed
19143         version and set LIBUNISTRING_VERSION.
19144         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
19145         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
19146         handle a configuration option --with-included-libunistring.
19147         * modules/libunistring (Files): Add m4/absolute-header.m4.
19148         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
19149         Add m4/libunistring-base.m4.
19150         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19151         (Makefile.am): Build unicase.h from unicase.in.h.
19152         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
19153         Add m4/libunistring-base.m4.
19154         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19155         (Makefile.am): Build uniconv.h from uniconv.in.h.
19156         * modules/unictype/base (Files): Use unictype.in.h instead of
19157         unictype.h. Add m4/libunistring-base.m4.
19158         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19159         (Makefile.am): Build unictype.h from unictype.in.h.
19160         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
19161         Add m4/libunistring-base.m4.
19162         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19163         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
19164         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
19165         Add m4/libunistring-base.m4.
19166         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19167         (Makefile.am): Build uniname.h from uniname.in.h.
19168         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
19169         Add m4/libunistring-base.m4.
19170         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19171         (Makefile.am): Build uninorm.h from uninorm.in.h.
19172         * modules/unistdio/base (Files): Use unistdio.in.h instead of
19173         unistdio.h. Add m4/libunistring-base.m4.
19174         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19175         (Makefile.am): Build unistdio.h from unistdio.in.h.
19176         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
19177         Add m4/libunistring-base.m4.
19178         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19179         (Makefile.am): Build unistr.h from unistr.in.h.
19180         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
19181         Add m4/libunistring-base.m4.
19182         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19183         (Makefile.am): Build unitypes.h from unitypes.in.h.
19184         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
19185         Add m4/libunistring-base.m4.
19186         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19187         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
19188         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
19189         uniwidth.h. Add m4/libunistring-base.m4.
19190         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19191         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
19192         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
19193         instead of augmenting lib_SOURCES.
19194         * modules/unicase/empty-suffix-context: Likewise.
19195         * modules/unicase/locale-language: Likewise.
19196         * modules/unicase/tolower: Likewise.
19197         * modules/unicase/totitle: Likewise.
19198         * modules/unicase/toupper: Likewise.
19199         * modules/unicase/u8-casecmp: Likewise.
19200         * modules/unicase/u8-casecoll: Likewise.
19201         * modules/unicase/u8-casefold: Likewise.
19202         * modules/unicase/u8-casexfrm: Likewise.
19203         * modules/unicase/u8-ct-casefold: Likewise.
19204         * modules/unicase/u8-ct-tolower: Likewise.
19205         * modules/unicase/u8-ct-totitle: Likewise.
19206         * modules/unicase/u8-ct-toupper: Likewise.
19207         * modules/unicase/u8-is-cased: Likewise.
19208         * modules/unicase/u8-is-casefolded: Likewise.
19209         * modules/unicase/u8-is-lowercase: Likewise.
19210         * modules/unicase/u8-is-titlecase: Likewise.
19211         * modules/unicase/u8-is-uppercase: Likewise.
19212         * modules/unicase/u8-prefix-context: Likewise.
19213         * modules/unicase/u8-suffix-context: Likewise.
19214         * modules/unicase/u8-tolower: Likewise.
19215         * modules/unicase/u8-totitle: Likewise.
19216         * modules/unicase/u8-toupper: Likewise.
19217         * modules/unicase/u16-casecmp: Likewise.
19218         * modules/unicase/u16-casecoll: Likewise.
19219         * modules/unicase/u16-casefold: Likewise.
19220         * modules/unicase/u16-casexfrm: Likewise.
19221         * modules/unicase/u16-ct-casefold: Likewise.
19222         * modules/unicase/u16-ct-tolower: Likewise.
19223         * modules/unicase/u16-ct-totitle: Likewise.
19224         * modules/unicase/u16-ct-toupper: Likewise.
19225         * modules/unicase/u16-is-cased: Likewise.
19226         * modules/unicase/u16-is-casefolded: Likewise.
19227         * modules/unicase/u16-is-lowercase: Likewise.
19228         * modules/unicase/u16-is-titlecase: Likewise.
19229         * modules/unicase/u16-is-uppercase: Likewise.
19230         * modules/unicase/u16-prefix-context: Likewise.
19231         * modules/unicase/u16-suffix-context: Likewise.
19232         * modules/unicase/u16-tolower: Likewise.
19233         * modules/unicase/u16-totitle: Likewise.
19234         * modules/unicase/u16-toupper: Likewise.
19235         * modules/unicase/u32-casecmp: Likewise.
19236         * modules/unicase/u32-casecoll: Likewise.
19237         * modules/unicase/u32-casefold: Likewise.
19238         * modules/unicase/u32-casexfrm: Likewise.
19239         * modules/unicase/u32-ct-casefold: Likewise.
19240         * modules/unicase/u32-ct-tolower: Likewise.
19241         * modules/unicase/u32-ct-totitle: Likewise.
19242         * modules/unicase/u32-ct-toupper: Likewise.
19243         * modules/unicase/u32-is-cased: Likewise.
19244         * modules/unicase/u32-is-casefolded: Likewise.
19245         * modules/unicase/u32-is-lowercase: Likewise.
19246         * modules/unicase/u32-is-titlecase: Likewise.
19247         * modules/unicase/u32-is-uppercase: Likewise.
19248         * modules/unicase/u32-prefix-context: Likewise.
19249         * modules/unicase/u32-suffix-context: Likewise.
19250         * modules/unicase/u32-tolower: Likewise.
19251         * modules/unicase/u32-totitle: Likewise.
19252         * modules/unicase/u32-toupper: Likewise.
19253         * modules/unicase/ulc-casecmp: Likewise.
19254         * modules/unicase/ulc-casecoll: Likewise.
19255         * modules/unicase/ulc-casexfrm: Likewise.
19256         * modules/uniconv/u8-conv-from-enc: Likewise.
19257         * modules/uniconv/u8-conv-to-enc: Likewise.
19258         * modules/uniconv/u8-strconv-from-enc: Likewise.
19259         * modules/uniconv/u8-strconv-from-locale: Likewise.
19260         * modules/uniconv/u8-strconv-to-enc: Likewise.
19261         * modules/uniconv/u8-strconv-to-locale: Likewise.
19262         * modules/uniconv/u16-conv-from-enc: Likewise.
19263         * modules/uniconv/u16-conv-to-enc: Likewise.
19264         * modules/uniconv/u16-strconv-from-enc: Likewise.
19265         * modules/uniconv/u16-strconv-from-locale: Likewise.
19266         * modules/uniconv/u16-strconv-to-enc: Likewise.
19267         * modules/uniconv/u16-strconv-to-locale: Likewise.
19268         * modules/uniconv/u32-conv-from-enc: Likewise.
19269         * modules/uniconv/u32-conv-to-enc: Likewise.
19270         * modules/uniconv/u32-strconv-from-enc: Likewise.
19271         * modules/uniconv/u32-strconv-from-locale: Likewise.
19272         * modules/uniconv/u32-strconv-to-enc: Likewise.
19273         * modules/uniconv/u32-strconv-to-locale: Likewise.
19274         * modules/unictype/bidicategory-byname: Likewise.
19275         * modules/unictype/bidicategory-name: Likewise.
19276         * modules/unictype/bidicategory-of: Likewise.
19277         * modules/unictype/bidicategory-test: Likewise.
19278         * modules/unictype/block-list: Likewise.
19279         * modules/unictype/block-test: Likewise.
19280         * modules/unictype/category-C: Likewise.
19281         * modules/unictype/category-Cc: Likewise.
19282         * modules/unictype/category-Cf: Likewise.
19283         * modules/unictype/category-Cn: Likewise.
19284         * modules/unictype/category-Co: Likewise.
19285         * modules/unictype/category-Cs: Likewise.
19286         * modules/unictype/category-L: Likewise.
19287         * modules/unictype/category-Ll: Likewise.
19288         * modules/unictype/category-Lm: Likewise.
19289         * modules/unictype/category-Lo: Likewise.
19290         * modules/unictype/category-Lt: Likewise.
19291         * modules/unictype/category-Lu: Likewise.
19292         * modules/unictype/category-M: Likewise.
19293         * modules/unictype/category-Mc: Likewise.
19294         * modules/unictype/category-Me: Likewise.
19295         * modules/unictype/category-Mn: Likewise.
19296         * modules/unictype/category-N: Likewise.
19297         * modules/unictype/category-Nd: Likewise.
19298         * modules/unictype/category-Nl: Likewise.
19299         * modules/unictype/category-No: Likewise.
19300         * modules/unictype/category-P: Likewise.
19301         * modules/unictype/category-Pc: Likewise.
19302         * modules/unictype/category-Pd: Likewise.
19303         * modules/unictype/category-Pe: Likewise.
19304         * modules/unictype/category-Pf: Likewise.
19305         * modules/unictype/category-Pi: Likewise.
19306         * modules/unictype/category-Po: Likewise.
19307         * modules/unictype/category-Ps: Likewise.
19308         * modules/unictype/category-S: Likewise.
19309         * modules/unictype/category-Sc: Likewise.
19310         * modules/unictype/category-Sk: Likewise.
19311         * modules/unictype/category-Sm: Likewise.
19312         * modules/unictype/category-So: Likewise.
19313         * modules/unictype/category-Z: Likewise.
19314         * modules/unictype/category-Zl: Likewise.
19315         * modules/unictype/category-Zp: Likewise.
19316         * modules/unictype/category-Zs: Likewise.
19317         * modules/unictype/category-and: Likewise.
19318         * modules/unictype/category-and-not: Likewise.
19319         * modules/unictype/category-byname: Likewise.
19320         * modules/unictype/category-name: Likewise.
19321         * modules/unictype/category-none: Likewise.
19322         * modules/unictype/category-of: Likewise.
19323         * modules/unictype/category-or: Likewise.
19324         * modules/unictype/category-test: Likewise.
19325         * modules/unictype/combining-class: Likewise.
19326         * modules/unictype/ctype-alnum: Likewise.
19327         * modules/unictype/ctype-alpha: Likewise.
19328         * modules/unictype/ctype-blank: Likewise.
19329         * modules/unictype/ctype-cntrl: Likewise.
19330         * modules/unictype/ctype-digit: Likewise.
19331         * modules/unictype/ctype-graph: Likewise.
19332         * modules/unictype/ctype-lower: Likewise.
19333         * modules/unictype/ctype-print: Likewise.
19334         * modules/unictype/ctype-punct: Likewise.
19335         * modules/unictype/ctype-space: Likewise.
19336         * modules/unictype/ctype-upper: Likewise.
19337         * modules/unictype/ctype-xdigit: Likewise.
19338         * modules/unictype/decimal-digit: Likewise.
19339         * modules/unictype/digit: Likewise.
19340         * modules/unictype/mirror: Likewise.
19341         * modules/unictype/numeric: Likewise.
19342         * modules/unictype/property-alphabetic: Likewise.
19343         * modules/unictype/property-ascii-hex-digit: Likewise.
19344         * modules/unictype/property-bidi-arabic-digit: Likewise.
19345         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
19346         * modules/unictype/property-bidi-block-separator: Likewise.
19347         * modules/unictype/property-bidi-boundary-neutral: Likewise.
19348         * modules/unictype/property-bidi-common-separator: Likewise.
19349         * modules/unictype/property-bidi-control: Likewise.
19350         * modules/unictype/property-bidi-embedding-or-override: Likewise.
19351         * modules/unictype/property-bidi-eur-num-separator: Likewise.
19352         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
19353         * modules/unictype/property-bidi-european-digit: Likewise.
19354         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
19355         * modules/unictype/property-bidi-left-to-right: Likewise.
19356         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
19357         * modules/unictype/property-bidi-other-neutral: Likewise.
19358         * modules/unictype/property-bidi-pdf: Likewise.
19359         * modules/unictype/property-bidi-segment-separator: Likewise.
19360         * modules/unictype/property-bidi-whitespace: Likewise.
19361         * modules/unictype/property-byname: Likewise.
19362         * modules/unictype/property-combining: Likewise.
19363         * modules/unictype/property-composite: Likewise.
19364         * modules/unictype/property-currency-symbol: Likewise.
19365         * modules/unictype/property-dash: Likewise.
19366         * modules/unictype/property-decimal-digit: Likewise.
19367         * modules/unictype/property-default-ignorable-code-point: Likewise.
19368         * modules/unictype/property-deprecated: Likewise.
19369         * modules/unictype/property-diacritic: Likewise.
19370         * modules/unictype/property-extender: Likewise.
19371         * modules/unictype/property-format-control: Likewise.
19372         * modules/unictype/property-grapheme-base: Likewise.
19373         * modules/unictype/property-grapheme-extend: Likewise.
19374         * modules/unictype/property-grapheme-link: Likewise.
19375         * modules/unictype/property-hex-digit: Likewise.
19376         * modules/unictype/property-hyphen: Likewise.
19377         * modules/unictype/property-id-continue: Likewise.
19378         * modules/unictype/property-id-start: Likewise.
19379         * modules/unictype/property-ideographic: Likewise.
19380         * modules/unictype/property-ids-binary-operator: Likewise.
19381         * modules/unictype/property-ids-trinary-operator: Likewise.
19382         * modules/unictype/property-ignorable-control: Likewise.
19383         * modules/unictype/property-iso-control: Likewise.
19384         * modules/unictype/property-join-control: Likewise.
19385         * modules/unictype/property-left-of-pair: Likewise.
19386         * modules/unictype/property-line-separator: Likewise.
19387         * modules/unictype/property-logical-order-exception: Likewise.
19388         * modules/unictype/property-lowercase: Likewise.
19389         * modules/unictype/property-math: Likewise.
19390         * modules/unictype/property-non-break: Likewise.
19391         * modules/unictype/property-not-a-character: Likewise.
19392         * modules/unictype/property-numeric: Likewise.
19393         * modules/unictype/property-other-alphabetic: Likewise.
19394         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
19395         * modules/unictype/property-other-grapheme-extend: Likewise.
19396         * modules/unictype/property-other-id-continue: Likewise.
19397         * modules/unictype/property-other-id-start: Likewise.
19398         * modules/unictype/property-other-lowercase: Likewise.
19399         * modules/unictype/property-other-math: Likewise.
19400         * modules/unictype/property-other-uppercase: Likewise.
19401         * modules/unictype/property-paired-punctuation: Likewise.
19402         * modules/unictype/property-paragraph-separator: Likewise.
19403         * modules/unictype/property-pattern-syntax: Likewise.
19404         * modules/unictype/property-pattern-white-space: Likewise.
19405         * modules/unictype/property-private-use: Likewise.
19406         * modules/unictype/property-punctuation: Likewise.
19407         * modules/unictype/property-quotation-mark: Likewise.
19408         * modules/unictype/property-radical: Likewise.
19409         * modules/unictype/property-sentence-terminal: Likewise.
19410         * modules/unictype/property-soft-dotted: Likewise.
19411         * modules/unictype/property-space: Likewise.
19412         * modules/unictype/property-terminal-punctuation: Likewise.
19413         * modules/unictype/property-test: Likewise.
19414         * modules/unictype/property-titlecase: Likewise.
19415         * modules/unictype/property-unassigned-code-value: Likewise.
19416         * modules/unictype/property-unified-ideograph: Likewise.
19417         * modules/unictype/property-uppercase: Likewise.
19418         * modules/unictype/property-variation-selector: Likewise.
19419         * modules/unictype/property-white-space: Likewise.
19420         * modules/unictype/property-xid-continue: Likewise.
19421         * modules/unictype/property-xid-start: Likewise.
19422         * modules/unictype/property-zero-width: Likewise.
19423         * modules/unictype/scripts: Likewise.
19424         * modules/unictype/syntax-c-ident: Likewise.
19425         * modules/unictype/syntax-c-whitespace: Likewise.
19426         * modules/unictype/syntax-java-ident: Likewise.
19427         * modules/unictype/syntax-java-whitespace: Likewise.
19428         * modules/unilbrk/u8-possible-linebreaks: Likewise.
19429         * modules/unilbrk/u8-width-linebreaks: Likewise.
19430         * modules/unilbrk/u16-possible-linebreaks: Likewise.
19431         * modules/unilbrk/u16-width-linebreaks: Likewise.
19432         * modules/unilbrk/u32-possible-linebreaks: Likewise.
19433         * modules/unilbrk/u32-width-linebreaks: Likewise.
19434         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
19435         * modules/unilbrk/ulc-width-linebreaks: Likewise.
19436         * modules/uniname/uniname: Likewise.
19437         * modules/uninorm/canonical-decomposition: Likewise.
19438         * modules/uninorm/composition: Likewise.
19439         * modules/uninorm/decomposing-form: Likewise.
19440         * modules/uninorm/decomposition: Likewise.
19441         * modules/uninorm/filter: Likewise.
19442         * modules/uninorm/nfc: Likewise.
19443         * modules/uninorm/nfd: Likewise.
19444         * modules/uninorm/nfkc: Likewise.
19445         * modules/uninorm/nfkd: Likewise.
19446         * modules/uninorm/u8-normalize: Likewise.
19447         * modules/uninorm/u8-normcmp: Likewise.
19448         * modules/uninorm/u8-normcoll: Likewise.
19449         * modules/uninorm/u8-normxfrm: Likewise.
19450         * modules/uninorm/u16-normalize: Likewise.
19451         * modules/uninorm/u16-normcmp: Likewise.
19452         * modules/uninorm/u16-normcoll: Likewise.
19453         * modules/uninorm/u16-normxfrm: Likewise.
19454         * modules/uninorm/u32-normalize: Likewise.
19455         * modules/uninorm/u32-normcmp: Likewise.
19456         * modules/uninorm/u32-normcoll: Likewise.
19457         * modules/uninorm/u32-normxfrm: Likewise.
19458         * modules/unistdio/u8-asnprintf: Likewise.
19459         * modules/unistdio/u8-asprintf: Likewise.
19460         * modules/unistdio/u8-snprintf: Likewise.
19461         * modules/unistdio/u8-sprintf: Likewise.
19462         * modules/unistdio/u8-u8-asnprintf: Likewise.
19463         * modules/unistdio/u8-u8-asprintf: Likewise.
19464         * modules/unistdio/u8-u8-snprintf: Likewise.
19465         * modules/unistdio/u8-u8-sprintf: Likewise.
19466         * modules/unistdio/u8-u8-vasnprintf: Likewise.
19467         * modules/unistdio/u8-u8-vasprintf: Likewise.
19468         * modules/unistdio/u8-u8-vsnprintf: Likewise.
19469         * modules/unistdio/u8-u8-vsprintf: Likewise.
19470         * modules/unistdio/u8-vasnprintf: Likewise.
19471         * modules/unistdio/u8-vasprintf: Likewise.
19472         * modules/unistdio/u8-vsnprintf: Likewise.
19473         * modules/unistdio/u8-vsprintf: Likewise.
19474         * modules/unistdio/u16-asnprintf: Likewise.
19475         * modules/unistdio/u16-asprintf: Likewise.
19476         * modules/unistdio/u16-snprintf: Likewise.
19477         * modules/unistdio/u16-sprintf: Likewise.
19478         * modules/unistdio/u16-u16-asnprintf: Likewise.
19479         * modules/unistdio/u16-u16-asprintf: Likewise.
19480         * modules/unistdio/u16-u16-snprintf: Likewise.
19481         * modules/unistdio/u16-u16-sprintf: Likewise.
19482         * modules/unistdio/u16-u16-vasnprintf: Likewise.
19483         * modules/unistdio/u16-u16-vasprintf: Likewise.
19484         * modules/unistdio/u16-u16-vsnprintf: Likewise.
19485         * modules/unistdio/u16-u16-vsprintf: Likewise.
19486         * modules/unistdio/u16-vasnprintf: Likewise.
19487         * modules/unistdio/u16-vasprintf: Likewise.
19488         * modules/unistdio/u16-vsnprintf: Likewise.
19489         * modules/unistdio/u16-vsprintf: Likewise.
19490         * modules/unistdio/u32-asnprintf: Likewise.
19491         * modules/unistdio/u32-asprintf: Likewise.
19492         * modules/unistdio/u32-snprintf: Likewise.
19493         * modules/unistdio/u32-sprintf: Likewise.
19494         * modules/unistdio/u32-u32-asnprintf: Likewise.
19495         * modules/unistdio/u32-u32-asprintf: Likewise.
19496         * modules/unistdio/u32-u32-snprintf: Likewise.
19497         * modules/unistdio/u32-u32-sprintf: Likewise.
19498         * modules/unistdio/u32-u32-vasnprintf: Likewise.
19499         * modules/unistdio/u32-u32-vasprintf: Likewise.
19500         * modules/unistdio/u32-u32-vsnprintf: Likewise.
19501         * modules/unistdio/u32-u32-vsprintf: Likewise.
19502         * modules/unistdio/u32-vasnprintf: Likewise.
19503         * modules/unistdio/u32-vasprintf: Likewise.
19504         * modules/unistdio/u32-vsnprintf: Likewise.
19505         * modules/unistdio/u32-vsprintf: Likewise.
19506         * modules/unistdio/ulc-asnprintf: Likewise.
19507         * modules/unistdio/ulc-asprintf: Likewise.
19508         * modules/unistdio/ulc-fprintf: Likewise.
19509         * modules/unistdio/ulc-snprintf: Likewise.
19510         * modules/unistdio/ulc-sprintf: Likewise.
19511         * modules/unistdio/ulc-vasnprintf: Likewise.
19512         * modules/unistdio/ulc-vasprintf: Likewise.
19513         * modules/unistdio/ulc-vfprintf: Likewise.
19514         * modules/unistdio/ulc-vsnprintf: Likewise.
19515         * modules/unistdio/ulc-vsprintf: Likewise.
19516         * modules/unistr/u8-check: Likewise.
19517         * modules/unistr/u8-chr: Likewise.
19518         * modules/unistr/u8-cmp: Likewise.
19519         * modules/unistr/u8-cmp2: Likewise.
19520         * modules/unistr/u8-cpy: Likewise.
19521         * modules/unistr/u8-cpy-alloc: Likewise.
19522         * modules/unistr/u8-endswith: Likewise.
19523         * modules/unistr/u8-mblen: Likewise.
19524         * modules/unistr/u8-mbsnlen: Likewise.
19525         * modules/unistr/u8-mbtouc: Likewise.
19526         * modules/unistr/u8-mbtouc-unsafe: Likewise.
19527         * modules/unistr/u8-mbtoucr: Likewise.
19528         * modules/unistr/u8-move: Likewise.
19529         * modules/unistr/u8-next: Likewise.
19530         * modules/unistr/u8-prev: Likewise.
19531         * modules/unistr/u8-set: Likewise.
19532         * modules/unistr/u8-startswith: Likewise.
19533         * modules/unistr/u8-stpcpy: Likewise.
19534         * modules/unistr/u8-stpncpy: Likewise.
19535         * modules/unistr/u8-strcat: Likewise.
19536         * modules/unistr/u8-strchr: Likewise.
19537         * modules/unistr/u8-strcmp: Likewise.
19538         * modules/unistr/u8-strcoll: Likewise.
19539         * modules/unistr/u8-strcpy: Likewise.
19540         * modules/unistr/u8-strcspn: Likewise.
19541         * modules/unistr/u8-strdup: Likewise.
19542         * modules/unistr/u8-strlen: Likewise.
19543         * modules/unistr/u8-strmblen: Likewise.
19544         * modules/unistr/u8-strmbtouc: Likewise.
19545         * modules/unistr/u8-strncat: Likewise.
19546         * modules/unistr/u8-strncmp: Likewise.
19547         * modules/unistr/u8-strncpy: Likewise.
19548         * modules/unistr/u8-strnlen: Likewise.
19549         * modules/unistr/u8-strpbrk: Likewise.
19550         * modules/unistr/u8-strrchr: Likewise.
19551         * modules/unistr/u8-strspn: Likewise.
19552         * modules/unistr/u8-strstr: Likewise.
19553         * modules/unistr/u8-strtok: Likewise.
19554         * modules/unistr/u8-to-u16: Likewise.
19555         * modules/unistr/u8-to-u32: Likewise.
19556         * modules/unistr/u8-uctomb: Likewise.
19557         * modules/unistr/u16-check: Likewise.
19558         * modules/unistr/u16-chr: Likewise.
19559         * modules/unistr/u16-cmp: Likewise.
19560         * modules/unistr/u16-cmp2: Likewise.
19561         * modules/unistr/u16-cpy: Likewise.
19562         * modules/unistr/u16-cpy-alloc: Likewise.
19563         * modules/unistr/u16-endswith: Likewise.
19564         * modules/unistr/u16-mblen: Likewise.
19565         * modules/unistr/u16-mbsnlen: Likewise.
19566         * modules/unistr/u16-mbtouc: Likewise.
19567         * modules/unistr/u16-mbtouc-unsafe: Likewise.
19568         * modules/unistr/u16-mbtoucr: Likewise.
19569         * modules/unistr/u16-move: Likewise.
19570         * modules/unistr/u16-next: Likewise.
19571         * modules/unistr/u16-prev: Likewise.
19572         * modules/unistr/u16-set: Likewise.
19573         * modules/unistr/u16-startswith: Likewise.
19574         * modules/unistr/u16-stpcpy: Likewise.
19575         * modules/unistr/u16-stpncpy: Likewise.
19576         * modules/unistr/u16-strcat: Likewise.
19577         * modules/unistr/u16-strchr: Likewise.
19578         * modules/unistr/u16-strcmp: Likewise.
19579         * modules/unistr/u16-strcoll: Likewise.
19580         * modules/unistr/u16-strcpy: Likewise.
19581         * modules/unistr/u16-strcspn: Likewise.
19582         * modules/unistr/u16-strdup: Likewise.
19583         * modules/unistr/u16-strlen: Likewise.
19584         * modules/unistr/u16-strmblen: Likewise.
19585         * modules/unistr/u16-strmbtouc: Likewise.
19586         * modules/unistr/u16-strncat: Likewise.
19587         * modules/unistr/u16-strncmp: Likewise.
19588         * modules/unistr/u16-strncpy: Likewise.
19589         * modules/unistr/u16-strnlen: Likewise.
19590         * modules/unistr/u16-strpbrk: Likewise.
19591         * modules/unistr/u16-strrchr: Likewise.
19592         * modules/unistr/u16-strspn: Likewise.
19593         * modules/unistr/u16-strstr: Likewise.
19594         * modules/unistr/u16-strtok: Likewise.
19595         * modules/unistr/u16-to-u32: Likewise.
19596         * modules/unistr/u16-to-u8: Likewise.
19597         * modules/unistr/u16-uctomb: Likewise.
19598         * modules/unistr/u32-check: Likewise.
19599         * modules/unistr/u32-chr: Likewise.
19600         * modules/unistr/u32-cmp: Likewise.
19601         * modules/unistr/u32-cmp2: Likewise.
19602         * modules/unistr/u32-cpy: Likewise.
19603         * modules/unistr/u32-cpy-alloc: Likewise.
19604         * modules/unistr/u32-endswith: Likewise.
19605         * modules/unistr/u32-mblen: Likewise.
19606         * modules/unistr/u32-mbsnlen: Likewise.
19607         * modules/unistr/u32-mbtouc: Likewise.
19608         * modules/unistr/u32-mbtouc-unsafe: Likewise.
19609         * modules/unistr/u32-mbtoucr: Likewise.
19610         * modules/unistr/u32-move: Likewise.
19611         * modules/unistr/u32-next: Likewise.
19612         * modules/unistr/u32-prev: Likewise.
19613         * modules/unistr/u32-set: Likewise.
19614         * modules/unistr/u32-startswith: Likewise.
19615         * modules/unistr/u32-stpcpy: Likewise.
19616         * modules/unistr/u32-stpncpy: Likewise.
19617         * modules/unistr/u32-strcat: Likewise.
19618         * modules/unistr/u32-strchr: Likewise.
19619         * modules/unistr/u32-strcmp: Likewise.
19620         * modules/unistr/u32-strcoll: Likewise.
19621         * modules/unistr/u32-strcpy: Likewise.
19622         * modules/unistr/u32-strcspn: Likewise.
19623         * modules/unistr/u32-strdup: Likewise.
19624         * modules/unistr/u32-strlen: Likewise.
19625         * modules/unistr/u32-strmblen: Likewise.
19626         * modules/unistr/u32-strmbtouc: Likewise.
19627         * modules/unistr/u32-strncat: Likewise.
19628         * modules/unistr/u32-strncmp: Likewise.
19629         * modules/unistr/u32-strncpy: Likewise.
19630         * modules/unistr/u32-strnlen: Likewise.
19631         * modules/unistr/u32-strpbrk: Likewise.
19632         * modules/unistr/u32-strrchr: Likewise.
19633         * modules/unistr/u32-strspn: Likewise.
19634         * modules/unistr/u32-strstr: Likewise.
19635         * modules/unistr/u32-strtok: Likewise.
19636         * modules/unistr/u32-to-u16: Likewise.
19637         * modules/unistr/u32-to-u8: Likewise.
19638         * modules/unistr/u32-uctomb: Likewise.
19639         * modules/uniwbrk/u8-wordbreaks: Likewise.
19640         * modules/uniwbrk/u16-wordbreaks: Likewise.
19641         * modules/uniwbrk/u32-wordbreaks: Likewise.
19642         * modules/uniwbrk/ulc-wordbreaks: Likewise.
19643         * modules/uniwbrk/wordbreak-property: Likewise.
19644         * modules/uniwidth/u8-strwidth: Likewise.
19645         * modules/uniwidth/u8-width: Likewise.
19646         * modules/uniwidth/u16-strwidth: Likewise.
19647         * modules/uniwidth/u16-width: Likewise.
19648         * modules/uniwidth/u32-strwidth: Likewise.
19649         * modules/uniwidth/u32-width: Likewise.
19650         * modules/uniwidth/width: Likewise.
19651         * modules/unicase/cased-tests (Makefile.am): Link all test programs
19652         with $(LIBUNISTRING).
19653         * modules/unicase/ignorable-tests: Likewise.
19654         * modules/unicase/locale-language-tests: Likewise.
19655         * modules/unicase/tolower-tests: Likewise.
19656         * modules/unicase/totitle-tests: Likewise.
19657         * modules/unicase/toupper-tests: Likewise.
19658         * modules/unicase/u8-casecmp-tests: Likewise.
19659         * modules/unicase/u8-casecoll-tests: Likewise.
19660         * modules/unicase/u8-casefold-tests: Likewise.
19661         * modules/unicase/u8-is-cased-tests: Likewise.
19662         * modules/unicase/u8-is-casefolded-tests: Likewise.
19663         * modules/unicase/u8-is-lowercase-tests: Likewise.
19664         * modules/unicase/u8-is-titlecase-tests: Likewise.
19665         * modules/unicase/u8-is-uppercase-tests: Likewise.
19666         * modules/unicase/u8-tolower-tests: Likewise.
19667         * modules/unicase/u8-totitle-tests: Likewise.
19668         * modules/unicase/u8-toupper-tests: Likewise.
19669         * modules/unicase/u16-casecmp-tests: Likewise.
19670         * modules/unicase/u16-casecoll-tests: Likewise.
19671         * modules/unicase/u16-casefold-tests: Likewise.
19672         * modules/unicase/u16-is-cased-tests: Likewise.
19673         * modules/unicase/u16-is-casefolded-tests: Likewise.
19674         * modules/unicase/u16-is-lowercase-tests: Likewise.
19675         * modules/unicase/u16-is-titlecase-tests: Likewise.
19676         * modules/unicase/u16-is-uppercase-tests: Likewise.
19677         * modules/unicase/u16-tolower-tests: Likewise.
19678         * modules/unicase/u16-totitle-tests: Likewise.
19679         * modules/unicase/u16-toupper-tests: Likewise.
19680         * modules/unicase/u32-casecmp-tests: Likewise.
19681         * modules/unicase/u32-casecoll-tests: Likewise.
19682         * modules/unicase/u32-casefold-tests: Likewise.
19683         * modules/unicase/u32-is-cased-tests: Likewise.
19684         * modules/unicase/u32-is-casefolded-tests: Likewise.
19685         * modules/unicase/u32-is-lowercase-tests: Likewise.
19686         * modules/unicase/u32-is-titlecase-tests: Likewise.
19687         * modules/unicase/u32-is-uppercase-tests: Likewise.
19688         * modules/unicase/u32-tolower-tests: Likewise.
19689         * modules/unicase/u32-totitle-tests: Likewise.
19690         * modules/unicase/u32-toupper-tests: Likewise.
19691         * modules/unicase/ulc-casecmp-tests: Likewise.
19692         * modules/unicase/ulc-casecoll-tests: Likewise.
19693         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
19694         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
19695         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
19696         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
19697         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
19698         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
19699         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
19700         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
19701         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
19702         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
19703         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
19704         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
19705         * modules/unictype/bidicategory-byname-tests: Likewise.
19706         * modules/unictype/bidicategory-name-tests: Likewise.
19707         * modules/unictype/bidicategory-of-tests: Likewise.
19708         * modules/unictype/bidicategory-test-tests: Likewise.
19709         * modules/unictype/block-list-tests: Likewise.
19710         * modules/unictype/block-of-tests: Likewise.
19711         * modules/unictype/block-test-tests: Likewise.
19712         * modules/unictype/category-C-tests: Likewise.
19713         * modules/unictype/category-Cc-tests: Likewise.
19714         * modules/unictype/category-Cf-tests: Likewise.
19715         * modules/unictype/category-Cn-tests: Likewise.
19716         * modules/unictype/category-Co-tests: Likewise.
19717         * modules/unictype/category-Cs-tests: Likewise.
19718         * modules/unictype/category-L-tests: Likewise.
19719         * modules/unictype/category-Ll-tests: Likewise.
19720         * modules/unictype/category-Lm-tests: Likewise.
19721         * modules/unictype/category-Lo-tests: Likewise.
19722         * modules/unictype/category-Lt-tests: Likewise.
19723         * modules/unictype/category-Lu-tests: Likewise.
19724         * modules/unictype/category-M-tests: Likewise.
19725         * modules/unictype/category-Mc-tests: Likewise.
19726         * modules/unictype/category-Me-tests: Likewise.
19727         * modules/unictype/category-Mn-tests: Likewise.
19728         * modules/unictype/category-N-tests: Likewise.
19729         * modules/unictype/category-Nd-tests: Likewise.
19730         * modules/unictype/category-Nl-tests: Likewise.
19731         * modules/unictype/category-No-tests: Likewise.
19732         * modules/unictype/category-P-tests: Likewise.
19733         * modules/unictype/category-Pc-tests: Likewise.
19734         * modules/unictype/category-Pd-tests: Likewise.
19735         * modules/unictype/category-Pe-tests: Likewise.
19736         * modules/unictype/category-Pf-tests: Likewise.
19737         * modules/unictype/category-Pi-tests: Likewise.
19738         * modules/unictype/category-Po-tests: Likewise.
19739         * modules/unictype/category-Ps-tests: Likewise.
19740         * modules/unictype/category-S-tests: Likewise.
19741         * modules/unictype/category-Sc-tests: Likewise.
19742         * modules/unictype/category-Sk-tests: Likewise.
19743         * modules/unictype/category-Sm-tests: Likewise.
19744         * modules/unictype/category-So-tests: Likewise.
19745         * modules/unictype/category-Z-tests: Likewise.
19746         * modules/unictype/category-Zl-tests: Likewise.
19747         * modules/unictype/category-Zp-tests: Likewise.
19748         * modules/unictype/category-Zs-tests: Likewise.
19749         * modules/unictype/category-and-not-tests: Likewise.
19750         * modules/unictype/category-and-tests: Likewise.
19751         * modules/unictype/category-byname-tests: Likewise.
19752         * modules/unictype/category-name-tests: Likewise.
19753         * modules/unictype/category-none-tests: Likewise.
19754         * modules/unictype/category-of-tests: Likewise.
19755         * modules/unictype/category-or-tests: Likewise.
19756         * modules/unictype/category-test-withtable-tests: Likewise.
19757         * modules/unictype/combining-class-tests: Likewise.
19758         * modules/unictype/ctype-alnum-tests: Likewise.
19759         * modules/unictype/ctype-alpha-tests: Likewise.
19760         * modules/unictype/ctype-blank-tests: Likewise.
19761         * modules/unictype/ctype-cntrl-tests: Likewise.
19762         * modules/unictype/ctype-digit-tests: Likewise.
19763         * modules/unictype/ctype-graph-tests: Likewise.
19764         * modules/unictype/ctype-lower-tests: Likewise.
19765         * modules/unictype/ctype-print-tests: Likewise.
19766         * modules/unictype/ctype-punct-tests: Likewise.
19767         * modules/unictype/ctype-space-tests: Likewise.
19768         * modules/unictype/ctype-upper-tests: Likewise.
19769         * modules/unictype/ctype-xdigit-tests: Likewise.
19770         * modules/unictype/decimal-digit-tests: Likewise.
19771         * modules/unictype/digit-tests: Likewise.
19772         * modules/unictype/mirror-tests: Likewise.
19773         * modules/unictype/numeric-tests: Likewise.
19774         * modules/unictype/property-alphabetic-tests: Likewise.
19775         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
19776         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
19777         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
19778         * modules/unictype/property-bidi-block-separator-tests: Likewise.
19779         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
19780         * modules/unictype/property-bidi-common-separator-tests: Likewise.
19781         * modules/unictype/property-bidi-control-tests: Likewise.
19782         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
19783         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
19784         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
19785         * modules/unictype/property-bidi-european-digit-tests: Likewise.
19786         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
19787         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
19788         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
19789         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
19790         * modules/unictype/property-bidi-pdf-tests: Likewise.
19791         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
19792         * modules/unictype/property-bidi-whitespace-tests: Likewise.
19793         * modules/unictype/property-byname-tests: Likewise.
19794         * modules/unictype/property-combining-tests: Likewise.
19795         * modules/unictype/property-composite-tests: Likewise.
19796         * modules/unictype/property-currency-symbol-tests: Likewise.
19797         * modules/unictype/property-dash-tests: Likewise.
19798         * modules/unictype/property-decimal-digit-tests: Likewise.
19799         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
19800         * modules/unictype/property-deprecated-tests: Likewise.
19801         * modules/unictype/property-diacritic-tests: Likewise.
19802         * modules/unictype/property-extender-tests: Likewise.
19803         * modules/unictype/property-format-control-tests: Likewise.
19804         * modules/unictype/property-grapheme-base-tests: Likewise.
19805         * modules/unictype/property-grapheme-extend-tests: Likewise.
19806         * modules/unictype/property-grapheme-link-tests: Likewise.
19807         * modules/unictype/property-hex-digit-tests: Likewise.
19808         * modules/unictype/property-hyphen-tests: Likewise.
19809         * modules/unictype/property-id-continue-tests: Likewise.
19810         * modules/unictype/property-id-start-tests: Likewise.
19811         * modules/unictype/property-ideographic-tests: Likewise.
19812         * modules/unictype/property-ids-binary-operator-tests: Likewise.
19813         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
19814         * modules/unictype/property-ignorable-control-tests: Likewise.
19815         * modules/unictype/property-iso-control-tests: Likewise.
19816         * modules/unictype/property-join-control-tests: Likewise.
19817         * modules/unictype/property-left-of-pair-tests: Likewise.
19818         * modules/unictype/property-line-separator-tests: Likewise.
19819         * modules/unictype/property-logical-order-exception-tests: Likewise.
19820         * modules/unictype/property-lowercase-tests: Likewise.
19821         * modules/unictype/property-math-tests: Likewise.
19822         * modules/unictype/property-non-break-tests: Likewise.
19823         * modules/unictype/property-not-a-character-tests: Likewise.
19824         * modules/unictype/property-numeric-tests: Likewise.
19825         * modules/unictype/property-other-alphabetic-tests: Likewise.
19826         * modules/unictype/property-other-default-ignorable-code-point-tests:
19827         Likewise.
19828         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
19829         * modules/unictype/property-other-id-continue-tests: Likewise.
19830         * modules/unictype/property-other-id-start-tests: Likewise.
19831         * modules/unictype/property-other-lowercase-tests: Likewise.
19832         * modules/unictype/property-other-math-tests: Likewise.
19833         * modules/unictype/property-other-uppercase-tests: Likewise.
19834         * modules/unictype/property-paired-punctuation-tests: Likewise.
19835         * modules/unictype/property-paragraph-separator-tests: Likewise.
19836         * modules/unictype/property-pattern-syntax-tests: Likewise.
19837         * modules/unictype/property-pattern-white-space-tests: Likewise.
19838         * modules/unictype/property-private-use-tests: Likewise.
19839         * modules/unictype/property-punctuation-tests: Likewise.
19840         * modules/unictype/property-quotation-mark-tests: Likewise.
19841         * modules/unictype/property-radical-tests: Likewise.
19842         * modules/unictype/property-sentence-terminal-tests: Likewise.
19843         * modules/unictype/property-soft-dotted-tests: Likewise.
19844         * modules/unictype/property-space-tests: Likewise.
19845         * modules/unictype/property-terminal-punctuation-tests: Likewise.
19846         * modules/unictype/property-test-tests: Likewise.
19847         * modules/unictype/property-titlecase-tests: Likewise.
19848         * modules/unictype/property-unassigned-code-value-tests: Likewise.
19849         * modules/unictype/property-unified-ideograph-tests: Likewise.
19850         * modules/unictype/property-uppercase-tests: Likewise.
19851         * modules/unictype/property-variation-selector-tests: Likewise.
19852         * modules/unictype/property-white-space-tests: Likewise.
19853         * modules/unictype/property-xid-continue-tests: Likewise.
19854         * modules/unictype/property-xid-start-tests: Likewise.
19855         * modules/unictype/property-zero-width-tests: Likewise.
19856         * modules/unictype/scripts-tests: Likewise.
19857         * modules/unictype/syntax-c-ident-tests: Likewise.
19858         * modules/unictype/syntax-c-whitespace-tests: Likewise.
19859         * modules/unictype/syntax-java-ident-tests: Likewise.
19860         * modules/unictype/syntax-java-whitespace-tests: Likewise.
19861         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
19862         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
19863         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
19864         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
19865         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
19866         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
19867         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
19868         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
19869         * modules/uniname/uniname-tests: Likewise.
19870         * modules/uninorm/canonical-decomposition-tests: Likewise.
19871         * modules/uninorm/compat-decomposition-tests: Likewise.
19872         * modules/uninorm/composition-tests: Likewise.
19873         * modules/uninorm/decomposing-form-tests: Likewise.
19874         * modules/uninorm/decomposition-tests: Likewise.
19875         * modules/uninorm/filter-tests: Likewise.
19876         * modules/uninorm/nfc-tests: Likewise.
19877         * modules/uninorm/nfd-tests: Likewise.
19878         * modules/uninorm/nfkc-tests: Likewise.
19879         * modules/uninorm/nfkd-tests: Likewise.
19880         * modules/uninorm/u8-normcmp-tests: Likewise.
19881         * modules/uninorm/u8-normcoll-tests: Likewise.
19882         * modules/uninorm/u16-normcmp-tests: Likewise.
19883         * modules/uninorm/u16-normcoll-tests: Likewise.
19884         * modules/uninorm/u32-normcmp-tests: Likewise.
19885         * modules/uninorm/u32-normcoll-tests: Likewise.
19886         * modules/unistdio/u8-asnprintf-tests: Likewise.
19887         * modules/unistdio/u8-vasnprintf-tests: Likewise.
19888         * modules/unistdio/u8-vasprintf-tests: Likewise.
19889         * modules/unistdio/u8-vsnprintf-tests: Likewise.
19890         * modules/unistdio/u8-vsprintf-tests: Likewise.
19891         * modules/unistdio/u16-asnprintf-tests: Likewise.
19892         * modules/unistdio/u16-vasnprintf-tests: Likewise.
19893         * modules/unistdio/u16-vasprintf-tests: Likewise.
19894         * modules/unistdio/u16-vsnprintf-tests: Likewise.
19895         * modules/unistdio/u16-vsprintf-tests: Likewise.
19896         * modules/unistdio/u32-asnprintf-tests: Likewise.
19897         * modules/unistdio/u32-vasnprintf-tests: Likewise.
19898         * modules/unistdio/u32-vasprintf-tests: Likewise.
19899         * modules/unistdio/u32-vsnprintf-tests: Likewise.
19900         * modules/unistdio/u32-vsprintf-tests: Likewise.
19901         * modules/unistdio/ulc-asnprintf-tests: Likewise.
19902         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
19903         * modules/unistdio/ulc-vasprintf-tests: Likewise.
19904         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
19905         * modules/unistdio/ulc-vsprintf-tests: Likewise.
19906         * modules/unistr/u8-check-tests: Likewise.
19907         * modules/unistr/u8-chr-tests: Likewise.
19908         * modules/unistr/u8-cmp-tests: Likewise.
19909         * modules/unistr/u8-cmp2-tests: Likewise.
19910         * modules/unistr/u8-cpy-alloc-tests: Likewise.
19911         * modules/unistr/u8-cpy-tests: Likewise.
19912         * modules/unistr/u8-mblen-tests: Likewise.
19913         * modules/unistr/u8-mbsnlen-tests: Likewise.
19914         * modules/unistr/u8-mbtouc-tests: Likewise.
19915         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
19916         * modules/unistr/u8-mbtoucr-tests: Likewise.
19917         * modules/unistr/u8-move-tests: Likewise.
19918         * modules/unistr/u8-next-tests: Likewise.
19919         * modules/unistr/u8-prev-tests: Likewise.
19920         * modules/unistr/u8-set-tests: Likewise.
19921         * modules/unistr/u8-stpcpy-tests: Likewise.
19922         * modules/unistr/u8-stpncpy-tests: Likewise.
19923         * modules/unistr/u8-strcat-tests: Likewise.
19924         * modules/unistr/u8-strcmp-tests: Likewise.
19925         * modules/unistr/u8-strcoll-tests: Likewise.
19926         * modules/unistr/u8-strcpy-tests: Likewise.
19927         * modules/unistr/u8-strdup-tests: Likewise.
19928         * modules/unistr/u8-strlen-tests: Likewise.
19929         * modules/unistr/u8-strmblen-tests: Likewise.
19930         * modules/unistr/u8-strmbtouc-tests: Likewise.
19931         * modules/unistr/u8-strncat-tests: Likewise.
19932         * modules/unistr/u8-strncmp-tests: Likewise.
19933         * modules/unistr/u8-strncpy-tests: Likewise.
19934         * modules/unistr/u8-strnlen-tests: Likewise.
19935         * modules/unistr/u8-to-u16-tests: Likewise.
19936         * modules/unistr/u8-to-u32-tests: Likewise.
19937         * modules/unistr/u8-uctomb-tests: Likewise.
19938         * modules/unistr/u16-check-tests: Likewise.
19939         * modules/unistr/u16-chr-tests: Likewise.
19940         * modules/unistr/u16-cmp-tests: Likewise.
19941         * modules/unistr/u16-cmp2-tests: Likewise.
19942         * modules/unistr/u16-cpy-alloc-tests: Likewise.
19943         * modules/unistr/u16-cpy-tests: Likewise.
19944         * modules/unistr/u16-mblen-tests: Likewise.
19945         * modules/unistr/u16-mbsnlen-tests: Likewise.
19946         * modules/unistr/u16-mbtouc-tests: Likewise.
19947         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
19948         * modules/unistr/u16-mbtoucr-tests: Likewise.
19949         * modules/unistr/u16-move-tests: Likewise.
19950         * modules/unistr/u16-next-tests: Likewise.
19951         * modules/unistr/u16-prev-tests: Likewise.
19952         * modules/unistr/u16-set-tests: Likewise.
19953         * modules/unistr/u16-stpcpy-tests: Likewise.
19954         * modules/unistr/u16-stpncpy-tests: Likewise.
19955         * modules/unistr/u16-strcat-tests: Likewise.
19956         * modules/unistr/u16-strcmp-tests: Likewise.
19957         * modules/unistr/u16-strcoll-tests: Likewise.
19958         * modules/unistr/u16-strcpy-tests: Likewise.
19959         * modules/unistr/u16-strdup-tests: Likewise.
19960         * modules/unistr/u16-strlen-tests: Likewise.
19961         * modules/unistr/u16-strmblen-tests: Likewise.
19962         * modules/unistr/u16-strmbtouc-tests: Likewise.
19963         * modules/unistr/u16-strncat-tests: Likewise.
19964         * modules/unistr/u16-strncmp-tests: Likewise.
19965         * modules/unistr/u16-strncpy-tests: Likewise.
19966         * modules/unistr/u16-strnlen-tests: Likewise.
19967         * modules/unistr/u16-to-u32-tests: Likewise.
19968         * modules/unistr/u16-to-u8-tests: Likewise.
19969         * modules/unistr/u16-uctomb-tests: Likewise.
19970         * modules/unistr/u32-check-tests: Likewise.
19971         * modules/unistr/u32-chr-tests: Likewise.
19972         * modules/unistr/u32-cmp-tests: Likewise.
19973         * modules/unistr/u32-cmp2-tests: Likewise.
19974         * modules/unistr/u32-cpy-alloc-tests: Likewise.
19975         * modules/unistr/u32-cpy-tests: Likewise.
19976         * modules/unistr/u32-mblen-tests: Likewise.
19977         * modules/unistr/u32-mbsnlen-tests: Likewise.
19978         * modules/unistr/u32-mbtouc-tests: Likewise.
19979         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
19980         * modules/unistr/u32-mbtoucr-tests: Likewise.
19981         * modules/unistr/u32-move-tests: Likewise.
19982         * modules/unistr/u32-next-tests: Likewise.
19983         * modules/unistr/u32-prev-tests: Likewise.
19984         * modules/unistr/u32-set-tests: Likewise.
19985         * modules/unistr/u32-stpcpy-tests: Likewise.
19986         * modules/unistr/u32-stpncpy-tests: Likewise.
19987         * modules/unistr/u32-strcat-tests: Likewise.
19988         * modules/unistr/u32-strcmp-tests: Likewise.
19989         * modules/unistr/u32-strcoll-tests: Likewise.
19990         * modules/unistr/u32-strcpy-tests: Likewise.
19991         * modules/unistr/u32-strdup-tests: Likewise.
19992         * modules/unistr/u32-strlen-tests: Likewise.
19993         * modules/unistr/u32-strmblen-tests: Likewise.
19994         * modules/unistr/u32-strmbtouc-tests: Likewise.
19995         * modules/unistr/u32-strncat-tests: Likewise.
19996         * modules/unistr/u32-strncmp-tests: Likewise.
19997         * modules/unistr/u32-strncpy-tests: Likewise.
19998         * modules/unistr/u32-strnlen-tests: Likewise.
19999         * modules/unistr/u32-to-u16-tests: Likewise.
20000         * modules/unistr/u32-to-u8-tests: Likewise.
20001         * modules/unistr/u32-uctomb-tests: Likewise.
20002         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
20003         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
20004         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
20005         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
20006         * modules/uniwidth/u8-strwidth-tests: Likewise.
20007         * modules/uniwidth/u8-width-tests: Likewise.
20008         * modules/uniwidth/u16-strwidth-tests: Likewise.
20009         * modules/uniwidth/u16-width-tests: Likewise.
20010         * modules/uniwidth/u32-strwidth-tests: Likewise.
20011         * modules/uniwidth/u32-width-tests: Likewise.
20012         * modules/uniwidth/width-tests: Likewise.
20013
20014 2010-05-18  Richard Jones  <rjones@redhat.com>
20015
20016         doc: users.txt: list hivex
20017         * users.txt: Add hivex.
20018
20019 2010-05-18  Richard Jones  <rjones@redhat.com>
20020
20021         doc: users.txt: list febootstrap
20022         * users.txt: Add febootstrap.
20023
20024 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
20025
20026         bootstrap: fix an error when gnulib is not used as a git submodule
20027         * build-aux/bootstrap (gnulib_path): If its length is zero then
20028         assign "gnulib" to it.
20029         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
20030
20031 2010-05-16  Bruno Haible  <bruno@clisp.org>
20032
20033         Avoid autoconf warnings about AM_ICONV.
20034         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
20035         2.64.
20036
20037 2010-05-16  Bruno Haible  <bruno@clisp.org>
20038
20039         absolute-header: Make the macro usable in more situations.
20040         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
20041         from gl_ABSOLUTE_HEADER.
20042         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
20043
20044 2010-05-16  James Youngman  <jay@gnu.org>
20045
20046         doc: update users.txt
20047         * users.txt: Add CSSC.
20048
20049 2010-05-16  Jim Meyering  <meyering@redhat.com>
20050
20051         init.sh: fix an error in the previous change; add more comments
20052         * tests/init.sh: Compare exit code in loop against 9, not 2.
20053         Patch by Bruno Haible.
20054         Make the two tests more similar by adding an empty "then" clause.
20055         Add comments.
20056
20057         init.sh: avoid unnecessary shell re-exec
20058         * tests/init.sh: Improve the re-exec-required check to first test the
20059         current shell.  If it passes the test, do not search for a shell that
20060         does pass, and do not re-exec.  This test is particularly contorted to
20061         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
20062         of $(...) evokes a syntax error and causes immediate shell exit with
20063         status 2.  Bruno Haible reported that the re-exec made it impossible
20064         to single-step through any init.sh-using script.
20065
20066 2010-05-16  Bruno Haible  <bruno@clisp.org>
20067
20068         Fix collision between gnulib's and libintl's printf replacements.
20069         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
20070         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
20071         (printf): When using GNU C, map the __printf__ function to rpl_printf
20072         via __asm__. When not using GNU C, define rpl_printf instead of
20073         __printf__.
20074         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
20075         commit.
20076         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
20077         commit.
20078         * m4/asm-underscore.m4: New file.
20079         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
20080         * modules/stdio (Files): Add m4/asm-underscore.m4.
20081         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
20082         Reported by Ben Pfaff.
20083
20084 2010-05-16  Bruno Haible  <bruno@clisp.org>
20085
20086         verify: Avoid skipping the test on openSUSE 11.0.
20087         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
20088
20089 2010-05-13  Bruno Haible  <bruno@clisp.org>
20090
20091         Avoid useless warnings from G++.
20092         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
20093         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
20094         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20095
20096 2010-05-11  Jim Meyering  <meyering@redhat.com>
20097
20098         maint.mk: tweak preceding change
20099         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
20100         regexps tighter by anchoring at EOL, and make the new group "shy"
20101         for slightly decreased overhead.
20102
20103 2010-05-11  Eric Blake  <eblake@redhat.com>
20104
20105         maint.mk: gnulib doesn't guarantee NSIG
20106         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
20107
20108 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
20109
20110         test-pwrite.c: Remove unused variable declaration.
20111         * tests/test-pwrite.c (main): Remove read_buf declaration.
20112
20113         Remove useless test-pwrite.sh file.
20114         * tests/test-pwrite.sh: Delete file.
20115         * modules/pwrite-tests: Remove references.
20116         Reported by Bruno Haible.
20117
20118 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
20119
20120         init.sh: fix a typo
20121         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
20122
20123 2010-05-10  Jim Meyering  <meyering@redhat.com>
20124
20125         maint.mk: avoid using a temporary file in the always-defined-macros check
20126         * top/maint.mk (.re-defmac): Remove rule.
20127         (gl_trap_): Remove definition.
20128         (sc_prohibit_always-defined_macros): Rewrite not to create and
20129         depend on a temporary file.  Instead, depend on GNU grep's ability
20130         to read a list of regular expressions from stdin when given "-f -".
20131
20132 2010-05-09  Bruno Haible  <bruno@clisp.org>
20133
20134         Update to GNU gettext 0.18, part 1.
20135         * m4/gettext.m4: Update to GNU gettext 0.18.
20136         * m4/intl.m4: Likewise.
20137         * m4/po.m4: Likewise.
20138         * modules/gettext (Files): Add m4/fcntl-o.m4.
20139         (configure.ac): Require gettext infrastructure from version 0.18.
20140
20141 2010-05-09  Jim Meyering  <meyering@redhat.com>
20142
20143         init.sh: enable MALLOC_PERTURB_
20144         * tests/init.sh: Enable glibc's malloc-perturbing option.
20145
20146         maint.mk: improve sc_cross_check_PATH_usage_in_tests
20147         With my recent change in init.sh from the two-line form:
20148             -#   : ${srcdir=.}
20149             -#   . "$srcdir/init.sh"; path_prepend_ .
20150             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
20151         I noticed that using the one-line form would cause this test
20152         to fail with a false-positive, or to stop working altogether,
20153         depending on whether help-version changed or all the tests did.
20154         * top/maint.mk (_hv_regex): Remove this definition.
20155         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
20156         (_hv_regex_strong): Use a stronger regex to check for conformance.
20157         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
20158         Give a separate diagnostic for lack of conforming use.
20159
20160         maint.mk: prohibit definition of symbols defined by gnulib
20161         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
20162         definition of symbols defined by gnulib.
20163
20164 2010-05-09  Bruno Haible  <bruno@clisp.org>
20165
20166         acl: Avoid test failure on Cygwin-hosted mingw.
20167         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
20168
20169 2010-05-09  Bruno Haible  <bruno@clisp.org>
20170
20171         error: Use system's fcntl function.
20172         * lib/error.c (fcntl): Undefine.
20173
20174 2010-05-09  Jim Meyering  <meyering@redhat.com>
20175
20176         verify: adjust formatting to be more consistent
20177         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
20178         argument-list '('s, and after one comma.
20179
20180 2010-05-09  Bruno Haible  <bruno@clisp.org>
20181
20182         error: More reliable output on mingw.
20183         * lib/error.c: Include <windows.h>.
20184         (is_open): New function.
20185         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
20186         defined.
20187
20188 2010-05-09  Bruno Haible  <bruno@clisp.org>
20189
20190         vasnprintf: Fix syntax errors in libintl build on mingw.
20191         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
20192         pad_ourselves and prec_ourselves after use.
20193
20194 2010-05-08  Bruno Haible  <bruno@clisp.org>
20195
20196         * lib/config.charset: Update comments for Cygwin 1.7.
20197         * lib/localcharset.c: Likewise.
20198
20199 2010-05-07  Jim Meyering  <meyering@redhat.com>
20200
20201         init.sh: improve comments
20202         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
20203         . "${srcdir=.}/init.sh"; path_prepend_ .
20204         Add a note about path_prepend_ and the alternative of using
20205         TESTS_ENVIRONMENT.
20206
20207 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
20208
20209         exclude: Unescape hashed patterns in wildcard mode.
20210         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
20211         to the hash list.
20212         * tests/test-exclude8.sh: New test case.
20213         * modules/exclude-tests: Add new test.
20214
20215 2010-05-05  Eric Blake  <eblake@redhat.com>
20216
20217         verify: automate tests
20218         * modules/verify-tests: New module.
20219         * tests/test-verify.sh: New file.
20220         * tests/test-verify.c: Guard each negative test with a unique id.
20221         Also avoid warning about unused left hand of comma expressions.
20222
20223 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20224
20225         Further improvements to verify.h, suggested by Eric Blake.
20226         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
20227         the GL_* versions, to avoid collision with OpenGL.
20228         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
20229         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
20230         than testing merely whether it's defined.
20231
20232         Modify verify.h to pacify gcc -Wredundant_decls.
20233         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
20234         These use the prefix "GL_" since they're likely to be useful elsewhere.
20235         We may need to break them out into a different .h file.
20236         (__COUNTER__): Define to 0 if the compiler doesn't support it.
20237         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
20238         of verify_function__.
20239
20240 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20241
20242         Tests for module pwrite.
20243         * modules/pwrite-tests: New file.
20244         * tests/test-pwrite.sh: New file.
20245         * tests/test-pwrite.c: New file.
20246
20247         New module pwrite.
20248         * lib/unistd.in.h (pwrite): New declaration.
20249         * lib/pwrite.c: New file, from glibc with modifications.
20250         * m4/pwrite.m4: New file.
20251         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
20252         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
20253         REPLACE_PWRITE.
20254         * modules/pwrite: New file.
20255         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
20256         REPLACE_PWRITE.
20257         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
20258         * doc/posix-functions/pwrite.texi: Mention the new module.
20259
20260 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20261
20262         pread: Update documentation.
20263         * doc/posix-functions/pread.texi: Mention the 'pread' module.
20264
20265 2010-05-04  Eric Blake  <eblake@redhat.com>
20266
20267         docs: update cygwin progress
20268         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
20269         this bug.
20270         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
20271         Added in cygwin 1.7.2.
20272         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
20273         Likewise.
20274         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
20275         Likewise.
20276         * doc/glibc-functions/dup3.texi (dup3): Likewise.
20277         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
20278         * doc/glibc-functions/accept4.texi (accept4): Likewise.
20279         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
20280         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
20281         Mention nproc module.
20282         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
20283         bug in cygwin 1.7.5 addition.
20284         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
20285         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
20286         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
20287         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
20288         1.7.5.
20289         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
20290         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
20291         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
20292         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
20293         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
20294         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
20295         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
20296         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
20297         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
20298         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
20299         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
20300         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
20301         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
20302         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
20303         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
20304         Likewise.
20305         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
20306         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
20307         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
20308         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
20309         Likewise.
20310         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
20311         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
20312         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
20313         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
20314         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
20315         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
20316         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
20317         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
20318         Likewise.
20319         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
20320         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
20321         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
20322         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
20323         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
20324         Likewise.
20325         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
20326         Likewise.
20327         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
20328         Likewise.
20329         * doc/glibc-functions/xdrrec_endofrecord.texi
20330         (xdrrec_endofrecord): Likewise.
20331         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
20332         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
20333         Likewise.
20334         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
20335         Likewise.
20336
20337 2010-05-04  Jim Meyering  <meyering@redhat.com>
20338
20339         gendocs.sh: make its "-s FILE" option more useful
20340         * build-aux/gendocs.sh: When honoring the -s FILE option, update
20341         $PACKAGE to reflect the probably-different basename of "FILE".
20342
20343 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
20344
20345         bootstrap: don't ignore download_po_files failure
20346         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
20347         failure.
20348
20349 2010-05-03  Jim Meyering  <meyering@redhat.com>
20350
20351         maint.mk: allow to pass options to gendocs.sh
20352         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
20353         (gendocs_options_): New overridable variable.
20354
20355         gnu-web-doc-update: don't ignore configure or build failure
20356         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
20357
20358         announce-gen: backslash-escape '@'s in --help output
20359         * build-aux/announce-gen: Fix syntax errors.
20360
20361         maint.mk, announce-gen: allow project-specific announcement mail headers
20362         * top/maint.mk (translation_project_): Define default.
20363         (announcement_Cc_, announcement_mail_headers_): Likewise.
20364         (announcement): Invoke announce-gen with new --mail-headers option.
20365         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
20366
20367         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
20368         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
20369         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
20370         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
20371         line in the "err2" output file when running "make check" in verbose
20372         mode (i.e., with set -x enabled).
20373
20374 2010-05-03  Bruno Haible  <bruno@clisp.org>
20375
20376         wctob: Fix for weird platforms.
20377         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
20378         argument value.
20379
20380 2010-05-03  Jim Meyering  <meyering@redhat.com>
20381
20382         maint.mk: prohibit unwarranted use of <strings.h>
20383         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
20384         strings.h in a file that does not also use strcasecmp, strncasecmp,
20385         ffs or ffsll.
20386
20387         maint.mk: remove obsolete comments
20388         * top/maint.mk: Remove stale, commented-out rules.
20389
20390 2010-05-02  Bruno Haible  <bruno@clisp.org>
20391
20392         wcwidth: Declare also when it's aliased.
20393         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
20394         macro.
20395
20396 2010-05-02  Bruno Haible  <bruno@clisp.org>
20397
20398         Fix regression from 2010-04-25.
20399         * gnulib-tool (func_modules_transitive_closure): Check the status of
20400         all modules, not only of the tests that are of the form foo-tests where
20401         foo is a module.
20402
20403 2010-05-02  Bruno Haible  <bruno@clisp.org>
20404
20405         wctob: Work around nasty Cygwin 1.7.2 bug.
20406         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
20407         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
20408
20409 2010-05-01  Bruno Haible  <bruno@clisp.org>
20410
20411         fpurge: Sharper test.
20412         * tests/test-fpurge.c (main): Add one more ftell check.
20413         * modules/fpurge-tests (Depends-on): Add ftell.
20414         Suggested by Eric Blake.
20415
20416 2010-05-01  Bruno Haible  <bruno@clisp.org>
20417
20418         ftello: Another test.
20419         * tests/test-ftello3.c: New file.
20420         * modules/ftello-tests (Files): Add it.
20421         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20422         MOSTLYCLEANFILES.
20423
20424         ftell: Another test.
20425         * tests/test-ftell3.c: New file.
20426         * modules/ftell-tests (Files): Add it.
20427         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20428         MOSTLYCLEANFILES.
20429
20430 2010-05-01  Bruno Haible  <bruno@clisp.org>
20431
20432         ftell, ftello: Work around Solaris bug.
20433         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
20434         * lib/ftello.c: Include stdio-impl.h.
20435         (ftello): On Solaris, when _IOWRT is set, compute the result without
20436         looking at _IOREAD.
20437         * modules/ftello (Files): Add lib/stdio-impl.h.
20438         * doc/posix-functions/ftell.texi: Mention Solaris bug.
20439         * doc/posix-functions/ftello.texi: Likewise.
20440         Reported by Eric Blake.
20441
20442 2010-05-01  Bruno Haible  <bruno@clisp.org>
20443
20444         freading: Adapt to special meaning of _IOREAD flag on Solaris.
20445         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
20446         the _IOWRT flag is also set.
20447
20448 2010-05-01  Bruno Haible  <bruno@clisp.org>
20449
20450         Fix doc about a HP-UX stdio bug.
20451         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
20452         * doc/posix-functions/ftello.texi: Likewise.
20453
20454 2010-05-01  Bruno Haible  <bruno@clisp.org>
20455
20456         lseek test: Fix failure on Solaris.
20457         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
20458         output.
20459
20460 2010-04-30  Jim Meyering  <meyering@redhat.com>
20461
20462         bootstrap: don't ignore failure to generate po*/Makevars
20463         * build-aux/bootstrap (with_gettext): Don't ignore failure
20464         to create po/Makevars or runtime-po/Makevars.
20465
20466 2010-04-29  Eric Blake  <eblake@redhat.com>
20467
20468         headers: relax license to LGPLv2+
20469         * modules/fcntl-h (License): Relax license.
20470         * modules/getopt-posix (License): Likewise.
20471         * modules/locale (License): Likewise.
20472         * modules/math (License): Likewise.
20473         * modules/pty (License): Likewise.
20474         * modules/sched (License): Likewise.
20475         * modules/search (License): Likewise.
20476         * modules/spawn (License): Likewise.
20477         * modules/stdarg (License): Likewise.
20478         * modules/sysexits (License): Likewise.
20479
20480 2010-04-29  Jim Meyering  <meyering@redhat.com>
20481
20482         inttypes: relax license to LGPLv2+
20483         * modules/inttypes (License): Relax license.
20484
20485 2010-04-29  Simon Josefsson  <simon@josefsson.org>
20486
20487         * top/maint.mk (indent): Run twice to produce idempotent results.
20488
20489 2010-04-28  Bruno Haible  <bruno@clisp.org>
20490
20491         getdate: Generate getdate.c in the source directory.
20492         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
20493         MOSTLYCLEANFILES.
20494         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
20495
20496 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
20497
20498         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
20499         is not declared as a const *; avoid warnings in that case.
20500
20501 2010-04-28  Eric Blake  <eblake@redhat.com>
20502
20503         canonicalize-lgpl: avoid compiler warning
20504         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
20505         declaration' / 'extraneous semicolon' warning with some compilers.
20506         Reported by Andreas Gruenbacher.
20507
20508 2010-04-28  Jim Meyering  <meyering@redhat.com>
20509
20510         init.sh: ensure a more reliable exit status when exiting via trap
20511         * tests/init.sh (setup_): Don't rely on $? in signal handler.
20512         Inspired by patches from Dmitry V. Levin.
20513         Also trap on signal 3 (SIGQUIT).
20514
20515 2010-04-27  Bruno Haible  <bruno@clisp.org>
20516
20517         Update doc about utimes().
20518         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
20519         'utimens' module.
20520         Reported by Andreas Gruenbacher <agruen@suse.de>.
20521
20522 2010-04-27  Eric Blake  <eblake@redhat.com>
20523
20524         full-read, full-write: relax license
20525         * modules/full-read (License): Drop to LGPLv2+.
20526         * modules/full-write (License): Likewise.
20527         * modules/safe-read (License): Likewise.
20528         * modules/safe-write (License): Likewise.
20529
20530         pthread: mention library for linking
20531         * modules/pthread (Link): Mention $(LIB_PTHREAD).
20532
20533 2010-04-27  Jim Meyering  <meyering@redhat.com>
20534
20535         maint.mk: fix a bug introduced in last change
20536         * top/maint.mk (gl_assured_headers_): Now that all names are on
20537         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
20538         is not anchored to end of word, it should be adequate.
20539
20540         maint.mk: avoid side-effect in latest syntax-check
20541         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
20542         to run commands via $(shell...), and hence to incur cost only when
20543         the new rule is actually run.
20544
20545         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
20546         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
20547         and use that to create a regexp used to detect all #if HAVE_..._H uses.
20548         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
20549         (gl_assured_headers_, az_, AZ_): Define.
20550         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
20551
20552 2010-04-26  Jim Meyering  <jim@meyering.net>
20553             Bruno Haible  <bruno@clisp.org>
20554
20555         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
20556         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
20557         Prompted by an exchange with Gilles Espinasse.
20558
20559 2010-04-26  Jim Meyering  <meyering@redhat.com>
20560
20561         git-version-gen: aesthetic tweak
20562         * build-aux/git-version-gen: Use "$nl" rather than a literal,
20563         so that the command remains on a single line.
20564
20565 2010-04-26  Eric Blake  <eblake@redhat.com>
20566
20567         git-version-gen: allow use on EBCDIC hosts
20568         * build-aux/git-version-gen (dirty): Use literal rather than tying
20569         ourselves to ascii.
20570         Reported by Steve Goetze.
20571
20572 2010-04-25  Bruno Haible  <bruno@clisp.org>
20573
20574         netdb: Add support for GNULIB_POSIXCHECK.
20575         * lib/netdb.in.h: Include warn-on-use.h.
20576         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
20577         functions are used when GNULIB_POSIXCHECK is defined and the
20578         getaddrinfo module is not in use.
20579         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
20580         freeaddrinfo, gai_strerror, getnameinfo are declared.
20581         * modules/netdb (Depends-on): Add warn-on-use.
20582         (Makefile.am): Include warn-on-use.h in netdb.h.
20583
20584 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
20585
20586         build: avoid "make check" failure without .git/ directory
20587         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
20588         there is no .git/ directory.
20589
20590 2010-04-25  Bruno Haible  <bruno@clisp.org>
20591
20592         ptsname: Fix misuse of ttyname_r.
20593         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
20594         of errno.
20595
20596 2010-04-25  Bruno Haible  <bruno@clisp.org>
20597
20598         ttyname_r: Make it work on Solaris 10.
20599         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
20600         if the system function has the POSIX declaration. Test whether the
20601         function fails if the buffer is less than 128 bytes large.
20602         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
20603         system's ttyname_r function. Provide a reasonably large buffer.
20604         * modules/ttyname_r (Depends-on): Add extensions.
20605         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
20606
20607 2010-04-25  Bruno Haible  <bruno@clisp.org>
20608
20609         Use the 'extensions' module for some more functions on Solaris.
20610         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
20611         module.
20612         * doc/posix-functions/ctime_r.texi: Likewise.
20613         * doc/posix-functions/getgrgid_r.texi: Likewise.
20614         * doc/posix-functions/getgrnam_r.texi: Likewise.
20615         * doc/posix-functions/getpwnam_r.texi: Likewise.
20616         * doc/posix-functions/getpwuid_r.texi: Likewise.
20617         * doc/posix-functions/readdir_r.texi: Likewise.
20618         * doc/posix-functions/sigwait.texi: Likewise.
20619         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
20620         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
20621
20622 2010-04-25  Bruno Haible  <bruno@clisp.org>
20623
20624         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
20625         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
20626         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
20627         * lib/ttyname_r.c: Include <limits.h>.
20628         (ttyname_r): Define using the system's ttyname_r function, if it exists
20629         and not on Solaris.
20630         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
20631         set.
20632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
20633         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
20634         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
20635         Reported by Simon Josefsson.
20636
20637 2010-04-25  Bruno Haible  <bruno@clisp.org>
20638
20639         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
20640         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
20641         * doc/posix-functions/ctime_r.texi: Likewise.
20642         * doc/posix-functions/getgrgid_r.texi: Likewise.
20643         * doc/posix-functions/getgrnam_r.texi: Likewise.
20644         * doc/posix-functions/getlogin_r.texi: Likewise.
20645         * doc/posix-functions/getpwnam_r.texi: Likewise.
20646         * doc/posix-functions/getpwuid_r.texi: Likewise.
20647         * doc/posix-functions/readdir_r.texi: Likewise.
20648         * doc/posix-functions/sigwait.texi: Likewise.
20649         * doc/posix-functions/ttyname_r.texi: Likewise.
20650         Reported by Simon Josefsson.
20651
20652 2010-04-25  Bruno Haible  <bruno@clisp.org>
20653
20654         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
20655         * gnulib-tool (func_usage): Document that --with-*-tests options apply
20656         also to --create-testdir.
20657         (func_acceptable): Don't consider the status of *-tests modules here.
20658         (func_modules_transitive_closure): Consider it here, before including a
20659         test module.
20660         (func_import, func_create_testdir): Set inc_all_direct_tests,
20661         inc_all_indirect_tests.
20662         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
20663         --create-testdir and --create-megatestdir.
20664
20665 2010-04-25  Bruno Haible  <bruno@clisp.org>
20666
20667         gnulib-tool: Add --without-*-tests options.
20668         * gnulib-tool (func_usage): Document the --without-*-tests options.
20669         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
20670         excl_unportable_tests): New variables.
20671         Fail if they are specified with --import or --update.
20672         (func_acceptable): Respect the excl_*_tests variables.
20673         (func_import): Set the excl_*_tests variables to empty.
20674
20675 2010-04-25  Simon Josefsson  <simon@josefsson.org>
20676             Bruno Haible  <bruno@clisp.org>
20677
20678         Work around a MacOS X 10.4 bug with openpty.
20679         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
20680         * tests/test-openpty.c (main): Close the master side explicitly.
20681
20682 2010-04-25  Bruno Haible  <bruno@clisp.org>
20683
20684         strnlen: Fix a C++ test error on MacOS X and Solaris.
20685         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
20686         the function is not declared.
20687         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
20688         Simon Josefsson.
20689
20690 2010-04-24  Bruno Haible  <bruno@clisp.org>
20691
20692         Avoid a gcc warning.
20693         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
20694         of correct type for %08lx directive.
20695         Reported by Eric Blake.
20696
20697 2010-04-24  Bruno Haible  <bruno@clisp.org>
20698
20699         vasnprintf: Correct errno value in case of out-of-memory.
20700         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
20701         or sprintf. Use the errno value from SNPRINTF or sprintf.
20702         Reported by Ian Beckwith <ianb@erislabs.net>.
20703
20704 2010-04-24  Bruno Haible  <bruno@clisp.org>
20705
20706         ansi-c++-opt: Find correct compiler when cross-compiling.
20707         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
20708         AC_CHECK_PROGS.
20709         Reported by Simon Josefsson.
20710
20711 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
20712
20713         vc-list-files: Add support for subversion
20714         * build-aux/vc-list-files: Use "svn list" to generate the list of
20715         files controlled by subversion.
20716
20717 2010-04-23  Jim Meyering  <meyering@redhat.com>
20718
20719         vc-list-files tests: convert to use init.sh
20720         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
20721         path_prepend_.
20722         Use Exit, not exit.
20723         Use skip_ rather than open coding it.
20724         Remove trap set-up and compare definitions.
20725         * tests/test-vc-list-files-git.sh: Likewise.
20726         * modules/vc-list-files-tests (Files): Add tests/init.sh.
20727
20728 2010-04-22  Simon Josefsson  <simon@josefsson.org>
20729
20730         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
20731         backup files.
20732
20733 2010-04-21  Simon Josefsson  <simon@josefsson.org>
20734
20735         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
20736
20737 2010-04-20  Eric Blake  <eblake@redhat.com>
20738
20739         tests: be robust to ignored SIGPIPE
20740         * tests/test-select-in.sh: Consume all output.
20741         * tests/test-lseek.sh: Check correct exit status, while avoiding
20742         EPIPE.
20743
20744 2010-04-20  Simon Josefsson  <simon@josefsson.org>
20745             Bruno Haible  <bruno@clisp.org>
20746
20747         visibility: Don't use -fvisibility if it leads to a warning.
20748         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
20749         yes, don't pretend that visibility works if it leads to a warning.
20750         Reported by Mike Gran <spk121@yahoo.com>.
20751
20752 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
20753
20754         * build-aux/bootstrap: Use "git -h" for testing for supported options
20755         instead of "git --help".  The short-form option only shows a summary,
20756         and doesn't layout the full man page.  Grep for the full option name
20757         in the summary, too.
20758
20759 2010-04-19  Bruno Haible  <bruno@clisp.org>
20760
20761         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
20762         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
20763         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
20764         mention of RELOCATABLE_STRIP.
20765         Reported by Sylvain Beucler <beuc@beuc.net>.
20766
20767 2010-04-19  Bruno Haible  <bruno@clisp.org>
20768
20769         * lib/diffseq.h: Fix typo in comment.
20770         Reported by Eric Blake.
20771
20772 2010-04-19  Bruno Haible  <bruno@clisp.org>
20773
20774         ioctl: Move autoconf macro to a .m4 file.
20775         * m4/ioctl.m4: New file, extracted from modules/ioctl.
20776         * modules/ioctl (Files): Add it.
20777         (configure.ac): Simply invoke gl_FUNC_IOCTL.
20778         Reported by Ian Beckwith <ianb@erislabs.net>.
20779
20780 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
20781             Bruno Haible  <bruno@clisp.org>
20782
20783         diffseq: Accommodate use-case with abstract arrays.
20784         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
20785         is not defined.
20786         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
20787         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
20788
20789 2010-04-18  Bruno Haible  <bruno@clisp.org>
20790
20791         * doc/posix-headers/stdbool.texi: More precise wording.
20792
20793 2010-04-17  Jim Meyering  <meyering@redhat.com>
20794
20795         maint.mk: use gnu-style indentation in an embedded perl script
20796         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
20797         Rename variable: s/two/last_two_bytes/
20798
20799 2010-04-16  Eric Blake  <eblake@redhat.com>
20800
20801         test-stdbool: skip test that fails with Solaris CC
20802         * tests/test-stdbool.c (f): Skip test that causes compilation
20803         error under buggy C++ compiler.
20804         * lib/stdbool.in.h: Document the limitation.
20805         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
20806
20807         setenv: allow compilation with C++
20808         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
20809         register keyword.
20810
20811         stdint: allow test to pass with C++
20812         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
20813
20814         getopt: allow compilation with C++
20815         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
20816         struct.
20817         * lib/getopt.c (_getopt_internal_r): Use correct type.
20818         Reported by Dagobert Michelson, via Joel E. Denny.
20819
20820 2010-04-16  Bruno Haible  <bruno@clisp.org>
20821
20822         Override netdb.h always.
20823         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
20824         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
20825         Reported by Ludovic Courtès <ludo@gnu.org>.
20826
20827 2010-04-15  Bruno Haible  <bruno@clisp.org>
20828
20829         openpty: Fix mistake from 2010-03-21.
20830         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
20831         Reported by Simon Josefsson.
20832
20833 2010-04-15  Eric Blake  <eblake@redhat.com>
20834
20835         test-forkpty: fix expected signature
20836         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
20837         Reported by Simon Josefsson.
20838
20839 2010-04-15  Jim Meyering  <meyering@redhat.com>
20840
20841         maint.mk: texinfo_suffix_re_: correct the default regexp
20842         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
20843
20844         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
20845         make it configurable via texinfo_suffix_re_.
20846
20847 2010-04-14  Eric Blake  <eblake@redhat.com>
20848
20849         strtok_r: relax license to LGPLv2+
20850         * modules/strtok_r (License): Relax license.
20851         Reported by Matthias Bolte.
20852
20853 2010-04-14  Simon Josefsson  <simon@josefsson.org>
20854
20855         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
20856         version 1.4.4 by default instead of requiring the libgcrypt
20857         version used during build.  This makes it possible to use the
20858         application with older but still binary compatible libgcrypt
20859         versions.
20860
20861 2010-04-13  Eric Blake  <eblake@redhat.com>
20862
20863         getopt-gnu: match recent glibc fixes and posix ruling
20864         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
20865         '+' handling, when requesting extensions.
20866         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
20867         'W;' handling.
20868         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
20869         * doc/posix-functions/getopt.texi (getopt): Document this.
20870         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20871         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20872         Likewise.
20873
20874         getopt: merge bug fixes from glibc
20875         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
20876         diagnostics.  Honor '+:' correctly.  Reject ';'.
20877
20878         getopt-posix: detect MacOS bug
20879         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
20880         optind when missing a required argument.
20881         * doc/posix-functions/getopt.texi (getopt): Document the bug.
20882         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20883         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20884         Likewise.
20885
20886         getopt-posix: avoid spurious failure on Solaris
20887         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
20888         an indicator that setting optind=1 is sufficient for reset.
20889
20890         getopt-posix: avoid spurious failure on FreeBSD
20891         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
20892         in POSIX mode, since the m4 test uses it.
20893
20894         gnulib-tool: silence warning on BSD sh
20895         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
20896
20897 2010-04-13  Jim Meyering  <meyering@redhat.com>
20898
20899         doc: users.txt: GNU patch now uses gnulib
20900         * users.txt: Add patch.
20901
20902 2010-04-12  Jim Meyering  <meyering@redhat.com>
20903
20904         maint.mk: generate more concise timing data for syntax-check rules
20905         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
20906         " done" from each line that reports a syntax-check test duration.
20907
20908 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
20909
20910         git-version-gen: use "git update-index..." rather than "git status"
20911         * build-aux/git-version-gen: Use git update-index --refresh, not
20912         "git status".  With some versions of git, "git status" would fail
20913         to update the index and result in an unwarranted "-dirty" suffix.
20914
20915 2010-04-11  Jim Meyering  <meyering@redhat.com>
20916
20917         openat: correct formatting (no semantic change)
20918         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
20919         Suggested by Bruno Haible.
20920
20921 2010-04-11  Bruno Haible  <bruno@clisp.org>
20922
20923         Stricter declaration checking in testdirs.
20924         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20925         If for_tests is true, augment AM_CPPFLAGS to define
20926         GNULIB_STRICT_CHECKING.
20927         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
20928         GNULIB_STRICT_CHECKING is defined, verify that the function is
20929         declared.
20930
20931 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
20932             Bruno Haible  <bruno@clisp.org>
20933
20934         libunistring: Improve configure output.
20935         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
20936         Don't say "consider installing GNU libunistring" when checking again
20937         with libiconv.
20938
20939 2010-04-11  Bruno Haible  <bruno@clisp.org>
20940
20941         libunistring: Correct value of $LTLIBUNISTRING.
20942         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
20943         correct the value of $LTLIBUNISTRING.
20944
20945 2010-04-11  Bruno Haible  <bruno@clisp.org>
20946
20947         havelib: Add static libraries to LIBS in the right order.
20948         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
20949         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
20950
20951 2010-04-11  Bruno Haible  <bruno@clisp.org>
20952
20953         libunistring: Detect libunistring also when it depends on libiconv.
20954         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
20955         the second AC_LIB_HAVE_LINKFLAGS invocation.
20956
20957 2010-04-11  James Youngman  <jay@gnu.org>
20958
20959         close-stream: declare local scalars to be "const"
20960         * lib/close-stream.c (close_stream): Make boolean variables const
20961         to document the fact that we set but do not change them.
20962
20963 2010-04-11  Bruno Haible  <bruno@clisp.org>
20964
20965         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
20966
20967 2010-04-11  Jim Meyering  <meyering@redhat.com>
20968
20969         maint.mk: don't include dist-check.mk
20970         * top/maint.mk: Remove bogus include directive.
20971
20972         maint.mk: improve empty-line-at-EOF check
20973         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
20974         solution, rather than tail+Perl-based one.  The latter would read
20975         a few kilobytes from the end of each file, and did not handle empty
20976         files properly.
20977
20978         maint.mk: print the elapsed time for each syntax-check rule
20979         * top/maint.mk (sc_m_rules_): Save start time in a file.
20980         (sc_z_rules_): New rules: remove temp file and print elapsed time.
20981         (local-check): Interpose the .z rules
20982
20983 2010-04-11  Jim Meyering  <meyering@redhat.com>
20984
20985         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
20986         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
20987         empty file with one that ends in an empty line.
20988
20989 2010-04-10  Bruno Haible  <bruno@clisp.org>
20990
20991         mkdir: Make it work on mingw64.
20992         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
20993         * lib/mkdir.c: Update comment.
20994         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
20995
20996 2010-04-10  Bruno Haible  <bruno@clisp.org>
20997
20998         Don't override improved macro from newer autoconf.
20999         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
21000         autoconf >= 2.62.
21001         Reported by Joel E. Denny <jdenny@clemson.edu>.
21002
21003 2010-04-10  Jim Meyering  <meyering@redhat.com>
21004
21005         maint.mk: new syntax-check rule: prohibit empty lines at end of file
21006         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
21007
21008         maint.mk: correct a diagnostic
21009         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
21010         in diagnostic; now use $prohibit.
21011
21012 2010-04-10  Bruno Haible  <address@hidden>
21013
21014         fchownat: Fix a C++ test error on Solaris 8.
21015         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
21016         the function does not exist.
21017
21018 2010-04-10  Bruno Haible  <bruno@clisp.org>
21019
21020         vasnprintf: Add more tests.
21021         * tests/test-vasnprintf-posix.c: Include <errno.h>.
21022         (test_function): Test converting an invalid wide string.
21023
21024         vasnprintf: Correct handling of unconvertible wide string arguments.
21025         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
21026         VASNPRINTF.
21027         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
21028         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
21029         smaller than the expected maximum need for the directive. Set errno to
21030         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
21031         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
21032         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
21033         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
21034         * modules/vasnprintf (Files): Add m4/printf.m4.
21035         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21036
21037 2010-04-10  Bruno Haible  <bruno@clisp.org>
21038
21039         vasnprintf: Fix crash in %ls directive.
21040         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
21041         string is passed as argument to %ls, with no precision and no width.
21042         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21043
21044 2010-04-10  Bruno Haible  <bruno@clisp.org>
21045
21046         vasnprintf: Fix multiple test failures on mingw.
21047         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
21048         _snprintf, or snwprintf, not _snwprintf.
21049
21050 2010-04-10  Bruno Haible  <bruno@clisp.org>
21051
21052         write: Fix a C++ test error on mingw.
21053         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
21054
21055 2010-04-10  Bruno Haible  <bruno@clisp.org>
21056
21057         vasnprintf test: Reduce code duplication.
21058         * tests/test-vasnprintf.c (test_function): New function, extracted from
21059         test_vasnprintf.
21060         (test_vasnprintf, test_asnprintf): Invoke it.
21061
21062 2010-04-10  Bruno Haible  <bruno@clisp.org>
21063
21064         strnlen: Fix warning in C++ mode on MacOS X.
21065         * lib/string.in.h (strnlen): Use the modern idiom.
21066         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
21067         defining strnlen as a macro already in <config.h>.
21068         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21069         REPLACE_STRNLEN.
21070         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
21071         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21072
21073 2010-04-08  James Youngman  <jay@gnu.org>
21074
21075         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
21076         the example.
21077
21078 2010-04-09  Jim Meyering  <meyering@redhat.com>
21079
21080         maint.mk: print better diagnostic when there is no $(_hv_file)
21081         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
21082         announce that when $(_hv_file) (aka help-version) does not exist.
21083
21084         init.sh: run tr in the "C" locale to avoid multibyte interpretation
21085         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
21086         not try to interpret its random input bytes.  Jarno Rajahalme reported
21087         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
21088         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
21089         (mktempd_): Likewise, just in case.
21090
21091         ftruncate: add two years to projected module removal date: 2012
21092         * m4/ftruncate.m4: Adjust comments.
21093
21094         ftruncate: mark module as obsolete; even MinGW provides it, now
21095         * modules/ftruncate (Status): Obsolete.
21096         (Notice): Say that.
21097         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
21098         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
21099
21100 2010-04-08  Bruno Haible  <bruno@clisp.org>
21101
21102         Fix side effects from tests-related modules.
21103         * modules/dprintf-posix (Comment): New section.
21104         * modules/fprintf-posix (Comment): Likewise.
21105         * modules/obstack-printf-posix (Comment): Likewise.
21106         * modules/printf-posix (Comment): Likewise.
21107         * modules/snprintf-posix (Comment): Likewise.
21108         * modules/sprintf-posix (Comment): Likewise.
21109         * modules/vasnprintf-posix (Comment): Likewise.
21110         * modules/vasprintf-posix (Comment): Likewise.
21111         * modules/vdprintf-posix (Comment): Likewise.
21112         * modules/vfprintf-posix (Comment): Likewise.
21113         * modules/vprintf-posix (Comment): Likewise.
21114         * modules/vsnprintf-posix (Comment): Likewise.
21115         * modules/vsprintf-posix (Comment): Likewise.
21116         * modules/xprintf-posix (Comment): Likewise.
21117         * modules/xvasprintf-posix (Comment): Likewise.
21118         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
21119         * modules/floorf-tests (Depends-on): Likewise.
21120         * modules/round-tests (Depends-on): Likewise.
21121         * modules/roundf-tests (Depends-on): Likewise.
21122         * modules/trunc-tests (Depends-on): Likewise.
21123         * modules/truncf-tests (Depends-on): Likewise.
21124         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
21125         'fprintf-posix' module is not present.
21126         * tests/test-floorf2.c (check): Likewise.
21127         * tests/test-trunc2.c (check): Likewise.
21128         * tests/test-truncf2.c (check): Likewise.
21129         * tests/test-round2.c (equal): Likewise.
21130         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21131
21132 2010-04-07  Karl Berry  <karl@gnu.org>
21133
21134         * config/srclist.txt,
21135         * config/srclistvars.sh,
21136         * config/srclist-update: doc fixes.
21137
21138 2010-04-07  Jim Meyering  <meyering@redhat.com>
21139
21140         maint.mk: add a PATH crosschecking syntax-check rule
21141         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
21142         Useful if you use a test like the one in help-version (coreutils,
21143         diffutils, grep, gzip) that ensures $(VERSION) matches what is
21144         printed by prog --version.
21145
21146 2010-04-06  Bruno Haible  <bruno@clisp.org>
21147
21148         Fix link error on mingw.
21149         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
21150         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
21151
21152 2010-04-06  Bruno Haible  <bruno@clisp.org>
21153
21154         Assume rmdir exists.
21155         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
21156
21157 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
21158
21159         doc: update users.txt
21160         * users.txt: Add gcal.
21161
21162 2010-04-06  Jim Meyering  <meyering@redhat.com>
21163
21164         init.sh: simply unset TMPDIR rather than risking env -i
21165         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
21166         although it probably works fine on all Unix-based systems, some
21167         systems (Cygwin?) cannot tolerate a totally cleared environment.
21168         Suggestion from Eric Blake.
21169
21170 2010-04-06  Jim Meyering  <meyering@redhat.com>
21171
21172         init.sh: portability fix: use env's POSIX-specified -i option not -u
21173         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
21174         than unportable env -u.  Solaris 5.11's env lacks support for -u.
21175
21176 2010-04-05  Bruno Haible  <bruno@clisp.org>
21177
21178         btowc: Work around Cygwin 1.7.2 bug.
21179         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
21180         does not map NUL to 0.
21181         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
21182
21183 2010-04-05  Bruno Haible  <bruno@clisp.org>
21184
21185         Make the multithread modules work on Cygwin 1.7.2.
21186         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
21187         imported symbols can be declared weak, so that it returns "no" on
21188         Cygwin 1.7.2.
21189
21190 2010-04-05  Bruno Haible  <bruno@clisp.org>
21191
21192         Use the module 'strncat'.
21193         * modules/unistr/u8-strncat (Depends-on): Add strncat.
21194
21195         Tests for module 'strncat'.
21196         * modules/strncat-tests: New file.
21197         * tests/test-strncat.c: New file.
21198
21199         New module 'strncat'.
21200         * lib/string.in.h (strncat): New declaration.
21201         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
21202         * m4/strncat.m4: New file, based on m4/memchr.m4.
21203         * modules/strncat: New file.
21204         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
21205         is declared.
21206         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
21207         REPLACE_STRNCAT.
21208         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
21209         REPLACE_STRNCAT.
21210         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
21211         module.
21212         * tests/test-string-c++.cc: Check signature of strncat.
21213
21214 2010-04-05  Jim Meyering  <meyering@redhat.com>
21215
21216         xstrtoumax-tests: convert to use init.sh
21217         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
21218         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21219         Use Exit, not exit.
21220         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21221
21222         xstrtoimax-tests: convert to use init.sh
21223         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
21224         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21225         Use Exit, not exit.
21226         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21227
21228 2010-04-05  Bruno Haible  <bruno@clisp.org>
21229
21230         sys_socket: Avoid #define replacements in C++ mode.
21231         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
21232         warning to the function if possible, rather than #defining the symbol
21233         to a dysfunctional alias.
21234
21235 2010-04-05  Bruno Haible  <bruno@clisp.org>
21236
21237         fseeko: Fix C++ test error on mingw.
21238         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
21239         gl_FUNC_FSEEKO.
21240         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
21241         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
21242         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
21243         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
21244
21245 2010-04-05  Bruno Haible  <bruno@clisp.org>
21246
21247         duplocale: Improve test output.
21248         * tests/test-duplocale.c (main): Print reason for skipped test.
21249
21250 2010-04-05  Bruno Haible  <bruno@clisp.org>
21251
21252         Assume rmdir exists.
21253         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
21254         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
21255
21256 2010-04-05  Bruno Haible  <bruno@clisp.org>
21257
21258         Fix link error on Solaris 8 with cc.
21259         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
21260
21261 2010-04-05  Bruno Haible  <bruno@clisp.org>
21262
21263         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21264         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
21265
21266 2010-04-05  Bruno Haible  <bruno@clisp.org>
21267
21268         vasprintf: Update documentation.
21269         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
21270
21271 2010-04-05  Bruno Haible  <bruno@clisp.org>
21272
21273         ptsname: Improve test.
21274         * tests/test-ptsname.c (main): Also try the various master names of BSD
21275         systems.
21276
21277 2010-04-05  Bruno Haible  <bruno@clisp.org>
21278
21279         memchr: Avoid a possible C++ test error.
21280         * lib/string.in.h (memchr): Provide declaration if function is missing.
21281         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
21282         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
21283         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
21284         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
21285
21286 2010-04-05  Bruno Haible  <bruno@clisp.org>
21287
21288         strtok_r: Improve idiom.
21289         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
21290         AC_LIBOBJ is used.
21291
21292 2010-04-05  Bruno Haible  <bruno@clisp.org>
21293
21294         strdup: Improve idiom.
21295         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
21296         AC_LIBOBJ is used.
21297         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
21298         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
21299         when AC_LIBOBJ is used.
21300
21301 2010-04-05  Bruno Haible  <bruno@clisp.org>
21302
21303         mbsinit, mbrtowc, wcrtomb: Improve idioms.
21304         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
21305         don't set REPLACE_MBSINIT to 1.
21306         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
21307         don't set REPLACE_MBRTOWC to 1.
21308         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
21309         exist, don't set REPLACE_MBSRTOWCS to 1.
21310         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
21311         exist, don't set REPLACE_MBSNRTOWCS to 1.
21312         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
21313         don't set REPLACE_WCRTOMB to 1.
21314         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
21315         exist, don't set REPLACE_WCSRTOMBS to 1.
21316         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
21317         exist, don't set REPLACE_WCSNRTOMBS to 1.
21318
21319 2010-04-05  Bruno Haible  <bruno@clisp.org>
21320
21321         ldexpl: Improve idiom.
21322         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
21323         make sure to set HAVE_DECL_LDEXPL to 0.
21324
21325 2010-04-05  Jim Meyering  <meyering@redhat.com>
21326
21327         xstrtol-tests: convert to use init.sh
21328         * modules/xstrtol-tests (Files): Add tests/init.sh.
21329         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21330         Use Exit, not exit.
21331         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21332
21333         atexit-tests: convert to use init.sh
21334         * modules/atexit-tests (Files): Add tests/init.sh.
21335         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21336         Use Exit, not exit.
21337         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21338
21339         init.sh: fix typo
21340         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
21341
21342         init.sh: make it easier for a test script to write to the tty, ...
21343         when using automake's parallel-tests mode.
21344         * tests/init.sh (stderr_fileno_): Define overridable variable.
21345         (warn_): New function, to use it.
21346         (fail_, skip_, framework_failure_): Use warn_.
21347
21348 2010-04-04  Bruno Haible  <bruno@clisp.org>
21349
21350         btowc: Avoid warning.
21351         * lib/btowc.c: Include <stdlib.h>.
21352         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
21353
21354 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21355             Bruno Haible  <bruno@clisp.org>
21356
21357         wchar: Port to NetBSD 1.5.
21358         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
21359         * lib/wctype.in.h (WEOF): Likewise.
21360
21361 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21362             Bruno Haible  <bruno@clisp.org>
21363
21364         Port extended stdio to NetBSD 1.5.
21365         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
21366         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
21367         older.
21368
21369 2010-04-04  Bruno Haible  <bruno@clisp.org>
21370
21371         string: Remove unused substitution.
21372         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
21373         HAVE_DECL_STRERROR.
21374         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
21375
21376 2010-04-04  Bruno Haible  <bruno@clisp.org>
21377
21378         strtod: Avoid a possible C++ test error.
21379         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
21380         set REPLACE_STRTOD.
21381
21382 2010-04-04  Bruno Haible  <bruno@clisp.org>
21383
21384         strerror: Update documentation.
21385         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
21386
21387 2010-04-04  Bruno Haible  <bruno@clisp.org>
21388
21389         stdio: Fix some C++ test errors on Solaris 8 with GCC.
21390         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
21391         _GL_CXXALIAS_SYS_CAST.
21392
21393 2010-04-04  Bruno Haible  <bruno@clisp.org>
21394
21395         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21396         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
21397         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
21398         REPLACE_FREXPL to 1.
21399         * doc/posix-functions/frexpl.texi: Update documentation.
21400
21401 2010-04-04  Bruno Haible  <bruno@clisp.org>
21402
21403         math: Fix some C++ test errors on Solaris 8 and Cygwin.
21404         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
21405
21406 2010-04-04  Bruno Haible  <bruno@clisp.org>
21407
21408         Implement nanosleep for native Windows.
21409         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
21410
21411 2010-04-04  Bruno Haible  <bruno@clisp.org>
21412
21413         math: Fix some C++ test errors on Solaris 8.
21414         * lib/math.in.h (truncf, trunc): Use simpler idiom.
21415
21416 2010-04-04  Bruno Haible  <bruno@clisp.org>
21417
21418         math: Fix some C++ test errors on Cygwin.
21419         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
21420         truncl): Provide declaration if the system does not have it.
21421         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
21422         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
21423         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
21424         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
21425         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
21426         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
21427         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
21428         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
21429         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
21430         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
21431         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
21432         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
21433         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
21434         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
21435         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
21436         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
21437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
21438         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21439         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21440         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
21441         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21442         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21443
21444 2010-04-04  Bruno Haible  <bruno@clisp.org>
21445
21446         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
21447         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
21448         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
21449         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
21450         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
21451         * m4/isinf.m4 (gl_ISINF): Likewise.
21452         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21453
21454 2010-04-04  Bruno Haible  <bruno@clisp.org>
21455
21456         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
21457         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21458
21459 2010-04-04  Bruno Haible  <bruno@clisp.org>
21460
21461         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
21462         * modules/tmpfile (configure.ac): Update.
21463
21464         tmpfile: Fix C++ test error on mingw.
21465         * lib/stdio.in.h (tmpfile): New declaration.
21466         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
21467         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
21468         * modules/tmpfile (Depends-on): Add stdio.
21469         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
21470         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
21471         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
21472         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
21473         REPLACE_TMPFILE.
21474         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
21475
21476 2010-04-04  Bruno Haible  <bruno@clisp.org>
21477
21478         ioctl: Fix C++ test error on mingw.
21479         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
21480         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
21481         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
21482
21483 2010-04-03  Bruno Haible  <bruno@clisp.org>
21484
21485         wcwidth: Fix C++ test error on mingw.
21486         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
21487         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
21488         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
21489
21490 2010-04-03  Bruno Haible  <bruno@clisp.org>
21491
21492         nanosleep: Fix C++ test error on mingw.
21493         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
21494         * lib/time.in.h (nanosleep): Use modern idiom.
21495         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
21496         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
21497         REPLACE_NANOSLEEP to 1.
21498         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
21499         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
21500
21501 2010-04-03  Bruno Haible  <bruno@clisp.org>
21502
21503         strptime: Fix C++ test error on mingw.
21504         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
21505         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
21506         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
21507         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
21508         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
21509         not REPLACE_STRPTIME.
21510         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
21511         REPLACE_STRPTIME.
21512
21513 2010-04-03  Bruno Haible  <bruno@clisp.org>
21514
21515         timegm: Fix C++ test error on mingw.
21516         * lib/time.in.h (timegm): Use modern idiom.
21517         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
21518         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
21519         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
21520         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
21521
21522 2010-04-03  Bruno Haible  <bruno@clisp.org>
21523
21524         timegm: Assume declaration if function exists.
21525         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
21526         if it exists. Don't clobber ac_cv_func_timegm.
21527
21528 2010-04-03  Bruno Haible  <bruno@clisp.org>
21529
21530         time_r: Fix C++ test error on mingw.
21531         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
21532         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
21533         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
21534         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
21535         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
21536
21537 2010-04-03  Bruno Haible  <bruno@clisp.org>
21538
21539         time_r: Minor updates.
21540         * modules/time_r (Description): Mention the provided functions.
21541         * lib/time_r.c: Don't include <string.h>.
21542         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
21543         * doc/posix-functions/localtime_r.texi: Likewise.
21544
21545 2010-04-03  Bruno Haible  <bruno@clisp.org>
21546
21547         time: Fix regression introduced on 2010-03-08.
21548         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
21549         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
21550
21551 2010-04-03  Jim Meyering  <meyering@redhat.com>
21552
21553         maint.mk: don't silently disable project-specific syntax-check rules
21554         * top/maint.mk (_prohibit_regexp): Define, to help people realize
21555         that they need to convert their project-specific syntax-check rules
21556         to use the new _sc_search_regexp.
21557
21558 2010-04-03  Bruno Haible  <bruno@clisp.org>
21559
21560         fchdir: Fix regression introduced on 2010-03-08.
21561         * lib/unistd.in.h (fchdir): Fix declaration.
21562         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
21563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
21564         REPLACE_FCHDIR.
21565         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
21566         REPLACE_FCHDIR.
21567
21568 2010-04-03  Bruno Haible  <bruno@clisp.org>
21569
21570         getpagesize: Fix C++ test error on mingw.
21571         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
21572         system does not declare the function.
21573         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
21574         declared.
21575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21576         HAVE_DECL_GETPAGESIZE.
21577         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
21578
21579 2010-04-03  Bruno Haible  <bruno@clisp.org>
21580
21581         stdio: Make C++ tests work on mingw.
21582         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
21583         does not declare the function.
21584
21585 2010-04-03  Bruno Haible  <bruno@clisp.org>
21586
21587         ftello: Fix C++ test error on mingw.
21588         * lib/stdio.in.h (ftello): Use modern idiom.
21589         * lib/ftello.c (ftello): Renamed from rpl_ftello.
21590         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
21591         is missing and that it needs to be replaced.
21592         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
21593         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
21594         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
21595
21596 2010-04-03  Bruno Haible  <bruno@clisp.org>
21597
21598         fseeko: Fix C++ test error on mingw.
21599         * lib/stdio.in.h (fseeko): Use modern idiom.
21600         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
21601         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
21602         is missing and that it needs to be replaced.
21603         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
21604         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
21605         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
21606
21607 2010-04-03  Bruno Haible  <bruno@clisp.org>
21608
21609         mkstemp: Fix C++ test error on mingw.
21610         * lib/stdlib.in.h (mkstemp): Use modern idiom.
21611         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
21612         function is missing and that it needs to be replaced.
21613         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
21614         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
21615
21616 2010-04-03  Bruno Haible  <bruno@clisp.org>
21617
21618         stpncpy: Fix C++ test error on mingw.
21619         * lib/string.in.h (stpncpy): Use modern idiom.
21620         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
21621         function is missing and that it needs to be replaced.
21622         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21623         REPLACE_STPNCPY.
21624         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
21625
21626 2010-04-03  Bruno Haible  <bruno@clisp.org>
21627
21628         sys_stat: Fix C++ test error on mingw.
21629         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
21630         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
21631
21632 2010-04-03  Bruno Haible  <bruno@clisp.org>
21633
21634         pty: Update doc.
21635         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
21636
21637 2010-04-03  Bruno Haible  <bruno@clisp.org>
21638
21639         unistd: Fix C++ test error on mingw.
21640         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
21641
21642 2010-04-03  Bruno Haible  <bruno@clisp.org>
21643
21644         Update doc regarding mingw.
21645         * doc/glibc-functions/openpty.texi: Update regarding mingw.
21646         * doc/glibc-functions/login_tty.texi: Likewise.
21647         * doc/glibc-functions/forkpty.texi: Likewise.
21648
21649 2010-04-03  Bruno Haible  <bruno@clisp.org>
21650
21651         stdlib: Avoid compilation failure of c-strtold on mingw.
21652         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
21653
21654 2010-04-03  Bruno Haible  <bruno@clisp.org>
21655
21656         locale: Make C++ tests work on Cygwin and mingw.
21657         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
21658         cannot provide the function.
21659         Reported by Simon Josefsson.
21660
21661 2010-04-03  Bruno Haible  <bruno@clisp.org>
21662
21663         localename: Port to MacOS X 10.6.
21664         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
21665         memory layout of the locales in MacOS X 10.6 as well.
21666         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
21667
21668 2010-04-02  Bruno Haible  <bruno@clisp.org>
21669
21670         gnulib-tool: Ensure that long-running tests are executed last.
21671         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
21672         running tests after the one for the other tests.
21673
21674 2010-04-02  Bruno Haible  <bruno@clisp.org>
21675
21676         gnulib-tool: Ensure the tests in the main directory are executed first.
21677         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
21678         start with the current directory.
21679
21680 2010-04-02  Bruno Haible  <bruno@clisp.org>
21681
21682         Tests for module 'havelib', moved here from GNU gettext.
21683         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
21684         modifications.
21685         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
21686         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
21687         with modifications.
21688         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
21689         modifications.
21690         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
21691         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
21692         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
21693         with modifications.
21694         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
21695         with modifications.
21696         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
21697         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
21698         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
21699         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
21700         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
21701         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
21702         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
21703         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
21704         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
21705         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
21706         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
21707         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
21708         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
21709         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
21710         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
21711         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
21712         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
21713         with modifications.
21714         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
21715         with modifications.
21716         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
21717         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
21718         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
21719         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
21720         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
21721         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
21722         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
21723         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
21724         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
21725         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
21726         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
21727         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
21728         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
21729         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
21730         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
21731         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
21732         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
21733         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
21734         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
21735         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
21736         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
21737         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
21738         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
21739         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
21740         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
21741         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
21742         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
21743         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
21744         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
21745         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
21746         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
21747         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
21748         * tests/havelib/rpathx/rpathx.c: New file, from
21749         gettext/autoconf-lib-link.
21750         * tests/havelib/rpathx/Makefile.am: New file, from
21751         gettext/autoconf-lib-link.
21752         * tests/havelib/rpathx/configure.ac: New file, from
21753         gettext/autoconf-lib-link with modifications.
21754         * tests/havelib/rpathy/rpathy.c: New file, from
21755         gettext/autoconf-lib-link.
21756         * tests/havelib/rpathy/Makefile.am: New file, from
21757         gettext/autoconf-lib-link.
21758         * tests/havelib/rpathy/configure.ac: New file, from
21759         gettext/autoconf-lib-link with modifications.
21760         * tests/havelib/rpathz/rpathz.c: New file, from
21761         gettext/autoconf-lib-link.
21762         * tests/havelib/rpathz/Makefile.am: New file, from
21763         gettext/autoconf-lib-link.
21764         * tests/havelib/rpathz/configure.ac: New file, from
21765         gettext/autoconf-lib-link with modifications.
21766         * tests/havelib/rpathlx/usex.c: New file, from
21767         gettext/autoconf-lib-link.
21768         * tests/havelib/rpathlx/Makefile.am: New file, from
21769         gettext/autoconf-lib-link.
21770         * tests/havelib/rpathlx/configure.ac: New file, from
21771         gettext/autoconf-lib-link with modifications.
21772         * tests/havelib/rpathly/usey.c: New file, from
21773         gettext/autoconf-lib-link.
21774         * tests/havelib/rpathly/Makefile.am: New file, from
21775         gettext/autoconf-lib-link.
21776         * tests/havelib/rpathly/configure.ac: New file, from
21777         gettext/autoconf-lib-link with modifications.
21778         * tests/havelib/rpathlz/usez.c: New file, from
21779         gettext/autoconf-lib-link.
21780         * tests/havelib/rpathlz/Makefile.am: New file, from
21781         gettext/autoconf-lib-link.
21782         * tests/havelib/rpathlz/configure.ac: New file, from
21783         gettext/autoconf-lib-link with modifications.
21784         * tests/havelib/rpathlyx/usey.c: New file, from
21785         gettext/autoconf-lib-link.
21786         * tests/havelib/rpathlyx/Makefile.am: New file, from
21787         gettext/autoconf-lib-link.
21788         * tests/havelib/rpathlyx/configure.ac: New file, from
21789         gettext/autoconf-lib-link with modifications.
21790         * tests/havelib/rpathlzyx/usez.c: New file, from
21791         gettext/autoconf-lib-link.
21792         * tests/havelib/rpathlzyx/Makefile.am: New file, from
21793         gettext/autoconf-lib-link.
21794         * tests/havelib/rpathlzyx/configure.ac: New file, from
21795         gettext/autoconf-lib-link with modifications.
21796         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
21797         with modifications.
21798
21799 2010-04-02  Bruno Haible  <bruno@clisp.org>
21800
21801         gnulib-tool: Create distributed built sources also for the tests.
21802         * gnulib-tool (func_create_testdir): Also generate distributed built
21803         sources in the tests directory.
21804
21805 2010-04-02  Bruno Haible  <bruno@clisp.org>
21806
21807         gnulib-tool: Obey user's environment variables.
21808         * gnulib-tool (func_create_testdir): When creating built sources,
21809         respect the environment variables for autoconf, automake, etc. given by
21810         the user.
21811
21812 2010-04-02  Bruno Haible  <bruno@clisp.org>
21813
21814         gnulib-tool: Provide the value of --m4-base to modules.
21815         * gnulib-tool (func_import, func_create_testdir): Emit a definition
21816         of gl_m4_base.
21817
21818 2010-04-02  Eric Blake  <eblake@redhat.com>
21819
21820         maint.mk: fix some fallout
21821         * NEWS: Document the incompatible change, and its effect on cfg.mk.
21822         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
21823
21824 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21825
21826         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
21827         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
21828         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
21829         (sc_cast_of_x_alloc_return_value): Likewise.
21830         (sc_cast_of_alloca_return_value): Likewise.
21831         (sc_space_tab): Likewise.
21832         (sc_prohibit_atoi_atof): Likewise.
21833         (sc_prohibit_magic_number_exit): Likewise.
21834         (sc_error_exit_success): Likewise.
21835         (sc_file_system): Likewise.
21836         (sc_prohibit_have_config_h): Likewise.
21837         (sc_require_config_h): Likewise.
21838         (sc_prohibit_HAVE_MBRTOWC): Likewise.
21839         (sc_obsolete_symbols): Likewise.
21840         (sc_changelog): Likewise.
21841         (sc_program_name): Likewise.
21842         (sc_the_the): Likewise.
21843         (sc_trailing_blank): Likewise.
21844         (sc_two_space_separator_in_usage): Likewise.
21845         (sc_useless_cpp_parens): Likewise.
21846         (sc_GPL_version): Likewise.
21847         (sc_GFDL_version): Likewise.
21848         (sc_texinfo_acronym): Likewise.
21849         (sc_prohibit_cvs_keyword): Likewise.
21850         (sc_prohibit_stat_st_blocks): Likewise.
21851         (sc_prohibit_S_IS_definition): Likewise.
21852         (sc_redundant_const): Likewise.
21853         (sc_makefile_TAB_only_indentation): Likewise.
21854         (sc_m4_quote_check): Likewise.
21855         (sc_makefile_path_separator_check): Likewise.
21856         (sc_copyright_check): Likewise.
21857         (sc_Wundef_boolean): Likewise.
21858         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21859
21860         maint.mk: match 0 or more whitespace-before-function-call '('
21861         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
21862         that have zero or two-and-more spaces between the function name
21863         and the open parenthesis.
21864         (sc_error_message_warn_fatal): Likewise.
21865         (sc_error_message_uppercase): Likewise.
21866         (sc_error_message_period): Likewise.
21867
21868 2010-03-31  Eric Blake  <eblake@redhat.com>
21869
21870         maint.mk: check for [ as well as test
21871         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
21872         Based on a libvirt report by Matthias Bolte.
21873
21874         gnumakefile: don't squelch _version output
21875         * top/GNUmakefile (_version): Create one-shot dependency rather
21876         than using $(shell) when version must be regenerated.
21877         (_autoreconf): Run verbosely, by default.
21878
21879         sys_time: avoid compiler warnings
21880         * lib/sys_time.in.h (includes): Ensure gcc pragma is
21881         unconditional, fixing regression from 2010-03-29.
21882         Reported by Simon Josefsson.
21883
21884 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21885
21886         maint.mk: s/_header_without_use/_sc_header_without_use/
21887         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
21888         (sc_prohibit_assert_without_use): Use the new name.
21889         (sc_prohibit_close_stream_without_use): Likewise.
21890         (sc_prohibit_getopt_without_use): Likewise.
21891         (sc_prohibit_quotearg_without_use): Likewise.
21892         (sc_prohibit_quote_without_use): Likewise.
21893         (sc_prohibit_long_options_without_use): Likewise.
21894         (sc_prohibit_inttostr_without_use): Likewise.
21895         (sc_prohibit_ignore_value_without_use): Likewise.
21896         (sc_prohibit_error_without_use): Likewise.
21897         (sc_prohibit_xalloc_without_use): Likewise.
21898         (sc_prohibit_hash_without_use): Likewise.
21899         (sc_prohibit_hash_pjw_without_use): Likewise.
21900         (sc_prohibit_safe_read_without_use): Likewise.
21901         (sc_prohibit_argmatch_without_use): Likewise.
21902         (sc_prohibit_canonicalize_without_use): Likewise.
21903         (sc_prohibit_root_dev_ino_without_use): Likewise.
21904         (sc_prohibit_openat_without_use): Likewise.
21905         (sc_prohibit_c_ctype_without_use): Likewise.
21906         (sc_prohibit_signal_without_use): Likewise.
21907         (sc_prohibit_intprops_without_use): Likewise.
21908
21909 2010-03-30  Eric Blake  <eblake@redhat.com>
21910
21911         maint: improve module indicators
21912         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
21913         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
21914         columns, and avoid extra macro expansion.
21915
21916         fdopendir: work around FreeBSD bug
21917         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21918         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
21919         * modules/dirent (Makefile.am): Substitute it.
21920         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
21921         declaration.
21922         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
21923         fix.
21924         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21925
21926 2010-03-29  Bruno Haible  <bruno@clisp.org>
21927
21928         Emit #pragma system_header after the inclusion guard, not before.
21929         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
21930         guard that spans the entire file, not before. This enables an
21931         optimization in GCC's preprocessor.
21932         * lib/ctype.in.h: Likewise.
21933         * lib/dirent.in.h: Likewise.
21934         * lib/errno.in.h: Likewise.
21935         * lib/float.in.h: Likewise.
21936         * lib/getopt.in.h: Likewise.
21937         * lib/iconv.in.h: Likewise.
21938         * lib/langinfo.in.h: Likewise.
21939         * lib/locale.in.h: Likewise.
21940         * lib/math.in.h: Likewise.
21941         * lib/netdb.in.h: Likewise.
21942         * lib/netinet_in.in.h: Likewise.
21943         * lib/pty.in.h: Likewise.
21944         * lib/sched.in.h: Likewise.
21945         * lib/se-selinux.in.h: Likewise.
21946         * lib/search.in.h: Likewise.
21947         * lib/spawn.in.h: Likewise.
21948         * lib/stdarg.in.h: Likewise.
21949         * lib/stdint.in.h: Likewise.
21950         * lib/string.in.h: Likewise.
21951         * lib/strings.in.h: Likewise.
21952         * lib/sys_file.in.h: Likewise.
21953         * lib/sys_ioctl.in.h: Likewise.
21954         * lib/sys_time.in.h: Likewise.
21955         * lib/sys_times.in.h: Likewise.
21956         * lib/sys_utsname.in.h: Likewise.
21957         * lib/sys_wait.in.h: Likewise.
21958         * lib/sysexits.in.h: Likewise.
21959         * lib/wctype.in.h: Likewise.
21960
21961 2010-03-28  James Youngman  <jay@gnu.org>
21962
21963         save-cwd: don't leak a file descriptor when the caller execs.
21964         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
21965         saved file descriptor.
21966         * modules/save-cwd (Depends-on): Depend on cloexec.
21967
21968 2010-03-29  Bruno Haible  <bruno@clisp.org>
21969
21970         Remove vestiges of fts-lgpl module.
21971         * lib/fts_.h: Assume GNULIB_FTS is 1.
21972         * lib/fts.c: Likewise.
21973         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21974
21975 2010-03-28  Bruno Haible  <bruno@clisp.org>
21976
21977         Fix definition of tests witness macro.
21978         * gnulib-tool (func_import): Fix definition of witness macro.
21979
21980 2010-03-28  Bruno Haible  <bruno@clisp.org>
21981
21982         Fix ioctl's protoype on glibc systems.
21983         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
21984         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
21985         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
21986         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
21987         signature. If not, arrange to replace the ioctl function.
21988         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21989         REPLACE_IOCTL.
21990         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
21991         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
21992         Reported by Ludovic Courtès <ludo@gnu.org>.
21993
21994 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
21995
21996         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
21997         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
21998         made it so grep -r --include=GLOB* ... did not work.
21999
22000 2010-03-26  Jim Meyering  <meyering@redhat.com>
22001             Eric Blake  <eblake@redhat.com>
22002
22003         maint.mk: prohibit use of test's -o and -a operators
22004         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
22005
22006 2010-03-28  Bruno Haible  <bruno@clisp.org>
22007
22008         Remove unused GNULIB_XYZ macro definitions.
22009         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
22010         invocation.
22011
22012 2010-03-28  Bruno Haible  <bruno@clisp.org>
22013
22014         Mark privileged tests modules.
22015         * modules/idpriv-drop-tests (Status): New section.
22016         * modules/idpriv-droptemp-tests (Status): New section.
22017
22018 2010-03-28  Bruno Haible  <bruno@clisp.org>
22019
22020         Split C++ tests into separate tests modules.
22021         * modules/dirent-c++-tests: New file, extracted from
22022         modules/dirent-tests.
22023         * modules/dirent-tests: Depend on it.
22024         * modules/fcntl-h-c++-tests: New file, extracted from
22025         modules/fcntl-h-tests.
22026         * modules/fcntl-h-tests: Depend on it.
22027         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
22028         * modules/glob-tests: Depend on it.
22029         * modules/iconv-h-c++-tests: New file, extracted from
22030         modules/iconv-h-tests.
22031         * modules/iconv-h-tests: Depend on it.
22032         * modules/langinfo-c++-tests: New file, extracted from
22033         modules/langinfo-tests.
22034         * modules/langinfo-tests: Depend on it.
22035         * modules/locale-c++-tests: New file, extracted from
22036         modules/locale-tests.
22037         * modules/locale-tests: Depend on it.
22038         * modules/math-c++-tests: New file, extracted from modules/math-tests.
22039         * modules/math-tests: Depend on it.
22040         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
22041         * modules/pty-tests: Depend on it.
22042         * modules/search-c++-tests: New file, extracted from
22043         modules/search-tests.
22044         * modules/search-tests: Depend on it.
22045         * modules/signal-c++-tests: New file, extracted from
22046         modules/signal-tests.
22047         * modules/signal-tests: Depend on it.
22048         * modules/spawn-c++-tests: New file, extracted from
22049         modules/spawn-tests.
22050         * modules/spawn-tests: Depend on it.
22051         * modules/stdio-c++-tests: New file, extracted from
22052         modules/stdio-tests.
22053         * modules/stdio-tests: Depend on it.
22054         * modules/stdlib-c++-tests: New file, extracted from
22055         modules/stdlib-tests.
22056         * modules/stdlib-tests: Depend on it.
22057         * modules/string-c++-tests: New file, extracted from
22058         modules/string-tests.
22059         * modules/string-tests: Depend on it.
22060         * modules/sys_ioctl-c++-tests: New file, extracted from
22061         modules/sys_ioctl-tests.
22062         * modules/sys_ioctl-tests: Depend on it.
22063         * modules/sys_select-c++-tests: New file, extracted from
22064         modules/sys_select-tests.
22065         * modules/sys_select-tests: Depend on it.
22066         * modules/sys_socket-c++-tests: New file, extracted from
22067         modules/sys_socket-tests.
22068         * modules/sys_socket-tests: Depend on it.
22069         * modules/sys_stat-c++-tests: New file, extracted from
22070         modules/sys_stat-tests.
22071         * modules/sys_stat-tests: Depend on it.
22072         * modules/sys_time-c++-tests: New file, extracted from
22073         modules/sys_time-tests.
22074         * modules/sys_time-tests: Depend on it.
22075         * modules/time-c++-tests: New file, extracted from modules/time-tests.
22076         * modules/time-tests: Depend on it.
22077         * modules/unistd-c++-tests: New file, extracted from
22078         modules/unistd-tests.
22079         * modules/unistd-tests: Depend on it.
22080         * modules/wchar-c++-tests: New file, extracted from
22081         modules/wchar-tests.
22082         * modules/wchar-tests: Depend on it.
22083         * modules/wctype-c++-tests: New file, extracted from
22084         modules/wctype-tests.
22085         * modules/wctype-tests: Depend on it.
22086         Reported by Simon Josefsson.
22087
22088 2010-03-28  Bruno Haible  <bruno@clisp.org>
22089
22090         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
22091         * gnulib-tool (func_exists_module): New function, extracted from
22092         func_verify_module.
22093         (func_verify_module): Use it.
22094         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
22095         'foo' only if 'foo' exists.
22096         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
22097         module.
22098
22099 2010-03-28  Bruno Haible  <bruno@clisp.org>
22100
22101         gnulib-tool: Add support for special categories of tests.
22102         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
22103         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
22104         (func_usage): Document them.
22105         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
22106         inc_unportable_tests, inc_all_tests): New variables.
22107         (func_acceptable): Consider these variables.
22108         (func_modules_transitive_closure): Make it work when the 'Status' field
22109         consists of multiple words.
22110         (func_import): Store and restore the values of inc_cxx_tests,
22111         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
22112         inc_all_tests in gnulib-comp.m4.
22113         (func_create_testdir): Set inc_all_tests to true.
22114         * doc/gnulib.texi (Extra tests modules): New section.
22115         Suggested by Jim Meyering.
22116
22117 2010-03-28  Bruno Haible  <bruno@clisp.org>
22118
22119         ansi-c++-opt: Allow turning off the C++ build by default.
22120         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
22121         gl_CXX_CHOICE_DEFAULT_NO is defined.
22122         Requested by Eric Blake.
22123
22124 2010-03-28  Bruno Haible  <bruno@clisp.org>
22125
22126         unistd: Avoid #define replacements in C++ mode.
22127         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
22128         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
22129         setsockopt, shutdown, select): In C++, attach a warning to the function
22130         if possible, rather than #defining the symbol to a dysfunctional alias.
22131         Reported by John W. Eaton <jwe@gnu.org>.
22132
22133 2010-03-28  Bruno Haible  <bruno@clisp.org>
22134
22135         Fix link errors on mingw.
22136         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
22137         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
22138         $(LIBSOCKET).
22139         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
22140         $(LIBSOCKET).
22141
22142 2010-03-28  Bruno Haible  <bruno@clisp.org>
22143             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22144
22145         lib-ignore: Determine different options for different compilers.
22146         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
22147         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
22148         Add comments.
22149         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
22150         * NEWS: Mention the change.
22151
22152 2010-03-27  Bruno Haible  <bruno@clisp.org>
22153
22154         Remove unused GNULIB_XYZ macro definitions.
22155         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
22156         * modules/fseek (configure.ac): Likewise.
22157         * modules/ioctl (configure.ac): Likewise.
22158         * modules/open (configure.ac): Likewise.
22159         * modules/stdlib-safer (configure.ac): Likewise.
22160
22161 2010-03-27  Bruno Haible  <bruno@clisp.org>
22162
22163         Add a remark about certain modules.
22164         * modules/malloc (Comment): New section.
22165         * modules/realloc (Comment): Likewise.
22166         * modules/sigpipe (Comment): Likewise.
22167
22168 2010-03-27  Bruno Haible  <bruno@clisp.org>
22169
22170         Resolve conflict between the two kinds of module indicators.
22171         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
22172         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
22173         * modules/canonicalize (configure.ac): Invoke
22174         gl_MODULE_INDICATOR_FOR_TESTS.
22175         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
22176         GNULIB_XYZ.
22177         * tests/test-dirent-c++.cc: Likewise.
22178         * tests/test-dirent-safer.c: Likewise.
22179         * tests/test-dup2.c: Likewise.
22180         * tests/test-fchdir.c: Likewise.
22181         * tests/test-fcntl-h-c++.cc: Likewise.
22182         * tests/test-getopt.c: Likewise.
22183         * tests/test-getopt.h: Likewise.
22184         * tests/test-langinfo-c++.cc: Likewise.
22185         * tests/test-locale-c++.cc: Likewise.
22186         * tests/test-math-c++.cc: Likewise.
22187         * tests/test-pty-c++.cc: Likewise.
22188         * tests/test-search-c++.cc: Likewise.
22189         * tests/test-signal-c++.cc: Likewise.
22190         * tests/test-spawn-c++.cc: Likewise.
22191         * tests/test-stdio-c++.cc: Likewise.
22192         * tests/test-stdlib-c++.cc: Likewise.
22193         * tests/test-string-c++.cc: Likewise.
22194         * tests/test-sys_ioctl-c++.cc: Likewise.
22195         * tests/test-sys_select-c++.cc: Likewise.
22196         * tests/test-sys_socket-c++.cc: Likewise.
22197         * tests/test-sys_stat-c++.cc: Likewise.
22198         * tests/test-sys_time-c++.cc: Likewise.
22199         * tests/test-time-c++.cc: Likewise.
22200         * tests/test-unistd-c++.cc: Likewise.
22201         * tests/test-wchar-c++.cc: Likewise.
22202         * tests/uninorm/test-u8-nfc.c: Likewise.
22203         * tests/uninorm/test-u8-nfd.c: Likewise.
22204         * tests/uninorm/test-u8-nfkc.c: Likewise.
22205         * tests/uninorm/test-u8-nfkd.c: Likewise.
22206         * tests/uninorm/test-u16-nfc.c: Likewise.
22207         * tests/uninorm/test-u16-nfd.c: Likewise.
22208         * tests/uninorm/test-u16-nfkc.c: Likewise.
22209         * tests/uninorm/test-u16-nfkd.c: Likewise.
22210         * tests/uninorm/test-u32-nfc.c: Likewise.
22211         * tests/uninorm/test-u32-nfc-big.c: Likewise.
22212         * tests/uninorm/test-u32-nfd.c: Likewise.
22213         * tests/uninorm/test-u32-nfd-big.c: Likewise.
22214         * tests/uninorm/test-u32-nfkc.c: Likewise.
22215         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
22216         * tests/uninorm/test-u32-nfkd.c: Likewise.
22217         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
22218         * tests/uninorm/test-u32-normalize-big.c: Likewise.
22219
22220 2010-03-27  Bruno Haible  <bruno@clisp.org>
22221
22222         Distinguish two kinds of module indicators.
22223         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
22224         gl_MODULE_INDICATOR.
22225         (gl_MODULE_INDICATOR): New macro.
22226         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22227         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
22228         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22229         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22230         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22231         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22232         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22233         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22234         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22235         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22236         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22237         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22238         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22239         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22240         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22241         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22242         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22243         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22244         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22245         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22246         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22247         * modules/cloexec (configure.ac): Likewise.
22248         * modules/getopt-gnu (configure.ac): Likewise.
22249         * modules/uninorm/u8-normalize (configure.ac): Likewise.
22250         * modules/uninorm/u16-normalize (configure.ac): Likewise.
22251         * modules/uninorm/u32-normalize (configure.ac): Likewise.
22252         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
22253
22254 2010-03-27  Bruno Haible  <bruno@clisp.org>
22255
22256         New module description field 'Comment'.
22257         * gnulib-tool: New option --extract-comment.
22258         (func_usage): Document it.
22259         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
22260         (func_get_comment): New function.
22261         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
22262
22263 2010-03-27  Bruno Haible  <bruno@clisp.org>
22264
22265         Addendum to 2010-02-07 commit.
22266         * gnulib-tool (func_usage): Document --extract-applicability option.
22267
22268 2010-03-27  Bruno Haible  <bruno@clisp.org>
22269
22270         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
22271         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
22272         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
22273         rather than link errors.
22274
22275 2010-03-27  Bruno Haible  <bruno@clisp.org>
22276
22277         Avoid side effects from tests-related modules on the compilation of lib.
22278         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
22279         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
22280         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
22281         parameter. Emit into AM_CPPFLAGS a definition of the designated C
22282         macro.
22283         (func_import): Define a witness macro. Assign it a value that depends
22284         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
22285         tests-related modules.
22286         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
22287         Reported by Jim Meyering.
22288
22289 2010-03-27  Bruno Haible  <bruno@clisp.org>
22290
22291         Factorize common .m4 code.
22292         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
22293         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
22294         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
22295         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
22296         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22297         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
22298         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
22299         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22300         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22301         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22302         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
22303         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22304         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22305         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22306         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22307         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
22308         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22309         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22310         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22311         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
22312         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
22313         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22314         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22315         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22316         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22317         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22318         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
22319         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
22320         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
22321         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22322         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22323         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22324
22325 2010-03-27  Bruno Haible  <bruno@clisp.org>
22326
22327         Fix a compilation error on Cygwin with g++ >= 4.3.
22328         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
22329         if it is undefined or if we alias it to chmod.
22330         (lstat): Don't warn about the use of this function if it is undefined
22331         or if we alias it to stat.
22332         Reported by Simon Josefsson.
22333
22334 2010-03-27  Bruno Haible  <bruno@clisp.org>
22335
22336         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
22337         * modules/getlogin (configure.ac): Update.
22338
22339         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
22340         * modules/getlogin_r (configure.ac): Update.
22341
22342         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
22343         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
22344         * modules/inet_ntop (configure.ac): Update.
22345
22346         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
22347         * modules/inet_pton (configure.ac): Update.
22348
22349         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
22350         * modules/mbslen (configure.ac): Update.
22351
22352         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
22353         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
22354         * modules/forkpty (configure.ac): Update.
22355         * modules/openpty (configure.ac): Update.
22356
22357 2010-03-26  Simon Josefsson  <simon@josefsson.org>
22358
22359         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
22360         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
22361
22362 2010-03-25  Eric Blake  <eblake@redhat.com>
22363
22364         maint: use pragma consistently across replacement headers
22365         * lib/ctype.in.h (system_header): Hoist for consistent placement.
22366         * lib/dirent.in.h (system_header): Likewise.
22367         * lib/errno.in.h (system_header): Likewise.
22368         * lib/float.in.h (system_header): Likewise.
22369         * lib/getopt.in.h (system_header): Likewise.
22370         * lib/iconv.in.h (system_header): Likewise.
22371         * lib/inttypes.in.h (system_header): Likewise.
22372         * lib/langinfo.in.h (system_header): Likewise.
22373         * lib/locale.in.h (system_header): Likewise.
22374         * lib/math.in.h (system_header): Likewise.
22375         * lib/netdb.in.h (system_header): Likewise.
22376         * lib/netinet_in.in.h (system_header): Likewise.
22377         * lib/pty.in.h (system_header): Likewise.
22378         * lib/sched.in.h (system_header): Likewise.
22379         * lib/se-selinux.in.h (system_header): Likewise.
22380         * lib/search.in.h (system_header): Likewise.
22381         * lib/spawn.in.h (system_header): Likewise.
22382         * lib/stdarg.in.h (system_header): Likewise.
22383         * lib/stdint.in.h (system_header): Likewise.
22384         * lib/string.in.h (system_header): Likewise.
22385         * lib/strings.in.h (system_header): Likewise.
22386         * lib/sys_file.in.h (system_header): Likewise.
22387         * lib/sys_ioctl.in.h (system_header): Likewise.
22388         * lib/sys_socket.in.h (system_header): Likewise.
22389         * lib/sys_times.in.h (system_header): Likewise.
22390         * lib/sys_utsname.in.h (system_header): Likewise.
22391         * lib/sys_wait.in.h (system_header): Likewise.
22392         * lib/sysexits.in.h (system_header): Likewise.
22393         * lib/unistd.in.h (system_header): Likewise.
22394         * lib/wctype.in.h (system_header): Likewise.
22395
22396         arpa/inet: fix mingw compilation warning
22397         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
22398         Reported by Matthew Bolte.
22399
22400 2010-03-25  Bruno Haible  <bruno@clisp.org>
22401
22402         Avoid collision between gnulib wrapper and libintl wrapper.
22403         * lib/printf.c (printf): Don't define if a printf wrapper is already
22404         defined in intl/printf.c.
22405         Reported by Michel Boaventura <michel@michelboaventura.com>.
22406
22407 2010-03-25  Bruno Haible  <bruno@clisp.org>
22408
22409         Use ANSI C.
22410         * lib/readutmp.h (getutent): Provide ANSI C prototype.
22411
22412 2010-03-25  Bruno Haible  <bruno@clisp.org>
22413
22414         Minor formatting changes.
22415         * lib/acosl.c: Insert space before function argument list.
22416         * lib/argz.c: Likewise.
22417         * lib/asinl.c: Likewise.
22418         * lib/expl.c: Likewise.
22419         * lib/gen-uni-tables.c: Likewise.
22420         * lib/gettext.h: Likewise.
22421         * lib/glthread/lock.h: Likewise.
22422         * lib/tanl.c: Likewise.
22423         * lib/uniname/uniname.c: Likewise.
22424         * tests/test-idpriv-drop.c: Likewise.
22425         * tests/test-idpriv-droptemp.c: Likewise.
22426         * tests/test-lock.c: Likewise.
22427         * tests/test-tls.c: Likewise.
22428         * lib/argp-help.c: Insert space before function-like macro argument
22429         list.
22430         * lib/memcmp.c: Likewise.
22431         * tests/test-base64.c: Likewise.
22432         * lib/localename.c: Insert space before sizeof's argument list.
22433         * lib/safe-alloc.h: Likewise.
22434         * lib/file-set.h: Insert space before macro argument list.
22435         * tests/test-argp.c: Likewise.
22436         * lib/argp-namefrob.h: Insert space before function parameter list.
22437         * lib/getaddrinfo.c: Likewise.
22438         * lib/netdb.in.h: Likewise.
22439         * lib/parse-duration.h: Likewise.
22440         * lib/parse-duration.c: Likewise.
22441         * lib/poll.c: Likewise.
22442         * lib/select.c: Likewise.
22443         * lib/trim.h: Likewise.
22444         * tests/test-usleep.c: Likewise.
22445         * lib/ldexpl.c: Insert space before function parameter list and before
22446         function argument list.
22447         * lib/logl.c: Likewise.
22448         * lib/sqrtl.c: Likewise.
22449         * lib/trim.c: Likewise.
22450         * lib/cosl.c: Use GNU style indentation. Insert space before function
22451         argument list.
22452         * lib/sinl.c: Likewise.
22453         * lib/tsearch.c: Insert space after 'for'.
22454         Reported by Jim Meyering.
22455
22456 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
22457
22458         * maint.mk (sc_Wundef_boolean): Check for the presence of the
22459         config header before grepping, as it's not present before
22460         autoreconf/configure are run.  Reported by Simon Josefsson.
22461
22462 2010-03-23  Bruno Haible  <bruno@clisp.org>
22463
22464         pt_chown: Make it work with automake < 1.11.
22465         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
22466         Reported by Simon Josefsson.
22467
22468 2010-03-23  Bruno Haible  <bruno@clisp.org>
22469
22470         pt_chown: Don't depend on GPLed modules.
22471         * lib/pt_chown.c: Don't include idpriv.h.
22472         (main): Don't drop privileges.
22473         * modules/pt_chown (Depends-on): Remove idpriv-drop.
22474         Reported by Simon Josefsson.
22475
22476 2010-03-24  Simon Josefsson  <simon@josefsson.org>
22477
22478         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
22479         suggestions from karl@freefriends.org (Karl Berry).
22480
22481 2010-03-22  Eric Blake  <eblake@redhat.com>
22482
22483         gethostname: further tweaks
22484         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
22485         are overriding gethostname.
22486         Suggested by Bruno Haible.
22487
22488 2010-03-21  Bruno Haible  <bruno@clisp.org>
22489
22490         Fix comments.
22491         * lib/forkpty.c (rpl_forkpty): Fix comment.
22492         * lib/openpty.c (rpl_openpty): Likewise.
22493         Reported by Eric Blake.
22494
22495 2010-03-22  Eric Blake  <eblake@redhat.com>
22496
22497         gethostname: fix build on mingw
22498         * lib/unistd.in.h (includes): Work around fact that mingw
22499         <winsock2.h> re-includes <unistd.h>, by avoiding any
22500         redeclarations if we are being included by <winsock2.h>.
22501         Reported by Matthias Bolte.
22502
22503 2010-03-21  Bruno Haible  <bruno@clisp.org>
22504
22505         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22506         * lib/forkpty.c (forkpty): New replacement function, from glibc with
22507         modifications.
22508         * lib/pty.in.h (forkpty): Update declaration. Add comments.
22509         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
22510         provide the replacement.
22511         * modules/forkpty (Depends-on): Add openpty, login_tty.
22512         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
22513         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
22514         * doc/glibc-functions/forkpty.texi: More supported platforms.
22515         * config/srclist.txt: Add forkpty.c (commented).
22516
22517 2010-03-21  Bruno Haible  <bruno@clisp.org>
22518
22519         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
22520         (Makefile.am): Verify that PTY_LIB is defined.
22521
22522         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
22523
22524 2010-03-21  Bruno Haible  <bruno@clisp.org>
22525
22526         Tests for module 'login_tty'.
22527         * modules/login_tty-tests: New file.
22528         * tests/test-login_tty.c: New file.
22529
22530         New module 'login_tty'.
22531         * lib/login_tty.c: New file.
22532         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
22533         * modules/login_tty: New file.
22534         * doc/glibc-functions/login_tty.texi: Mention the new module.
22535
22536 2010-03-21  Bruno Haible  <bruno@clisp.org>
22537
22538         login_tty: Documentation.
22539         * doc/glibc-functions/login_tty.texi: New file.
22540         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
22541
22542 2010-03-21  Bruno Haible  <bruno@clisp.org>
22543
22544         pty: Consistent macro naming.
22545         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
22546         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
22547         * modules/pty (configure.ac): Update.
22548
22549 2010-03-21  Bruno Haible  <bruno@clisp.org>
22550
22551         Tests for openpty: Make stricter.
22552         * tests/test-openpty.c (main): Add test of canonical processing and
22553         erase.
22554         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
22555
22556         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22557         * lib/openpty.c (openpty): New replacement function.
22558         * lib/pty.in.h: Include <termios.h>.
22559         (openpty): Update declaration. Add comments.
22560         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
22561         is not declared, arrange to provide the replacement. Check for _getpty
22562         and posix_openpt.
22563         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
22564         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
22565         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
22566         * modules/pty-tests (test_pty_c___LDADD): New variable.
22567         * doc/glibc-functions/openpty.texi: More supported platforms.
22568
22569 2010-03-21  Bruno Haible  <bruno@clisp.org>
22570
22571         setenv: Tweaks.
22572         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
22573         the test program.
22574         * doc/posix-functions/setenv.texi: Update platforms list.
22575
22576 2010-03-21  Bruno Haible  <bruno@clisp.org>
22577
22578         New module 'unlockpt'.
22579         * lib/unlockpt.c: New file, from glibc with modifications.
22580         * m4/unlockpt.m4: New file.
22581         * modules/unlockpt: New file.
22582         * lib/stdlib.in.h (unlockpt): New declaration.
22583         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
22584         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
22585         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
22586         HAVE_UNLOCKPT.
22587         * doc/posix-functions/unlockpt.texi: Mention the new module.
22588         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
22589         * config/srclist.txt: Add unlockpt.c (commented).
22590
22591 2010-03-21  Jim Meyering  <meyering@redhat.com>
22592
22593         maint.mk: prohibit inclusion of "intprops.h" without use
22594         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
22595
22596 2010-03-21  Bruno Haible  <bruno@clisp.org>
22597
22598         New module 'grantpt'.
22599         * lib/grantpt.c: New file, from glibc with modifications.
22600         * m4/grantpt.m4: New file.
22601         * modules/grantpt: New file.
22602         * lib/stdlib.in.h (grantpt): New declaration.
22603         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
22604         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
22605         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
22606         HAVE_GRANTPT.
22607         * doc/posix-functions/grantpt.texi: Mention the new module.
22608         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
22609         * config/srclist.txt: Add grantpt.c (commented).
22610
22611 2010-03-21  Bruno Haible  <bruno@clisp.org>
22612
22613         New module 'pt_chown'.
22614         * lib/pt_chown.c: New file, from glibc with modifications.
22615         * lib/pty-private.h: New file, from glibc with modifications.
22616         * modules/pt_chown: New file.
22617         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
22618
22619 2010-03-21  Bruno Haible  <bruno@clisp.org>
22620
22621         Tests for module 'ptsname'.
22622         * modules/ptsname-tests: New file.
22623         * tests/test-ptsname.c: New file.
22624
22625         New module 'ptsname'.
22626         * lib/ptsname.c: New file, from glibc with modifications.
22627         * m4/ptsname.m4: New file.
22628         * modules/ptsname: New file.
22629         * lib/stdlib.in.h (ptsname): New declaration.
22630         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
22631         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
22632         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
22633         HAVE_PTSNAME.
22634         * doc/posix-functions/ptsname.texi: Mention the new module.
22635         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
22636         * config/srclist.txt: Add ptsname.c (commented).
22637
22638 2010-03-21  Bruno Haible  <bruno@clisp.org>
22639
22640         Tests for module 'ttyname_r'.
22641         * modules/ttyname_r-tests: New file.
22642         * tests/test-ttyname_r.c: New file.
22643
22644         New module 'ttyname_r'.
22645         * lib/ttyname_r.c: New file.
22646         * m4/ttyname_r.m4: New file.
22647         * modules/ttyname_r: New file.
22648         * lib/unistd.in.h (ttyname_r): New declaration.
22649         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
22650         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
22651         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
22652         HAVE_TTYNAME_R.
22653         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
22654         * doc/posix-functions/ttyname_r.texi: Mention the new module.
22655
22656 2010-03-20  Bruno Haible  <bruno@clisp.org>
22657
22658         signal: Undefine macro definitions in C++ mode.
22659         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
22660         sigfillset): Undefine macro definitions from the system header in C++
22661         mode.
22662         Reported by John W. Eaton <jwe@gnu.org>.
22663
22664 2010-03-20  Bruno Haible  <bruno@clisp.org>
22665
22666         Ensure no #include statements inside extern "C" { ... }.
22667         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
22668         contain #include statements.
22669         * lib/time.in.h: Likewise.
22670
22671 2010-03-20  Bruno Haible  <bruno@clisp.org>
22672
22673         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
22674         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
22675         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
22676         Reported by John W. Eaton <jwe@gnu.org>.
22677
22678 2010-03-20  Bruno Haible  <bruno@clisp.org>
22679
22680         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
22681         Reported by Jim Meyering.
22682
22683 2010-03-20  Bruno Haible  <bruno@clisp.org>
22684
22685         pipe: Set errno upon failure.
22686         * lib/pipe.h: Specify that when -1 is returned, errno is set.
22687         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
22688         errno value in error message.
22689
22690 2010-03-20  Bruno Haible  <bruno@clisp.org>
22691             Jim Meyering  <meyering@redhat.com>
22692
22693         lchown: Avoid "unused variable" warning.
22694         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
22695
22696 2010-03-20  Bruno Haible  <bruno@clisp.org>
22697
22698         Work around unlink() bug on MacOS X 10.5.6.
22699         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
22700         attempting to unlink a parent directory.
22701         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
22702         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
22703         activate for the replacement function.
22704         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
22705
22706 2010-03-20  Bruno Haible  <bruno@clisp.org>
22707
22708         Fix link errors on Solaris 8.
22709         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
22710         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
22711
22712 2010-03-19  Jim Meyering  <meyering@redhat.com>
22713
22714         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
22715         The _LIBC implementation of build_range_exp correctly honors the
22716         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
22717         However, the non-_LIBC implementation would ignore that syntax-bit
22718         flag and return REG_ERANGE unconditionally.
22719         This change makes it honor that flag.
22720         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
22721         Make two pointer parameters "const".
22722         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
22723         (parse_bracket_exp): Update caller.
22724
22725         regex.m4: correct the reversed range endpoint ([b-a]) test
22726         * m4/regex.m4: When requiring that [b-a] evoke failure,
22727         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
22728         test pass once again for x86-based systems.
22729
22730 2010-03-19  Bruno Haible  <bruno@clisp.org>
22731
22732         scandir: Fix link error on Solaris 8.
22733         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
22734         macros.
22735
22736 2010-03-19  Bruno Haible  <bruno@clisp.org>
22737
22738         getusershell: Fix documentation.
22739         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
22740         module.
22741         * doc/glibc-functions/setusershell.texi: Likewise.
22742
22743         getusershell: Provide declaration, missing on Solaris 9.
22744         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
22745         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
22746         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
22747         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
22748         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22749         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
22750         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
22751         HAVE_GETUSERSHELL.
22752         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
22753
22754 2010-03-19  Bruno Haible  <bruno@clisp.org>
22755
22756         wctype: Provide iswblank function.
22757         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
22758         exists and is fine.
22759         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
22760         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
22761         * tests/test-wctype.c (main): Re-enable the iswblank tests.
22762         * doc/posix-functions/iswblank.texi: Update.
22763
22764 2010-03-19  Bruno Haible  <bruno@clisp.org>
22765
22766         Tests of module 'pty' in C++ mode.
22767         * modules/pty-tests: New file.
22768         * tests/test-pty-c++.cc: New file.
22769         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22770
22771 2010-03-19  Eric Blake  <eblake@redhat.com>
22772
22773         logb: fix documentation
22774         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
22775         1.5 declaration bug.
22776
22777         forkpty, openpty: prefer glibc's const-safe prototype
22778         * lib/forkpty.c (rpl_forkpty): New file.
22779         * lib/openpty.c (rpl_openpty): Likewise.
22780         * modules/forkpty (Files): Distribute it.
22781         * modules/openpty (Files): Likewise.
22782         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
22783         check...
22784         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
22785         replacement for for non-const BSD signature.
22786         * modules/pty (Makefile.am): Substitute witnesses.
22787         * lib/pty.in.h (forkpty, openpty): Declare replacements.
22788         * tests/test-forkpty.c: Update signature check.
22789         * tests/test-openpty.c: Likewise.
22790         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
22791         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22792
22793         forkpty, openpty: split functions into new modules
22794         * modules/pty (Makefile.am): Substitute new witnesses.
22795         (Libraries): Move library detection...
22796         * modules/forkpty: ...into new module.
22797         * modules/openpty: Another new module.
22798         * modules/pty-tests: Rename and split...
22799         * modules/forkpty-tests: ...to this...
22800         * modules/openpty-tests: ...and this.
22801         * tests/test-pty.c: Rename and split...
22802         * tests/test-forkpty.c: ...to this...
22803         * tests/test-openpty.c: ...and this.
22804         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
22805         (gl_PTY): Split library searching...
22806         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
22807         (gl_FORKPTY, gl_OPENPTY): New macros.
22808         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
22809         * NEWS: Mention the split.
22810         * MODULES.html.sh (Misc): Document the modules.
22811         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
22812         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22813
22814         pty: improve replacement header
22815         * lib/pty.in.h: New file.
22816         * modules/pty (Files): Ship it.
22817         (Makefile.am): Always build replacement.
22818         * m4/pty.m4: Rename...
22819         * m4/pty_h.m4: ...to this.
22820         (gl_PTY): Modernize setting of witness macros; update check of
22821         forkpty to take proper advantage of cache.
22822         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
22823
22824         getopt: avoid compiler warning
22825         * lib/getopt.c (attribute_hidden): Remove unused macro.
22826
22827 2010-03-18  Bruno Haible  <bruno@clisp.org>
22828
22829         Fix link errors on Solaris 8.
22830         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
22831         * modules/search-tests (test_search_c___LDADD): Likewise.
22832         * modules/signal-tests (test_signal_c___LDADD): Likewise.
22833         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
22834         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
22835         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
22836         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
22837         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
22838         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
22839
22840 2010-03-18  Bruno Haible  <bruno@clisp.org>
22841
22842         Fix bug introduced on 2010-03-14.
22843         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
22844         (gl_SPAWN_H): Require it.
22845         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
22846         Reported by Simon Josefsson.
22847
22848 2010-03-18  Bruno Haible  <bruno@clisp.org>
22849
22850         Fix typo introduced on 2009-12-31.
22851         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
22852         posix_spawn_file_actions_adddup2.
22853
22854 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
22855         and Eric Blake  <eblake@redhat.com>
22856
22857         test-vc-list-files-git: make more robust
22858         * tests/test-vc-list-files-git.sh: Unset problematic environment
22859         variables.  Chain commands together.
22860
22861 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
22862
22863         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
22864         `AC_CHECK_DECL' invocation.
22865
22866 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
22867
22868         * lib/inttostr.c (inttostr): Make sure the invocation of verify
22869         appears before executable statements. Suggested by Petr Sumbera
22870         <Petr.Sumbera@Sun.COM>.
22871
22872 2010-03-14  Bruno Haible  <bruno@clisp.org>
22873
22874         * tests/test-flock.c (test_exclusive): Comment out a test that causes
22875         portability problems. Instead use a simpler test.
22876         (main): Check that invalid arguments are rejected only on Linux.
22877
22878 2010-03-14  Bruno Haible  <bruno@clisp.org>
22879
22880         Fix bug introduced on 2009-12-31.
22881         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22882         gl_PREREQ_SYS_H_WINSOCK2 always.
22883         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
22884         SYS_SOCKET_H variable.
22885         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
22886         Update comments.
22887         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
22888         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22889         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22890         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22891         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
22892
22893 2010-03-14  Bruno Haible  <bruno@clisp.org>
22894
22895         Fix values returned by sinl, cosl.
22896         * lib/trigl.h: Add specification comments.
22897         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
22898         that combines the values from the precomputed table with the values of
22899         the Chebyshev polynomials.
22900
22901 2010-03-14  Bruno Haible  <bruno@clisp.org>
22902
22903         Fix compilation error when modules 'posix_spawn[p]' are not used.
22904         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
22905         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
22906
22907 2010-03-14  Bruno Haible  <bruno@clisp.org>
22908
22909         Fix compilation error on mingw when module 'time_r' is not used.
22910         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
22911         is 1.
22912         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
22913         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22914         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
22915         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
22916
22917 2010-03-14  Bruno Haible  <bruno@clisp.org>
22918
22919         Fix compilation error with Sun C.
22920         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
22921         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
22922         instead of GCC specific ULONG_LONG_MAX.
22923         * lib/xstrtoll.c: Likewise.
22924         * lib/xstrtoull.c: Likewise.
22925
22926 2010-03-13  Bruno Haible  <bruno@clisp.org>
22927
22928         Allow the user to disable C++ code and tests.
22929         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
22930         (gl_PROG_ANSI_CXX): Require it.
22931
22932 2010-03-13  Bruno Haible  <bruno@clisp.org>
22933
22934         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
22935         cases.
22936
22937 2010-03-13  Bruno Haible  <bruno@clisp.org>
22938
22939         Test that gnulib does not break the standard C++ headers.
22940         * tests/test-locale-c++2.cc: New file.
22941         * modules/locale-tests (Files): Add it.
22942         (Makefile.am): Compile it for test-locale-c++.
22943         * tests/test-math-c++2.cc: New file.
22944         * modules/math-tests (Files): Add it.
22945         (Makefile.am): Compile it for test-math-c++.
22946         * tests/test-signal-c++2.cc: New file.
22947         * modules/signal-tests (Files): Add it.
22948         (Makefile.am): Compile it for test-signal-c++.
22949         * tests/test-stdio-c++2.cc: New file.
22950         * modules/stdio-tests (Files): Add it.
22951         (Makefile.am): Compile it for test-stdio-c++.
22952         * tests/test-stdlib-c++2.cc: New file.
22953         * modules/stdlib-tests (Files): Add it.
22954         (Makefile.am): Compile it for test-stdlib-c++.
22955         * tests/test-string-c++2.cc: New file.
22956         * modules/string-tests (Files): Add it.
22957         (Makefile.am): Compile it for test-string-c++.
22958         * tests/test-time-c++2.cc: New file.
22959         * modules/time-tests (Files): Add it.
22960         (Makefile.am): Compile it for test-time-c++.
22961         Reported by John W. Eaton <jwe@gnu.org>.
22962
22963 2010-03-13  Bruno Haible  <bruno@clisp.org>
22964
22965         * gnulib-tool (func_usage): Clarify which options are available for
22966         --create-testdir and --create-megatestdir.
22967
22968 2010-03-13  Bruno Haible  <bruno@clisp.org>
22969
22970         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
22971         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
22972         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
22973         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22974         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
22975         when appropriate.
22976         Reported by Jim Meyering.
22977
22978 2010-03-12  Simon Josefsson  <simon@josefsson.org>
22979
22980         * gnulib-tool (func_import): Explain origin of code.
22981
22982 2010-03-12  Bruno Haible  <bruno@clisp.org>
22983
22984         Fix problem with automake's definition of CXXLINK.
22985         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
22986         Reported by Simon Josefsson and Ludovic Courtès.
22987
22988 2010-03-12  Bruno Haible  <bruno@clisp.org>
22989
22990         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
22991         stable releases.
22992
22993 2010-03-11  Bruno Haible  <bruno@clisp.org>
22994
22995         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
22996         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
22997         whether the system provides one variant or multiple variants of the
22998         function.
22999         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
23000         C++ compilers.
23001         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
23002         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
23003         Reported by Jim Meyering.
23004
23005 2010-03-09  Simon Josefsson  <simon@josefsson.org>
23006
23007         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
23008
23009 2010-03-08  Bruno Haible  <bruno@clisp.org>
23010
23011         gnulib-tool: Add support for --libtool in --create-testdir.
23012         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
23013         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
23014
23015 2010-03-08  Eric Blake  <eblake@redhat.com>
23016
23017         gnulib-tool.texi: mention possibility of git submodule
23018         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
23019         submodules.
23020         * doc/.gitignore: Ignore another generated file.
23021
23022 2010-03-08  Karl Berry  <karl@gnu.org>
23023
23024         * doc/gnulib-tool.texi (VCS Issues): Mention third option
23025         of committing gnulib files while skipping others.
23026
23027 2010-03-07  Bruno Haible  <bruno@clisp.org>
23028
23029         Tests of module 'wctype' in C++ mode.
23030         * tests/test-wctype-c++.cc: New file.
23031         * modules/wctype-tests (Files): Add it and tests/signature.h.
23032         (Depends-on): Add ansi-c++-opt.
23033         (Makefile.am): Arrange to compile and run test-wctype-c++.
23034
23035         Tests of module 'wchar' in C++ mode.
23036         * tests/test-wchar-c++.cc: New file.
23037         * modules/wchar-tests (Files): Add it and tests/signature.h.
23038         (Depends-on): Add ansi-c++-opt.
23039         (Makefile.am): Arrange to compile and run test-wchar-c++.
23040         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
23041         gl_MODULE_INDICATOR.
23042
23043         Tests of module 'unistd' in C++ mode.
23044         * tests/test-unistd-c++.cc: New file.
23045         * modules/unistd-tests (Files): Add it and tests/signature.h.
23046         (Depends-on): Add ansi-c++-opt.
23047         (Makefile.am): Arrange to compile and run test-unistd-c++.
23048         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
23049         gl_MODULE_INDICATOR.
23050
23051         Tests of module 'time' in C++ mode.
23052         * tests/test-time-c++.cc: New file.
23053         * modules/time-tests (Files): Add it and tests/signature.h.
23054         (Depends-on): Add ansi-c++-opt.
23055         (Makefile.am): Arrange to compile and run test-time-c++.
23056         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23057
23058         Tests of module 'sys_time' in C++ mode.
23059         * tests/test-sys_time-c++.cc: New file.
23060         * modules/sys_time-tests (Files): Add it and tests/signature.h.
23061         (Depends-on): Add ansi-c++-opt.
23062         (Makefile.am): Arrange to compile and run test-sys_time-c++.
23063         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
23064         gl_MODULE_INDICATOR.
23065
23066         Tests of module 'sys_stat' in C++ mode.
23067         * tests/test-sys_stat-c++.cc: New file.
23068         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
23069         (Depends-on): Add ansi-c++-opt.
23070         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
23071         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
23072         gl_MODULE_INDICATOR.
23073
23074         Tests of module 'sys_socket' in C++ mode.
23075         * tests/test-sys_socket-c++.cc: New file.
23076         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
23077         (Depends-on): Add ansi-c++-opt.
23078         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
23079         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
23080         gl_MODULE_INDICATOR.
23081
23082         Tests of module 'sys_select' in C++ mode.
23083         * tests/test-sys_select-c++.cc: New file.
23084         * modules/sys_select-tests (Files): Add it and tests/signature.h.
23085         (Depends-on): Add ansi-c++-opt.
23086         (Makefile.am): Arrange to compile and run test-sys_select-c++.
23087         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
23088         gl_MODULE_INDICATOR.
23089
23090         Tests of module 'sys_ioctl' in C++ mode.
23091         * tests/test-sys_ioctl-c++.cc: New file.
23092         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
23093         (Depends-on): Add ansi-c++-opt.
23094         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
23095         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
23096         gl_MODULE_INDICATOR.
23097
23098         Tests of module 'string' in C++ mode.
23099         * tests/test-string-c++.cc: New file.
23100         * modules/string-tests (Files): Add it and tests/signature.h.
23101         (Depends-on): Add ansi-c++-opt.
23102         (Makefile.am): Arrange to compile and run test-string-c++.
23103         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
23104         gl_MODULE_INDICATOR.
23105
23106         Tests of module 'stdlib' in C++ mode.
23107         * tests/test-stdlib-c++.cc: New file.
23108         * modules/stdlib-tests (Files): Add it and tests/signature.h.
23109         (Depends-on): Add ansi-c++-opt.
23110         (Makefile.am): Arrange to compile and run test-stdlib-c++.
23111         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
23112         gl_MODULE_INDICATOR.
23113
23114         Tests of module 'stdio' in C++ mode.
23115         * tests/test-stdio-c++.cc: New file.
23116         * modules/stdio-tests (Files): Add it and tests/signature.h.
23117         (Depends-on): Add ansi-c++-opt.
23118         (Makefile.am): Arrange to compile and run test-stdio-c++.
23119         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
23120         gl_MODULE_INDICATOR.
23121
23122         Tests of module 'spawn' in C++ mode.
23123         * tests/test-spawn-c++.cc: New file.
23124         * modules/spawn-tests (Files): Add it and tests/signature.h.
23125         (Depends-on): Add ansi-c++-opt.
23126         (Makefile.am): Arrange to compile and run test-spawn-c++.
23127         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
23128         gl_MODULE_INDICATOR.
23129
23130         Tests of module 'signal' in C++ mode.
23131         * tests/test-signal-c++.cc: New file.
23132         * modules/signal-tests (Files): Add it and tests/signature.h.
23133         (Depends-on): Add ansi-c++-opt.
23134         (Makefile.am): Arrange to compile and run test-signal-c++.
23135         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
23136         gl_MODULE_INDICATOR.
23137
23138         Tests of module 'search' in C++ mode.
23139         * tests/test-search-c++.cc: New file.
23140         * modules/search-tests (Files): Add it and tests/signature.h.
23141         (Depends-on): Add ansi-c++-opt.
23142         (Makefile.am): Arrange to compile and run test-search-c++.
23143         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
23144         gl_MODULE_INDICATOR.
23145
23146         Tests of module 'math' in C++ mode.
23147         * tests/test-math-c++.cc: New file.
23148         * modules/math-tests (Files): Add it and tests/signature.h.
23149         (Depends-on): Add ansi-c++-opt.
23150         (Makefile.am): Arrange to compile and run test-math-c++.
23151         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23152
23153         Tests of module 'locale' in C++ mode.
23154         * tests/test-locale-c++.cc: New file.
23155         * modules/locale-tests (Files): Add it and tests/signature.h.
23156         (Depends-on): Add ansi-c++-opt.
23157         (Makefile.am): Arrange to compile and run test-locale-c++.
23158         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
23159         gl_MODULE_INDICATOR.
23160
23161         Tests of module 'langinfo' in C++ mode.
23162         * tests/test-langinfo-c++.cc: New file.
23163         * modules/langinfo-tests (Files): Add it and tests/signature.h.
23164         (Depends-on): Add ansi-c++-opt.
23165         (Makefile.am): Arrange to compile and run test-langinfo-c++.
23166         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
23167         gl_MODULE_INDICATOR.
23168
23169         Tests of module 'iconv-h' in C++ mode.
23170         * tests/test-iconv-h-c++.cc: New file.
23171         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
23172         (Depends-on): Add ansi-c++-opt.
23173         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
23174
23175         Tests of module 'glob' in C++ mode.
23176         * tests/test-glob-c++.cc: New file.
23177         * modules/glob-tests (Files): Add it.
23178         (Depends-on): Add ansi-c++-opt.
23179         (Makefile.am): Arrange to compile and run test-glob-c++.
23180
23181         Tests of module 'fcntl-h' in C++ mode.
23182         * tests/test-fcntl-h-c++.cc: New file.
23183         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
23184         (Depends-on): Add ansi-c++-opt.
23185         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
23186         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
23187         gl_MODULE_INDICATOR.
23188
23189         Tests of module 'dirent' in C++ mode.
23190         * tests/test-dirent-c++.cc: New file.
23191         * modules/dirent-tests (Files): Add it and tests/signature.h.
23192         (Depends-on): Add ansi-c++-opt.
23193         (Makefile.am): Arrange to compile and run test-dirent-c++.
23194         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
23195         gl_MODULE_INDICATOR.
23196
23197         New module 'ansi-c++-opt'.
23198         * modules/ansi-c++-opt: New file.
23199         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
23200
23201         Document C++ namespace mode.
23202         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
23203
23204         wctype: Avoid #define replacements in C++ mode.
23205         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
23206         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
23207         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
23208         In C++, define a namespaced alias symbol.
23209         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
23210         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
23211         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
23212         rule.
23213
23214         wchar: Avoid #define replacements in C++ mode.
23215         * lib/wchar.in.h: Include c++defs.h.
23216         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
23217         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
23218         symbol.
23219         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
23220         * modules/wchar (Depends-on): Add c++defs.
23221         (Makefile.am): Update wchar.h rule.
23222
23223         unistd: Avoid #define replacements in C++ mode.
23224         * lib/unistd.in.h: Include c++defs.h.
23225         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
23226         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
23227         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
23228         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
23229         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
23230         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
23231         symbol.
23232         (environ): Update.
23233         * modules/unistd (Depends-on): Add c++defs.
23234         (Makefile.am): Update unistd.h rule.
23235
23236         time: Avoid #define replacements in C++ mode.
23237         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
23238         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
23239         define a namespaced alias symbol.
23240         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
23241         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
23242         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
23243         * modules/time (Depends-on): Add c++defs, warn-on-use.
23244         (Makefile.am): Update time.h rule.
23245         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
23246         * modules/nanosleep (configure.ac): Likewise.
23247         * modules/strptime (configure.ac): Likewise.
23248         * modules/timegm (configure.ac): Likewise.
23249
23250         sys_time: Avoid #define replacements in C++ mode.
23251         * lib/sys_time.in.h: Include c++defs.h.
23252         (gettimeofday): In C++, define a namespaced alias symbol.
23253         * modules/sys_time (Depends-on): Add c++defs.
23254         (Makefile.am): Update sys/time.h rule.
23255
23256         sys_stat: Avoid #define replacements in C++ mode.
23257         * lib/sys_stat.in.h: Include c++defs.h.
23258         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
23259         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
23260         namespaced alias symbol.
23261         In C++, define a namespaced alias symbol.
23262         * modules/sys_stat (Depends-on): Add c++defs.
23263         (Makefile.am): Update sys/stat.h rule.
23264
23265         sys_socket: Avoid #define replacements in C++ mode.
23266         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
23267         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
23268         definitions also when the system has a <sys/socket.h>.
23269         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
23270         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
23271         In C++, define a namespaced alias symbol.
23272         * modules/sys_socket (Depends-on): Add c++defs.
23273         (Makefile.am): Update sys/socket.h rule.
23274
23275         sys_select: Avoid #define replacements in C++ mode.
23276         * lib/sys_select.in.h: Include c++defs.h. Enable the function
23277         definitions also when the system has a <sys/select.h>.
23278         (select): In C++, define a namespaced alias symbol.
23279         * modules/sys_select (Depends-on): Add c++defs.
23280         (Makefile.am): Update sys/select.h rule.
23281
23282         sys_ioctl: Avoid #define replacements in C++ mode.
23283         * lib/sys_ioctl.in.h: Include c++defs.h.
23284         (ioctl): In C++, define a namespaced alias symbol.
23285         * modules/sys_ioctl (Depends-on): Add c++defs.
23286         (Makefile.am): Update sys/ioctl.h rule.
23287
23288         string: Avoid #define replacements in C++ mode.
23289         * lib/string.in.h: Include c++defs.h.
23290         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
23291         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
23292         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
23293         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
23294         strsignal, strverscmp): In C++, define a namespaced alias symbol.
23295         * modules/string (Depends-on): Add c++defs.
23296         (Makefile.am): Update string.h rule.
23297
23298         stdlib: Avoid #define replacements in C++ mode.
23299         * lib/stdlib.in.h: Include c++defs.h.
23300         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
23301         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
23302         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
23303         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
23304         symbol.
23305         * modules/stdlib (Depends-on): Add c++defs.
23306         (Makefile.am): Update stdlib.h rule.
23307
23308         stdio: Avoid #define replacements in C++ mode.
23309         * lib/stdio.in.h: Include c++defs.h.
23310         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
23311         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
23312         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
23313         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
23314         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
23315         namespaced alias symbol.
23316         * modules/stdio (Depends-on): Add c++defs.
23317         (Makefile.am): Update stdio.h rule.
23318
23319         spawn: Avoid #define replacements in C++ mode.
23320         * lib/spawn.in.h: Include c++defs.h.
23321         (posix_spawn, posix_spawnp, posix_spawnattr_init,
23322         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
23323         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
23324         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
23325         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
23326         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
23327         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
23328         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
23329         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
23330         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
23331         In C++, define a namespaced alias symbol.
23332         * modules/spawn (Depends-on): Add c++defs.
23333         (Makefile.am): Update spawn.h rule.
23334
23335         signal: Avoid #define replacements in C++ mode.
23336         * lib/signal.in.h: Include c++defs.h.
23337         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
23338         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
23339         namespaced alias symbol.
23340         * modules/signal (Depends-on): Add c++defs.
23341         (Makefile.am): Update signal.h rule.
23342
23343         search: Avoid #define replacements in C++ mode.
23344         * lib/search.in.h: Include c++defs.h.
23345         (_gl_search_compar_fn, _gl_search_action_fn): New types.
23346         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
23347         symbol.
23348         * modules/search (Depends-on): Add c++defs.
23349         (Makefile.am): Update search.h rule.
23350
23351         math: Avoid #define replacements in C++ mode.
23352         * lib/math.in.h: Include c++defs.h.
23353         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
23354         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
23355         trunc, truncl): In C++, define a namespaced alias symbol.
23356         * modules/math (Depends-on): Add c++defs.
23357         (Makefile.am): Update math.h rule.
23358
23359         locale: Avoid #define replacements in C++ mode.
23360         * lib/locale.in.h: Include c++defs.h.
23361         (duplocale): In C++, define a namespaced alias symbol.
23362         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
23363         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
23364         * modules/locale (Depends-on): Add c++defs.
23365         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
23366
23367         langinfo: Avoid #define replacements in C++ mode.
23368         * lib/langinfo.in.h: Include c++defs.h.
23369         (nl_langinfo): In C++, define a namespaced alias symbol.
23370         * modules/langinfo (Depends-on): Add c++defs.
23371         (Makefile.am): Update langinfo.h rule.
23372
23373         iconv-h: Avoid #define replacements in C++ mode.
23374         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
23375         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
23376         symbol.
23377         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
23378         whenever iconv is present.
23379         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
23380         (Makefile.am): Update iconv.h rule.
23381
23382         glob: Avoid #define replacements in C++ mode.
23383         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
23384         (_gl_glob_errfunc_fn): New type.
23385         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
23386         symbol.
23387         * modules/glob (Depends-on): Add c++defs, warn-on-use.
23388         (Makefile.am): Update glob.h rule.
23389
23390         fcntl-h: Avoid #define replacements in C++ mode.
23391         * lib/fcntl.in.h: Include c++defs.h.
23392         (fcntl, open, openat): In C++, define a namespaced alias symbol.
23393         * modules/fcntl-h (Depends-on): Add c++defs.
23394         (Makefile.am): Update fcntl.h rule.
23395
23396         dirent: Avoid #define replacements in C++ mode.
23397         * lib/dirent.in.h: Include c++defs.h.
23398         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
23399         namespaced alias symbol.
23400         (dirfd): Update declaration.
23401         * modules/dirent (Depends-on): Add c++defs.
23402         (Makefile.am): Update dirent.h rule.
23403
23404         ctype: Make it usable in C++ code.
23405         * lib/ctype.in.h: Include c++defs.h.
23406         (isblank): Declare as extern "C".
23407         * modules/ctype (Depends-on): Add c++defs.
23408         (Makefile.am): Update ctype.h rule.
23409
23410         New module 'c++defs'.
23411         * modules/c++defs: New file.
23412         * build-aux/c++defs.h: New file.
23413         Reported by John W. Eaton <jwe@gnu.org>.
23414
23415 2010-03-07  Bruno Haible  <bruno@clisp.org>
23416
23417         logb: Provide missing declaration for Cygwin.
23418         * lib/math.in.h (logb): New declaration.
23419         * m4/logb.m4: New file.
23420         * modules/logb (Files): Add m4/logb.m4.
23421         (Depends-on): Add math.
23422         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
23423         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
23424         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
23425         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
23426         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
23427
23428 2010-03-07  Bruno Haible  <bruno@clisp.org>
23429
23430         Fix test-cond link error.
23431         * tests/test-cond.c: Include <stdio.h>.
23432
23433 2010-03-07  Bruno Haible  <bruno@clisp.org>
23434
23435         Fix test-dirent-safer link error.
23436         * modules/dirent-safer-tests (Makefile.am): Define
23437         test_dirent_safer_LDADD.
23438
23439 2010-03-07  Bruno Haible  <bruno@clisp.org>
23440
23441         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
23442         among default module list.
23443
23444 2010-03-07  Bruno Haible  <bruno@clisp.org>
23445
23446         Fix link error on platforms with GNU libiconv.
23447         * modules/unistr/u8-strcoll-tests (Makefile): Define
23448         test_u8_strcoll_LDADD.
23449         * modules/unistr/u16-strcoll-tests (Makefile): Define
23450         test_u16_strcoll_LDADD.
23451         * modules/unistr/u32-strcoll-tests (Makefile): Define
23452         test_u32_strcoll_LDADD.
23453
23454 2010-03-07  Bruno Haible  <bruno@clisp.org>
23455
23456         Use POSIX declarations for socket functions.
23457         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
23458         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
23459         rpl_sendto): Change declaration to match POSIX.
23460         * lib/connect.c (rpl_connect): Likewise.
23461         * lib/accept.c (rpl_accept): Likewise.
23462         * lib/bind.c (rpl_bind): Likewise.
23463         * lib/getpeername.c (rpl_getpeername): Likewise.
23464         * lib/getsockname.c (rpl_getsockname): Likewise.
23465         * lib/recv.c (rpl_recv): Likewise.
23466         * lib/send.c (rpl_send): Likewise.
23467         * lib/recvfrom.c (rpl_recvfrom): Likewise.
23468         * lib/sendto.c (rpl_sendto): Likewise.
23469
23470 2010-03-06  Bruno Haible  <bruno@clisp.org>
23471
23472         Clarify access, euidaccess, faccessat.
23473         * doc/posix-functions/faccessat.texi: Mention security problem under
23474         "Other problems", not "Portability problems".
23475         * doc/posix-functions/access.texi: Likewise. Mention a related security
23476         problem.
23477         * doc/glibc-functions/euidaccess.texi: Mention security problems.
23478         * lib/euidaccess.c: Add comments about platforms.
23479         * lib/unistd.in.h (access, euidaccess): Add warnings.
23480
23481 2010-03-07  Bruno Haible  <bruno@clisp.org>
23482
23483         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
23484         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
23485         (POSIX_SPAWN_SETSCHEDULER): Likewise.
23486         (POSIX_SPAWN_USEVFORK): Define in a way that works when
23487         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23488         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
23489         declare when POSIX_SPAWN_SETSCHEDULER is zero.
23490         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
23491         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
23492         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
23493         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
23494         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
23495         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
23496         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
23497         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
23498         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
23499         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
23500         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
23501         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
23502         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
23503         Likewise.
23504         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
23505         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
23506         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
23507         Likewise.
23508         * tests/test-spawn.c (main): Make it work when
23509         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23510
23511 2010-03-07  Bruno Haible  <bruno@clisp.org>
23512
23513         Fix incorrect Makefile.am generation in German locale.
23514         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23515         Execute sed command with character range in C locale.
23516
23517 2010-03-06  Bruno Haible  <bruno@clisp.org>
23518
23519         Tests for module 'iconv-h'.
23520         * modules/iconv-h-tests: New file.
23521         * tests/test-iconv-h.c: New file.
23522
23523         New module 'iconv-h'.
23524         * modules/iconv-h: New file.
23525         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
23526         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
23527         (configure.ac): Remove gl_ICONV_H.
23528         (Makefile.am): Remove rule for iconv.h.
23529
23530 2010-03-06  Bruno Haible  <bruno@clisp.org>
23531
23532         More consistent naming of *.m4 files.
23533         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
23534         * modules/wctype (Files): Update.
23535
23536         More consistent naming of *.m4 files.
23537         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
23538         * modules/wchar (Files): Update.
23539
23540 2010-03-06  Jim Meyering  <meyering@redhat.com>
23541
23542         euidaccess: relax license to LGPLv2+
23543         * modules/euidaccess (License): Relax to LGPLv2+.
23544
23545 2010-03-06  Bruno Haible  <bruno@clisp.org>
23546
23547         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
23548         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
23549         (Makefile.am): Augment lib_SOURCES instead.
23550
23551 2010-03-04  Jim Meyering  <meyering@redhat.com>
23552
23553         utime: remove obsolete module
23554         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
23555         unnecessary for years, and has been marked as obsolete for 10 months.
23556         * modules/utime: Remove file.
23557         * lib/utime.c: Remove file.
23558         * m4/utime.m4: Remove file.
23559         * m4/utimes-null.m4: Remove file.
23560         * doc/posix-functions/utime.texi (utime): Remove reference to
23561         the module.  Move the sole "fixed by gnulib" item into the
23562         "problems not fixed by Gnulib" list.
23563         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
23564
23565 2010-03-05  Simon Josefsson  <simon@josefsson.org>
23566
23567         * modules/exit (License): Relax license to LGPLv2+.
23568         (Status): Mark as obsolete.
23569         * NEWS: Mention deprecated 'exit' module.
23570         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
23571         of now obsolete 'exit'.
23572
23573 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23574
23575         fts-lgpl: remove unused module
23576         * modules/fts-lgpl: Remove.
23577         * MODULES.html.sh (func_all_modules): Adjust.
23578         * check-module (find_included_lib_files): Adjust.
23579         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
23580
23581 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
23582
23583         copy-acl: enhance Solaris ACL error handling
23584         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
23585         * lib/set-mode-acl.c (qset_acl): Likewise.
23586
23587 2010-03-02  Bruno Haible  <bruno@clisp.org>
23588
23589         spawn: Don't override the system defined values on FreeBSD 8.
23590         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
23591         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
23592         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
23593         if HAVE_POSIX_SPAWN is 1.
23594         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
23595
23596 2010-03-01  Bruno Haible  <bruno@clisp.org>
23597
23598         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
23599         regarding Automake.
23600
23601 2010-02-25  Bruno Haible  <bruno@clisp.org>
23602
23603         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
23604         * gnulib-tool: Define 'echo' as a function only before the ksh alias
23605         setting, not afterwards.
23606         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
23607
23608 2010-02-24  Eric Blake  <eblake@redhat.com>
23609
23610         bootstrap, git-version-gen: use timestamp
23611         * build-aux/git-version-gen (scriptversion): Force UTC.
23612         * build-aux/bootstrap (scriptversion): New variable.
23613
23614         bootstrap: allow older git
23615         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
23616         older than 1.6.4.  Requested by the libvirt project.
23617
23618 2010-02-23  Eric Blake  <eblake@redhat.com>
23619
23620         warn-on-use: work with old autoconf
23621         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
23622         AS_VAR semantics of autoconf 2.60.
23623         Reported by Bruno Haible.
23624
23625         bootstrap: improve some comments
23626         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
23627         clarification comments.
23628
23629         gettimeofday: provide correct function
23630         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
23631         when replacement is declared, otherwise provide gettimeofday.
23632         Reported by Michael Goffioul.
23633
23634 2010-02-23  Jim Meyering  <meyering@redhat.com>
23635
23636         lib-ignore: relax license to "unlimited", not LGPLv2+
23637         * modules/lib-ignore (License): Relax to "unlimited".
23638
23639 2010-02-23  Jim Meyering  <meyering@redhat.com>
23640
23641         lib-ignore: relax license to LGPLv2+
23642         * modules/lib-ignore (License): Relax to LGPLv2+.
23643
23644 2010-02-22  Eric Blake  <eblake@redhat.com>
23645
23646         lseek: avoid bash 3.2 broken pipe bug
23647         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
23648         warning from bash 3.2.
23649         Reported by Ben Pfaff, with analysis from Bruno Haible.
23650
23651         bootstrap: support non-FSF copyright holder
23652         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
23653         bootstrap.conf override of COPYRIGHT_HOLDER.
23654         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
23655
23656         bootstrap: interoperate with gettext 0.14.1
23657         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
23658
23659         bootstrap: allow for alternate submodule location
23660         * build-aux/bootstrap (gnulib_path): New variable; use instead of
23661         hardcoding submodule location.
23662         (gnulib_mk): Allow direct use of Makefile.am.
23663
23664         bootstrap: use GNULIB_SRCDIR to reduce disk usage
23665         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
23666         rather than reconfiguring where the submodule points.
23667
23668         gettimeofday: restore support for platforms that lack function
23669         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
23670         replacement if function is missing.
23671         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
23672         * modules/sys_time (Makefile.am): Substitute it.
23673         * lib/sys_time.in.h (gettimeofday): Check it.
23674         Reported by Michael Goffioul.
23675
23676 2010-02-21  Bruno Haible  <bruno@clisp.org>
23677
23678         * lib/stdio.in.h (obstack_printf): Fix typo.
23679
23680 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
23681
23682         vc-list-files: use bzr ls's -R option
23683         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
23684         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
23685
23686 2010-02-21  Jim Meyering  <meyering@redhat.com>
23687
23688         init.sh: fix EXEEXT shims to work also for names like test-prog
23689         * tests/init.sh: Re-exec a better shell, when needed.
23690         If the current shell lacks support for posix $(...), an init.sh-using
23691         test will now try to find a shell that supports that.  If EXEEXT is
23692         nonempty, we also require support for hyphen-in-alias-name and shell
23693         substitutions like ${var#glob}.  Failure to find such a shell results
23694         in a skipped test.
23695
23696 2010-02-21  Bruno Haible  <bruno@clisp.org>
23697
23698         Really work around around "broken pipe" error message from bash 3.2.
23699         * gnulib-tool (func_reset_sigpipe): Remove function.
23700         (echo): In bash 3.2, define to a function that uses printf.
23701         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
23702
23703 2010-02-20  Bruno Haible  <bruno@clisp.org>
23704
23705         Restore support for automake 1.9.6 with autoconf 2.61.
23706         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
23707         Reported by James Youngman <jay@gnu.org>.
23708
23709 2010-02-20  Bruno Haible  <bruno@clisp.org>
23710
23711         Improve *printf warning condition.
23712         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
23713         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
23714         and the function is overridden due to SIGPIPE emulation.
23715
23716 2010-02-20  Bruno Haible  <bruno@clisp.org>
23717
23718         * lib/stdio.in.h: Tweak comments.
23719
23720 2010-02-19  Bruno Haible  <bruno@clisp.org>
23721
23722         Make it easier to find modules. New gnulib-tool option '--find'.
23723         * gnulib-tool: New option --find.
23724         (func_usage): Document it.
23725         (func_sanitize_modulelist): New function, extracted from
23726         func_all_modules.
23727         (func_all_modules): Invoke it.
23728         * doc/gnulib-tool.texi (Which modules?): New node.
23729
23730 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
23731
23732         * lib/sys_select.in.h: Provide select replacement even if
23733         sys/select.h exists on a system, for Interix.
23734
23735 2010-02-18  Jim Meyering  <meyering@redhat.com>
23736
23737         init.sh: don't use $(...) just yet
23738         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
23739         to accommodate e.g., Solaris' /bin/sh.
23740
23741 2010-02-17  Bruno Haible  <bruno@clisp.org>
23742
23743         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
23744         Reported by Ludovic Courtès <ludo@gnu.org>.
23745
23746 2010-02-16  Simon Josefsson  <simon@josefsson.org>
23747
23748         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
23749         linking with -lintl.
23750
23751 2010-02-17  Simon Josefsson  <simon@josefsson.org>
23752
23753         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
23754         if not provided by the system's netdb.h.  Reported by
23755         ludo@gnu.org (Ludovic Courtès).
23756
23757 2010-02-15  Jim Meyering  <meyering@redhat.com>
23758
23759         init.sh: improve portability and efficiency
23760         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
23761         "dummy" in a for loop.
23762         Use '!', not '^' to select the complement of a character set used
23763         in a "case" statement.
23764         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
23765         Suggestions from Eric Blake.
23766
23767         init.sh: automatically accommodate programs with the .exe suffix
23768         Automatically arrange for an invocation of "prog" to execute the
23769         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
23770         may use the simpler "prog", yet still work when built on a system
23771         that requires specifying the added suffix.
23772         Do this by constructing a function named "prog" that invokes
23773         "prog.exe" for each .exe file in selected directories.
23774         * tests/init.sh (find_exe_basenames_): New function.
23775         (create_exe_shim_functions_): New function.
23776         (path_prepend_): Use it.
23777
23778         maint.mk: mark syntax-check sc_*.m rules as .PHONY
23779         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
23780         "make -t syntax-check" doesn't create a ton of sc_*.m files.
23781
23782 2010-02-14  Jim Meyering  <meyering@redhat.com>
23783
23784         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
23785         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
23786         (sc_prohibit_hash_pjw_without_use): New rule.
23787
23788         maint.mk: allow the default upload destination dir to be overridden
23789         * top/maint.mk (upload_dest_dir_): Define with a default that
23790         preserves the status quo.
23791         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
23792         Reported by Peter Simons.
23793
23794         maint.mk: prohibit inclusion of "hash.h" without_use
23795         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
23796
23797 2010-02-10  Jim Meyering  <meyering@redhat.com>
23798
23799         maint.mk: prohibit inclusion of "ignore-value.h" without_use
23800         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
23801
23802 2010-02-09  Eric Blake  <ebb9@byu.net>
23803         and Bruno Haible  <bruno@clisp.org>
23804
23805         obstack-printf-posix: ensure declaration
23806         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
23807         extracted from gl_FUNC_OBSTACK_PRINTF.
23808         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
23809         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23810         Likewise.
23811         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
23812         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
23813         0.
23814
23815 2010-02-08  Bruno Haible  <bruno@clisp.org>
23816
23817         gnulib-tool: Fix typo in 2010-02-07 commit.
23818         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
23819         Reported by Eric Blake.
23820
23821 2010-02-07  Bruno Haible  <bruno@clisp.org>
23822
23823         gnulib-tool: Fix up caching patches.
23824         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
23825         option --no-cache. Use associative arrays when supported by the shell.
23826         (sed_comments): New variable.
23827         (modcache): Renamed from do_cache.
23828         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
23829         abbreviate unnecessarily.
23830         (have_associative): New variable.
23831         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
23832         way also for ksh and zsh.
23833         (func_init_sed_convert_to_cache_statements): New function, extracted
23834         from func_cache_lookup_module. Add support for associative arrays.
23835         Don't set the c_MODULE_cached variable here. Ignore all lines before
23836         the first field header. Remove only the final newline, not all trailing
23837         newlines. Support empty fields correctly. Limit the use of 'eval' to
23838         assignments.
23839         (func_get_description, func_get_status, func_get_notice,
23840         func_get_applicability, func_get_filelist, func_get_dependencies,
23841         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
23842         func_get_automake_snippet, func_get_include_directive,
23843         func_get_link_directive, func_get_license, func_get_maintainer):
23844         Update documentation. List the unoptimized code first. Add support for
23845         associative arrays. Limit the use of 'eval' to assignments.
23846         (func_get_applicability): Undo stylistic pessimisations.
23847         (func_get_automake_snippet, func_get_include_directive): Reduce code
23848         duplication.
23849         (func_modules_transitive_closure, func_modules_add_dummy,
23850         func_modules_notice, func_modules_to_filelist, func_add_file,
23851         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
23852         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
23853         func_create_testdir, func_create_megatestdir): Update documentation.
23854
23855 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23856
23857         * gnulib-tool (func_cache_lookup_module): Store the module name
23858         belonging to the cache variable; error out if two different
23859         module names map to the same cache variable name.
23860
23861 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23862
23863         gnulib-tool: Make caching optional.
23864         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
23865         Update matching short versions of --no-changelog.
23866         (func_usage): Update.
23867         (sed_extract_cache_prog): Renamed from ...
23868         (sed_extract_prog): ... this; revert to old extraction script.
23869         (func_get_description, func_get_status)
23870         (func_get_notice, func_get_applicability, func_get_filelist)
23871         (func_get_dependencies, func_get_autoconf_early_snippet)
23872         (func_get_autoconf_snippet, func_get_automake_snippet)
23873         (func_get_include_directive, func_get_link_directive)
23874         (func_get_license, func_get_maintainer): If $do_cache is false,
23875         use old, non-caching extraction scripts.
23876         Suggestion by Bruno Haible.
23877
23878 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23879
23880         gnulib-tool: cache module metainformation.
23881         * gnulib-tool (sed_extract_prog): Match newline before each
23882         header, and rewrite header to a shell variable suffix.
23883         (func_cache_var, func_cache_lookup_module): New functions,
23884         to turn a module name into a cache variable prefix, and to
23885         look up and cache module metainformation.
23886         (func_get_description, func_get_status)
23887         (func_get_notice, func_get_applicability, func_get_filelist)
23888         (func_get_dependencies, func_get_autoconf_early_snippet)
23889         (func_get_autoconf_snippet, func_get_automake_snippet)
23890         (func_get_include_directive, func_get_link_directive)
23891         (func_get_license, func_get_maintainer): Use
23892         func_cache_lookup_module.
23893
23894 2010-02-07  Bruno Haible  <bruno@clisp.org>
23895
23896         fnctl: Fix missing dependency.
23897         * modules/fcntl (Depends-on): Add getdtablesize.
23898         Reported by John W. Eaton <jwe@gnu.org>.
23899
23900 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23901
23902         Argp: fix recognition of short alias options.
23903
23904         * lib/argp-parse.c (convert_options): Fix improper use of
23905         `|' between character values.
23906         * tests/test-argp.c (group1_option): New alias option
23907         --read (-r).
23908         (group1_parser): Special handling for 'r'.
23909         (test15): New test case.
23910         (test_fun): Add test15.
23911         * tests/test-argp-2.sh: Update expected --help and --usage
23912         outputs.
23913
23914 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23915
23916         * tests/test-argp.c: Fix indentation.
23917
23918 2010-02-04  Eric Blake  <ebb9@byu.net>
23919
23920         gettimeofday: expose type of second argument
23921         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
23922         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
23923         * tests/test-gettimeofday.c: Use it to silence warning.
23924         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
23925         the issue.
23926
23927 2010-02-03  Jim Meyering  <meyering@redhat.com>
23928
23929         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
23930         * lib/regcomp.c (TYPE_SIGNED): Define.
23931         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
23932
23933         regcomp.c: avoid a new -Wshadow warning
23934         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
23935
23936 2010-02-01  Jim Meyering  <meyering@redhat.com>
23937
23938         removing useless parentheses in cpp #define directives
23939         For motivation, see commit c0221df4, "define STREQ(a,b)
23940         consistently, removing useless parentheses"
23941         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
23942         * lib/mountlist.c (MNT_IGNORE): Likewise.
23943         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
23944
23945 2010-02-01  Eric Blake  <ebb9@byu.net>
23946
23947         sys_time: use link-warning
23948         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
23949         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
23950         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
23951         * modules/sys_time (Depends-on): Add warn-on-use.
23952         (Makefile.am): Always build replacement.
23953         (configure.ac): Update substitutions.
23954         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
23955         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
23956         bother with SYS_TIME_H.
23957         * modules/gettimeofday (configure.ac): Declare indicator.
23958         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
23959         in use.
23960
23961         closein-tests: silence compiler warning
23962         * tests/test-closein.c (main): Ignore fread result.
23963         * modules/closein-tests (Depends-on): Add ignore-value.
23964
23965         tests: silence warning about system return
23966         * tests/test-areadlink-with-size.c (main): Ignore system result.
23967         * tests/test-areadlink.c (main): Likewise.
23968         * tests/test-areadlinkat-with-size.c (main): Likewise.
23969         * tests/test-areadlinkat.c (main): Likewise.
23970         * tests/test-canonicalize-lgpl.c (main): Likewise.
23971         * tests/test-canonicalize.c (main): Likewise.
23972         * tests/test-chown.c (main): Likewise.
23973         * tests/test-fchownat.c (main): Likewise.
23974         * tests/test-fdutimensat.c (main): Likewise.
23975         * tests/test-fstatat.c (main): Likewise.
23976         * tests/test-futimens.c (main): Likewise.
23977         * tests/test-lchown.c (main): Likewise.
23978         * tests/test-link.c (main): Likewise.
23979         * tests/test-linkat.c (main): Likewise.
23980         * tests/test-lstat.c (main): Likewise.
23981         * tests/test-mkdir.c (main): Likewise.
23982         * tests/test-mkdirat.c (main): Likewise.
23983         * tests/test-mkfifo.c (main): Likewise.
23984         * tests/test-mkfifoat.c (main): Likewise.
23985         * tests/test-mknod.c (main): Likewise.
23986         * tests/test-readlink.c (main): Likewise.
23987         * tests/test-remove.c (main): Likewise.
23988         * tests/test-rename.c (main): Likewise.
23989         * tests/test-renameat.c (main): Likewise.
23990         * tests/test-rmdir.c (main): Likewise.
23991         * tests/test-symlink.c (main): Likewise.
23992         * tests/test-symlinkat.c (main): Likewise.
23993         * tests/test-unlink.c (main): Likewise.
23994         * tests/test-unlinkat.c (main): Likewise.
23995         * tests/test-utimens.c (main): Likewise.
23996         * tests/test-utimensat.c (main): Likewise.
23997         * modules/areadlink-tests (Depends-on): Add ignore-value.
23998         * modules/areadlink-with-size-tests (Depends-on): Likewise.
23999         * modules/areadlinkat-tests (Depends-on): Likewise.
24000         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
24001         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24002         * modules/canonicalize-tests (Depends-on): Likewise.
24003         * modules/chown-tests (Depends-on): Likewise.
24004         * modules/fdutimensat-tests (Depends-on): Likewise.
24005         * modules/futimens-tests (Depends-on): Likewise.
24006         * modules/lchown-tests (Depends-on): Likewise.
24007         * modules/link-tests (Depends-on): Likewise.
24008         * modules/linkat-tests (Depends-on): Likewise.
24009         * modules/lstat-tests (Depends-on): Likewise.
24010         * modules/mkdir-tests (Depends-on): Likewise.
24011         * modules/mkfifo-tests (Depends-on): Likewise.
24012         * modules/mkfifoat-tests (Depends-on): Likewise.
24013         * modules/mknod-tests (Depends-on): Likewise.
24014         * modules/openat-tests (Depends-on): Likewise.
24015         * modules/readlink-tests (Depends-on): Likewise.
24016         * modules/remove-tests (Depends-on): Likewise.
24017         * modules/rename-tests (Depends-on): Likewise.
24018         * modules/renameat-tests (Depends-on): Likewise.
24019         * modules/rmdir-tests (Depends-on): Likewise.
24020         * modules/symlink-tests (Depends-on): Likewise.
24021         * modules/symlinkat-tests (Depends-on): Likewise.
24022         * modules/unlink-tests (Depends-on): Likewise.
24023         * modules/utimens-tests (Depends-on): Likewise.
24024         * modules/utimensat-tests (Depends-on): Likewise.
24025
24026 2010-01-31  Bruno Haible  <bruno@clisp.org>
24027
24028         Perform the same test for many <math.h> functions.
24029         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
24030         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
24031         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
24032         of gl_MATHFUNC.
24033         * modules/acos (configure.ac): Likewise.
24034         * modules/asin (configure.ac): Likewise.
24035         * modules/atan (configure.ac): Likewise.
24036         * modules/atan2 (configure.ac): Likewise.
24037         * modules/cbrt (configure.ac): Likewise.
24038         * modules/copysign (configure.ac): Likewise.
24039         * modules/cos (configure.ac): Likewise.
24040         * modules/cosh (configure.ac): Likewise.
24041         * modules/erf (configure.ac): Likewise.
24042         * modules/erfc (configure.ac): Likewise.
24043         * modules/exp (configure.ac): Likewise.
24044         * modules/fmod (configure.ac): Likewise.
24045         * modules/hypot (configure.ac): Likewise.
24046         * modules/j0 (configure.ac): Likewise.
24047         * modules/j1 (configure.ac): Likewise.
24048         * modules/jn (configure.ac): Likewise.
24049         * modules/lgamma (configure.ac): Likewise.
24050         * modules/log (configure.ac): Likewise.
24051         * modules/log10 (configure.ac): Likewise.
24052         * modules/log1p (configure.ac): Likewise.
24053         * modules/pow (configure.ac): Likewise.
24054         * modules/remainder (configure.ac): Likewise.
24055         * modules/sin (configure.ac): Likewise.
24056         * modules/sinh (configure.ac): Likewise.
24057         * modules/tan (configure.ac): Likewise.
24058         * modules/tanh (configure.ac): Likewise.
24059         * modules/y0 (configure.ac): Likewise.
24060         * modules/y1 (configure.ac): Likewise.
24061         * modules/yn (configure.ac): Likewise.
24062         Suggested by Paolo Bonzini.
24063
24064 2010-01-31  Bruno Haible  <bruno@clisp.org>
24065
24066         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
24067
24068 2010-01-31  Bruno Haible  <bruno@clisp.org>
24069
24070         Work around getdelim() bug on FreeBSD 8.0.
24071         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
24072         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
24073         not work.
24074         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
24075         is 1.
24076         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
24077         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
24078         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
24079         a non-zero size.
24080         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
24081
24082 2010-01-31  Bruno Haible  <bruno@clisp.org>
24083
24084         Work around getline() bug on FreeBSD 8.0.
24085         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
24086         and a non-zero size.
24087         * tests/test-getline.c (main): Likewise.
24088         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
24089         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
24090
24091 2010-01-28  Eric Blake  <ebb9@byu.net>
24092
24093         regex: fix build failure
24094         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
24095         platforms.
24096
24097 2010-01-28  Jim Meyering  <meyering@redhat.com>
24098
24099         regex: do not ignore memory allocation failure
24100         * lib/regex_internal.c (create_cd_newstate): Detect
24101         re_node_set_init_copy failure.   Extracted from glibc commit
24102         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24103
24104         regex: sync more white-space changes from libc
24105         * lib/regex_internal.c: White-space only changes.
24106         * lib/regexec.c: Likewise.
24107
24108         regex: add many uses of __attribute_warn_unused_result__
24109         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
24110         * lib/regexec.c: Likewise.
24111         Extracted from a messy glibc commit.
24112
24113         regcomp.c: spelling and merge-artifact from glibc
24114         * lib/regcomp.c: Merge remainder of glibc's
24115         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24116
24117         regcomp.c: sync white-space changes from glibc
24118         * lib/regcomp.c: Merge to accommodate white space
24119         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24120
24121         regcomp.c: do not ignore internal return values
24122         * lib/regcomp.c: Do not ignore internal return values.
24123         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
24124         but without its white-space changes and spelling fixes.
24125
24126         regex_internal.h: define __attribute_warn_unused_result__
24127         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
24128
24129         maint: add a syntax-check rule to check for vulnerable Makefile.in
24130         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
24131
24132 2010-01-27  Jim Meyering  <meyering@redhat.com>
24133
24134         ncftpput-ftp: clean up spaces
24135         * build-aux/ncftpput-ftp: Make Copyright line consistent.
24136         Remove trailing blanks.
24137
24138 2010-01-27  Simon Josefsson  <simon@josefsson.org>
24139
24140         * build-aux/git-version-gen: Fix copyright statement.
24141         * build-aux/gnupload: Likewise.
24142         * tests/test-arcfour.c: Likewise.
24143         * tests/test-arctwo.c: Likewise.
24144         * tests/test-count-one-bits.c: Likewise.
24145         * tests/test-crc.c: Likewise.
24146         * tests/test-des.c: Likewise.
24147         * tests/test-gc-arcfour.c: Likewise.
24148         * tests/test-gc-arctwo.c: Likewise.
24149         * tests/test-gc-des.c: Likewise.
24150         * tests/test-gc-hmac-md5.c: Likewise.
24151         * tests/test-gc-hmac-sha1.c: Likewise.
24152         * tests/test-gc-md2.c: Likewise.
24153         * tests/test-gc-md4.c: Likewise.
24154         * tests/test-gc-md5.c: Likewise.
24155         * tests/test-gc-pbkdf2-sha1.c: Likewise.
24156         * tests/test-gc-rijndael.c: Likewise.
24157         * tests/test-gc-sha1.c: Likewise.
24158         * tests/test-gc.c: Likewise.
24159         * tests/test-gethostname.c: Likewise.
24160         * tests/test-gettimeofday.c: Likewise.
24161         * tests/test-hash.c: Likewise.
24162         * tests/test-hmac-md5.c: Likewise.
24163         * tests/test-hmac-sha1.c: Likewise.
24164         * tests/test-md2.c: Likewise.
24165         * tests/test-md4.c: Likewise.
24166         * tests/test-md5.c: Likewise.
24167         * tests/test-memchr.c: Likewise.
24168         * tests/test-memchr2.c: Likewise.
24169         * tests/test-memcmp.c: Likewise.
24170         * tests/test-memmem.c: Likewise.
24171         * tests/test-memrchr.c: Likewise.
24172         * tests/test-rawmemchr.c: Likewise.
24173         * tests/test-read-file.c: Likewise.
24174         * tests/test-rijndael.c: Likewise.
24175         * tests/test-sockets.c: Likewise.
24176         * tests/test-strchrnul.c: Likewise.
24177         * tests/test-strstr.c: Likewise.
24178         * tests/test-strtod.c: Likewise.
24179         * build-aux/ncftpput-ftp: Likewise.
24180
24181 2010-01-26  Eric Blake  <ebb9@byu.net>
24182
24183         ignore-value: update recommended header name
24184         * modules/ignore-value (Include): Only use <> for headers that
24185         exist in glibc.
24186
24187 2010-01-26  Jim Meyering  <meyering@redhat.com>
24188
24189         test-userspec.c: avoid compiler warnings
24190         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
24191         and "initialization discards qualifiers..." warnings.
24192         Put the first "uid" in its own scope, and make char* members "const".
24193
24194 2010-01-25  Bruno Haible  <bruno@clisp.org>
24195
24196         gnulib-tool: Make warning diagnostics consistent.
24197         * gnulib-tool (func_warning): New function.
24198         Use it everywhere where gnulib-tool produces output to stderr and it is
24199         not a fatal error.
24200
24201 2010-01-25  Bruno Haible  <bruno@clisp.org>
24202
24203         Fix test dependencies.
24204         * modules/xstrtol-tests (Depends-on): Add inttypes.
24205         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
24206
24207 2010-01-25 Pádraig Brady <P@draigBrady.com>
24208
24209         syntax-check: detect incorrect boolean macro values in config.h
24210         * modules/maintainer-makefile (configure.ac): Parameterize the location
24211         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
24212         The logic is from Eric Blake and the location indicated by Jim Meyering.
24213         Note the more natural CONFIG_HEADER name is prohibited by automake
24214         for backwards compatibility reasons.
24215         * top/maint.mk (sc_Wundef_boolean): New rule.
24216
24217 2010-01-25  Jim Meyering  <meyering@redhat.com>
24218
24219         bootstrap: detect MacOS 10.6's shasum, too
24220         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
24221         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
24222
24223 2010-01-23  Jim Meyering  <meyering@redhat.com>
24224
24225         xstrtoll: new module
24226         * modules/xstrtoll: New file.
24227         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
24228         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
24229         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
24230         ./configure fails if you use this module and lack "long long".
24231         * modules/xstrtoll-tests: New module.
24232         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
24233         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
24234         new init.sh-based test framework.
24235
24236 2010-01-24  Bruno Haible  <bruno@clisp.org>
24237
24238         Tests for module 'yn'.
24239         * modules/yn-tests: New file.
24240         * tests/test-yn.c: New file.
24241
24242         Tests for module 'y1'.
24243         * modules/y1-tests: New file.
24244         * tests/test-y1.c: New file.
24245
24246         Tests for module 'y0'.
24247         * modules/y0-tests: New file.
24248         * tests/test-y0.c: New file.
24249
24250         Tests for module 'tanh'.
24251         * modules/tanh-tests: New file.
24252         * tests/test-tanh.c: New file.
24253
24254         Tests for module 'tan'.
24255         * modules/tan-tests: New file.
24256         * tests/test-tan.c: New file.
24257
24258         Tests for module 'sqrt'.
24259         * modules/sqrt-tests: New file.
24260         * tests/test-sqrt.c: New file.
24261
24262         Tests for module 'sinh'.
24263         * modules/sinh-tests: New file.
24264         * tests/test-sinh.c: New file.
24265
24266         Tests for module 'sin'.
24267         * modules/sin-tests: New file.
24268         * tests/test-sin.c: New file.
24269
24270         Tests for module 'rint'.
24271         * modules/rint-tests: New file.
24272         * tests/test-rint.c: New file.
24273
24274         Tests for module 'remainder'.
24275         * modules/remainder-tests: New file.
24276         * tests/test-remainder.c: New file.
24277
24278         Tests for module 'pow'.
24279         * modules/pow-tests: New file.
24280         * tests/test-pow.c: New file.
24281
24282         Tests for module 'nextafter'.
24283         * modules/nextafter-tests: New file.
24284         * tests/test-nextafter.c: New file.
24285
24286         Tests for module 'modf'.
24287         * modules/modf-tests: New file.
24288         * tests/test-modf.c: New file.
24289
24290         Tests for module 'logb'.
24291         * modules/logb-tests: New file.
24292         * tests/test-logb.c: New file.
24293
24294         Tests for module 'log1p'.
24295         * modules/log1p-tests: New file.
24296         * tests/test-log1p.c: New file.
24297
24298         Tests for module 'log10'.
24299         * modules/log10-tests: New file.
24300         * tests/test-log10.c: New file.
24301
24302         Tests for module 'log'.
24303         * modules/log-tests: New file.
24304         * tests/test-log.c: New file.
24305
24306         Tests for module 'lgamma'.
24307         * modules/lgamma-tests: New file.
24308         * tests/test-lgamma.c: New file.
24309
24310         Tests for module 'ldexp'.
24311         * modules/ldexp-tests: New file.
24312         * tests/test-ldexp.c: New file.
24313
24314         Tests for module 'jn'.
24315         * modules/jn-tests: New file.
24316         * tests/test-jn.c: New file.
24317
24318         Tests for module 'j1'.
24319         * modules/j1-tests: New file.
24320         * tests/test-j1.c: New file.
24321
24322         Tests for module 'j0'.
24323         * modules/j0-tests: New file.
24324         * tests/test-j0.c: New file.
24325
24326         Tests for module 'hypot'.
24327         * modules/hypot-tests: New file.
24328         * tests/test-hypot.c: New file.
24329
24330         Tests for module 'fmod'.
24331         * modules/fmod-tests: New file.
24332         * tests/test-fmod.c: New file.
24333
24334         Tests for module 'fabs'.
24335         * modules/fabs-tests: New file.
24336         * tests/test-fabs.c: New file.
24337
24338         Tests for module 'exp'.
24339         * modules/exp-tests: New file.
24340         * tests/test-exp.c: New file.
24341
24342         Tests for module 'erfc'.
24343         * modules/erfc-tests: New file.
24344         * tests/test-erfc.c: New file.
24345
24346         Tests for module 'erf'.
24347         * modules/erf-tests: New file.
24348         * tests/test-erf.c: New file.
24349
24350         Tests for module 'cosh'.
24351         * modules/cosh-tests: New file.
24352         * tests/test-cosh.c: New file.
24353
24354         Tests for module 'cos'.
24355         * modules/cos-tests: New file.
24356         * tests/test-cos.c: New file.
24357
24358         Tests for module 'copysign'.
24359         * modules/copysign-tests: New file.
24360         * tests/test-copysign.c: New file.
24361
24362         Tests for module 'cbrt'.
24363         * modules/cbrt-tests: New file.
24364         * tests/test-cbrt.c: New file.
24365
24366         Tests for module 'atan2'.
24367         * modules/atan2-tests: New file.
24368         * tests/test-atan2.c: New file.
24369
24370         Tests for module 'atan'.
24371         * modules/atan-tests: New file.
24372         * tests/test-atan.c: New file.
24373
24374         Tests for module 'asin'.
24375         * modules/asin-tests: New file.
24376         * tests/test-asin.c: New file.
24377
24378         Tests for module 'acos'.
24379         * modules/acos-tests: New file.
24380         * tests/test-acos.c: New file.
24381
24382 2010-01-24  Bruno Haible  <bruno@clisp.org>
24383
24384         Fix tests for common <math.h> functions.
24385         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
24386         code snippet that references the function pointer, rather than merely
24387         calling the function. Substitute the FUNC_LIBM variable.
24388         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
24389         * modules/acos (configure.ac): Likewise.
24390         * modules/asin (configure.ac): Likewise.
24391         * modules/atan (configure.ac): Likewise.
24392         * modules/atan2 (configure.ac): Likewise.
24393         * modules/cbrt (configure.ac): Likewise.
24394         * modules/copysign (configure.ac): Likewise.
24395         * modules/cos (configure.ac): Likewise.
24396         * modules/cosh (configure.ac): Likewise.
24397         * modules/erf (configure.ac): Likewise.
24398         * modules/erfc (configure.ac): Likewise.
24399         * modules/exp (configure.ac): Likewise.
24400         * modules/fabs (configure.ac): Likewise.
24401         * modules/fmod (configure.ac): Likewise.
24402         * modules/hypot (configure.ac): Likewise.
24403         * modules/j0 (configure.ac): Likewise.
24404         * modules/j1 (configure.ac): Likewise.
24405         * modules/jn (configure.ac): Likewise.
24406         * modules/ldexp (configure.ac): Likewise.
24407         * modules/lgamma (configure.ac): Likewise.
24408         * modules/log (configure.ac): Likewise.
24409         * modules/log10 (configure.ac): Likewise.
24410         * modules/log1p (configure.ac): Likewise.
24411         * modules/logb (configure.ac): Likewise.
24412         * modules/modf (configure.ac): Likewise.
24413         * modules/nextafter (configure.ac): Likewise.
24414         * modules/pow (configure.ac): Likewise.
24415         * modules/remainder (configure.ac): Likewise.
24416         * modules/rint (configure.ac): Likewise.
24417         * modules/sin (configure.ac): Likewise.
24418         * modules/sinh (configure.ac): Likewise.
24419         * modules/tan (configure.ac): Likewise.
24420         * modules/tanh (configure.ac): Likewise.
24421         * modules/y0 (configure.ac): Likewise.
24422         * modules/y1 (configure.ac): Likewise.
24423         * modules/yn (configure.ac): Likewise.
24424
24425 2010-01-24  Bruno Haible  <bruno@clisp.org>
24426
24427         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
24428         * tests/test-acosl.c (x): New variable.
24429         (main): Store argument in x and fetch it from x.
24430         * tests/test-asinl.c (x): New variable.
24431         (main): Store argument in x and fetch it from x.
24432         * tests/test-atanl.c (x): New variable.
24433         (main): Store argument in x and fetch it from x.
24434         * tests/test-cosl.c (x): New variable.
24435         (main): Store argument in x and fetch it from x.
24436         * tests/test-expl.c (x): New variable.
24437         (main): Store argument in x and fetch it from x.
24438         * tests/test-logl.c (x): New variable.
24439         (main): Store argument in x and fetch it from x.
24440         * tests/test-sinl.c (x): New variable.
24441         (main): Store argument in x and fetch it from x.
24442         * tests/test-sqrtl.c (x): New variable.
24443         (main): Store argument in x and fetch it from x.
24444         * tests/test-tanl.c (x): New variable.
24445         (main): Store argument in x and fetch it from x.
24446
24447 2010-01-24  Bruno Haible  <bruno@clisp.org>
24448
24449         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
24450         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
24451         assignments to the initial TESTS_ENVIRONMENT.
24452         * doc/gnulib.texi (Unit test modules): Document it.
24453         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
24454         TESTS_ENVIRONMENT.
24455         * modules/btowc-tests (Makefile.am): Likewise.
24456         * modules/c-stack-tests (Makefile.am): Likewise.
24457         * modules/c-strcase-tests (Makefile.am): Likewise.
24458         * modules/copy-file-tests (Makefile.am): Likewise.
24459         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
24460         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
24461         * modules/mbrtowc-tests (Makefile.am): Likewise.
24462         * modules/mbscasecmp-tests (Makefile.am): Likewise.
24463         * modules/mbscasestr-tests (Makefile.am): Likewise.
24464         * modules/mbschr-tests (Makefile.am): Likewise.
24465         * modules/mbscspn-tests (Makefile.am): Likewise.
24466         * modules/mbsinit-tests (Makefile.am): Likewise.
24467         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
24468         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
24469         * modules/mbspbrk-tests (Makefile.am): Likewise.
24470         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
24471         * modules/mbsrchr-tests (Makefile.am): Likewise.
24472         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
24473         * modules/mbsspn-tests (Makefile.am): Likewise.
24474         * modules/mbsstr-tests (Makefile.am): Likewise.
24475         * modules/nl_langinfo-tests (Makefile.am): Likewise.
24476         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
24477         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
24478         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
24479         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
24480         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
24481         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
24482         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
24483         * modules/wcrtomb-tests (Makefile.am): Likewise.
24484         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
24485         * modules/wcsrtombs-tests (Makefile.am): Likewise.
24486         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
24487         assignments from TESTS_ENVIRONMENT.
24488         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
24489         augmentation.
24490         * modules/argp-version-etc-tests (Makefile.am): Likewise.
24491         * modules/atexit-tests (Makefile.am): Likewise.
24492         * modules/binary-io-tests (Makefile.am): Likewise.
24493         * modules/closein-tests (Makefile.am): Likewise.
24494         * modules/dprintf-posix-tests (Makefile.am): Likewise.
24495         * modules/exclude-tests (Makefile.am): Likewise.
24496         * modules/fflush-tests (Makefile.am): Likewise.
24497         * modules/fpending-tests (Makefile.am): Likewise.
24498         * modules/fprintf-posix-tests (Makefile.am): Likewise.
24499         * modules/freadahead-tests (Makefile.am): Likewise.
24500         * modules/freadptr-tests (Makefile.am): Likewise.
24501         * modules/freadseek-tests (Makefile.am): Likewise.
24502         * modules/fseek-tests (Makefile.am): Likewise.
24503         * modules/fseeko-tests (Makefile.am): Likewise.
24504         * modules/ftell-tests (Makefile.am): Likewise.
24505         * modules/ftello-tests (Makefile.am): Likewise.
24506         * modules/idpriv-drop-tests (Makefile.am): Likewise.
24507         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
24508         * modules/lseek-tests (Makefile.am): Likewise.
24509         * modules/parse-duration-tests (Makefile.am): Likewise.
24510         * modules/perror-tests (Makefile.am): Likewise.
24511         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
24512         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
24513         * modules/pipe-tests (Makefile.am): Likewise.
24514         * modules/pread-tests (Makefile.am): Likewise.
24515         * modules/printf-posix-tests (Makefile.am): Likewise.
24516         * modules/select-tests (Makefile.am): Likewise.
24517         * modules/sigpipe-tests (Makefile.am): Likewise.
24518         * modules/tsearch-tests (Makefile.am): Likewise.
24519         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
24520         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
24521         * modules/uniname/uniname-tests (Makefile.am): Likewise.
24522         * modules/uniwidth/width-tests (Makefile.am): Likewise.
24523         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
24524         * modules/version-etc-tests (Makefile.am): Likewise.
24525         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
24526         * modules/vprintf-posix-tests (Makefile.am): Likewise.
24527         * modules/xalloc-die-tests (Makefile.am): Likewise.
24528         * modules/xprintf-posix-tests (Makefile.am): Likewise.
24529         * modules/xstrtoimax-tests (Makefile.am): Likewise.
24530         * modules/xstrtol-tests (Makefile.am): Likewise.
24531         * modules/xstrtoumax-tests (Makefile.am): Likewise.
24532         * modules/yesno-tests (Makefile.am): Likewise.
24533         Suggested by Jim Meyering.
24534
24535 2010-01-24  Bruno Haible  <bruno@clisp.org>
24536
24537         More documentation.
24538         * doc/gnulib.texi (Writing modules): New chapter.
24539         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
24540         the new chapter.
24541
24542 2010-01-24  Jim Meyering  <meyering@redhat.com>
24543
24544         maint.mk: do not prepend "./" after filtering
24545         * top/maint.mk (_prepend_srcdir_prefix): New variable
24546         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
24547         "./" when $(srcdir) is ".".
24548
24549         define STREQ(a,b) consistently, removing useless parentheses
24550         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
24551         since the only risk is that "a" or "b" contains an unparenthesized
24552         comma, but if either did that, STREQ would have 3 or more arguments.
24553         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
24554         * lib/fts.c (STREQ): Remove unnecessary parentheses.
24555         * lib/hash-triple.c (STREQ): Likewise.
24556         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
24557         * lib/getugroups.c (STREQ): Likewise.
24558
24559 2010-01-23  Jim Meyering  <meyering@redhat.com>
24560
24561         maint.mk: fix syntax-check in a non-srcdir build directory
24562         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
24563         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
24564
24565 2010-01-22  Jim Meyering  <meyering@redhat.com>
24566
24567         userspec: add unit tests
24568         * tests/test-userspec.c: New file.
24569         * modules/userspec-tests: Likewise.
24570
24571 2010-01-21  Jim Meyering  <meyering@redhat.com>
24572
24573         maint.mk: handle source file names containing "." robustly
24574         * top/maint.mk (_dot_escaped_srcdir): Define.
24575         (VC_LIST): Use it in LHS of sed substitution.
24576
24577 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
24578
24579         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
24580         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
24581         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
24582         from a non-srcdir build.
24583
24584 2010-01-20  Eric Blake  <ebb9@byu.net>
24585
24586         warn-on-use: use instead of link-warning
24587         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
24588         * modules/unistd (Depends-on, Makefile.am): Likewise.
24589         * modules/arpa_inet (Depends-on): Replace link-warning with
24590         warn-on-use.
24591         (Makefile.am): Update rules accordingly.
24592         * modules/ctype (Depends-on, Makefile.am): Likewise.
24593         * modules/dirent (Depends-on, Makefile.am): Likewise.
24594         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
24595         * modules/inttypes (Depends-on, Makefile.am): Likewise.
24596         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24597         * modules/locale (Depends-on, Makefile.am): Likewise.
24598         * modules/math (Depends-on, Makefile.am): Likewise.
24599         * modules/search (Depends-on, Makefile.am): Likewise.
24600         * modules/signal (Depends-on, Makefile.am): Likewise.
24601         * modules/spawn (Depends-on, Makefile.am): Likewise.
24602         * modules/stdlib (Depends-on, Makefile.am): Likewise.
24603         * modules/string (Depends-on, Makefile.am): Likewise.
24604         * modules/strings (Depends-on, Makefile.am): Likewise.
24605         * modules/sys_file (Depends-on, Makefile.am): Likewise.
24606         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
24607         * modules/sys_select (Depends-on, Makefile.am): Likewise.
24608         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
24609         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
24610         * modules/sys_times (Depends-on, Makefile.am): Likewise.
24611         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
24612         * modules/wchar (Depends-on, Makefile.am): Likewise.
24613         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
24614         should be poisoned.
24615         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
24616         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
24617         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
24618         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24619         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24620         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
24621         * m4/math_h.m4 (gl_MATH_H): Likewise.
24622         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24623         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
24624         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24625         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
24626         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
24627         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
24628         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
24629         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
24630         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24631         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24632         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24633         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
24634         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24635         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24636         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24637         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24638         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
24639         GL_LINK_WARNING.
24640         * lib/ctype.in.h: Likewise.
24641         * lib/dirent.in.h: Likewise.
24642         * lib/fcntl.in.h: Likewise.
24643         * lib/inttypes.in.h: Likewise.
24644         * lib/langinfo.in.h: Likewise.
24645         * lib/locale.in.h: Likewise.
24646         * lib/math.in.h: Likewise.
24647         * lib/search.in.h: Likewise.
24648         * lib/signal.in.h: Likewise.
24649         * lib/spawn.in.h: Likewise.
24650         * lib/stdio.in.h: Likewise.
24651         * lib/stdlib.in.h: Likewise.
24652         * lib/string.in.h: Likewise.
24653         * lib/strings.in.h: Likewise.
24654         * lib/sys_file.in.h: Likewise.
24655         * lib/sys_ioctl.in.h: Likewise.
24656         * lib/sys_select.in.h: Likewise.
24657         * lib/sys_socket.in.h: Likewise.
24658         * lib/sys_stat.in.h: Likewise.
24659         * lib/sys_times.in.h: Likewise.
24660         * lib/sys_utsname.in.h: Likewise.
24661         * lib/unistd.in.h: Likewise.
24662         * lib/wchar.in.h: Likewise.
24663
24664 2010-01-20  Bruno Haible  <bruno@clisp.org>
24665
24666         Avoid duplicate -lm.
24667         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
24668         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
24669         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
24670         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
24671         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
24672         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
24673         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
24674         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
24675         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
24676         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
24677         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
24678         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
24679         Reported by Paolo Bonzini.
24680
24681 2010-01-19  Bruno Haible  <bruno@clisp.org>
24682
24683         langinfo, nl_langinfo: Relicense under LGPLv2+.
24684         * modules/langinfo (License): Change to LGPLv2+.
24685         * modules/nl_langinfo (License): Likewise.
24686         Patch by David Lutterkort <lutter@redhat.com>.
24687
24688 2010-01-19  Bruno Haible  <bruno@clisp.org>
24689
24690         Avoid compilation error with cc on OSF/1 5.1.
24691         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
24692         statement, not before.
24693         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24694
24695 2010-01-18  Bruno Haible  <bruno@clisp.org>
24696
24697         Avoid a link error due to the __printf__ symbol.
24698         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
24699         and 2.6.x.
24700         (__format__, __printf__): Remove definitions.
24701         * lib/argp-fmtstream.h: Likewise.
24702         * lib/argp.h: Likewise.
24703         * lib/error.h: Likewise.
24704         * lib/vasnprintf.h: Likewise.
24705         * lib/xprintf.h: Likewise.
24706         * lib/xvasprintf.h: Likewise.
24707         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24708
24709 2010-01-18  Bruno Haible  <bruno@clisp.org>
24710
24711         Tests for module 'tanl'.
24712         * modules/tanl-tests: New file.
24713         * tests/test-tanl.c: New file.
24714
24715         Tests for module 'sqrtl'.
24716         * modules/sqrtl-tests: New file.
24717         * tests/test-sqrtl.c: New file.
24718
24719         Tests for module 'sinl'.
24720         * modules/sinl-tests: New file.
24721         * tests/test-sinl.c: New file.
24722
24723         Tests for module 'logl'.
24724         * modules/logl-tests: New file.
24725         * tests/test-logl.c: New file.
24726
24727         Tests for module 'expl'.
24728         * modules/expl-tests: New file.
24729         * tests/test-expl.c: New file.
24730
24731         Tests for module 'cosl'.
24732         * modules/cosl-tests: New file.
24733         * tests/test-cosl.c: New file.
24734
24735         Tests for module 'atanl'.
24736         * modules/atanl-tests: New file.
24737         * tests/test-atanl.c: New file.
24738
24739         Tests for module 'asinl'.
24740         * modules/asinl-tests: New file.
24741         * tests/test-asinl.c: New file.
24742
24743         Tests for module 'acosl'.
24744         * modules/acosl-tests: New file.
24745         * tests/test-acosl.c: New file.
24746
24747         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24748         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
24749         tanl): Use the standard gnulib idiom.
24750         * lib/cosl.c: Don't include trigl.c and sincosl.c.
24751         * lib/sinl.c: Likewise.
24752         * lib/tanl.c: Don't include trigl.c.
24753         (kernel_tanl): Make static.
24754         * lib/sincosl.c: Include trigl.h first.
24755         * lib/trigl.c: Likewise.
24756         * m4/acosl.m4: New file.
24757         * m4/asinl.m4: New file.
24758         * m4/atanl.m4: New file.
24759         * m4/cosl.m4: New file.
24760         * m4/expl.m4: New file.
24761         * m4/logl.m4: New file.
24762         * m4/sinl.m4: New file.
24763         * m4/sqrtl.m4: New file.
24764         * m4/tanl.m4: New file.
24765         * m4/mathl.m4: Remove file.
24766         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
24767         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24768         Don't initialize GNULIB_MATHL.
24769         * modules/acosl: New file.
24770         * modules/asinl: New file.
24771         * modules/atanl: New file.
24772         * modules/cosl: New file.
24773         * modules/expl: New file.
24774         * modules/logl: New file.
24775         * modules/sinl: New file.
24776         * modules/sqrtl: New file.
24777         * modules/tanl: New file.
24778         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
24779         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
24780         substitute GNULIB_MATHL.
24781         * modules/mathl: Rewritten.
24782         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
24783         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
24784         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
24785         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
24786         * doc/posix-functions/expl.texi: Mention the 'expl' module.
24787         * doc/posix-functions/logl.texi: Mention the 'logl' module.
24788         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
24789         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
24790         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
24791
24792 2010-01-18  Bruno Haible  <bruno@clisp.org>
24793
24794         sqrt: Make gl_FUNC_SQRT requirable.
24795         * m4/sqrt.m4: New file.
24796         * modules/sqrt (Files): Add it.
24797         (configure.ac): Invoke gl_FUNC_SQRT.
24798
24799 2010-01-18  Bruno Haible  <bruno@clisp.org>
24800
24801         New modules for common <math.h> functions.
24802         * m4/mathfunc.m4: New file.
24803         * modules/acos: New file.
24804         * modules/asin: New file.
24805         * modules/atan: New file.
24806         * modules/atan2: New file.
24807         * modules/cbrt: New file.
24808         * modules/copysign: New file.
24809         * modules/cos: New file.
24810         * modules/cosh: New file.
24811         * modules/erf: New file.
24812         * modules/erfc: New file.
24813         * modules/exp: New file.
24814         * modules/fabs: New file.
24815         * modules/fmod: New file.
24816         * modules/hypot: New file.
24817         * modules/j0: New file.
24818         * modules/j1: New file.
24819         * modules/jn: New file.
24820         * modules/ldexp: New file.
24821         * modules/lgamma: New file.
24822         * modules/log: New file.
24823         * modules/log10: New file.
24824         * modules/log1p: New file.
24825         * modules/logb: New file.
24826         * modules/modf: New file.
24827         * modules/nextafter: New file.
24828         * modules/pow: New file.
24829         * modules/remainder: New file.
24830         * modules/rint: New file.
24831         * modules/sin: New file.
24832         * modules/sinh: New file.
24833         * modules/sqrt: New file.
24834         * modules/tan: New file.
24835         * modules/tanh: New file.
24836         * modules/y0: New file.
24837         * modules/y1: New file.
24838         * modules/yn: New file.
24839         * doc/posix-functions/acos.texi: Mention the 'acos' module.
24840         * doc/posix-functions/asin.texi: Mention the 'asin' module.
24841         * doc/posix-functions/atan.texi: Mention the 'atan' module.
24842         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
24843         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
24844         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
24845         * doc/posix-functions/cos.texi: Mention the 'cos' module.
24846         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
24847         * doc/posix-functions/erf.texi: Mention the 'erf' module.
24848         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
24849         * doc/posix-functions/exp.texi: Mention the 'exp' module.
24850         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
24851         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
24852         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
24853         * doc/posix-functions/j0.texi: Mention the 'j0' module.
24854         * doc/posix-functions/j1.texi: Mention the 'j1' module.
24855         * doc/posix-functions/jn.texi: Mention the 'jn' module.
24856         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
24857         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
24858         * doc/posix-functions/log.texi: Mention the 'log' module.
24859         * doc/posix-functions/log10.texi: Mention the 'log10' module.
24860         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
24861         * doc/posix-functions/logb.texi: Mention the 'logb' module.
24862         * doc/posix-functions/modf.texi: Mention the 'modf' module.
24863         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
24864         * doc/posix-functions/pow.texi: Mention the 'pow' module.
24865         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
24866         * doc/posix-functions/rint.texi: Mention the 'rint' module.
24867         * doc/posix-functions/sin.texi: Mention the 'sin' module.
24868         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
24869         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
24870         * doc/posix-functions/tan.texi: Mention the 'tan' module.
24871         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
24872         * doc/posix-functions/y0.texi: Mention the 'y0' module.
24873         * doc/posix-functions/y1.texi: Mention the 'y1' module.
24874         * doc/posix-functions/yn.texi: Mention the 'yn' module.
24875
24876 2010-01-18  Jim Meyering  <meyering@redhat.com>
24877
24878         ignore-value: relax license to LGPLv2+
24879         * modules/ignore-value (License): Relax to LGPLv2+.
24880
24881         getdate: don't leak when TZ contains two or more '"'s
24882         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
24883         double quote in TZ after the first one.
24884
24885         readtokens: do not leak internal token_lengths buffer
24886         * lib/readtokens.c (readtokens): Free the local, lengths,
24887         when the supplied "token_lengths" parameter is NULL.
24888
24889 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24890
24891         Fix a couple of missing LIBTHREAD link failures on AIX.
24892         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
24893         $(LIBTHREAD).
24894         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
24895
24896         Link test-poll against INET_PTON_LIB.
24897         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
24898         for inet_pton on Solaris 10.
24899
24900 2010-01-17  Bruno Haible  <bruno@clisp.org>
24901
24902         unistdio/*-sprintf: Fix typo in module description.
24903         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
24904         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
24905         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
24906         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
24907         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
24908         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
24909         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
24910         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24911
24912 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24913
24914         gnulib-tool: fix filelist for AIX, HP-UX ksh.
24915         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
24916         variables in shell case patterns, for AIX and HP-UX ksh.
24917
24918         Split large sed scripts, for HP-UX sed.
24919         * modules/stdio: Split sed scripts around 50 sed commands,
24920         to avoid HP-UX limit of 99 commands, in the near future.
24921         * modules/string: Likewise.
24922         * modules/unistd: Likewise.
24923
24924         gnulib-tool: avoid writing in the current directory.
24925         * gnulib-tool (func_emit_lib_Makefile_am)
24926         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
24927         not in the current directory, so concurrent gnulib-tool
24928         instances do not interfere.
24929
24930 2010-01-16  Jim Meyering  <meyering@redhat.com>
24931
24932         doc: update users.txt
24933         * users.txt: Add grep.
24934         (diffutils, gzip): Update URLs.
24935
24936 2010-01-12  Bruno Haible  <bruno@clisp.org>
24937
24938         posix_spawn: Avoid test failure on Cygwin.
24939         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
24940         characters.
24941         Reported by Simon Josefsson.
24942
24943 2010-01-12  Bruno Haible  <bruno@clisp.org>
24944
24945         * tests/test-cond.c (main): When skipping the test, show the reason.
24946
24947 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24948
24949         * lib/striconv.c (str_cd_iconv): Avoid if before free.
24950
24951 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24952
24953         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
24954         VC_LIST_ALWAYS_EXCLUDE_REGEX.
24955
24956 2010-01-12  Eric Blake  <ebb9@byu.net>
24957
24958         build: guarantee AS_VAR_IF
24959         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
24960         (gl_AS_VAR_IF): Move...
24961         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
24962         Reported by Simon Josefsson.
24963
24964 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24965
24966         * lib/stdio.in.h: Fix typo.
24967
24968 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24969
24970         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
24971         libgpg-error.
24972
24973 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24974
24975         * tests/test-xalloc-die.sh: Use $EXEEXT.
24976
24977 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24978             Bruno Haible  <bruno@clisp.org>
24979
24980         getlogin, getlogin_r: Avoid test failure.
24981         * tests/test-getlogin.c: Include <stdio.h>.
24982         (main): Skip the test when the function fails because stdin is not a
24983         tty.
24984         * tests/test-getlogin_r.c: Include <stdio.h>.
24985         (main): Skip the test when the function fails because stdin is not a
24986         tty.
24987
24988 2010-01-11  Eric Blake  <ebb9@byu.net>
24989
24990         tests: avoid more large file warnings
24991         * tests/test-fflush.c: Avoid warning about ftell use.
24992         * tests/test-fseek.c: Avoid warning about fseek use.
24993
24994 2010-01-10  Bruno Haible  <bruno@clisp.org>
24995
24996         nproc: Work better on Linux when /proc and /sys are not mounted.
24997         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
24998         as lower bound when, on glibc/Linux systems,
24999         sysconf (_SC_NPROCESSORS_CONF) returns 1.
25000         Suggested by Pádraig Brady <P@draigbrady.com>.
25001         Reported by Dmitry V. Levin <ldv@altlinux.org>.
25002
25003         nproc: Refactor.
25004         * lib/nproc.c (num_processors_via_affinity_mask): New function,
25005         extracted from num_processors.
25006         (num_processors): Call it.
25007
25008 2010-01-11  Jim Meyering  <meyering@redhat.com>
25009
25010         utimecmp: avoid new warning from upcoming gcc-4.5.0
25011         * lib/utimecmp.c (BILLION): Define using #define rather than an
25012         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
25013
25014 2010-01-11  Eric Blake  <ebb9@byu.net>
25015
25016         math: add portability warnings for classification macros
25017         * modules/math (Depends-on): Add warn-on-use.
25018         (Makefile.am): Provide new substitutions.
25019         * m4/math_h.m4 (gl_MATH_H): Require inline.
25020         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
25021         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
25022         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
25023         implement warnings.
25024
25025         unistd: warn on use of environ without module
25026         * modules/unistd (Depends-on): Add warn-on-use.
25027         (Makefile.am): Provide new substitutions.
25028         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
25029         * lib/unistd.in.h (environ): Wrap with a warning helper function.
25030
25031         stdio: warn on suspicious uses
25032         * modules/stdio (Depends-on): Add warn-on-use.
25033         (Makefile.am): Provide new substitutions.
25034         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
25035         fseeko.
25036         * lib/stdio.in.h (gets): Always warn on use.
25037         (fseek, ftell): Adjust when warnings are issued, and honor
25038         _GL_NO_LARGE_FILES as a way to silence the warning.
25039         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
25040         any warning about large file offsets.
25041         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
25042         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
25043         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
25044         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
25045         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
25046         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
25047         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
25048         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
25049
25050         warn-on-use: new module
25051         * modules/warn-on-use: New file.
25052         * build-aux/warn-on-use.h: Likewise.
25053         * m4/warn-on-use.m4: Likewise.
25054         * MODULES.html.sh (Support for building): Mention it.
25055
25056 2010-01-10  Bruno Haible  <bruno@clisp.org>
25057
25058         Tests for module 'unistr/u32-strdup'.
25059         * modules/unistr/u32-strdup-tests: New file.
25060         * tests/unistr/test-u32-strdup.c: New file.
25061
25062         Tests for module 'unistr/u16-strdup'.
25063         * modules/unistr/u16-strdup-tests: New file.
25064         * tests/unistr/test-u16-strdup.c: New file.
25065
25066         Tests for module 'unistr/u8-strdup'.
25067         * modules/unistr/u8-strdup-tests: New file.
25068         * tests/unistr/test-u8-strdup.c: New file.
25069         * tests/unistr/test-strdup.h: New file.
25070
25071         Tests for module 'unistr/u32-strncmp'.
25072         * modules/unistr/u32-strncmp-tests: New file.
25073         * tests/unistr/test-u32-strncmp.c: New file.
25074
25075         Tests for module 'unistr/u16-strncmp'.
25076         * modules/unistr/u16-strncmp-tests: New file.
25077         * tests/unistr/test-u16-strncmp.c: New file.
25078
25079         Tests for module 'unistr/u8-strncmp'.
25080         * modules/unistr/u8-strncmp-tests: New file.
25081         * tests/unistr/test-u8-strncmp.c: New file.
25082         * tests/unistr/test-strncmp.h: New file.
25083
25084         Tests for module 'unistr/u32-strcoll'.
25085         * modules/unistr/u32-strcoll-tests: New file.
25086         * tests/unistr/test-u32-strcoll.c: New file.
25087
25088         Tests for module 'unistr/u16-strcoll'.
25089         * modules/unistr/u16-strcoll-tests: New file.
25090         * tests/unistr/test-u16-strcoll.c: New file.
25091
25092         Tests for module 'unistr/u8-strcoll'.
25093         * modules/unistr/u8-strcoll-tests: New file.
25094         * tests/unistr/test-u8-strcoll.c: New file.
25095
25096         Tests for module 'unistr/u32-strcmp'.
25097         * modules/unistr/u32-strcmp-tests: New file.
25098         * tests/unistr/test-u32-strcmp.c: New file.
25099         * tests/unistr/test-u32-strcmp.h: New file.
25100
25101         Tests for module 'unistr/u16-strcmp'.
25102         * modules/unistr/u16-strcmp-tests: New file.
25103         * tests/unistr/test-u16-strcmp.c: New file.
25104         * tests/unistr/test-u16-strcmp.h: New file.
25105
25106         Tests for module 'unistr/u8-strcmp'.
25107         * modules/unistr/u8-strcmp-tests: New file.
25108         * tests/unistr/test-u8-strcmp.c: New file.
25109         * tests/unistr/test-u8-strcmp.h: New file.
25110         * tests/unistr/test-strcmp.h: New file.
25111
25112         Tests for module 'unistr/u32-strncat'.
25113         * modules/unistr/u32-strncat-tests: New file.
25114         * tests/unistr/test-u32-strncat.c: New file.
25115
25116         Tests for module 'unistr/u16-strncat'.
25117         * modules/unistr/u16-strncat-tests: New file.
25118         * tests/unistr/test-u16-strncat.c: New file.
25119
25120         Tests for module 'unistr/u8-strncat'.
25121         * modules/unistr/u8-strncat-tests: New file.
25122         * tests/unistr/test-u8-strncat.c: New file.
25123         * tests/unistr/test-strncat.h: New file.
25124
25125         Tests for module 'unistr/u32-strcat'.
25126         * modules/unistr/u32-strcat-tests: New file.
25127         * tests/unistr/test-u32-strcat.c: New file.
25128
25129         Tests for module 'unistr/u16-strcat'.
25130         * modules/unistr/u16-strcat-tests: New file.
25131         * tests/unistr/test-u16-strcat.c: New file.
25132
25133         Tests for module 'unistr/u8-strcat'.
25134         * modules/unistr/u8-strcat-tests: New file.
25135         * tests/unistr/test-u8-strcat.c: New file.
25136         * tests/unistr/test-strcat.h: New file.
25137
25138         Tests for module 'unistr/u32-stpncpy'.
25139         * modules/unistr/u32-stpncpy-tests: New file.
25140         * tests/unistr/test-u32-stpncpy.c: New file.
25141
25142         Tests for module 'unistr/u16-stpncpy'.
25143         * modules/unistr/u16-stpncpy-tests: New file.
25144         * tests/unistr/test-u16-stpncpy.c: New file.
25145
25146         Tests for module 'unistr/u8-stpncpy'.
25147         * modules/unistr/u8-stpncpy-tests: New file.
25148         * tests/unistr/test-u8-stpncpy.c: New file.
25149         * tests/unistr/test-stpncpy.h: New file.
25150
25151         Tests for module 'unistr/u32-strncpy'.
25152         * modules/unistr/u32-strncpy-tests: New file.
25153         * tests/unistr/test-u32-strncpy.c: New file.
25154
25155         Tests for module 'unistr/u16-strncpy'.
25156         * modules/unistr/u16-strncpy-tests: New file.
25157         * tests/unistr/test-u16-strncpy.c: New file.
25158
25159         Tests for module 'unistr/u8-strncpy'.
25160         * modules/unistr/u8-strncpy-tests: New file.
25161         * tests/unistr/test-u8-strncpy.c: New file.
25162         * tests/unistr/test-strncpy.h: New file.
25163
25164         Tests for module 'unistr/u32-stpcpy'.
25165         * modules/unistr/u32-stpcpy-tests: New file.
25166         * tests/unistr/test-u32-stpcpy.c: New file.
25167
25168         Tests for module 'unistr/u16-stpcpy'.
25169         * modules/unistr/u16-stpcpy-tests: New file.
25170         * tests/unistr/test-u16-stpcpy.c: New file.
25171
25172         Tests for module 'unistr/u8-stpcpy'.
25173         * modules/unistr/u8-stpcpy-tests: New file.
25174         * tests/unistr/test-u8-stpcpy.c: New file.
25175         * tests/unistr/test-stpcpy.h: New file.
25176
25177         Tests for module 'unistr/u32-strcpy'.
25178         * modules/unistr/u32-strcpy-tests: New file.
25179         * tests/unistr/test-u32-strcpy.c: New file.
25180
25181         Tests for module 'unistr/u16-strcpy'.
25182         * modules/unistr/u16-strcpy-tests: New file.
25183         * tests/unistr/test-u16-strcpy.c: New file.
25184
25185         Tests for module 'unistr/u8-strcpy'.
25186         * modules/unistr/u8-strcpy-tests: New file.
25187         * tests/unistr/test-u8-strcpy.c: New file.
25188         * tests/unistr/test-strcpy.h: New file.
25189
25190         Tests for module 'unistr/u32-strnlen'.
25191         * modules/unistr/u32-strnlen-tests: New file.
25192         * tests/unistr/test-u32-strnlen.c: New file.
25193
25194         Tests for module 'unistr/u16-strnlen'.
25195         * modules/unistr/u16-strnlen-tests: New file.
25196         * tests/unistr/test-u16-strnlen.c: New file.
25197
25198         Tests for module 'unistr/u8-strnlen'.
25199         * modules/unistr/u8-strnlen-tests: New file.
25200         * tests/unistr/test-u8-strnlen.c: New file.
25201         * tests/unistr/test-strnlen.h: New file.
25202
25203         Tests for module 'unistr/u32-strlen'.
25204         * modules/unistr/u32-strlen-tests: New file.
25205         * tests/unistr/test-u32-strlen.c: New file.
25206
25207         Tests for module 'unistr/u16-strlen'.
25208         * modules/unistr/u16-strlen-tests: New file.
25209         * tests/unistr/test-u16-strlen.c: New file.
25210
25211         Tests for module 'unistr/u8-strlen'.
25212         * modules/unistr/u8-strlen-tests: New file.
25213         * tests/unistr/test-u8-strlen.c: New file.
25214
25215         Tests for module 'unistr/u32-prev'.
25216         * modules/unistr/u32-prev-tests: New file.
25217         * tests/unistr/test-u32-prev.c: New file.
25218
25219         Tests for module 'unistr/u16-prev'.
25220         * modules/unistr/u16-prev-tests: New file.
25221         * tests/unistr/test-u16-prev.c: New file.
25222
25223         Tests for module 'unistr/u8-prev'.
25224         * modules/unistr/u8-prev-tests: New file.
25225         * tests/unistr/test-u8-prev.c: New file.
25226
25227         Tests for module 'unistr/u32-next'.
25228         * modules/unistr/u32-next-tests: New file.
25229         * tests/unistr/test-u32-next.c: New file.
25230
25231         Tests for module 'unistr/u16-next'.
25232         * modules/unistr/u16-next-tests: New file.
25233         * tests/unistr/test-u16-next.c: New file.
25234
25235         Tests for module 'unistr/u8-next'.
25236         * modules/unistr/u8-next-tests: New file.
25237         * tests/unistr/test-u8-next.c: New file.
25238
25239         Tests for module 'unistr/u32-strmbtouc'.
25240         * modules/unistr/u32-strmbtouc-tests: New file.
25241         * tests/unistr/test-u32-strmbtouc.c: New file.
25242
25243         Tests for module 'unistr/u16-strmbtouc'.
25244         * modules/unistr/u16-strmbtouc-tests: New file.
25245         * tests/unistr/test-u16-strmbtouc.c: New file.
25246
25247         Tests for module 'unistr/u8-strmbtouc'.
25248         * modules/unistr/u8-strmbtouc-tests: New file.
25249         * tests/unistr/test-u8-strmbtouc.c: New file.
25250
25251         Tests for module 'unistr/u32-strmblen'.
25252         * modules/unistr/u32-strmblen-tests: New file.
25253         * tests/unistr/test-u32-strmblen.c: New file.
25254
25255         Tests for module 'unistr/u16-strmblen'.
25256         * modules/unistr/u16-strmblen-tests: New file.
25257         * tests/unistr/test-u16-strmblen.c: New file.
25258
25259         Tests for module 'unistr/u8-strmblen'.
25260         * modules/unistr/u8-strmblen-tests: New file.
25261         * tests/unistr/test-u8-strmblen.c: New file.
25262
25263         Tests for module 'unistr/u32-cpy-alloc'.
25264         * modules/unistr/u32-cpy-alloc-tests: New file.
25265         * tests/unistr/test-u32-cpy-alloc.c: New file.
25266
25267         Tests for module 'unistr/u16-cpy-alloc'.
25268         * modules/unistr/u16-cpy-alloc-tests: New file.
25269         * tests/unistr/test-u16-cpy-alloc.c: New file.
25270
25271         Tests for module 'unistr/u8-cpy-alloc'.
25272         * modules/unistr/u8-cpy-alloc-tests: New file.
25273         * tests/unistr/test-u8-cpy-alloc.c: New file.
25274         * tests/unistr/test-cpy-alloc.h: New file.
25275
25276         Tests for module 'unistr/u32-mbsnlen'.
25277         * modules/unistr/u32-mbsnlen-tests: New file.
25278         * tests/unistr/test-u32-mbsnlen.c: New file.
25279
25280         Tests for module 'unistr/u16-mbsnlen'.
25281         * modules/unistr/u16-mbsnlen-tests: New file.
25282         * tests/unistr/test-u16-mbsnlen.c: New file.
25283
25284         Tests for module 'unistr/u8-mbsnlen'.
25285         * modules/unistr/u8-mbsnlen-tests: New file.
25286         * tests/unistr/test-u8-mbsnlen.c: New file.
25287
25288         Tests for module 'unistr/u32-chr'.
25289         * modules/unistr/u32-chr-tests: New file.
25290         * tests/unistr/test-u32-chr.c: New file.
25291
25292         Tests for module 'unistr/u16-chr'.
25293         * modules/unistr/u16-chr-tests: New file.
25294         * tests/unistr/test-u16-chr.c: New file.
25295
25296         Tests for module 'unistr/u8-chr'.
25297         * modules/unistr/u8-chr-tests: New file.
25298         * tests/unistr/test-u8-chr.c: New file.
25299         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
25300
25301         Tests for module 'unistr/u32-cmp2'.
25302         * modules/unistr/u32-cmp2-tests: New file.
25303         * tests/unistr/test-u32-cmp2.c: New file.
25304
25305         Tests for module 'unistr/u16-cmp2'.
25306         * modules/unistr/u16-cmp2-tests: New file.
25307         * tests/unistr/test-u16-cmp2.c: New file.
25308
25309         Tests for module 'unistr/u8-cmp2'.
25310         * modules/unistr/u8-cmp2-tests: New file.
25311         * tests/unistr/test-u8-cmp2.c: New file.
25312         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
25313
25314         Tests for module 'unistr/u32-cmp'.
25315         * modules/unistr/u32-cmp-tests: New file.
25316         * tests/unistr/test-u32-cmp.c: New file.
25317
25318         Tests for module 'unistr/u16-cmp'.
25319         * modules/unistr/u16-cmp-tests: New file.
25320         * tests/unistr/test-u16-cmp.c: New file.
25321
25322         Tests for module 'unistr/u8-cmp'.
25323         * modules/unistr/u8-cmp-tests: New file.
25324         * tests/unistr/test-u8-cmp.c: New file.
25325         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
25326
25327         Tests for module 'unistr/u32-set'.
25328         * modules/unistr/u32-set-tests: New file.
25329         * tests/unistr/test-u32-set.c: New file.
25330
25331         Tests for module 'unistr/u16-set'.
25332         * modules/unistr/u16-set-tests: New file.
25333         * tests/unistr/test-u16-set.c: New file.
25334
25335         Tests for module 'unistr/u8-set'.
25336         * modules/unistr/u8-set-tests: New file.
25337         * tests/unistr/test-u8-set.c: New file.
25338         * tests/unistr/test-set.h: New file.
25339
25340         Tests for module 'unistr/u32-move'.
25341         * modules/unistr/u32-move-tests: New file.
25342         * tests/unistr/test-u32-move.c: New file.
25343
25344         Tests for module 'unistr/u16-move'.
25345         * modules/unistr/u16-move-tests: New file.
25346         * tests/unistr/test-u16-move.c: New file.
25347
25348         Tests for module 'unistr/u8-move'.
25349         * modules/unistr/u8-move-tests: New file.
25350         * tests/unistr/test-u8-move.c: New file.
25351         * tests/unistr/test-move.h: New file.
25352
25353         Tests for module 'unistr/u32-cpy'.
25354         * modules/unistr/u32-cpy-tests: New file.
25355         * tests/unistr/test-u32-cpy.c: New file.
25356
25357         Tests for module 'unistr/u16-cpy'.
25358         * modules/unistr/u16-cpy-tests: New file.
25359         * tests/unistr/test-u16-cpy.c: New file.
25360
25361         Tests for module 'unistr/u8-cpy'.
25362         * modules/unistr/u8-cpy-tests: New file.
25363         * tests/unistr/test-u8-cpy.c: New file.
25364         * tests/unistr/test-cpy.h: New file.
25365
25366 2010-01-09  Bruno Haible  <bruno@clisp.org>
25367
25368         Tests for module 'unistr/u32-uctomb'.
25369         * modules/unistr/u32-uctomb-tests: New file.
25370         * tests/unistr/test-u32-uctomb.c: New file.
25371
25372         Tests for module 'unistr/u16-uctomb'.
25373         * modules/unistr/u16-uctomb-tests: New file.
25374         * tests/unistr/test-u16-uctomb.c: New file.
25375
25376         Tests for module 'unistr/u8-uctomb'.
25377         * modules/unistr/u8-uctomb-tests: New file.
25378         * tests/unistr/test-u8-uctomb.c: New file.
25379
25380         Tests for module 'unistr/u32-mbtoucr'.
25381         * modules/unistr/u32-mbtoucr-tests: New file.
25382         * tests/unistr/test-u32-mbtoucr.c: New file.
25383
25384         Tests for module 'unistr/u16-mbtoucr'.
25385         * modules/unistr/u16-mbtoucr-tests: New file.
25386         * tests/unistr/test-u16-mbtoucr.c: New file.
25387
25388         Tests for module 'unistr/u8-mbtoucr'.
25389         * modules/unistr/u8-mbtoucr-tests: New file.
25390         * tests/unistr/test-u8-mbtoucr.c: New file.
25391
25392         Tests for module 'unistr/u32-mbtouc'.
25393         * modules/unistr/u32-mbtouc-tests: New file.
25394         * tests/unistr/test-u32-mbtouc.c: New file.
25395
25396         Tests for module 'unistr/u16-mbtouc'.
25397         * modules/unistr/u16-mbtouc-tests: New file.
25398         * tests/unistr/test-u16-mbtouc.c: New file.
25399
25400         Tests for module 'unistr/u8-mbtouc'.
25401         * modules/unistr/u8-mbtouc-tests: New file.
25402         * tests/unistr/test-u8-mbtouc.c: New file.
25403
25404         Tests for module 'unistr/u32-mbtouc-unsafe'.
25405         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
25406         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
25407         * tests/unistr/test-u32-mbtouc.h: New file.
25408
25409         Tests for module 'unistr/u16-mbtouc-unsafe'.
25410         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
25411         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
25412         * tests/unistr/test-u16-mbtouc.h: New file.
25413
25414         Tests for module 'unistr/u8-mbtouc-unsafe'.
25415         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
25416         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
25417         * tests/unistr/test-u8-mbtouc.h: New file.
25418
25419         Tests for module 'unistr/u32-mblen'.
25420         * modules/unistr/u32-mblen-tests: New file.
25421         * tests/unistr/test-u32-mblen.c: New file.
25422
25423         Tests for module 'unistr/u16-mblen'.
25424         * modules/unistr/u16-mblen-tests: New file.
25425         * tests/unistr/test-u16-mblen.c: New file.
25426
25427         Tests for module 'unistr/u8-mblen'.
25428         * modules/unistr/u8-mblen-tests: New file.
25429         * tests/unistr/test-u8-mblen.c: New file.
25430
25431         Tests for module 'unistr/u32-to-u16'.
25432         * modules/unistr/u32-to-u16-tests: New file.
25433         * tests/unistr/test-u32-to-u16.c: New file.
25434
25435         Tests for module 'unistr/u32-to-u8'.
25436         * modules/unistr/u32-to-u8-tests: New file.
25437         * tests/unistr/test-u32-to-u8.c: New file.
25438
25439         Tests for module 'unistr/u16-to-u32'.
25440         * modules/unistr/u16-to-u32-tests: New file.
25441         * tests/unistr/test-u16-to-u32.c: New file.
25442
25443         Tests for module 'unistr/u16-to-u8'.
25444         * modules/unistr/u16-to-u8-tests: New file.
25445         * tests/unistr/test-u16-to-u8.c: New file.
25446
25447         Tests for module 'unistr/u8-to-u32'.
25448         * modules/unistr/u8-to-u32-tests: New file.
25449         * tests/unistr/test-u8-to-u32.c: New file.
25450
25451         Tests for module 'unistr/u8-to-u16'.
25452         * modules/unistr/u8-to-u16-tests: New file.
25453         * tests/unistr/test-u8-to-u16.c: New file.
25454
25455         Tests for module 'unistr/u32-check'.
25456         * modules/unistr/u32-check-tests: New file.
25457         * tests/unistr/test-u32-check.c: New file.
25458
25459         Tests for module 'unistr/u16-check'.
25460         * modules/unistr/u16-check-tests: New file.
25461         * tests/unistr/test-u16-check.c: New file.
25462
25463         Tests for module 'unistr/u8-check'.
25464         * modules/unistr/u8-check-tests: New file.
25465         * tests/unistr/test-u8-check.c: New file.
25466
25467         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
25468         (category_equals): New function.
25469         (main): Add more tests.
25470         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
25471
25472         * tests/unictype/test-bidi_byname.c (main): Add more tests.
25473
25474 2010-01-10  Bruno Haible  <bruno@clisp.org>
25475
25476         unistr/u*-strcoll: Try harder to distinguish different strings.
25477         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
25478         compare s1 and s2 to see if they are different.
25479
25480 2010-01-10  Bruno Haible  <bruno@clisp.org>
25481
25482         unistr/u*-stpncpy: Fix the return value.
25483         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
25484         description of the return value consistent with stpncpy in glibc.
25485         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
25486         written non-NUL unit.
25487
25488 2010-01-10  Bruno Haible  <bruno@clisp.org>
25489
25490         unistr/u*-next: Add missing dependencies.
25491         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
25492         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
25493         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
25494
25495 2010-01-10  Bruno Haible  <bruno@clisp.org>
25496
25497         unistr/u8-mbsnlen: Fix return value for incomplete character.
25498         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
25499         u8_mblen.
25500         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
25501         Remove unistr/u8-mblen.
25502         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
25503         u16_mblen.
25504         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
25505         Remove unistr/u16-mblen.
25506
25507 2010-01-10  Bruno Haible  <bruno@clisp.org>
25508
25509         wchar: Fix compilation error when <wchar.h> is used from coreutils.
25510         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
25511         Reported by Brian Gough <bjg@gnu.org> and
25512         Chris Clayton <chris2553@googlemail.com> via
25513         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
25514
25515 2010-01-09  Bruno Haible  <bruno@clisp.org>
25516
25517         unistr/u16-to-u32: Reject invalid input.
25518         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
25519         u16_mbtouc.
25520         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
25521         Remove unistr/u16-mbtouc.
25522
25523         unistr/u16-to-u8: Reject invalid input.
25524         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
25525         u16_mbtouc.
25526         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
25527         Remove unistr/u16-mbtouc.
25528
25529         unistr/u8-to-u32: Reject invalid input.
25530         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
25531         u8_mbtouc.
25532         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
25533         Remove unistr/u8-mbtouc.
25534
25535         unistr/u8-to-u16: Reject invalid input.
25536         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
25537         u8_mbtouc.
25538         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
25539         Remove unistr/u8-mbtouc.
25540
25541 2010-01-09  Bruno Haible  <bruno@clisp.org>
25542
25543         Tests for module 'getlogin'.
25544         * modules/getlogin-tests: New file.
25545         * tests/test-getlogin.c: New file.
25546
25547         New module 'getlogin'.
25548         * lib/unistd.in.h (getlogin): New declaration.
25549         * lib/getlogin.c: New file.
25550         * m4/getlogin.m4: New file.
25551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
25552         HAVE_GETLOGIN.
25553         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
25554         HAVE_GETLOGIN.
25555         * modules/getlogin: New file.
25556         * doc/posix-functions/getlogin.texi: Mention the new module.
25557         Reported by John W. Eaton <jwe@gnu.org>.
25558
25559 2010-01-09  Bruno Haible  <bruno@clisp.org>
25560
25561         getlogin_r: Support for native Windows.
25562         * lib/getlogin_r.c: Include <windows.h>
25563         (getlogin_r): Implement for native Windows.
25564         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
25565         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
25566         via John W. Eaton <jwe@gnu.org>.
25567
25568 2010-01-09  Bruno Haible  <bruno@clisp.org>
25569
25570         getlogin_r: Small fixes.
25571         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
25572         succeeds.
25573         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
25574         before testing whether getlogin_r is declared. No need to set
25575         HAVE_DECL_GETLOGIN_R to 1.
25576         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
25577
25578 2010-01-09  Bruno Haible  <bruno@clisp.org>
25579
25580         * lib/unistd.in.h (getlogin_r): Add comment.
25581
25582 2010-01-09  Bruno Haible  <bruno@clisp.org>
25583
25584         Tests for module 'getlogin_r'.
25585         * modules/getlogin_r-tests: New file.
25586         * tests/test-getlogin_r.c: New file.
25587
25588 2010-01-09  Jim Meyering  <meyering@redhat.com>
25589
25590         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
25591         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
25592         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
25593
25594 2010-01-08  Simon Josefsson  <simon@josefsson.org>
25595
25596         * lib/dup2.c (rpl_dup2): Improve comment.
25597
25598 2010-01-08  Eric Blake  <ebb9@byu.net>
25599
25600         maint.mk: allow packages to add makefile @@ exceptions
25601         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
25602         (sc_makefile_check): Rename...
25603         (sc_makefile_at_at_check): ...to this, and use hook.
25604
25605         dup2: work around mingw bug
25606         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
25607         Reported by Simon Josefsson.
25608
25609 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
25610
25611         glob: Fix C++ compilation.
25612         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
25613         C++.
25614
25615 2010-01-07  Bruno Haible  <bruno@clisp.org>
25616
25617         Fix indentation of wctype.in.h, broken since 2007-01-06.
25618         * lib/wctype.in.h: Fix indentation of preprocessor directives.
25619
25620 2010-01-07  Bruno Haible  <bruno@clisp.org>
25621
25622         mbslen: Avoid collision with system function.
25623         * lib/string.in.h [MirBSD]: Include <wchar.h>.
25624         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
25625         * m4/mbslen.m4: New file.
25626         * modules/mbslen (Files): Add it.
25627         (configure.ac): Invoke gl_MBSLEN.
25628         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
25629         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
25630         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
25631         via Ian Beckwith <ianb@erislabs.net>.
25632
25633 2010-01-07  Bruno Haible  <bruno@clisp.org>
25634
25635         dirent: Document the last fix.
25636         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
25637
25638 2010-01-07  Bruno Haible  <bruno@clisp.org>
25639
25640         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
25641         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
25642         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
25643         va_list are defined.
25644         * doc/posix-headers/stdio.texi: Document the bug of missing types.
25645         Reported by Eric Blake.
25646
25647 2010-01-07  Bruno Haible  <bruno@clisp.org>
25648
25649         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
25650         * modules/xlist (Depends-on): Add 'list',
25651         * modules/xoset (Depends-on): Add 'oset'.
25652         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25653
25654 2010-01-07  Bruno Haible  <bruno@clisp.org>
25655
25656         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
25657         * doc/posix-functions/strncasecmp.texi: Likewise.
25658
25659 2010-01-07  Bruno Haible  <bruno@clisp.org>
25660
25661         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
25662
25663 2010-01-07  John W. Eaton  <jwe@octave.org>
25664
25665         wctype: allow C++ use
25666         * lib/wctype.in.h: Add extern "C" block for C++.
25667
25668 2010-01-06  Eric Blake  <ebb9@byu.net>
25669
25670         maint.mk: detect incorrect GFDL usage
25671         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
25672
25673 2010-01-06  Jim Meyering  <meyering@redhat.com>
25674         and Eric Blake  <ebb9@byu.net>
25675
25676         maint.mk: ignore multi-line copyright in NEWS
25677         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
25678
25679 2010-01-06  Eric Blake  <ebb9@byu.net>
25680
25681         select: add missing dependency
25682         * modules/select-tests (Depends-on): Move sockets dependency...
25683         * modules/select (Depends-on): ...here.
25684         Reported by Ian Beckwith.
25685
25686         doc: regenerate INSTALL
25687         * doc/INSTALL: Reflect recent autoconf update.
25688         * doc/INSTALL.ISO: Likewise.
25689         * doc/INSTALL.UTF-8: Likewise.
25690
25691         pread: fix compilation on glibc
25692         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
25693         Reported by Ralf Wildenhues.
25694
25695         dirent: fix test failure
25696         * lib/dirent.in.h (includes): Guarantee ino_t.
25697         Reported by Ralf Wildenhues.
25698
25699 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
25700
25701         linkat, renameat: avoid bad free
25702         * lib/at-func2.c (at_func2): Fix typo.
25703         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
25704
25705 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25706
25707         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
25708         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
25709         to avoid failure of symlink test later.
25710
25711 2010-01-06  Eric Blake  <ebb9@byu.net>
25712
25713         stdio, unistd: guarantee ssize_t
25714         * lib/unistd.in.h (includes): Ensure that types required by POSIX
25715         2008 are exposed when needed.
25716         * lib/stdio.in.h (includes): Likewise.
25717         Reported by Ralf Wildenhues.
25718
25719 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
25720
25721         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
25722         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
25723         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
25724
25725 2010-01-06  Jim Meyering  <meyering@redhat.com>
25726
25727         readtokens: this module *does* require xalloc.h
25728         It uses only functions that were omitted by the old syntax-check rule.
25729         * lib/readtokens.c: Include "xalloc.h" once again.
25730         * modules/readtokens (Depends-on): Add xalloc.
25731         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
25732
25733 2010-01-05  Eric Blake  <ebb9@byu.net>
25734
25735         maint: support 'make announcement' from a VPATH build
25736         * top/maint.mk (announcement): Look for correct NEWS file.
25737
25738 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
25739
25740         utimens (fdutimens): ignore a negative FD, per contract
25741         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
25742         when we have a valid file descriptor.  Otherwise, using a brand
25743         new glibc (with just-patched futimens that now fails with EBADF)
25744         would cause this function to fail with ENOSYS.
25745         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
25746         See also http://bugzilla.redhat.com/552320.
25747
25748 2010-01-05  Eric Blake  <ebb9@byu.net>
25749
25750         strcase: document what it provides
25751         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
25752         gnulib module.
25753         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
25754         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
25755
25756 2010-01-05  Jim Meyering  <meyering@redhat.com>
25757
25758         maint: remove useless inclusions of "xalloc.h"
25759         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
25760         * lib/readtokens.c: Likewise.
25761         * lib/same.c: Likewise.
25762         * modules/getloadavg (Depends-on): Remove xalloc.
25763         * modules/readtokens: Likewise.
25764         * modules/same: Likewise.
25765
25766         maint.mk: include 4 more function names in alloca.h-checking regexp
25767         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
25768         regexp.  Before, we would give a false-positive (saying alloca.h
25769         is included unnecessarily) when the only uses involved omitted symbols.
25770
25771         xalloc.h: use consistent formatting
25772         * lib/xalloc.h: Move declarations to start in the first column.
25773
25774 2010-01-05  Eric Blake  <ebb9@byu.net>
25775
25776         mkdir: avoid xalloc
25777         * lib/mkdir.c (includes): Drop unused header.
25778         Reported by John W. Eaton.
25779
25780 2010-01-04  Jim Meyering  <meyering@redhat.com>
25781
25782         nl_langinfo: avoid configure-time syntax error
25783         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
25784         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
25785         the empty string.  Don't let that provoke a shell syntax error.
25786
25787         regcomp, regexec, fnmatch: avoid array bounds read error
25788         * lib/regcomp.c (build_equiv_class): From glibc:
25789         Use only the low 24 bits of a findidx return value as an index
25790         into the weights array.  Patch by Ulrich Drepper:
25791         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
25792         * lib/regexec.c (check_node_accept_bytes): Likewise.
25793         * lib/fnmatch_loop.c (FCT): Likewise.
25794
25795         regcomp: skip collseq lookup when there are no rules
25796         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
25797         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
25798
25799         regcomp: recognize ill-formed { } expressions
25800         * lib/regcomp.c (parse_dup_op): From glibc:
25801         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
25802
25803         regcomp: fix typo in comment
25804         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
25805         s/satisfy/satisfies/.
25806
25807         regcomp: sync from glibc: remove dead store
25808         * lib/regcomp.c (duplicate_node_closure): Remove useless
25809         search_duplicated_node call and dead store.
25810
25811         regcomp: sync from glibc; always use nl_langinfo
25812         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
25813         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
25814         * modules/regex (Depends-on): Add nl_langinfo.
25815
25816 2010-01-04  Eric Blake  <ebb9@byu.net>
25817
25818         fdopendir: fix configure test
25819         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
25820
25821 2010-01-01  Bruno Haible  <bruno@clisp.org>
25822
25823         wchar: Remove unused configure check.
25824         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
25825
25826 2010-01-01  Eric Blake  <ebb9@byu.net>
25827
25828         headers: make check of system header explicit
25829         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
25830         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
25831         ourselves.
25832         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25833         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25834         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
25835         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
25836         internals.
25837         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
25838         missing.
25839         Suggested by Bruno Haible.
25840
25841 2010-01-01  Jim Meyering  <meyering@redhat.com>
25842
25843         ChangeLog: tweak to eliminate unnecessary copyright line
25844         * ChangeLog: Remove a copyright line that was mistakenly updated
25845         by today's update-copyright run.  Reported by Eric Blake.
25846
25847         test-update-copyright: don't let envvar setting cause test failure
25848         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25849
25850 2010-01-01  Bruno Haible  <bruno@clisp.org>
25851
25852         localename: Avoid gcc warning.
25853         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
25854         function if it is not used.
25855
25856 2010-01-01  Jim Meyering  <meyering@redhat.com>
25857
25858         update nearly all FSF copyright year lists to include 2010
25859         Use the same procedure as for 2009, outlined in
25860         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
25861
25862         version-etc: set COPYRIGHT_YEAR to 2010
25863         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
25864
25865 2009-12-31  Eric Blake  <ebb9@byu.net>
25866
25867         doc: correct availability of cygwin 1.5.x getopt
25868         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
25869         variables.
25870         * doc/posix-functions/opterr.texi (opterr): Likewise.
25871         * doc/posix-functions/optind.texi (optind): Likewise.
25872         * doc/posix-functions/optopt.texi (optopt): Likewise.
25873         * doc/posix-functions/tzname.texi (tzname): Likewise.
25874
25875         openat: update maintainer
25876         * modules/openat (Maintainer): Add myself.
25877
25878         utimens: avoid shadowing warning
25879         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
25880         buffers into one, to avoid shadowing, as well as avoiding a
25881         redundant stat.
25882         Reported by Jim Meyering.
25883
25884         test-dup2: avoid compiler warning
25885         * tests/test-dup2.c (is_inheritable): Only define if used.
25886
25887 2010-01-01  Bruno Haible  <bruno@clisp.org>
25888
25889         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
25890         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
25891         defined, use wctomb instead of wcrtomb.
25892
25893 2010-01-01  Bruno Haible  <bruno@clisp.org>
25894
25895         iconv: Reject native Solaris iconv.
25896         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
25897         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
25898
25899 2009-12-31  Bruno Haible  <bruno@clisp.org>
25900
25901         * tests/test-signal.c (main): Remove test of 'SIG'.
25902
25903 2009-12-31  Bruno Haible  <bruno@clisp.org>
25904
25905         spawn: Fix incomplete fix.
25906         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25907         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25908         warnings for GNULIB_POSIXCHECK again.
25909         Reported by Eric Blake.
25910
25911 2009-12-31  Bruno Haible  <bruno@clisp.org>
25912
25913         Avoid namespace pollution on glibc systems.
25914         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
25915         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
25916         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
25917         glibc systems.
25918
25919 2009-12-31  Bruno Haible  <bruno@clisp.org>
25920
25921         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
25922         (gl_REPLACE_WCHAR_H): Turn into a no-op.
25923         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
25924         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
25925         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
25926         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
25927         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
25928
25929 2009-12-31  Bruno Haible  <bruno@clisp.org>
25930
25931         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25932         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
25933         afterwards.
25934
25935 2009-12-31  Bruno Haible  <bruno@clisp.org>
25936
25937         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
25938         SYS_UTSNAME_H.
25939
25940 2009-12-31  Bruno Haible  <bruno@clisp.org>
25941
25942         spawn: Fix misapplied patch.
25943         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25944         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25945         warnings for GNULIB_POSIXCHECK.
25946
25947 2009-12-31  Bruno Haible  <bruno@clisp.org>
25948
25949         times: Update after sys_times changed.
25950         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
25951         * modules/times (Files): Add it.
25952         (configure.ac): Invoke gl_FUNC_TIMES.
25953
25954 2009-12-31  Bruno Haible  <bruno@clisp.org>
25955
25956         Use AC_C_INLINE where necessary.
25957         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
25958         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
25959         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25960         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
25961         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25962         * m4/mbiter.m4 (gl_MBITER): Likewise.
25963         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25964         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25965         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
25966         * modules/u64 (configure.ac): Likewise.
25967
25968 2009-12-31  Bruno Haible  <bruno@clisp.org>
25969
25970         Use AC_C_INLINE instead of module 'inline' where possible.
25971         * modules/inline (Description): Clarify purpose.
25972         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
25973         * modules/count-one-bits (Depends-on): Remove inline.
25974         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
25975         * modules/openat (Depends-on): Remove inline.
25976         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
25977         instead of depending on module 'inline'.
25978         * modules/filevercmp (Depends-on, configure.ac): Likewise.
25979         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
25980         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
25981         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
25982         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
25983         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
25984         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
25985         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
25986         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
25987         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
25988         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
25989         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
25990         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
25991         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
25992         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
25993         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
25994         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
25995         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
25996         Likewise.
25997         * modules/unictype/property-ascii-hex-digit (Depends-on,
25998         configure.ac): Likewise.
25999         * modules/unictype/property-bidi-arabic-digit (Depends-on,
26000         configure.ac): Likewise.
26001         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
26002         configure.ac): Likewise.
26003         * modules/unictype/property-bidi-block-separator (Depends-on,
26004         configure.ac): Likewise.
26005         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
26006         configure.ac): Likewise.
26007         * modules/unictype/property-bidi-common-separator (Depends-on,
26008         configure.ac): Likewise.
26009         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
26010         Likewise.
26011         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
26012         configure.ac): Likewise.
26013         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
26014         configure.ac): Likewise.
26015         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
26016         configure.ac): Likewise.
26017         * modules/unictype/property-bidi-european-digit (Depends-on,
26018         configure.ac): Likewise.
26019         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
26020         configure.ac): Likewise.
26021         * modules/unictype/property-bidi-left-to-right (Depends-on,
26022         configure.ac): Likewise.
26023         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
26024         configure.ac): Likewise.
26025         * modules/unictype/property-bidi-other-neutral (Depends-on,
26026         configure.ac): Likewise.
26027         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
26028         Likewise.
26029         * modules/unictype/property-bidi-segment-separator (Depends-on,
26030         configure.ac): Likewise.
26031         * modules/unictype/property-bidi-whitespace (Depends-on,
26032         configure.ac): Likewise.
26033         * modules/unictype/property-combining (Depends-on, configure.ac):
26034         Likewise.
26035         * modules/unictype/property-composite (Depends-on, configure.ac):
26036         Likewise.
26037         * modules/unictype/property-currency-symbol (Depends-on,
26038         configure.ac): Likewise.
26039         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
26040         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
26041         Likewise.
26042         * modules/unictype/property-default-ignorable-code-point (Depends-on,
26043         configure.ac): Likewise.
26044         * modules/unictype/property-deprecated (Depends-on, configure.ac):
26045         Likewise.
26046         * modules/unictype/property-diacritic (Depends-on, configure.ac):
26047         Likewise.
26048         * modules/unictype/property-extender (Depends-on, configure.ac):
26049         Likewise.
26050         * modules/unictype/property-format-control (Depends-on, configure.ac):
26051         Likewise.
26052         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
26053         Likewise.
26054         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
26055         Likewise.
26056         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
26057         Likewise.
26058         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
26059         Likewise.
26060         * modules/unictype/property-hyphen (Depends-on, configure.ac):
26061         Likewise.
26062         * modules/unictype/property-id-continue (Depends-on, configure.ac):
26063         Likewise.
26064         * modules/unictype/property-id-start (Depends-on, configure.ac):
26065         Likewise.
26066         * modules/unictype/property-ideographic (Depends-on, configure.ac):
26067         Likewise.
26068         * modules/unictype/property-ids-binary-operator (Depends-on,
26069         configure.ac): Likewise.
26070         * modules/unictype/property-ids-trinary-operator (Depends-on,
26071         configure.ac): Likewise.
26072         * modules/unictype/property-ignorable-control (Depends-on,
26073         configure.ac): Likewise.
26074         * modules/unictype/property-iso-control (Depends-on, configure.ac):
26075         Likewise.
26076         * modules/unictype/property-join-control (Depends-on, configure.ac):
26077         Likewise.
26078         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
26079         Likewise.
26080         * modules/unictype/property-line-separator (Depends-on, configure.ac):
26081         Likewise.
26082         * modules/unictype/property-logical-order-exception (Depends-on,
26083         configure.ac): Likewise.
26084         * modules/unictype/property-lowercase (Depends-on, configure.ac):
26085         Likewise.
26086         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
26087         * modules/unictype/property-non-break (Depends-on, configure.ac):
26088         Likewise.
26089         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
26090         Likewise.
26091         * modules/unictype/property-numeric (Depends-on, configure.ac):
26092         Likewise.
26093         * modules/unictype/property-other-alphabetic (Depends-on,
26094         configure.ac): Likewise.
26095         * modules/unictype/property-other-default-ignorable-code-point
26096         (Depends-on, configure.ac): Likewise.
26097         * modules/unictype/property-other-grapheme-extend (Depends-on,
26098         configure.ac): Likewise.
26099         * modules/unictype/property-other-id-continue (Depends-on,
26100         configure.ac): Likewise.
26101         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
26102         Likewise.
26103         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
26104         Likewise.
26105         * modules/unictype/property-other-math (Depends-on, configure.ac):
26106         Likewise.
26107         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
26108         Likewise.
26109         * modules/unictype/property-paired-punctuation (Depends-on,
26110         configure.ac): Likewise.
26111         * modules/unictype/property-paragraph-separator (Depends-on,
26112         configure.ac): Likewise.
26113         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
26114         Likewise.
26115         * modules/unictype/property-pattern-white-space (Depends-on,
26116         configure.ac): Likewise.
26117         * modules/unictype/property-private-use (Depends-on, configure.ac):
26118         Likewise.
26119         * modules/unictype/property-punctuation (Depends-on, configure.ac):
26120         Likewise.
26121         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
26122         Likewise.
26123         * modules/unictype/property-radical (Depends-on, configure.ac):
26124         Likewise.
26125         * modules/unictype/property-sentence-terminal (Depends-on,
26126         configure.ac): Likewise.
26127         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
26128         Likewise.
26129         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
26130         * modules/unictype/property-terminal-punctuation (Depends-on,
26131         configure.ac): Likewise.
26132         * modules/unictype/property-titlecase (Depends-on, configure.ac):
26133         Likewise.
26134         * modules/unictype/property-unassigned-code-value (Depends-on,
26135         configure.ac): Likewise.
26136         * modules/unictype/property-unified-ideograph (Depends-on,
26137         configure.ac): Likewise.
26138         * modules/unictype/property-uppercase (Depends-on, configure.ac):
26139         Likewise.
26140         * modules/unictype/property-variation-selector (Depends-on,
26141         configure.ac): Likewise.
26142         * modules/unictype/property-white-space (Depends-on, configure.ac):
26143         Likewise.
26144         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
26145         Likewise.
26146         * modules/unictype/property-xid-start (Depends-on, configure.ac):
26147         Likewise.
26148         * modules/unictype/property-zero-width (Depends-on, configure.ac):
26149         Likewise.
26150         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
26151         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
26152         Likewise.
26153
26154 2009-12-31  Bruno Haible  <bruno@clisp.org>
26155
26156         Remove unnecessary AC_C_INLINE invocation.
26157         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
26158         since 2009-08-21.
26159
26160 2009-12-31  Jim Meyering  <meyering@redhat.com>
26161
26162         maint.mk: don't require explicit gpg_key_ID in cfg.mk
26163         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
26164         With this change, we can all remove the gpg_key_ID = ... definition
26165         from our respective cfg.mk files.
26166
26167         maint.mk: create announcement template in ~/, not in /tmp
26168         * top/maint.mk (emit_upload_commands): Adjust.
26169         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
26170         Remove temporary file, .ci-msg.
26171
26172 2009-12-31  Eric Blake  <ebb9@byu.net>
26173
26174         link-warning: always build headers with link warnings
26175         * modules/arpa_inet (Makefile.am): Always build replacement
26176         header.
26177         * modules/ctype (Makefile.am): Likewise.
26178         * modules/dirent (Makefile.am): Likewise.
26179         * modules/inttypes (Makefile.am): Likewise.
26180         * modules/langinfo (Makefile.am): Likewise.
26181         * modules/locale (Makefile.am): Likewise.
26182         * modules/spawn (Makefile.am): Likewise.
26183         * modules/sys_file (Makefile.am): Likewise.
26184         * modules/sys_ioctl (Makefile.am): Likewise.
26185         * modules/sys_select (Makefile.am): Likewise.
26186         * modules/sys_socket (Makefile.am): Likewise.
26187         * modules/sys_times (Makefile.am): Likewise.
26188         * modules/sys_utsname (Makefile.am): Likewise.
26189         * modules/sys_wait (Makefile.am): Likewise.
26190         * modules/wchar (Makefile.am): Likewise.
26191         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
26192         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
26193         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
26194         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
26195         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
26196         Likewise.
26197         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26198         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26199         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
26200         Likewise.
26201         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
26202         Likewise.
26203         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26204         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
26205         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
26206         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26207         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26208         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26209         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26210         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
26211         (gl_WCHAR_H_DEFAULTS): Likewise.
26212
26213 2009-12-31  Eric Blake  <ebb9@byu.net>
26214
26215         signal, spawn: use link warnings
26216         * lib/signal.in.h (sigset_t): Make unconditional.
26217         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
26218         (sigpending, sigprocmask, sigaction): Add link warnings.
26219         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
26220         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
26221         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
26222         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
26223         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
26224         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
26225         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
26226         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
26227         (posix_spawn_file_actions_destroy)
26228         (posix_spawn_file_actions_addopen)
26229         (posix_spawn_file_actions_addclose)
26230         (posix_spawn_file_actions_adddup2): Likewise.
26231         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
26232         * tests/test-signal.c (main): Enhance test.
26233
26234         spawn: improve wrapper support
26235         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
26236         (gl_SPAWN_H_DEFAULTS): New defaults.
26237         * modules/spawn (Makefile.am): Substitute them.
26238         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
26239         Only declare if missing or broken.
26240
26241         sys_times, sys_utsname: use include_next
26242         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
26243         header.
26244         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
26245         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26246         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26247         * modules/sys_times (Depends-on): Add include_next.
26248         (Makefile.am): Substitute additional values.
26249         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
26250         * lib/sys_times.in.h (includes): Include native header, if
26251         available.
26252         * lib/sys_utsname.in.h (includes): Likewise.
26253         * tests/test-sys_times.c (main): Enhance test.
26254
26255         fdutimensat: revert prior patch
26256         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
26257         utimens.h.
26258         Reported by Bruno Haible.
26259
26260 2009-12-30  Eric Blake  <ebb9@byu.net>
26261
26262         sys_wait: drop link-warning dependency
26263         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
26264         link-warning efforts.
26265         * lib/sys_wait.in.h: Likewise.
26266
26267         fdutimensat: remove bogus dependency
26268         * modules/fdutimensat (Depends-on): Drop inline.
26269
26270         unistd: fix typo
26271         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
26272
26273 2009-12-30  Bruno Haible  <bruno@clisp.org>
26274
26275         Fix compilation error with Solaris cc.
26276         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
26277         * lib/unicase/u16-is-invariant.c: Likewise.
26278         * lib/unicase/u32-is-invariant.c: Likewise.
26279         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26280
26281 2009-12-30  Bruno Haible  <bruno@clisp.org>
26282
26283         Fix test crash.
26284         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
26285         locales.
26286         Reported by Simon Josefsson <simon@josefsson.org>.
26287
26288 2009-12-30  Bruno Haible  <bruno@clisp.org>
26289
26290         Fix compilation error on most platforms.
26291         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
26292         Reported by Simon Josefsson <simon@josefsson.org>
26293         and Nelson H. F. Beebe <beebe@math.utah.edu>.
26294
26295 2009-12-30  Eric Blake  <ebb9@byu.net>
26296
26297         futimens, utimensat: work around ntfs-3g bug
26298         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
26299         a ctime bug is present, and expand workaround to cover ntfs-3g.
26300         * lib/utimens.c (fdutimens, lutimens): Likewise.
26301         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
26302         (validate_timespec): Adjust return value.
26303         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
26304         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26305         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
26306
26307 2009-12-29  Eric Blake  <ebb9@byu.net>
26308
26309         link-warning: make usage consistent
26310         * modules/ctype (Depends-on): Add link-warning.
26311         (Makefile.am): Update rules accordingly.
26312         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26313         * modules/locale (Depends-on, Makefile.am): Likewise.
26314         * modules/sys_file (Makefile.am): Likewise.
26315         * modules/getopt-posix (Makefile.am): Delete unused link warning
26316         efforts.
26317         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
26318         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
26319         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
26320         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
26321
26322         stdio: remove unused variables
26323         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
26324         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
26325         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26326
26327         tests: test more substitute headers
26328         * modules/ctype-tests: New file.
26329         * modules/dirent-tests: Likewise.
26330         * modules/spawn-tests: Likewise.
26331         * modules/sys_file-tests: Likewise.
26332         * modules/sys_ioctl-tests: Likewise.
26333         * modules/sys_wait-tests: Likewise.
26334         * tests/test-ctype.c: Likewise.
26335         * tests/test-dirent.c: Likewise.
26336         * tests/test-spawn.c: Likewise.
26337         * tests/test-sys_file.c: Likewise.
26338         * tests/test-sys_ioctl.c: Likewise.
26339         * tests/test-sys_wait.c: Likewise.
26340         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
26341         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
26342         whether or not flock is in use.
26343
26344         tests: remove License section from module
26345         * modules/arpa_inet-tests: Remove unneeded section.
26346         * modules/byteswap-tests: Likewise.
26347         * modules/ceilf-tests: Likewise.
26348         * modules/ceill-tests: Likewise.
26349         * modules/crypto/des-tests: Likewise.
26350         * modules/crypto/gc-arcfour-tests: Likewise.
26351         * modules/crypto/gc-arctwo-tests: Likewise.
26352         * modules/crypto/gc-des-tests: Likewise.
26353         * modules/crypto/gc-hmac-md5-tests: Likewise.
26354         * modules/crypto/gc-hmac-sha1-tests: Likewise.
26355         * modules/crypto/gc-md2-tests: Likewise.
26356         * modules/crypto/gc-md4-tests: Likewise.
26357         * modules/crypto/gc-md5-tests: Likewise.
26358         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
26359         * modules/crypto/gc-rijndael-tests: Likewise.
26360         * modules/crypto/gc-sha1-tests: Likewise.
26361         * modules/crypto/gc-tests: Likewise.
26362         * modules/crypto/md2-tests: Likewise.
26363         * modules/crypto/md4-tests: Likewise.
26364         * modules/fcntl-h-tests: Likewise.
26365         * modules/floorf-tests: Likewise.
26366         * modules/floorl-tests: Likewise.
26367         * modules/frexp-nolibm-tests: Likewise.
26368         * modules/frexp-tests: Likewise.
26369         * modules/frexpl-nolibm-tests: Likewise.
26370         * modules/frexpl-tests: Likewise.
26371         * modules/getaddrinfo-tests: Likewise.
26372         * modules/inttypes-tests: Likewise.
26373         * modules/isfinite-tests: Likewise.
26374         * modules/isinf-tests: Likewise.
26375         * modules/ldexpl-tests: Likewise.
26376         * modules/locale-tests: Likewise.
26377         * modules/math-tests: Likewise.
26378         * modules/netdb-tests: Likewise.
26379         * modules/netinet_in-tests: Likewise.
26380         * modules/printf-frexp-tests: Likewise.
26381         * modules/printf-frexpl-tests: Likewise.
26382         * modules/priv-set-tests: Likewise.
26383         * modules/random_r-tests: Likewise.
26384         * modules/round-tests: Likewise.
26385         * modules/roundf-tests: Likewise.
26386         * modules/roundl-tests: Likewise.
26387         * modules/search-tests: Likewise.
26388         * modules/select-tests: Likewise.
26389         * modules/signal-tests: Likewise.
26390         * modules/stdbool-tests: Likewise.
26391         * modules/stddef-tests: Likewise.
26392         * modules/stdint-tests: Likewise.
26393         * modules/stdio-tests: Likewise.
26394         * modules/stdlib-tests: Likewise.
26395         * modules/string-tests: Likewise.
26396         * modules/strings-tests: Likewise.
26397         * modules/sys_select-tests: Likewise.
26398         * modules/sys_socket-tests: Likewise.
26399         * modules/sys_stat-tests: Likewise.
26400         * modules/sys_time-tests: Likewise.
26401         * modules/sys_utsname-tests: Likewise.
26402         * modules/sysexits-tests: Likewise.
26403         * modules/time-tests: Likewise.
26404         * modules/trunc-tests: Likewise.
26405         * modules/truncf-tests: Likewise.
26406         * modules/truncl-tests: Likewise.
26407         * modules/tsearch-tests: Likewise.
26408         * modules/unistd-tests: Likewise.
26409         * modules/wchar-tests: Likewise.
26410         * modules/wctype-tests: Likewise.
26411
26412         tests: fix license on several tests
26413         * tests/test-des.c: Update to GPLv3+.
26414         * tests/test-flock.c: Likewise.
26415         * tests/test-fsync.c: Likewise.
26416         * tests/test-futimens.h: Likewise.
26417         * tests/test-gc-arcfour.c: Likewise.
26418         * tests/test-gc-arctwo.c: Likewise.
26419         * tests/test-gc-des.c: Likewise.
26420         * tests/test-gc-hmac-md5.c: Likewise.
26421         * tests/test-gc-hmac-sha1.c: Likewise.
26422         * tests/test-gc-md2.c: Likewise.
26423         * tests/test-gc-md4.c: Likewise.
26424         * tests/test-gc-md5.c: Likewise.
26425         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26426         * tests/test-gc-rijndael.c: Likewise.
26427         * tests/test-gc-sha1.c: Likewise.
26428         * tests/test-gc.c: Likewise.
26429         * tests/test-getcwd.c: Likewise.
26430         * tests/test-link.c: Likewise.
26431         * tests/test-link.h: Likewise.
26432         * tests/test-lutimens.h: Likewise.
26433         * tests/test-md2.c: Likewise.
26434         * tests/test-md4.c: Likewise.
26435         * tests/test-mkdir.h: Likewise.
26436         * tests/test-rename.c: Likewise.
26437         * tests/test-rename.h: Likewise.
26438         * tests/test-safe-alloc.c: Likewise.
26439         * tests/test-utimens-common.h: Likewise.
26440         * tests/test-utimens.h: Likewise.
26441
26442         maint: sync license texts
26443         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
26444         * doc/gpl-3.0.texi: Revert copyright year update.
26445         * doc/lgpl-3.0.texi: Likewise.
26446
26447 2009-12-29  Jim Meyering  <meyering@redhat.com>
26448
26449         update nearly all FSF copyright year lists to include 2009
26450         The files named by the following are exempted:
26451             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
26452               test -f "$dst" && { echo "$dst"; continue; }
26453               test -d "$dst" || continue
26454               echo "$dst"/$(basename "$src")
26455             done > exempt
26456             git ls-files tests/unictype >> exempt
26457         In the remaining files, convert to all-interval notation if
26458         - there is already at least one year interval like 2000-2003
26459         - the file is maintained by me
26460         - the file is in lib/uni*/, where that style already prevails
26461         Otherwise, use update-copyright's default.
26462
26463 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26464         and Eric Blake  <ebb9@byu.net>
26465
26466         tests: don't require debug system() to pass
26467         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
26468         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26469         * tests/test-unlink.h (test_unlink_func): Likewise.
26470         * tests/test-fstatat.c (main): ...into callers.
26471         * tests/test-lstat.c (main): Likewise.
26472         * tests/test-rmdir.c (main): Likewise.
26473         * tests/test-unlink.c (main): Likewise.
26474         * tests/test-unlinkat.c (main): Likewise.
26475         * tests/test-areadlink-with-size.c (main): Don't require a
26476         debug-only system call to pass, aiding cross-testing to mingw.
26477         * tests/test-areadlink.c (main): Likewise.
26478         * tests/test-areadlinkat-with-size.c (main): Likewise.
26479         * tests/test-areadlinkat.c (main): Likewise.
26480         * tests/test-canonicalize-lgpl.c (main): Likewise.
26481         * tests/test-canonicalize.c (main): Likewise.
26482         * tests/test-chown.c (main): Likewise.
26483         * tests/test-fchownat.c (main): Likewise.
26484         * tests/test-lchown.c (main): Likewise.
26485         * tests/test-fdutimensat.c (main): Likewise.
26486         * tests/test-futimens.c (main): Likewise.
26487         * tests/test-link.c (main): Likewise.
26488         * tests/test-linkat.c (main): Likewise.
26489         * tests/test-mkdir.c (main): Likewise.
26490         * tests/test-mkdirat.c (main): Likewise.
26491         * tests/test-mkfifo.c (main): Likewise.
26492         * tests/test-mkfifoat.c (main): Likewise.
26493         * tests/test-mknod.c (main): Likewise.
26494         * tests/test-readlink.c (main): Likewise.
26495         * tests/test-remove.c (main): Likewise.
26496         * tests/test-rename.c (main): Likewise.
26497         * tests/test-renameat.c (main): Likewise.
26498         * tests/test-symlink.c (main): Likewise.
26499         * tests/test-symlinkat.c (main): Likewise.
26500         * tests/test-utimens.c (main): Likewise.
26501         * tests/test-utimensat.c (main): Likewise.
26502
26503 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26504
26505         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
26506         on $(UNUSED_PARAMETER_H) to avoid build failure.
26507
26508 2009-12-28  Jim Meyering  <meyering@redhat.com>
26509
26510         update-copyright: you may specify a max. line length other than 72
26511         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
26512
26513         maint: use consistent FSF copyright line syntax
26514         * lib/posixtm.c: Add missing comma in FSF copyright line.
26515         * lib/posixtm.h: Likewise.
26516         * lib/getugroups.c: Add missing ", Inc.".
26517
26518         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
26519         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
26520         FSF copyright line.  Remove trailing blanks.
26521
26522 2009-12-28  Eric Blake  <ebb9@byu.net>
26523
26524         test-dup2: reduce dependencies
26525         * modules/cloexec (Configure.ac): Set witness.
26526         * modules/dup2-tests (Depends-on): Drop cloexec.
26527         * tests/test-dup2.c (main): Skip portion of test if cloexec module
26528         not present.
26529         Suggested by Bruno Haible.
26530
26531 2009-12-26  Bruno Haible  <bruno@clisp.org>
26532
26533         Remove an unneeded dependency.
26534         * modules/fseterr (Depends-on): Remove dup2.
26535
26536 2009-12-26  Eric Blake  <ebb9@byu.net>
26537
26538         tests: use macros.h in more places
26539         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
26540         (ASSERT_STREAM): Provide default of stderr.
26541         * tests/test-dirent-safer.c: Include macros.h, using alternate
26542         stream for assertions.
26543         * tests/test-dup-safer.c: Likewise.
26544         * tests/test-freopen-safer.c: Likewise.
26545         * tests/test-getopt.c: Likewise.
26546         * tests/test-openat-safer.c: Likewise.
26547         * tests/test-pipe.c: Likewise.
26548         * tests/test-popen-safer.c: Likewise.
26549         * modules/dirent-safer-tests (Files): Include macros.h.
26550         * modules/unistd-safer-tests (Files): Likewise.
26551         * modules/freopen-safer-tests (Files): Likewise.
26552         * modules/getopt-posix-tests (Files): Likewise.
26553         * modules/openat-safer-tests (Files): Likewise.
26554         * modules/pipe-tests (Files): Likewise.
26555
26556 2009-12-26  Bruno Haible  <bruno@clisp.org>
26557
26558         javacomp: Portability fix.
26559         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
26560         that it also works on Solaris.
26561
26562 2009-12-26  Bruno Haible  <bruno@clisp.org>
26563
26564         localename: Fix storage allocation of gl_locale_name_thread's result.
26565         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
26566         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
26567         all platforms that have 'uselocale'.
26568         (gl_locale_name_thread_unsafe): New function, extracted from
26569         gl_locale_name_thread.
26570         (gl_locale_name_thread): Call struniq on all platforms that have
26571         'uselocale'.
26572         * tests/test-localename.c (test_locale_name_thread): Check that the
26573         resulting strings are permanently allocated.
26574         * modules/localename-tests (Depends-on): Add strdup.
26575
26576 2009-12-26  Bruno Haible  <bruno@clisp.org>
26577
26578         * tests/test-localename.c (categories): Fill in the strings.
26579
26580 2009-12-26  Jim Meyering  <meyering@redhat.com>
26581
26582         isdir: complete the removal of m4/isdir.m4
26583         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
26584
26585         isdir: clean up, since at least grep still uses it
26586         * lib/isdir.c: Include "isdir.h".
26587         (S_ISDIR): Remove now-unneeded definition.
26588         * modules/isdir (Files): Add lib/isdir.h.
26589         * lib/isdir.h: New file, with declaration.
26590         * m4/isdir.m4: Remove file -- unneeded.
26591
26592 2009-12-25  Bruno Haible  <bruno@clisp.org>
26593
26594         selinux-h: Make generated .h files standalone.
26595         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
26596         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
26597         * lib/se-selinux.in.h: Likewise.
26598         * modules/selinux-h (Depends-on): Add unused-parameter.
26599         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
26600         selinux/selinux.h and selinux/context.h.
26601         Suggested by Eric Blake.
26602
26603 2009-12-25  Bruno Haible  <bruno@clisp.org>
26604
26605         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
26606         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
26607         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
26608         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
26609         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
26610
26611 2009-12-24  Bruno Haible  <bruno@clisp.org>
26612
26613         openat: Fix warning.
26614         * lib/openat-proc.c: Include <unistd.h>.
26615
26616 2009-12-24  Bruno Haible  <bruno@clisp.org>
26617
26618         New module 'unused-parameter'.
26619         * build-aux/unused-parameter.h: New file, extracted from earlier
26620         gnulib-common.m4.
26621         * modules/unused-parameter: New file.
26622         * lib/unistr.h: Include unused-parameter.h.
26623         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
26624         _GL_UNUSED.
26625         * modules/unistr/base (Depends-on): Add unused-parameter.
26626
26627 2009-12-24  Bruno Haible  <bruno@clisp.org>
26628
26629         Add missing dependencies to 'extensions' module.
26630         * m4/extensions.m4: Add comment.
26631         * modules/accept4 (Depends-on): Add extensions.
26632         * modules/dup3 (Depends-on): Likewise.
26633         * modules/fcntl (Depends-on): Likewise.
26634         * modules/futimens (Depends-on): Likewise.
26635         * modules/mknod (Depends-on): Likewise.
26636         * modules/pipe2 (Depends-on): Likewise.
26637         * modules/stat-time (Depends-on): Likewise.
26638         * modules/strcasestr-simple (Depends-on): Likewise.
26639         * modules/strsignal (Depends-on): Likewise.
26640         * modules/utimensat (Depends-on): Likewise.
26641         * modules/localcharset (Depends-on): Likewise. Needed because of
26642         gl_FCNTL_O_FLAGS.
26643         * modules/wcrtomb (Depends-on): Likewise. Needed because of
26644         AC_TYPE_MBSTATE_T.
26645         * modules/wcsnrtombs (Depends-on): Likewise.
26646         * modules/wcsrtombs (Depends-on): Likewise.
26647
26648 2009-12-24  Bruno Haible  <bruno@clisp.org>
26649
26650         binary-io: Avoid gcc warning due to SET_BINARY.
26651         * lib/binary-io.h (SET_BINARY): Cast the result to void.
26652         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
26653
26654 2009-12-24  Bruno Haible  <bruno@clisp.org>
26655
26656         Avoid future namespace pollution on glibc systems.
26657         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
26658         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
26659         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
26660         glibc systems.
26661
26662 2009-12-24  Bruno Haible  <bruno@clisp.org>
26663
26664         Refactor common macros used in tests.
26665         * tests/macros.h: New file.
26666         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
26667         and/or <stdlib.h>, if appropriate.
26668         (ASSERT, SIZEOF): Remove macros.
26669         * tests/test-areadlink-with-size.c: Likewise.
26670         * tests/test-areadlinkat.c: Likewise.
26671         * tests/test-areadlinkat-with-size.c: Likewise.
26672         * tests/test-argmatch.c: Likewise.
26673         * tests/test-argv-iter.c: Likewise.
26674         * tests/test-array-mergesort.c: Likewise.
26675         * tests/test-array_list.c: Likewise.
26676         * tests/test-array_oset.c: Likewise.
26677         * tests/test-avltree_list.c: Likewise.
26678         * tests/test-avltree_oset.c: Likewise.
26679         * tests/test-avltreehash_list.c: Likewise.
26680         * tests/test-base64.c: Likewise.
26681         * tests/test-binary-io.c: Likewise.
26682         * tests/test-bitrotate.c: Likewise.
26683         * tests/test-btowc.c: Likewise.
26684         * tests/test-byteswap.c: Likewise.
26685         * tests/test-c-ctype.c: Likewise.
26686         * tests/test-c-stack.c: Likewise.
26687         * tests/test-c-strcasecmp.c: Likewise.
26688         * tests/test-c-strcasestr.c: Likewise.
26689         * tests/test-c-strncasecmp.c: Likewise.
26690         * tests/test-c-strstr.c: Likewise.
26691         * tests/test-canonicalize-lgpl.c: Likewise.
26692         * tests/test-canonicalize.c: Likewise.
26693         * tests/test-carray_list.c: Likewise.
26694         * tests/test-ceilf1.c: Likewise.
26695         * tests/test-ceilf2.c: Likewise.
26696         * tests/test-ceill.c: Likewise.
26697         * tests/test-chown.c: Likewise.
26698         * tests/test-cloexec.c: Likewise.
26699         * tests/test-copy-acl.c: Likewise.
26700         * tests/test-copy-file.c: Likewise.
26701         * tests/test-count-one-bits.c: Likewise.
26702         * tests/test-dprintf-posix.c: Likewise.
26703         * tests/test-dup2.c: Likewise.
26704         * tests/test-dup3.c: Likewise.
26705         * tests/test-duplocale.c: Likewise.
26706         * tests/test-fbufmode.c: Likewise.
26707         * tests/test-fchdir.c: Likewise.
26708         * tests/test-fchownat.c: Likewise.
26709         * tests/test-fcntl-safer.c: Likewise.
26710         * tests/test-fcntl.c: Likewise.
26711         * tests/test-fdopendir.c: Likewise.
26712         * tests/test-fdutimensat.c: Likewise.
26713         * tests/test-fflush2.c: Likewise.
26714         * tests/test-file-has-acl.c: Likewise.
26715         * tests/test-filevercmp.c: Likewise.
26716         * tests/test-flock.c: Likewise.
26717         * tests/test-floorf1.c: Likewise.
26718         * tests/test-floorf2.c: Likewise.
26719         * tests/test-floorl.c: Likewise.
26720         * tests/test-fnmatch.c: Likewise.
26721         * tests/test-fopen.h: Likewise.
26722         * tests/test-fpending.c: Likewise.
26723         * tests/test-fprintf-posix.c: Likewise.
26724         * tests/test-fpurge.c: Likewise.
26725         * tests/test-freadable.c: Likewise.
26726         * tests/test-freadahead.c: Likewise.
26727         * tests/test-freading.c: Likewise.
26728         * tests/test-freadptr.c: Likewise.
26729         * tests/test-freadptr2.c: Likewise.
26730         * tests/test-freadseek.c: Likewise.
26731         * tests/test-freopen.c: Likewise.
26732         * tests/test-frexp.c: Likewise.
26733         * tests/test-frexpl.c: Likewise.
26734         * tests/test-fseek.c: Likewise.
26735         * tests/test-fseeko.c: Likewise.
26736         * tests/test-fstatat.c: Likewise.
26737         * tests/test-fstrcmp.c: Likewise.
26738         * tests/test-fsync.c: Likewise.
26739         * tests/test-ftell.c: Likewise.
26740         * tests/test-ftello.c: Likewise.
26741         * tests/test-func.c: Likewise.
26742         * tests/test-futimens.c: Likewise.
26743         * tests/test-fwritable.c: Likewise.
26744         * tests/test-fwriting.c: Likewise.
26745         * tests/test-getcwd.c: Likewise.
26746         * tests/test-getdate.c: Likewise.
26747         * tests/test-getdelim.c: Likewise.
26748         * tests/test-getdtablesize.c: Likewise.
26749         * tests/test-getgroups.c: Likewise.
26750         * tests/test-getline.c: Likewise.
26751         * tests/test-getndelim2.c: Likewise.
26752         * tests/test-glob.c: Likewise.
26753         * tests/test-hash.c: Likewise.
26754         * tests/test-i-ring.c: Likewise.
26755         * tests/test-iconv-utf.c: Likewise.
26756         * tests/test-iconv.c: Likewise.
26757         * tests/test-idpriv-drop.c: Likewise.
26758         * tests/test-idpriv-droptemp.c: Likewise.
26759         * tests/test-inet_ntop.c: Likewise.
26760         * tests/test-inet_pton.c: Likewise.
26761         * tests/test-isblank.c: Likewise.
26762         * tests/test-isfinite.c: Likewise.
26763         * tests/test-isinf.c: Likewise.
26764         * tests/test-isnan.c: Likewise.
26765         * tests/test-isnand.h: Likewise.
26766         * tests/test-isnanf.h: Likewise.
26767         * tests/test-isnanl.h: Likewise.
26768         * tests/test-lchown.c: Likewise.
26769         * tests/test-ldexpl.c: Likewise.
26770         * tests/test-link.c: Likewise.
26771         * tests/test-linkat.c: Likewise.
26772         * tests/test-linked_list.c: Likewise.
26773         * tests/test-linkedhash_list.c: Likewise.
26774         * tests/test-localename.c: Likewise.
26775         * tests/test-lseek.c: Likewise.
26776         * tests/test-lstat.c: Likewise.
26777         * tests/test-mbmemcasecmp.c: Likewise.
26778         * tests/test-mbmemcasecoll.c: Likewise.
26779         * tests/test-mbrtowc.c: Likewise.
26780         * tests/test-mbscasecmp.c: Likewise.
26781         * tests/test-mbscasestr1.c: Likewise.
26782         * tests/test-mbscasestr2.c: Likewise.
26783         * tests/test-mbscasestr3.c: Likewise.
26784         * tests/test-mbscasestr4.c: Likewise.
26785         * tests/test-mbschr.c: Likewise.
26786         * tests/test-mbscspn.c: Likewise.
26787         * tests/test-mbsinit.c: Likewise.
26788         * tests/test-mbsncasecmp.c: Likewise.
26789         * tests/test-mbsnrtowcs.c: Likewise.
26790         * tests/test-mbspbrk.c: Likewise.
26791         * tests/test-mbspcasecmp.c: Likewise.
26792         * tests/test-mbsrchr.c: Likewise.
26793         * tests/test-mbsrtowcs.c: Likewise.
26794         * tests/test-mbsspn.c: Likewise.
26795         * tests/test-mbsstr1.c: Likewise.
26796         * tests/test-mbsstr2.c: Likewise.
26797         * tests/test-mbsstr3.c: Likewise.
26798         * tests/test-memchr.c: Likewise.
26799         * tests/test-memchr2.c: Likewise.
26800         * tests/test-memcmp.c: Likewise.
26801         * tests/test-memmem.c: Likewise.
26802         * tests/test-memrchr.c: Likewise.
26803         * tests/test-mkdir.c: Likewise.
26804         * tests/test-mkdirat.c: Likewise.
26805         * tests/test-mkfifo.c: Likewise.
26806         * tests/test-mkfifoat.c: Likewise.
26807         * tests/test-mknod.c: Likewise.
26808         * tests/test-nanosleep.c: Likewise.
26809         * tests/test-nl_langinfo.c: Likewise.
26810         * tests/test-obstack-printf.c: Likewise.
26811         * tests/test-open.c: Likewise.
26812         * tests/test-openat.c: Likewise.
26813         * tests/test-pipe-filter-gi1.c: Likewise.
26814         * tests/test-pipe-filter-gi2-main.c: Likewise.
26815         * tests/test-pipe-filter-ii1.c: Likewise.
26816         * tests/test-pipe-filter-ii2-main.c: Likewise.
26817         * tests/test-pipe2.c: Likewise.
26818         * tests/test-popen.h: Likewise.
26819         * tests/test-posixtm.c: Likewise.
26820         * tests/test-pread.c: Likewise.
26821         * tests/test-printf-frexp.c: Likewise.
26822         * tests/test-printf-frexpl.c: Likewise.
26823         * tests/test-printf-posix.c: Likewise.
26824         * tests/test-priv-set.c: Likewise.
26825         * tests/test-quotearg.c: Likewise.
26826         * tests/test-random_r.c: Likewise.
26827         * tests/test-rawmemchr.c: Likewise.
26828         * tests/test-rbtree_list.c: Likewise.
26829         * tests/test-rbtree_oset.c: Likewise.
26830         * tests/test-rbtreehash_list.c: Likewise.
26831         * tests/test-readlink.c: Likewise.
26832         * tests/test-remove.c: Likewise.
26833         * tests/test-rename.c: Likewise.
26834         * tests/test-renameat.c: Likewise.
26835         * tests/test-rmdir.c: Likewise.
26836         * tests/test-round1.c: Likewise.
26837         * tests/test-roundf1.c: Likewise.
26838         * tests/test-roundl.c: Likewise.
26839         * tests/test-safe-alloc.c: Likewise.
26840         * tests/test-sameacls.c: Likewise.
26841         * tests/test-set-mode-acl.c: Likewise.
26842         * tests/test-setenv.c: Likewise.
26843         * tests/test-sigaction.c: Likewise.
26844         * tests/test-signbit.c: Likewise.
26845         * tests/test-sleep.c: Likewise.
26846         * tests/test-snprintf-posix.c: Likewise.
26847         * tests/test-snprintf.c: Likewise.
26848         * tests/test-sprintf-posix.c: Likewise.
26849         * tests/test-stat-time.c: Likewise.
26850         * tests/test-stat.c: Likewise.
26851         * tests/test-strcasestr.c: Likewise.
26852         * tests/test-strchrnul.c: Likewise.
26853         * tests/test-strerror.c: Likewise.
26854         * tests/test-striconv.c: Likewise.
26855         * tests/test-striconveh.c: Likewise.
26856         * tests/test-striconveha.c: Likewise.
26857         * tests/test-strsignal.c: Likewise.
26858         * tests/test-strstr.c: Likewise.
26859         * tests/test-strtod.c: Likewise.
26860         * tests/test-strverscmp.c: Likewise.
26861         * tests/test-symlink.c: Likewise.
26862         * tests/test-symlinkat.c: Likewise.
26863         * tests/test-trunc1.c: Likewise.
26864         * tests/test-trunc2.c: Likewise.
26865         * tests/test-truncf1.c: Likewise.
26866         * tests/test-truncf2.c: Likewise.
26867         * tests/test-truncl.c: Likewise.
26868         * tests/test-uname.c: Likewise.
26869         * tests/test-unlink.c: Likewise.
26870         * tests/test-unlinkat.c: Likewise.
26871         * tests/test-unsetenv.c: Likewise.
26872         * tests/test-usleep.c: Likewise.
26873         * tests/test-utimens.c: Likewise.
26874         * tests/test-utimensat.c: Likewise.
26875         * tests/test-vasnprintf-posix.c: Likewise.
26876         * tests/test-vasnprintf-posix2.c: Likewise.
26877         * tests/test-vasnprintf.c: Likewise.
26878         * tests/test-vasprintf-posix.c: Likewise.
26879         * tests/test-vasprintf.c: Likewise.
26880         * tests/test-vdprintf-posix.c: Likewise.
26881         * tests/test-vfprintf-posix.c: Likewise.
26882         * tests/test-vprintf-posix.c: Likewise.
26883         * tests/test-vsnprintf-posix.c: Likewise.
26884         * tests/test-vsnprintf.c: Likewise.
26885         * tests/test-vsprintf-posix.c: Likewise.
26886         * tests/test-wcrtomb.c: Likewise.
26887         * tests/test-wcsnrtombs.c: Likewise.
26888         * tests/test-wcsrtombs.c: Likewise.
26889         * tests/test-wctype.c: Likewise.
26890         * tests/test-wcwidth.c: Likewise.
26891         * tests/test-xfprintf-posix.c: Likewise.
26892         * tests/test-xmemdup0.c: Likewise.
26893         * tests/test-xprintf-posix.c: Likewise.
26894         * tests/test-xvasprintf.c: Likewise.
26895         * tests/unicase/test-locale-language.c: Likewise.
26896         * tests/unicase/test-mapping-part1.h: Likewise.
26897         * tests/unicase/test-predicate-part1.h: Likewise.
26898         * tests/unicase/test-u8-casecmp.c: Likewise.
26899         * tests/unicase/test-u8-casecoll.c: Likewise.
26900         * tests/unicase/test-u8-casefold.c: Likewise.
26901         * tests/unicase/test-u8-is-cased.c: Likewise.
26902         * tests/unicase/test-u8-is-casefolded.c: Likewise.
26903         * tests/unicase/test-u8-is-lowercase.c: Likewise.
26904         * tests/unicase/test-u8-is-titlecase.c: Likewise.
26905         * tests/unicase/test-u8-is-uppercase.c: Likewise.
26906         * tests/unicase/test-u8-tolower.c: Likewise.
26907         * tests/unicase/test-u8-totitle.c: Likewise.
26908         * tests/unicase/test-u8-toupper.c: Likewise.
26909         * tests/unicase/test-u16-casecmp.c: Likewise.
26910         * tests/unicase/test-u16-casecoll.c: Likewise.
26911         * tests/unicase/test-u16-casefold.c: Likewise.
26912         * tests/unicase/test-u16-is-cased.c: Likewise.
26913         * tests/unicase/test-u16-is-casefolded.c: Likewise.
26914         * tests/unicase/test-u16-is-lowercase.c: Likewise.
26915         * tests/unicase/test-u16-is-titlecase.c: Likewise.
26916         * tests/unicase/test-u16-is-uppercase.c: Likewise.
26917         * tests/unicase/test-u16-tolower.c: Likewise.
26918         * tests/unicase/test-u16-totitle.c: Likewise.
26919         * tests/unicase/test-u16-toupper.c: Likewise.
26920         * tests/unicase/test-u32-casecmp.c: Likewise.
26921         * tests/unicase/test-u32-casecoll.c: Likewise.
26922         * tests/unicase/test-u32-casefold.c: Likewise.
26923         * tests/unicase/test-u32-is-cased.c: Likewise.
26924         * tests/unicase/test-u32-is-casefolded.c: Likewise.
26925         * tests/unicase/test-u32-is-lowercase.c: Likewise.
26926         * tests/unicase/test-u32-is-titlecase.c: Likewise.
26927         * tests/unicase/test-u32-is-uppercase.c: Likewise.
26928         * tests/unicase/test-u32-tolower.c: Likewise.
26929         * tests/unicase/test-u32-totitle.c: Likewise.
26930         * tests/unicase/test-u32-toupper.c: Likewise.
26931         * tests/unicase/test-ulc-casecmp.c: Likewise.
26932         * tests/unicase/test-ulc-casecoll.c: Likewise.
26933         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
26934         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
26935         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
26936         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
26937         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
26938         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
26939         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
26940         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
26941         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
26942         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
26943         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
26944         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
26945         * tests/unictype/test-bidi_byname.c: Likewise.
26946         * tests/unictype/test-bidi_name.c: Likewise.
26947         * tests/unictype/test-bidi_of.c: Likewise.
26948         * tests/unictype/test-bidi_test.c: Likewise.
26949         * tests/unictype/test-block_list.c: Likewise.
26950         * tests/unictype/test-block_of.c: Likewise.
26951         * tests/unictype/test-block_test.c: Likewise.
26952         * tests/unictype/test-categ_and.c: Likewise.
26953         * tests/unictype/test-categ_and_not.c: Likewise.
26954         * tests/unictype/test-categ_byname.c: Likewise.
26955         * tests/unictype/test-categ_name.c: Likewise.
26956         * tests/unictype/test-categ_none.c: Likewise.
26957         * tests/unictype/test-categ_of.c: Likewise.
26958         * tests/unictype/test-categ_or.c: Likewise.
26959         * tests/unictype/test-categ_test_withtable.c: Likewise.
26960         * tests/unictype/test-combining.c: Likewise.
26961         * tests/unictype/test-decdigit.c: Likewise.
26962         * tests/unictype/test-digit.c: Likewise.
26963         * tests/unictype/test-mirror.c: Likewise.
26964         * tests/unictype/test-numeric.c: Likewise.
26965         * tests/unictype/test-pr_byname.c: Likewise.
26966         * tests/unictype/test-pr_test.c: Likewise.
26967         * tests/unictype/test-predicate-part1.h: Likewise.
26968         * tests/unictype/test-scripts.c: Likewise.
26969         * tests/unictype/test-sy_c_ident.c: Likewise.
26970         * tests/unictype/test-sy_java_ident.c: Likewise.
26971         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
26972         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
26973         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
26974         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
26975         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
26976         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
26977         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
26978         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
26979         * tests/uninorm/test-canonical-decomposition.c: Likewise.
26980         * tests/uninorm/test-compat-decomposition.c: Likewise.
26981         * tests/uninorm/test-composition.c: Likewise.
26982         * tests/uninorm/test-decomposing-form.c: Likewise.
26983         * tests/uninorm/test-decomposition.c: Likewise.
26984         * tests/uninorm/test-u8-nfc.c: Likewise.
26985         * tests/uninorm/test-u8-nfd.c: Likewise.
26986         * tests/uninorm/test-u8-nfkc.c: Likewise.
26987         * tests/uninorm/test-u8-nfkd.c: Likewise.
26988         * tests/uninorm/test-u8-normcmp.c: Likewise.
26989         * tests/uninorm/test-u8-normcoll.c: Likewise.
26990         * tests/uninorm/test-u16-nfc.c: Likewise.
26991         * tests/uninorm/test-u16-nfd.c: Likewise.
26992         * tests/uninorm/test-u16-nfkc.c: Likewise.
26993         * tests/uninorm/test-u16-nfkd.c: Likewise.
26994         * tests/uninorm/test-u16-normcmp.c: Likewise.
26995         * tests/uninorm/test-u16-normcoll.c: Likewise.
26996         * tests/uninorm/test-u32-nfc.c: Likewise.
26997         * tests/uninorm/test-u32-nfd.c: Likewise.
26998         * tests/uninorm/test-u32-nfkc.c: Likewise.
26999         * tests/uninorm/test-u32-nfkd.c: Likewise.
27000         * tests/uninorm/test-u32-normalize-big.c: Likewise.
27001         * tests/uninorm/test-u32-normcmp.c: Likewise.
27002         * tests/uninorm/test-u32-normcoll.c: Likewise.
27003         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
27004         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
27005         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
27006         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
27007         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
27008         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
27009         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
27010         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
27011         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
27012         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
27013         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
27014         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
27015         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
27016         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
27017         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
27018         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
27019         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
27020         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
27021         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
27022         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
27023         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27024         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27025         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
27026         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
27027         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
27028         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
27029         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
27030         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27031         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27032         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
27033         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
27034         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
27035         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
27036         * tests/uniwidth/test-u8-strwidth.c: Likewise.
27037         * tests/uniwidth/test-u8-width.c: Likewise.
27038         * tests/uniwidth/test-u16-strwidth.c: Likewise.
27039         * tests/uniwidth/test-u16-width.c: Likewise.
27040         * tests/uniwidth/test-u32-strwidth.c: Likewise.
27041         * tests/uniwidth/test-u32-width.c: Likewise.
27042         * tests/uniwidth/test-uc_width.c: Likewise.
27043         * tests/uniwidth/test-uc_width2.c: Likewise.
27044         * modules/acl-tests (Files): Add tests/macros.h.
27045         * modules/areadlink-tests (Files): Likewise.
27046         * modules/areadlink-with-size-tests (Files): Likewise.
27047         * modules/areadlinkat-tests (Files): Likewise.
27048         * modules/areadlinkat-with-size-tests (Files): Likewise.
27049         * modules/argmatch-tests (Files): Likewise.
27050         * modules/argv-iter-tests (Files): Likewise.
27051         * modules/array-list-tests (Files): Likewise.
27052         * modules/array-mergesort-tests (Files): Likewise.
27053         * modules/array-oset-tests (Files): Likewise.
27054         * modules/avltree-list-tests (Files): Likewise.
27055         * modules/avltree-oset-tests (Files): Likewise.
27056         * modules/avltreehash-list-tests (Files): Likewise.
27057         * modules/base64-tests (Files): Likewise.
27058         * modules/binary-io-tests (Files): Likewise.
27059         * modules/bitrotate-tests (Files): Likewise.
27060         * modules/btowc-tests (Files): Likewise.
27061         * modules/byteswap-tests (Files): Likewise.
27062         * modules/c-ctype-tests (Files): Likewise.
27063         * modules/c-stack-tests (Files): Likewise.
27064         * modules/c-strcase-tests (Files): Likewise.
27065         * modules/c-strcasestr-tests (Files): Likewise.
27066         * modules/c-strstr-tests (Files): Likewise.
27067         * modules/canonicalize-lgpl-tests (Files): Likewise.
27068         * modules/canonicalize-tests (Files): Likewise.
27069         * modules/carray-list-tests (Files): Likewise.
27070         * modules/ceilf-tests (Files): Likewise.
27071         * modules/ceill-tests (Files): Likewise.
27072         * modules/chown-tests (Files): Likewise.
27073         * modules/cloexec-tests (Files): Likewise.
27074         * modules/copy-file-tests (Files): Likewise.
27075         * modules/count-one-bits-tests (Files): Likewise.
27076         * modules/dprintf-posix-tests (Files): Likewise.
27077         * modules/dup2-tests (Files): Likewise.
27078         * modules/dup3-tests (Files): Likewise.
27079         * modules/duplocale-tests (Files): Likewise.
27080         * modules/fbufmode-tests (Files): Likewise.
27081         * modules/fchdir-tests (Files): Likewise.
27082         * modules/fcntl-safer-tests (Files): Likewise.
27083         * modules/fcntl-tests (Files): Likewise.
27084         * modules/fdopendir-tests (Files): Likewise.
27085         * modules/fdutimensat-tests (Files): Likewise.
27086         * modules/fflush-tests (Files): Likewise.
27087         * modules/filevercmp-tests (Files): Likewise.
27088         * modules/flock-tests (Files): Likewise.
27089         * modules/floorf-tests (Files): Likewise.
27090         * modules/floorl-tests (Files): Likewise.
27091         * modules/fnmatch-tests (Files): Likewise.
27092         * modules/fopen-safer-tests (Files): Likewise.
27093         * modules/fopen-tests (Files): Likewise.
27094         * modules/fpending-tests (Files): Likewise.
27095         * modules/fprintf-posix-tests (Files): Likewise.
27096         * modules/fpurge-tests (Files): Likewise.
27097         * modules/freadable-tests (Files): Likewise.
27098         * modules/freadahead-tests (Files): Likewise.
27099         * modules/freading-tests (Files): Likewise.
27100         * modules/freadptr-tests (Files): Likewise.
27101         * modules/freadseek-tests (Files): Likewise.
27102         * modules/freopen-tests (Files): Likewise.
27103         * modules/frexp-nolibm-tests (Files): Likewise.
27104         * modules/frexp-tests (Files): Likewise.
27105         * modules/frexpl-nolibm-tests (Files): Likewise.
27106         * modules/frexpl-tests (Files): Likewise.
27107         * modules/fseek-tests (Files): Likewise.
27108         * modules/fseeko-tests (Files): Likewise.
27109         * modules/fstrcmp-tests (Files): Likewise.
27110         * modules/fsync-tests (Files): Likewise.
27111         * modules/ftell-tests (Files): Likewise.
27112         * modules/ftello-tests (Files): Likewise.
27113         * modules/func-tests (Files): Likewise.
27114         * modules/futimens-tests (Files): Likewise.
27115         * modules/fwritable-tests (Files): Likewise.
27116         * modules/fwriting-tests (Files): Likewise.
27117         * modules/getcwd-tests (Files): Likewise.
27118         * modules/getdate-tests (Files): Likewise.
27119         * modules/getdelim-tests (Files): Likewise.
27120         * modules/getdtablesize-tests (Files): Likewise.
27121         * modules/getgroups-tests (Files): Likewise.
27122         * modules/getline-tests (Files): Likewise.
27123         * modules/getndelim2-tests (Files): Likewise.
27124         * modules/glob-tests (Files): Likewise.
27125         * modules/hash-tests (Files): Likewise.
27126         * modules/i-ring-tests (Files): Likewise.
27127         * modules/iconv-tests (Files): Likewise.
27128         * modules/iconv_open-utf-tests (Files): Likewise.
27129         * modules/idpriv-drop-tests (Files): Likewise.
27130         * modules/idpriv-droptemp-tests (Files): Likewise.
27131         * modules/inet_ntop-tests (Files): Likewise.
27132         * modules/inet_pton-tests (Files): Likewise.
27133         * modules/isblank-tests (Files): Likewise.
27134         * modules/isfinite-tests (Files): Likewise.
27135         * modules/isinf-tests (Files): Likewise.
27136         * modules/isnan-tests (Files): Likewise.
27137         * modules/isnand-nolibm-tests (Files): Likewise.
27138         * modules/isnand-tests (Files): Likewise.
27139         * modules/isnanf-nolibm-tests (Files): Likewise.
27140         * modules/isnanf-tests (Files): Likewise.
27141         * modules/isnanl-nolibm-tests (Files): Likewise.
27142         * modules/isnanl-tests (Files): Likewise.
27143         * modules/lchown-tests (Files): Likewise.
27144         * modules/ldexpl-tests (Files): Likewise.
27145         * modules/link-tests (Files): Likewise.
27146         * modules/linkat-tests (Files): Likewise.
27147         * modules/linked-list-tests (Files): Likewise.
27148         * modules/linkedhash-list-tests (Files): Likewise.
27149         * modules/localename-tests (Files): Likewise.
27150         * modules/lseek-tests (Files): Likewise.
27151         * modules/lstat-tests (Files): Likewise.
27152         * modules/mbmemcasecmp-tests (Files): Likewise.
27153         * modules/mbmemcasecoll-tests (Files): Likewise.
27154         * modules/mbrtowc-tests (Files): Likewise.
27155         * modules/mbscasecmp-tests (Files): Likewise.
27156         * modules/mbscasestr-tests (Files): Likewise.
27157         * modules/mbschr-tests (Files): Likewise.
27158         * modules/mbscspn-tests (Files): Likewise.
27159         * modules/mbsinit-tests (Files): Likewise.
27160         * modules/mbsncasecmp-tests (Files): Likewise.
27161         * modules/mbsnrtowcs-tests (Files): Likewise.
27162         * modules/mbspbrk-tests (Files): Likewise.
27163         * modules/mbspcasecmp-tests (Files): Likewise.
27164         * modules/mbsrchr-tests (Files): Likewise.
27165         * modules/mbsrtowcs-tests (Files): Likewise.
27166         * modules/mbsspn-tests (Files): Likewise.
27167         * modules/mbsstr-tests (Files): Likewise.
27168         * modules/memchr-tests (Files): Likewise.
27169         * modules/memchr2-tests (Files): Likewise.
27170         * modules/memcmp-tests (Files): Likewise.
27171         * modules/memmem-tests (Files): Likewise.
27172         * modules/memrchr-tests (Files): Likewise.
27173         * modules/mkdir-tests (Files): Likewise.
27174         * modules/mkfifo-tests (Files): Likewise.
27175         * modules/mkfifoat-tests (Files): Likewise.
27176         * modules/mknod-tests (Files): Likewise.
27177         * modules/nanosleep-tests (Files): Likewise.
27178         * modules/nl_langinfo-tests (Files): Likewise.
27179         * modules/obstack-printf-tests (Files): Likewise.
27180         * modules/open-tests (Files): Likewise.
27181         * modules/openat-tests (Files): Likewise.
27182         * modules/pipe-filter-gi-tests (Files): Likewise.
27183         * modules/pipe-filter-ii-tests (Files): Likewise.
27184         * modules/pipe2-tests (Files): Likewise.
27185         * modules/popen-safer-tests (Files): Likewise.
27186         * modules/popen-tests (Files): Likewise.
27187         * modules/posixtm-tests (Files): Likewise.
27188         * modules/pread-tests (Files): Likewise.
27189         * modules/printf-frexp-tests (Files): Likewise.
27190         * modules/printf-frexpl-tests (Files): Likewise.
27191         * modules/printf-posix-tests (Files): Likewise.
27192         * modules/priv-set-tests (Files): Likewise.
27193         * modules/quotearg-tests (Files): Likewise.
27194         * modules/random_r-tests (Files): Likewise.
27195         * modules/rawmemchr-tests (Files): Likewise.
27196         * modules/rbtree-list-tests (Files): Likewise.
27197         * modules/rbtree-oset-tests (Files): Likewise.
27198         * modules/rbtreehash-list-tests (Files): Likewise.
27199         * modules/readlink-tests (Files): Likewise.
27200         * modules/remove-tests (Files): Likewise.
27201         * modules/rename-tests (Files): Likewise.
27202         * modules/renameat-tests (Files): Likewise.
27203         * modules/rmdir-tests (Files): Likewise.
27204         * modules/round-tests (Files): Likewise.
27205         * modules/roundf-tests (Files): Likewise.
27206         * modules/roundl-tests (Files): Likewise.
27207         * modules/safe-alloc-tests (Files): Likewise.
27208         * modules/setenv-tests (Files): Likewise.
27209         * modules/sigaction-tests (Files): Likewise.
27210         * modules/signbit-tests (Files): Likewise.
27211         * modules/sleep-tests (Files): Likewise.
27212         * modules/snprintf-posix-tests (Files): Likewise.
27213         * modules/snprintf-tests (Files): Likewise.
27214         * modules/sprintf-posix-tests (Files): Likewise.
27215         * modules/stat-tests (Files): Likewise.
27216         * modules/stat-time-tests (Files): Likewise.
27217         * modules/strcasestr-tests (Files): Likewise.
27218         * modules/strchrnul-tests (Files): Likewise.
27219         * modules/strerror-tests (Files): Likewise.
27220         * modules/striconv-tests (Files): Likewise.
27221         * modules/striconveh-tests (Files): Likewise.
27222         * modules/striconveha-tests (Files): Likewise.
27223         * modules/strsignal-tests (Files): Likewise.
27224         * modules/strstr-tests (Files): Likewise.
27225         * modules/strtod-tests (Files): Likewise.
27226         * modules/strverscmp-tests (Files): Likewise.
27227         * modules/symlink-tests (Files): Likewise.
27228         * modules/symlinkat-tests (Files): Likewise.
27229         * modules/trunc-tests (Files): Likewise.
27230         * modules/truncf-tests (Files): Likewise.
27231         * modules/truncl-tests (Files): Likewise.
27232         * modules/uname-tests (Files): Likewise.
27233         * modules/unicase/cased-tests (Files): Likewise.
27234         * modules/unicase/ignorable-tests (Files): Likewise.
27235         * modules/unicase/locale-language-tests (Files): Likewise.
27236         * modules/unicase/tolower-tests (Files): Likewise.
27237         * modules/unicase/totitle-tests (Files): Likewise.
27238         * modules/unicase/toupper-tests (Files): Likewise.
27239         * modules/unicase/u8-casecmp-tests (Files): Likewise.
27240         * modules/unicase/u8-casecoll-tests (Files): Likewise.
27241         * modules/unicase/u8-casefold-tests (Files): Likewise.
27242         * modules/unicase/u8-is-cased-tests (Files): Likewise.
27243         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
27244         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
27245         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
27246         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
27247         * modules/unicase/u8-tolower-tests (Files): Likewise.
27248         * modules/unicase/u8-totitle-tests (Files): Likewise.
27249         * modules/unicase/u8-toupper-tests (Files): Likewise.
27250         * modules/unicase/u16-casecmp-tests (Files): Likewise.
27251         * modules/unicase/u16-casecoll-tests (Files): Likewise.
27252         * modules/unicase/u16-casefold-tests (Files): Likewise.
27253         * modules/unicase/u16-is-cased-tests (Files): Likewise.
27254         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
27255         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
27256         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
27257         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
27258         * modules/unicase/u16-tolower-tests (Files): Likewise.
27259         * modules/unicase/u16-totitle-tests (Files): Likewise.
27260         * modules/unicase/u16-toupper-tests (Files): Likewise.
27261         * modules/unicase/u32-casecmp-tests (Files): Likewise.
27262         * modules/unicase/u32-casecoll-tests (Files): Likewise.
27263         * modules/unicase/u32-casefold-tests (Files): Likewise.
27264         * modules/unicase/u32-is-cased-tests (Files): Likewise.
27265         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
27266         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
27267         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
27268         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
27269         * modules/unicase/u32-tolower-tests (Files): Likewise.
27270         * modules/unicase/u32-totitle-tests (Files): Likewise.
27271         * modules/unicase/u32-toupper-tests (Files): Likewise.
27272         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
27273         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
27274         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
27275         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
27276         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
27277         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
27278         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
27279         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
27280         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
27281         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
27282         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
27283         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
27284         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
27285         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
27286         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
27287         * modules/unictype/bidicategory-name-tests (Files): Likewise.
27288         * modules/unictype/bidicategory-of-tests (Files): Likewise.
27289         * modules/unictype/bidicategory-test-tests (Files): Likewise.
27290         * modules/unictype/block-list-tests (Files): Likewise.
27291         * modules/unictype/block-of-tests (Files): Likewise.
27292         * modules/unictype/block-test-tests (Files): Likewise.
27293         * modules/unictype/category-C-tests (Files): Likewise.
27294         * modules/unictype/category-Cc-tests (Files): Likewise.
27295         * modules/unictype/category-Cf-tests (Files): Likewise.
27296         * modules/unictype/category-Cn-tests (Files): Likewise.
27297         * modules/unictype/category-Co-tests (Files): Likewise.
27298         * modules/unictype/category-Cs-tests (Files): Likewise.
27299         * modules/unictype/category-L-tests (Files): Likewise.
27300         * modules/unictype/category-Ll-tests (Files): Likewise.
27301         * modules/unictype/category-Lm-tests (Files): Likewise.
27302         * modules/unictype/category-Lo-tests (Files): Likewise.
27303         * modules/unictype/category-Lt-tests (Files): Likewise.
27304         * modules/unictype/category-Lu-tests (Files): Likewise.
27305         * modules/unictype/category-M-tests (Files): Likewise.
27306         * modules/unictype/category-Mc-tests (Files): Likewise.
27307         * modules/unictype/category-Me-tests (Files): Likewise.
27308         * modules/unictype/category-Mn-tests (Files): Likewise.
27309         * modules/unictype/category-N-tests (Files): Likewise.
27310         * modules/unictype/category-Nd-tests (Files): Likewise.
27311         * modules/unictype/category-Nl-tests (Files): Likewise.
27312         * modules/unictype/category-No-tests (Files): Likewise.
27313         * modules/unictype/category-P-tests (Files): Likewise.
27314         * modules/unictype/category-Pc-tests (Files): Likewise.
27315         * modules/unictype/category-Pd-tests (Files): Likewise.
27316         * modules/unictype/category-Pe-tests (Files): Likewise.
27317         * modules/unictype/category-Pf-tests (Files): Likewise.
27318         * modules/unictype/category-Pi-tests (Files): Likewise.
27319         * modules/unictype/category-Po-tests (Files): Likewise.
27320         * modules/unictype/category-Ps-tests (Files): Likewise.
27321         * modules/unictype/category-S-tests (Files): Likewise.
27322         * modules/unictype/category-Sc-tests (Files): Likewise.
27323         * modules/unictype/category-Sk-tests (Files): Likewise.
27324         * modules/unictype/category-Sm-tests (Files): Likewise.
27325         * modules/unictype/category-So-tests (Files): Likewise.
27326         * modules/unictype/category-Z-tests (Files): Likewise.
27327         * modules/unictype/category-Zl-tests (Files): Likewise.
27328         * modules/unictype/category-Zp-tests (Files): Likewise.
27329         * modules/unictype/category-Zs-tests (Files): Likewise.
27330         * modules/unictype/category-and-not-tests (Files): Likewise.
27331         * modules/unictype/category-and-tests (Files): Likewise.
27332         * modules/unictype/category-byname-tests (Files): Likewise.
27333         * modules/unictype/category-name-tests (Files): Likewise.
27334         * modules/unictype/category-none-tests (Files): Likewise.
27335         * modules/unictype/category-of-tests (Files): Likewise.
27336         * modules/unictype/category-or-tests (Files): Likewise.
27337         * modules/unictype/category-test-withtable-tests (Files): Likewise.
27338         * modules/unictype/combining-class-tests (Files): Likewise.
27339         * modules/unictype/ctype-alnum-tests (Files): Likewise.
27340         * modules/unictype/ctype-alpha-tests (Files): Likewise.
27341         * modules/unictype/ctype-blank-tests (Files): Likewise.
27342         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
27343         * modules/unictype/ctype-digit-tests (Files): Likewise.
27344         * modules/unictype/ctype-graph-tests (Files): Likewise.
27345         * modules/unictype/ctype-lower-tests (Files): Likewise.
27346         * modules/unictype/ctype-print-tests (Files): Likewise.
27347         * modules/unictype/ctype-punct-tests (Files): Likewise.
27348         * modules/unictype/ctype-space-tests (Files): Likewise.
27349         * modules/unictype/ctype-upper-tests (Files): Likewise.
27350         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
27351         * modules/unictype/decimal-digit-tests (Files): Likewise.
27352         * modules/unictype/digit-tests (Files): Likewise.
27353         * modules/unictype/mirror-tests (Files): Likewise.
27354         * modules/unictype/numeric-tests (Files): Likewise.
27355         * modules/unictype/property-alphabetic-tests (Files): Likewise.
27356         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
27357         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
27358         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
27359         Likewise.
27360         * modules/unictype/property-bidi-block-separator-tests (Files):
27361         Likewise.
27362         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
27363         Likewise.
27364         * modules/unictype/property-bidi-common-separator-tests (Files):
27365         Likewise.
27366         * modules/unictype/property-bidi-control-tests (Files): Likewise.
27367         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
27368         Likewise.
27369         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
27370         Likewise.
27371         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
27372         Likewise.
27373         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
27374         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
27375         Likewise.
27376         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
27377         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
27378         Likewise.
27379         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
27380         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
27381         * modules/unictype/property-bidi-segment-separator-tests (Files):
27382         Likewise.
27383         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
27384         * modules/unictype/property-byname-tests (Files): Likewise.
27385         * modules/unictype/property-combining-tests (Files): Likewise.
27386         * modules/unictype/property-composite-tests (Files): Likewise.
27387         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
27388         * modules/unictype/property-dash-tests (Files): Likewise.
27389         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
27390         * modules/unictype/property-default-ignorable-code-point-tests (Files):
27391         Likewise.
27392         * modules/unictype/property-deprecated-tests (Files): Likewise.
27393         * modules/unictype/property-diacritic-tests (Files): Likewise.
27394         * modules/unictype/property-extender-tests (Files): Likewise.
27395         * modules/unictype/property-format-control-tests (Files): Likewise.
27396         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
27397         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
27398         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
27399         * modules/unictype/property-hex-digit-tests (Files): Likewise.
27400         * modules/unictype/property-hyphen-tests (Files): Likewise.
27401         * modules/unictype/property-id-continue-tests (Files): Likewise.
27402         * modules/unictype/property-id-start-tests (Files): Likewise.
27403         * modules/unictype/property-ideographic-tests (Files): Likewise.
27404         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
27405         * modules/unictype/property-ids-trinary-operator-tests (Files):
27406         Likewise.
27407         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
27408         * modules/unictype/property-iso-control-tests (Files): Likewise.
27409         * modules/unictype/property-join-control-tests (Files): Likewise.
27410         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
27411         * modules/unictype/property-line-separator-tests (Files): Likewise.
27412         * modules/unictype/property-logical-order-exception-tests (Files):
27413         Likewise.
27414         * modules/unictype/property-lowercase-tests (Files): Likewise.
27415         * modules/unictype/property-math-tests (Files): Likewise.
27416         * modules/unictype/property-non-break-tests (Files): Likewise.
27417         * modules/unictype/property-not-a-character-tests (Files): Likewise.
27418         * modules/unictype/property-numeric-tests (Files): Likewise.
27419         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
27420         * modules/unictype/property-other-default-ignorable-code-point-tests
27421         (Files): Likewise.
27422         * modules/unictype/property-other-grapheme-extend-tests (Files):
27423         Likewise.
27424         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
27425         * modules/unictype/property-other-id-start-tests (Files): Likewise.
27426         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
27427         * modules/unictype/property-other-math-tests (Files): Likewise.
27428         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
27429         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
27430         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
27431         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
27432         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
27433         * modules/unictype/property-private-use-tests (Files): Likewise.
27434         * modules/unictype/property-punctuation-tests (Files): Likewise.
27435         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
27436         * modules/unictype/property-radical-tests (Files): Likewise.
27437         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
27438         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
27439         * modules/unictype/property-space-tests (Files): Likewise.
27440         * modules/unictype/property-terminal-punctuation-tests (Files):
27441         Likewise.
27442         * modules/unictype/property-test-tests (Files): Likewise.
27443         * modules/unictype/property-titlecase-tests (Files): Likewise.
27444         * modules/unictype/property-unassigned-code-value-tests (Files):
27445         Likewise.
27446         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
27447         * modules/unictype/property-uppercase-tests (Files): Likewise.
27448         * modules/unictype/property-variation-selector-tests (Files): Likewise.
27449         * modules/unictype/property-white-space-tests (Files): Likewise.
27450         * modules/unictype/property-xid-continue-tests (Files): Likewise.
27451         * modules/unictype/property-xid-start-tests (Files): Likewise.
27452         * modules/unictype/property-zero-width-tests (Files): Likewise.
27453         * modules/unictype/scripts-tests (Files): Likewise.
27454         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
27455         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
27456         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
27457         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
27458         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
27459         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
27460         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
27461         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
27462         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
27463         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
27464         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
27465         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
27466         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
27467         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
27468         * modules/uninorm/composition-tests (Files): Likewise.
27469         * modules/uninorm/decomposing-form-tests (Files): Likewise.
27470         * modules/uninorm/decomposition-tests (Files): Likewise.
27471         * modules/uninorm/filter-tests (Files): Likewise.
27472         * modules/uninorm/nfc-tests (Files): Likewise.
27473         * modules/uninorm/nfd-tests (Files): Likewise.
27474         * modules/uninorm/nfkc-tests (Files): Likewise.
27475         * modules/uninorm/nfkd-tests (Files): Likewise.
27476         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
27477         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
27478         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
27479         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
27480         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
27481         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
27482         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
27483         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
27484         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
27485         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
27486         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
27487         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
27488         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
27489         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
27490         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
27491         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
27492         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
27493         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
27494         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
27495         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
27496         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
27497         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
27498         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
27499         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
27500         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
27501         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
27502         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
27503         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
27504         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
27505         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
27506         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
27507         * modules/uniwidth/u8-width-tests (Files): Likewise.
27508         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
27509         * modules/uniwidth/u16-width-tests (Files): Likewise.
27510         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
27511         * modules/uniwidth/u32-width-tests (Files): Likewise.
27512         * modules/uniwidth/width-tests (Files): Likewise.
27513         * modules/unlink-tests (Files): Likewise.
27514         * modules/unsetenv-tests (Files): Likewise.
27515         * modules/usleep-tests (Files): Likewise.
27516         * modules/utimens-tests (Files): Likewise.
27517         * modules/utimensat-tests (Files): Likewise.
27518         * modules/vasnprintf-posix-tests (Files): Likewise.
27519         * modules/vasnprintf-tests (Files): Likewise.
27520         * modules/vasprintf-posix-tests (Files): Likewise.
27521         * modules/vasprintf-tests (Files): Likewise.
27522         * modules/vdprintf-posix-tests (Files): Likewise.
27523         * modules/vfprintf-posix-tests (Files): Likewise.
27524         * modules/vprintf-posix-tests (Files): Likewise.
27525         * modules/vsnprintf-posix-tests (Files): Likewise.
27526         * modules/vsnprintf-tests (Files): Likewise.
27527         * modules/vsprintf-posix-tests (Files): Likewise.
27528         * modules/wcrtomb-tests (Files): Likewise.
27529         * modules/wcsnrtombs-tests (Files): Likewise.
27530         * modules/wcsrtombs-tests (Files): Likewise.
27531         * modules/wctype-tests (Files): Likewise.
27532         * modules/wcwidth-tests (Files): Likewise.
27533         * modules/xmemdup0-tests (Files): Likewise.
27534         * modules/xprintf-posix-tests (Files): Likewise.
27535         * modules/xvasprintf-tests (Files): Likewise.
27536
27537 2009-12-24  Eric Blake  <ebb9@byu.net>
27538
27539         test-nanosleep: fix typo
27540         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
27541         patch.
27542         Reported by Bruno Haible.
27543
27544 2009-12-24  Bruno Haible  <bruno@clisp.org>
27545
27546         Reduce namespace pollution on glibc systems.
27547         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
27548         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
27549         systems.
27550         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
27551         <getopt.h> on glibc systems.
27552         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
27553         systems.
27554         * lib/fcntl.c: Include <unistd.h> here instead.
27555
27556 2009-12-24  Bruno Haible  <bruno@clisp.org>
27557
27558         * lib/stdlib.in.h (includes): Fix typo in today's commit.
27559
27560 2009-12-24  Eric Blake  <ebb9@byu.net>
27561
27562         tests: add signature checks
27563         * tests/signature.h (SIGNATURE_CHECK): New file.
27564         * modules/atexit-tests (Files): Use it.
27565         * modules/btowc-tests (Files): Likewise.
27566         * modules/canonicalize-lgpl-tests (Files): Likewise.
27567         * modules/ceilf-tests (Files): Likewise.
27568         * modules/ceill-tests (Files): Likewise.
27569         * modules/chown-tests (Files): Likewise.
27570         * modules/dprintf-posix-tests (Files): Likewise.
27571         * modules/dup2-tests (Files): Likewise.
27572         * modules/dup3-tests (Files): Likewise.
27573         * modules/duplocale-tests (Files): Likewise.
27574         * modules/fchdir-tests (Files): Likewise.
27575         * modules/fcntl-tests (Files): Likewise.
27576         * modules/fdopendir-tests (Files): Likewise.
27577         * modules/fflush-tests (Files): Likewise.
27578         * modules/flock-tests (Files): Likewise.
27579         * modules/floorf-tests (Files): Likewise.
27580         * modules/floorl-tests (Files): Likewise.
27581         * modules/fnmatch-tests (Files): Likewise.
27582         * modules/fopen-tests (Files): Likewise.
27583         * modules/fprintf-posix-tests (Files): Likewise.
27584         * modules/freopen-tests (Files): Likewise.
27585         * modules/frexp-nolibm-tests (Files): Likewise.
27586         * modules/frexp-tests (Files): Likewise.
27587         * modules/frexpl-nolibm-tests (Files): Likewise.
27588         * modules/frexpl-tests (Files): Likewise.
27589         * modules/fseek-tests (Files): Likewise.
27590         * modules/fseeko-tests (Files): Likewise.
27591         * modules/fsync-tests (Files): Likewise.
27592         * modules/ftell-tests (Files): Likewise.
27593         * modules/ftello-tests (Files): Likewise.
27594         * modules/futimens-tests (Files): Likewise.
27595         * modules/getaddrinfo-tests (Files): Likewise.
27596         * modules/getcwd-tests (Files): Likewise.
27597         * modules/getdelim-tests (Files): Likewise.
27598         * modules/getdtablesize-tests (Files): Likewise.
27599         * modules/getgroups-tests (Files): Likewise.
27600         * modules/gethostname-tests (Files): Likewise.
27601         * modules/getline-tests (Files): Likewise.
27602         * modules/getopt-posix-tests (Files): Likewise.
27603         * modules/gettimeofday-tests (Files): Likewise.
27604         * modules/glob-tests (Files): Likewise.
27605         * modules/iconv-tests (Files): Likewise.
27606         * modules/inet_ntop-tests (Files): Likewise.
27607         * modules/inet_pton-tests (Files): Likewise.
27608         * modules/isblank-tests (Files): Likewise.
27609         * modules/lchown-tests (Files): Likewise.
27610         * modules/ldexpl-tests (Files): Likewise.
27611         * modules/link-tests (Files): Likewise.
27612         * modules/linkat-tests (Files): Likewise.
27613         * modules/lseek-tests (Files): Likewise.
27614         * modules/lstat-tests (Files): Likewise.
27615         * modules/mbrtowc-tests (Files): Likewise.
27616         * modules/mbsinit-tests (Files): Likewise.
27617         * modules/mbsnrtowcs-tests (Files): Likewise.
27618         * modules/mbsrtowcs-tests (Files): Likewise.
27619         * modules/memchr-tests (Files): Likewise.
27620         * modules/memcmp-tests (Files): Likewise.
27621         * modules/memmem-tests (Files): Likewise.
27622         * modules/memrchr-tests (Files): Likewise.
27623         * modules/mkdir-tests (Files): Likewise.
27624         * modules/mkfifo-tests (Files): Likewise.
27625         * modules/mkfifoat-tests (Files): Likewise.
27626         * modules/mknod-tests (Files): Likewise.
27627         * modules/nanosleep-tests (Files): Likewise.
27628         * modules/nl_langinfo-tests (Files): Likewise.
27629         * modules/obstack-printf-tests (Files): Likewise.
27630         * modules/open-tests (Files): Likewise.
27631         * modules/openat-tests (Files): Likewise.
27632         * modules/perror-tests (Files): Likewise.
27633         * modules/pipe2-tests (Files): Likewise.
27634         * modules/poll-tests (Files): Likewise.
27635         * modules/popen-tests (Files): Likewise.
27636         * modules/posix_spawn-tests (Files): Likewise.
27637         * modules/posix_spawnp-tests (Files): Likewise.
27638         * modules/pread-tests (Files): Likewise.
27639         * modules/printf-posix-tests (Files): Likewise.
27640         * modules/pty-tests (Files): Likewise.
27641         * modules/random_r-tests (Files): Likewise.
27642         * modules/rawmemchr-tests (Files): Likewise.
27643         * modules/readlink-tests (Files): Likewise.
27644         * modules/remove-tests (Files): Likewise.
27645         * modules/rename-tests (Files): Likewise.
27646         * modules/renameat-tests (Files): Likewise.
27647         * modules/rmdir-tests (Files): Likewise.
27648         * modules/round-tests (Files): Likewise.
27649         * modules/roundf-tests (Files): Likewise.
27650         * modules/roundl-tests (Files): Likewise.
27651         * modules/select-tests (Files): Likewise.
27652         * modules/setenv-tests (Files): Likewise.
27653         * modules/sigaction-tests (Files): Likewise.
27654         * modules/sleep-tests (Files): Likewise.
27655         * modules/snprintf-posix-tests (Files): Likewise.
27656         * modules/snprintf-tests (Files): Likewise.
27657         * modules/sprintf-posix-tests (Files): Likewise.
27658         * modules/stat-tests (Files): Likewise.
27659         * modules/strcasestr-tests (Files): Likewise.
27660         * modules/strchrnul-tests (Files): Likewise.
27661         * modules/strerror-tests (Files): Likewise.
27662         * modules/strsignal-tests (Files): Likewise.
27663         * modules/strstr-tests (Files): Likewise.
27664         * modules/strtod-tests (Files): Likewise.
27665         * modules/strverscmp-tests (Files): Likewise.
27666         * modules/symlink-tests (Files): Likewise.
27667         * modules/symlinkat-tests (Files): Likewise.
27668         * modules/times-tests (Files): Likewise.
27669         * modules/trunc-tests (Files): Likewise.
27670         * modules/truncf-tests (Files): Likewise.
27671         * modules/truncl-tests (Files): Likewise.
27672         * modules/tsearch-tests (Files): Likewise.
27673         * modules/uname-tests (Files): Likewise.
27674         * modules/unlink-tests (Files): Likewise.
27675         * modules/unsetenv-tests (Files): Likewise.
27676         * modules/usleep-tests (Files): Likewise.
27677         * modules/utimensat-tests (Files): Likewise.
27678         * modules/vasprintf-tests (Files): Likewise.
27679         * modules/vdprintf-posix-tests (Files): Likewise.
27680         * modules/vfprintf-posix-tests (Files): Likewise.
27681         * modules/vprintf-posix-tests (Files): Likewise.
27682         * modules/vsnprintf-posix-tests (Files): Likewise.
27683         * modules/vsnprintf-tests (Files): Likewise.
27684         * modules/vsprintf-posix-tests (Files): Likewise.
27685         * modules/wcrtomb-tests (Files): Likewise.
27686         * modules/wcsnrtombs-tests (Files): Likewise.
27687         * modules/wcsrtombs-tests (Files): Likewise.
27688         * modules/wcwidth-tests (Files): Likewise.
27689         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
27690         * tests/test-isinf.c (isinf): Likewise.
27691         * tests/test-isnan.c (isnan): Likewise.
27692         * tests/test-signbit.c (signbit): Likewise.
27693         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
27694         declaration, either as macro or with correct signature.
27695         (select): Ensure function under test is declared with correct
27696         signature in correct header.
27697         * tests/test-atexit.c (atexit): Likewise.
27698         * tests/test-btowc.c (btowc): Likewise.
27699         * tests/test-canonicalize-lgpl.c (realpath)
27700         (canonicalize_file_name): Likewise.
27701         * tests/test-ceilf1.c (ceilf): Likewise.
27702         * tests/test-ceill.c (ceill): Likewise.
27703         * tests/test-chown.c (chown): Likewise.
27704         * tests/test-dprintf-posix.c (dprintf): Likewise.
27705         * tests/test-dup2.c (dup2): Likewise.
27706         * tests/test-dup3.c (dup3): Likewise.
27707         * tests/test-duplocale.c (duplocale): Likewise.
27708         * tests/test-fchdir.c (fchdir): Likewise.
27709         * tests/test-fchownat.c (fchownat): Likewise.
27710         * tests/test-fcntl.c (fcntl): Likewise.
27711         * tests/test-fdopendir.c (fdopendir): Likewise.
27712         * tests/test-fflush.c (fflush): Likewise.
27713         * tests/test-flock.c (flock): Likewise.
27714         * tests/test-floorf1.c (floorf): Likewise.
27715         * tests/test-floorl.c (floorl): Likewise.
27716         * tests/test-fnmatch.c (fnmatch): Likewise.
27717         * tests/test-fopen.c (fopen): Likewise.
27718         * tests/test-fprintf-posix.c (fprintf): Likewise.
27719         * tests/test-freopen.c (freopen): Likewise.
27720         * tests/test-frexp.c (frexp): Likewise.
27721         * tests/test-frexpl.c (frexpl): Likewise.
27722         * tests/test-fseek.c (fseek): Likewise.
27723         * tests/test-fseeko.c (fseeko): Likewise.
27724         * tests/test-fstatat.c (fstatat): Likewise.
27725         * tests/test-fsync.c (fsync): Likewise.
27726         * tests/test-ftell.c (ftell): Likewise.
27727         * tests/test-ftello.c (ftello): Likewise.
27728         * tests/test-futimens.c (futimens): Likewise.
27729         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
27730         (gai_strerror): Likewise.
27731         * tests/test-getcwd.c (getcwd): Likewise.
27732         * tests/test-getdelim.c (getdelim): Likewise.
27733         * tests/test-getdtablesize.c (getdtablesize): Likewise.
27734         * tests/test-getgroups.c (getgroups): Likewise.
27735         * tests/test-gethostname.c (gethostname): Likewise.
27736         * tests/test-getline.c (getline): Likewise.
27737         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
27738         Likewise.
27739         * tests/test-gettimeofday.c (gettimeofday): Likewise.
27740         * tests/test-glob.c (glob, globfree): Likewise.
27741         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
27742         * tests/test-inet_ntop.c (inet_ntop): Likewise.
27743         * tests/test-inet_pton.c (inet_pton): Likewise.
27744         * tests/test-isblank.c (isblank): Likewise.
27745         * tests/test-lchown.c (lchown): Likewise.
27746         * tests/test-ldexpl.c (ldexpl): Likewise.
27747         * tests/test-link.c (link): Likewise.
27748         * tests/test-linkat.c (linkat): Likewise.
27749         * tests/test-lseek.c (lseek): Likewise.
27750         * tests/test-lstat.c (lstat): Likewise.
27751         * tests/test-mbrtowc.c (mbrtowc): Likewise.
27752         * tests/test-mbsinit.c (mbsinit): Likewise.
27753         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
27754         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
27755         * tests/test-memchr.c (memchr): Likewise.
27756         * tests/test-memcmp.c (memcmp): Likewise.
27757         * tests/test-memmem.c (memmem): Likewise.
27758         * tests/test-memrchr.c (memrchr): Likewise.
27759         * tests/test-mkdir.c (mkdir): Likewise.
27760         * tests/test-mkdirat.c (mkdirat): Likewise.
27761         * tests/test-mkfifo.c (mkfifo): Likewise.
27762         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
27763         * tests/test-mknod.c (mknod): Likewise.
27764         * tests/test-nanosleep.c (nanosleep): Likewise.
27765         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
27766         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
27767         Likewise.
27768         * tests/test-open.c (open): Likewise.
27769         * tests/test-openat.c (openat): Likewise.
27770         * tests/test-perror.c (perror): Likewise.
27771         * tests/test-pipe2.c (pipe2): Likewise.
27772         * tests/test-poll.c (poll): Likewise.
27773         * tests/test-popen.c (popen, pclose): Likewise.
27774         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
27775         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
27776         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
27777         (posix_spawn_file_actions_destroy)
27778         (posix_spawn_file_actions_addclose)
27779         (posix_spawn_file_actions_addopen)
27780         (posix_spawn_file_actions_adddup2): Likewise.
27781         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
27782         * tests/test-pread.c (pread): Likewise.
27783         * tests/test-printf-posix.c (printf): Likewise.
27784         * tests/test-pty.c (openpty, forkpty): Likewise.
27785         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
27786         (random_r): Likewise.
27787         * tests/test-rawmemchr.c (rawmemchr): Likewise.
27788         * tests/test-readlink.c (readlink): Likewise.
27789         * tests/test-remove.c (remove): Likewise.
27790         * tests/test-rename.c (rename): Likewise.
27791         * tests/test-renameat.c (renameat): Likewise.
27792         * tests/test-rmdir.c (rmdir): Likewise.
27793         * tests/test-round1.c (round): Likewise.
27794         * tests/test-roundf1.c (roundf): Likewise.
27795         * tests/test-roundl.c (roundl): Likewise.
27796         * tests/test-setenv.c (setenv): Likewise.
27797         * tests/test-sigaction.c (sigaction): Likewise.
27798         * tests/test-sleep.c (sleep): Likewise.
27799         * tests/test-snprintf.c (snprintf): Likewise.
27800         * tests/test-sprintf-posix.c (sprintf): Likewise.
27801         * tests/test-stat.c (stat): Likewise.
27802         * tests/test-stpncpy.c (stpncpy): Likewise.
27803         * tests/test-strcasestr.c (strcasestr): Likewise.
27804         * tests/test-strchrnul.c (strchrnul): Likewise.
27805         * tests/test-strerror.c (strerror): Likewise.
27806         * tests/test-strsignal.c (strsignal): Likewise.
27807         * tests/test-strstr.c (strstr): Likewise.
27808         * tests/test-strtod.c (strtod): Likewise.
27809         * tests/test-strverscmp.c (strverscmp): Likewise.
27810         * tests/test-symlink.c (symlink): Likewise.
27811         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
27812         * tests/test-times.c (times): Likewise.
27813         * tests/test-trunc1.c (trunc): Likewise.
27814         * tests/test-truncf1.c (truncf): Likewise.
27815         * tests/test-truncl.c (truncl): Likewise.
27816         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
27817         Likewise.
27818         * tests/test-uname.c (uname): Likewise.
27819         * tests/test-unlink.c (unlink): Likewise.
27820         * tests/test-unlinkat.c (unlinkat): Likewise.
27821         * tests/test-unsetenv.c (unsetenv): Likewise.
27822         * tests/test-usleep.c (usleep): Likewise.
27823         * tests/test-utimensat.c (utimensat): Likewise.
27824         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
27825         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
27826         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
27827         * tests/test-vprintf-posix.c (vprintf): Likewise.
27828         * tests/test-vsnprintf.c (vsnprintf): Likewise.
27829         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
27830         * tests/test-wcrtomb.c (wcrtomb): Likewise.
27831         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
27832         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
27833         * tests/test-wcwidth.c (wcwidth): Likewise.
27834
27835         build: pull in conditional headers during GNULIB_POSIXCHECK
27836         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
27837         definitions from any conditionally-included headers.
27838         * lib/stdlib.in.h (includes): Likewise.
27839         * lib/unistd.in.h (includes): Likewise.
27840
27841 2009-12-24  Bruno Haible  <bruno@clisp.org>
27842
27843         * tests/test-argv-iter.c: Include header file being tested immediately
27844         after config.h.
27845         * tests/test-base64.c: Likewise.
27846         * tests/test-flock.c: Likewise.
27847         * tests/test-fsync.c: Likewise.
27848         * tests/test-getdate.c: Likewise.
27849         * tests/test-getndelim2.c: Likewise.
27850         * tests/test-isfinite.c: Likewise.
27851         * tests/test-isinf.c: Likewise.
27852         * tests/test-strerror.c: Likewise.
27853         * tests/test-strsignal.c: Likewise.
27854
27855 2009-12-23  Eric Blake  <ebb9@byu.net>
27856
27857         unistd: work around cygwin bug
27858         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
27859         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
27860         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27861
27862 2009-12-23  Bruno Haible  <bruno@clisp.org>
27863
27864         localename: More tests.
27865         * tests/test-localename.c (SIZEOF): New macro.
27866         (categories): New variable.
27867         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
27868         test_locale_name_default): Add test w.r.t. thread locale.
27869         (test_locale_name_thread): New function.
27870         (main): Invoke it.
27871
27872         localename: Make aware of thread locale.
27873         * lib/localename.h (gl_locale_name_thread): New declaration.
27874         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
27875         behaviour with respect to thread locale.
27876         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
27877         <langinfo.h>, glthread/lock.h.
27878         (SIZE_BITS): New macro.
27879         (string_hash): New function.
27880         (struct hash_node): New type.
27881         (HASH_TABLE_SIZE): New macro.
27882         (struniq_hash_table, struniq_lock): New variables.
27883         (struniq): New function.
27884         (gl_locale_name_thread): New function.
27885         (gl_locale_name): Invoke it.
27886         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
27887         * modules/localename (Depends-on): Add lock.
27888         Reported by Mike Gran <spk121@yahoo.com>.
27889
27890 2009-12-23  Eric Blake  <ebb9@byu.net>
27891
27892         va-args: new module
27893         * modules/va-args: New file.
27894         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
27895         * MODULES.html.sh (Core language properties): Mention it.
27896
27897         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
27898         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
27899         named alias for __attribute__((__unused__)).
27900         * lib/chown.c: Update client.
27901         * lib/fchmodat.c: Likewise.
27902         * lib/fts.c: Likewise.
27903         * lib/getdate.y: Likewise.
27904         * lib/getgroups.c: Likewise.
27905         * lib/getopt.c: Likewise.
27906         * lib/getugroups.c: Likewise.
27907         * lib/mkdir.c: Likewise.
27908         * lib/mkfifo.c: Likewise.
27909         * lib/mkfifoat.c: Likewise.
27910         * lib/mknod.c: Likewise.
27911         * lib/mknodat.c: Likewise.
27912         * lib/readlink.c: Likewise.
27913         * lib/se-context.in.h: Likewise.
27914         * lib/se-selinux.in.h: Likewise.
27915         * lib/sockets.c: Likewise.
27916         * lib/symlink.c: Likewise.
27917         * lib/symlinkat.c: Likewise.
27918         * lib/unicodeio.c: Likewise.
27919         * lib/unistr.h: Likewise.
27920         * tests/test-areadlink.c: Likewise.
27921         * tests/test-areadlinkat.c: Likewise.
27922         * tests/test-filenamecat.c: Likewise.
27923         * tests/test-fseeko.c: Likewise.
27924         * tests/test-ftello.c: Likewise.
27925         * tests/test-getdate.c: Likewise.
27926         * tests/test-getgroups.c: Likewise.
27927         * tests/test-gethostname.c: Likewise.
27928         * tests/test-quotearg.c: Likewise.
27929         * tests/test-version-etc.c: Likewise.
27930         * tests/test-xalloc-die.c: Likewise.
27931         * tests/test-xfprintf-posix.c: Likewise.
27932         * tests/test-xprintf-posix.c: Likewise.
27933         * tests/test-xvasprintf.c: Likewise.
27934
27935         tests: avoid compiler warnings
27936         * tests/test-fcntl.c (main): Delete unused parameters.
27937         * tests/test-freopen-safer.c (main): Likewise.
27938         * tests/test-xalloc-die.c (main): Mark unused parameters.
27939         * tests/test-fseeko.c (main): Likewise.
27940         * tests/test-ftello.c (main): Likewise.
27941         * tests/test-nanosleep.c (main): Avoid declaration warning.
27942         * tests/test-sleep.c (main): Likewise.
27943         * tests/test-unsetenv.c (main): Silence warning about string
27944         literal.
27945         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27946
27947 2009-12-23  Bruno Haible  <bruno@clisp.org>
27948
27949         * tests/test-localename.c (test_locale_name): New function, extracted
27950         from main. Also test mixed situations.
27951         (test_locale_name_posix, test_locale_name_environ,
27952         test_locale_name_default): New functions.
27953         (main): Invoke them all.
27954         * modules/localename-tests (configure.ac): Test for newlocale.
27955
27956 2009-12-23  Bruno Haible  <bruno@clisp.org>
27957
27958         unistd: Ensure getcwd gets declared before being overridden.
27959         * lib/unistd.in.h: Conditionally include <io.h>.
27960
27961 2009-12-22  Bruno Haible  <bruno@clisp.org>
27962
27963         wchar: Diagnose broken combination of glibc and gcc versions and flags.
27964         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
27965         (gl_WCHAR_H): Invoke it.
27966         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
27967         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
27968         Reported by Karl Berry <karl@freefriends.org>.
27969
27970 2009-12-22  Eric Blake  <ebb9@byu.net>
27971
27972         math, unistd: avoid redundant includes
27973         * lib/math.in.h (isnan): No need to re-include <math.h>.
27974         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
27975
27976         getsubopt: work around cygwin bug
27977         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
27978         avoid conflicting with system getsubopt.
27979         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
27980         bug.
27981
27982         getopt: synchronize from glibc
27983         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
27984         parameter order.  Adjust all callers.
27985         (_getopt_internal_r, main): Adjust quoting in error messages.
27986         Drop considerations for outdated POSIX 1003.2 error message.
27987         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
27988         callers.
27989         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
27990
27991         test-getopt: test stderr behavior
27992         * modules/getopt-posix-tests (Depends-on): Add dup2.
27993         * tests/test-getopt.c (ASSERT): Avoid stderr.
27994         (main): Move stderr to a temporary file.
27995         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
27996         Instead, add parameter to inform caller if output occurred.
27997         (test_getopt): Adjust all existing tests to expect silence, and
27998         add new tests of leading ":".
27999         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
28000         glibc shortcomings with leading "-:" or "+:" in optstring.
28001         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28002         Likewise.
28003         * doc/posix-functions/getopt.texi (getopt): Likewise.
28004
28005         test-getopt: enhance test
28006         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
28007         supports optind=0.
28008         * tests/test-getopt.c (OPTIND_MIN): Move...
28009         * tests/test-getopt.h (OPTIND_MIN): ...here.
28010         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
28011         Require that optind=0 works, since modern BSD supports it in
28012         addition to optreset, and since coreutils expects it.
28013         (test_getopt_long_only): New test.
28014         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
28015         glibc shortcomings with 'W;', and enforcement of optind=0.
28016         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28017         Likewise.
28018
28019 2009-12-21  Bruno Haible  <bruno@clisp.org>
28020
28021         localename: Improvements for MacOS X and Cygwin.
28022         * lib/localename.h (gl_locale_name_environ): New declaration.
28023         * lib/localename.c (gl_locale_name_environ): New function, extracted from
28024         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
28025         (gl_locale_name_posix): Invoke it.
28026         (gl_locale_name_default): Add comments. Use Windows native API also on
28027         Cygwin.
28028
28029 2009-12-21  Bruno Haible  <bruno@clisp.org>
28030
28031         Update list of Win32 locale ids.
28032         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
28033         (LANG_SAMI): Renamed from LANG_SAAMI.
28034         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
28035         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
28036         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
28037         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
28038         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
28039         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
28040         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
28041         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
28042         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
28043         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
28044         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
28045         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
28046         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
28047         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
28048         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
28049         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
28050         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
28051         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
28052         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
28053         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
28054         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
28055         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
28056         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
28057         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
28058         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
28059         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
28060         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
28061         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
28062         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
28063         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
28064         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
28065         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
28066         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
28067         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
28068         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
28069         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
28070         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
28071         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
28072         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
28073         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
28074         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
28075         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
28076         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
28077         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
28078         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
28079         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
28080         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
28081         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
28082         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
28083         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
28084         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
28085         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
28086         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
28087         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
28088         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
28089         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
28090         Add more languages and countries for Sami, Sorbian. Add more countries
28091         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
28092         for Pashto. Change country for Syriac, Tswana.
28093
28094 2009-12-21  Eric Blake  <ebb9@byu.net>
28095
28096         test-utimens: avoid spurious failure
28097         * tests/test-chown.h (nap): Factor...
28098         * tests/nap.h: ...into new file.
28099         * tests/test-lchown.h (nap): Avoid duplication.
28100         * tests/test-utimens-common.h (nap): Use shared implementation,
28101         necessary on file systems with 1-second resolution.
28102         * modules/chown-tests (Files): Include new file.
28103         * modules/fdutimensat-tests (Files): Likewise.
28104         * modules/futimens-tests (Files): Likewise.
28105         * modules/lchown-tests (Files): Likewise.
28106         * modules/openat-tests (Files): Likewise.
28107         * modules/utimens-tests (Files): Likewise.
28108         * modules/utimensat-tests (Files): Likewise.
28109
28110 2009-12-19  Eric Blake  <ebb9@byu.net>
28111
28112         futimens, utimensat: work around Linux bug
28113         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
28114         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28115         * lib/utimensat.c (rpl_utimensat): Work around it.
28116         * lib/futimens.c (rpl_futimens): Adjust comment.
28117
28118         utimens: work around Linux ctime bug
28119         * lib/utimens.c (detect_ctime_bug): New helper function.
28120         (update_timespec): Differentiate between workaround needed for
28121         this bug vs. what is needed for systems that lack utimensat.
28122         (fdutimens, lutimens): Work around bug.
28123
28124         utimens: check for ctime update
28125         * tests/test-utimens-common.h (check_ctime): Define.
28126         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
28127         * tests/test-futimens.h (test_futimens): Likewise.
28128         * tests/test-lutimens.h (test_lutimens): Likewise.
28129         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28130         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28131
28132 2009-12-19  Bruno Haible  <bruno@clisp.org>
28133
28134         dprintf-posix: Check against memory leak fixed on 2009-12-15.
28135         * tests/test-dprintf-posix2.sh: New file.
28136         * tests/test-dprintf-posix2.c: New file.
28137         * modules/dprintf-posix-tests (Files): Add them.
28138         (configure.ac): Check for getrlimit and setrlimit.
28139         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
28140
28141 2009-12-19  Bruno Haible  <bruno@clisp.org>
28142
28143         fprintf-posix: Check against memory leak fixed on 2009-12-15.
28144         * tests/test-fprintf-posix3.sh: New file.
28145         * tests/test-fprintf-posix3.c: New file.
28146         * modules/fprintf-posix-tests (Files): Add them.
28147         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
28148
28149 2009-12-19  Eric Blake  <ebb9@byu.net>
28150
28151         dirfd: fix prototype
28152         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
28153         * lib/dirfd.c (dirfd): Likewise.
28154
28155         canonicalize: reduce memory usage
28156         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
28157         allocation to size.
28158         Reported by Solar Designer <solar@openwall.com>.
28159
28160 2009-12-19  Bruno Haible  <bruno@clisp.org>
28161
28162         New module attribute 'Applicability'.
28163         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
28164         * gnulib-tool: New option --extract-applicability.
28165         (func_usage): Document it.
28166         (sed_extract_prog): Recognize it.
28167         (func_get_applicability): New function.
28168         (func_import): Generalize handling of 'link-warning' module.
28169         * modules/link-warning (Applicability): New section.
28170         * modules/arg-nonnull (Applicability): New section.
28171         Repoted by Simon Josefsson <simon@josefsson.org>.
28172
28173 2009-12-19  Bruno Haible  <bruno@clisp.org>
28174
28175         fflush: tweak
28176         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
28177         * lib/fseeko.c (rpl_fseeko): Likewise.
28178
28179 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
28180
28181         * lib/gl_list.h: Fix typo in comment.
28182
28183 2009-12-16  Eric Blake  <ebb9@byu.net>
28184
28185         fcntl: use to simplify other modules
28186         * modules/cloexec (Depends-on): Add fcntl.
28187         * modules/fchdir (Depends-on): Likewise.
28188         * modules/fd-safer-flag (Depends-on): Likewise.
28189         * modules/unistd-safer (Depends-on): Likewise.
28190         * modules/dup3 (configure.ac): Set module indicator.
28191         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
28192         missing.
28193         * lib/fchdir.c (_gl_register_dup): Fix comment.
28194         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
28195         * lib/dup-safer.c (dup_safer): Likewise.
28196         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
28197         * lib/dup3.c (dup3): Likewise.
28198         * tests/test-fchdir.c (main): Enhance test.
28199         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
28200
28201         fcntl: port portions of fcntl to mingw
28202         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
28203         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
28204         replacement for mingw.
28205         * modules/fcntl (Description): Update.
28206         (Depends-on): Add dup2.
28207         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
28208         * modules/fcntl-h (Makefile.am): Substitute it.
28209         * lib/fcntl.in.h (fcntl): Update declaration.
28210         (F_DUPFD, F_GETFD): New macros, when needed.
28211         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28212         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
28213         * tests/test-fcntl.c (check_flags, main): Enhance test for items
28214         we now guarantee.
28215
28216         fcntl: work around cygwin bug in F_DUPFD
28217         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
28218         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
28219         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
28220         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
28221         * doc/posix-functions/fcntl.texi (fcntl): Document it.
28222
28223         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
28224         * modules/fcntl (Files): List new files.
28225         (configure.ac): Run a test.
28226         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
28227         * lib/fcntl.c (rpl_fcntl): Likewise.
28228         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
28229         (gl_FCNTL_H): Always replace fcntl.h.
28230         * modules/fcntl-h (Makefile.am): Substitute witnesses.
28231         * lib/fcntl.in.h (fcntl): Declare replacement.
28232         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
28233         needed, plus a witness.
28234         * doc/posix-functions/fcntl.texi (fcntl): Document this.
28235         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28236         * tests/test-fcntl.c: New file.
28237         * modules/fcntl-tests: Likewise.
28238
28239         binary-io: avoid potential compilation warning
28240         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
28241         directives.
28242
28243         fflush: avoid compilation error on NetBSD
28244         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
28245         between off_t and fpos_t, since the latter is sometimes a struct.
28246         * lib/fseeko.c (rpl_fseeko): Likewise.
28247         Reported by Alexander Nasonov <alnsn@yandex.ru>.
28248
28249 2009-12-15  Eric Blake  <ebb9@byu.net>
28250
28251         fcntl-h, stdio, sys_ioctl: fix declarations
28252         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
28253         function must not take arguments.
28254         * lib/sys_ioctl.in.h (ioctl): Likewise.
28255         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
28256         (open): Add a link warning.
28257
28258 2009-12-15  Jim Meyering  <meyering@redhat.com>
28259
28260         areadlink, areadlink-with-size: relax license to LGPLv2+
28261         * modules/areadlink (License): Relax to LGPLv2+.
28262         * modules/areadlink-with-size (License): Likewise.
28263
28264 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
28265             Bruno Haible  <bruno@clisp.org>
28266
28267         *printf: Fix memory leak.
28268         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
28269         * lib/vfprintf.c (vfprintf): Likewise.
28270         * lib/dprintf.c (dprintf): Likewise.
28271         * lib/vdprintf.c (vdprintf): Likewise.
28272
28273 2009-12-14  Eric Blake  <ebb9@byu.net>
28274
28275         accept4: adjust module dependencies
28276         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
28277
28278         utimens: one more try at avoiding compiler warning
28279         * lib/utimens.c (lutimens): Lower scope of result.
28280
28281 2009-12-13  Bruno Haible  <bruno@clisp.org>
28282
28283         Move the malloc checking from module 'list' to new module 'xlist'.
28284         * modules/xlist: New file.
28285         * lib/gl_xlist.h: New file.
28286         * lib/gl_xlist.c: New file.
28287         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
28288         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
28289         gl_list_add_last, gl_list_add_before, gl_list_add_after,
28290         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
28291         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
28292         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
28293         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
28294         gl_sortedlist_nx_add): New declarations.
28295         (struct gl_list_implementation): Rename and change methods accordingly.
28296         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
28297         (gl_list_nx_create): Renamed from gl_list_create.
28298         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28299         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28300         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28301         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28302         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28303         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28304         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28305         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28306         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
28307         gl_list_create_empty.
28308         (gl_list_nx_create): Renamed from gl_list_create.
28309         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28310         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28311         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28312         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28313         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28314         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28315         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28316         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28317         * lib/gl_array_list.c: Don't include xalloc.h.
28318         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
28319         NULL upon out-of-memory.
28320         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
28321         out-of-memory.
28322         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
28323         Change return type to 'int'.
28324         (gl_array_nx_set_at): Renamed from gl_array_set_at.
28325         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28326         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
28327         upon out-of-memory.
28328         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
28329         upon out-of-memory.
28330         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
28331         upon out-of-memory.
28332         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
28333         upon out-of-memory.
28334         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
28335         out-of-memory.
28336         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
28337         Update.
28338         (gl_array_list_implementation): Update.
28339         * lib/gl_carray_list.c: Don't include xalloc.h.
28340         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
28341         Return NULL upon out-of-memory.
28342         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
28343         out-of-memory.
28344         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
28345         Change return type to 'int'.
28346         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
28347         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28348         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
28349         upon out-of-memory.
28350         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
28351         upon out-of-memory.
28352         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
28353         out-of-memory.
28354         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
28355         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
28356         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
28357         Update.
28358         (gl_carray_list_implementation): Update.
28359         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
28360         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
28361         gl_linked_create_empty. Return NULL upon out-of-memory.
28362         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
28363         out-of-memory.
28364         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
28365         Change return type to 'int'. Return -1 upon out-of-memory.
28366         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
28367         out-of-memory.
28368         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
28369         upon out-of-memory.
28370         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
28371         upon out-of-memory.
28372         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
28373         NULL upon out-of-memory.
28374         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
28375         upon out-of-memory.
28376         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
28377         out-of-memory.
28378         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
28379         Update.
28380         * lib/gl_linked_list.c: Don't include xalloc.h.
28381         (gl_linked_list_implementation): Update.
28382         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
28383         (add_to_bucket): Change return type to 'int'.
28384         (gl_linkedhash_list_implementation): Update.
28385         * lib/gl_anytree_list1.h (free_subtree): New function.
28386         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
28387         gl_tree_create_empty. Return NULL upon out-of-memory.
28388         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
28389         Change return type to 'int'. Return -1 upon out-of-memory.
28390         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
28391         out-of-memory.
28392         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
28393         (gl_tree_remove_node): New function, moved here from
28394         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
28395         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
28396         Update.
28397         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
28398         malloc, not xmalloc. Return NULL upon out-of-memory.
28399         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28400         out-of-memory.
28401         (gl_tree_remove_node_from_tree): New function, extracted from
28402         gl_tree_remove_node.
28403         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28404         upon out-of-memory.
28405         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28406         out-of-memory.
28407         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28408         upon out-of-memory.
28409         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28410         upon out-of-memory.
28411         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28412         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
28413         not xmalloc. Return NULL upon out-of-memory.
28414         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28415         out-of-memory.
28416         (gl_tree_remove_node_from_tree): New function, extracted from
28417         gl_tree_remove_node.
28418         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28419         upon out-of-memory.
28420         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28421         out-of-memory.
28422         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28423         upon out-of-memory.
28424         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28425         upon out-of-memory.
28426         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28427         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
28428         gl_anytree_list1.h before gl_anyavltree_list2.h.
28429         (gl_avltree_list_implementation): Update.
28430         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
28431         gl_anytree_list1.h before gl_anyavltree_list2.h.
28432         (gl_rbtree_list_implementation): Update.
28433         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
28434         Change return type to 'int'. Return -1 upon out-of-memory. Use
28435         __builtin_expect.
28436         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
28437         (gl_avltreehash_list_implementation): Update.
28438         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
28439         (gl_rbtreehash_list_implementation): Update.
28440         * modules/array-list (Depends-on): Remove xalloc.
28441         * modules/carray-list (Depends-on): Likewise.
28442         * modules/linked-list (Depends-on): Likewise.
28443         * modules/linkedhash-list (Depends-on): Likewise.
28444         * modules/avltree-list (Depends-on): Likewise.
28445         * modules/rbtree-list (Depends-on): Likewise.
28446         * modules/avltreehash-list (Depends-on): Likewise.
28447         * modules/rbtreehash-list (Depends-on): Likewise.
28448
28449         * modules/xsublist: New file.
28450         * lib/gl_xsublist.h: New file.
28451         * lib/gl_xsublist.c: New file.
28452         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
28453         (gl_sublist_nx_create): New declaration.
28454         * lib/gl_sublist.c: Don't include xalloc.h.
28455         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
28456         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
28457         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
28458         Change return type to 'int'. Return -1 upon out-of-memory.
28459         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
28460         upon out-of-memory.
28461         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
28462         NULL upon out-of-memory.
28463         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
28464         upon out-of-memory.
28465         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
28466         NULL upon out-of-memory.
28467         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
28468         NULL upon out-of-memory.
28469         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
28470         upon out-of-memory.
28471         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
28472         (gl_sublist_list_implementation): Update.
28473         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
28474         upon out-of-memory.
28475         * modules/sublist (Depends-on): Remove xalloc.
28476
28477         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
28478         * tests/test-carray_list.c: Likewise.
28479         * tests/test-linked_list.c: Likewise.
28480         * tests/test-linkedhash_list.c: Likewise.
28481         * tests/test-avltree_list.c: Likewise.
28482         * tests/test-rbtree_list.c: Likewise.
28483         * tests/test-avltreehash_list.c: Likewise.
28484         * tests/test-rbtreehash_list.c: Likewise.
28485         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
28486         * modules/carray-list-tests (Makefile.am): Likewise.
28487         * modules/linked-list-tests (Makefile.am): Likewise.
28488         * modules/linkedhash-list-tests (Makefile.am): Likewise.
28489         * modules/avltree-list-tests (Makefile.am): Likewise.
28490         * modules/rbtree-list-tests (Makefile.am): Likewise.
28491         * modules/avltreehash-list-tests (Makefile.am): Likewise.
28492         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
28493
28494         * NEWS: Mention the changes.
28495
28496         * lib/clean-temp.c: Include gl_xlist.h.
28497         * modules/clean-temp (Depends-on): Add xlist.
28498
28499         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
28500         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
28501
28502         * tests/test-array_oset.c: Include gl_xlist.h.
28503         * modules/array-oset-tests (Depends-on): Add xlist.
28504
28505         Reported by José E. Marchesi <jemarch@gnu.org>.
28506
28507 2009-12-13  Bruno Haible  <bruno@clisp.org>
28508
28509         Move the malloc checking from module 'oset' to new module 'xoset'.
28510         * modules/xoset: New file.
28511         * lib/gl_xoset.h: New file.
28512         * lib/gl_xoset.c: New file.
28513         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
28514         declarations.
28515         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
28516         (struct gl_oset_implementation): Rename and change methods accordingly.
28517         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
28518         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28519         'int'. Mark as __warn_unused_result__.
28520         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
28521         gl_oset_create_empty.
28522         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28523         'int'.
28524         * lib/gl_array_oset.c: Don't include xalloc.h.
28525         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
28526         malloc, not xmalloc.
28527         (grow): Change return type to 'int'. Don't call xalloc_die.
28528         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
28529         to 'int'.
28530         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
28531         'int'.
28532         (gl_array_oset_implementation): Update.
28533         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
28534         gl_tree_create_empty.
28535         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
28536         'int'.
28537         * lib/gl_avltree_oset.c: Don't include xalloc.h.
28538         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28539         xmalloc.
28540         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28541         not xmalloc.
28542         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28543         xmalloc.
28544         (gl_avltree_oset_implementation): Update.
28545         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
28546         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28547         xmalloc.
28548         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28549         not xmalloc.
28550         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28551         xmalloc.
28552         (gl_rbtree_oset_implementation): Update.
28553         * modules/array-oset (Depends-on): Remove xalloc.
28554         * modules/avltree-oset (Depends-on): Likewise.
28555         * modules/rbtree-oset (Depends-on): Likewise.
28556         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
28557         * tests/test-avltree_oset.c: Likewise.
28558         * tests/test-rbtree_oset.c: Likewise.
28559         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
28560         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
28561         * modules/rbtree-oset-tests (Makefile.am): Likewise.
28562         * NEWS: Mention the change.
28563
28564 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
28565
28566         maint.mk: allow a project to override release-prep commands
28567         * top/maint.mk (alpha, beta, stable): Move release-preparatory
28568         commands into a new rule.
28569         (release-prep): New rule.
28570         (release-prep-hook): New overridable variable.
28571
28572 2009-12-13  Bruno Haible  <bruno@clisp.org>
28573
28574         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
28575
28576 2009-12-13  Jim Meyering  <meyering@redhat.com>
28577
28578         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
28579         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
28580
28581 2009-12-12  Bruno Haible  <bruno@clisp.org>
28582
28583         duplocale: Tweak.
28584         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
28585
28586 2009-12-12  Karl Berry  <karl@gnu.org>
28587
28588         * config/srclist.txt (strtoll.c): tab changes, no more sync.
28589
28590 2009-12-12  Bruno Haible  <bruno@clisp.org>
28591
28592         * m4/po.m4: Undo incorrect untabification.
28593
28594 2009-12-12  Bruno Haible  <bruno@clisp.org>
28595
28596         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
28597         * modules/c-strtod (Depends-on): Add locale.
28598         * modules/c-strtold (Depends-on): Likewise.
28599
28600 2009-12-12  Bruno Haible  <bruno@clisp.org>
28601
28602         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
28603
28604 2009-12-11  Eric Blake  <ebb9@byu.net>
28605
28606         setenv: relax requirement in light of POSIX ruling
28607         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
28608         not NULL.
28609         * tests/test-setenv.c (main): Relax test.
28610         * tests/test-unsetenv.c (main): Likewise.
28611         * doc/posix-functions/setenv.texi (setenv): Document this.
28612         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
28613
28614 2009-12-11  Bruno Haible  <bruno@clisp.org>
28615
28616         New module 'fd-safer-flag'.
28617         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
28618         * lib/dup-safer.c (dup_safer_flag): Remove function.
28619         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
28620         * lib/fd-safer.c (fd_safer_flag): Remove function.
28621         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
28622         * modules/cloexec (configure.ac): Drop indicator macro.
28623         * modules/fd-safer-flag: New file.
28624         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
28625         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
28626         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
28627
28628 2009-12-11  Bruno Haible  <bruno@clisp.org>
28629
28630         Tests for module 'nl_langinfo'.
28631         * modules/nl_langinfo-tests: New file.
28632         * tests/test-nl_langinfo.sh: New file.
28633         * tests/test-nl_langinfo.c: New file.
28634
28635         New module 'nl_langinfo'.
28636         * lib/nl_langinfo.c: New file.
28637         * m4/nl_langinfo.m4: New file.
28638         * modules/nl_langinfo: New file.
28639         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
28640
28641 2009-12-11  Bruno Haible  <bruno@clisp.org>
28642
28643         Tests for module 'langinfo'.
28644         * modules/langinfo-tests: New file.
28645         * tests/test-langinfo.c: New file.
28646
28647         New module 'langinfo'.
28648         * lib/langinfo.in.h: New file.
28649         * m4/langinfo_h.m4: New file.
28650         * modules/langinfo: New file.
28651         * doc/posix-headers/langinfo.texi: Mention the new module.
28652
28653 2009-12-11  Bruno Haible  <bruno@clisp.org>
28654
28655         * lib/config.charset: Untabify.
28656
28657 2009-12-11  Bruno Haible  <bruno@clisp.org>
28658
28659         * modules/unistd-safer (configure.ac): Drop indicator macro.
28660
28661 2009-12-11  Bruno Haible  <bruno@clisp.org>
28662
28663         Move pipe2-safer code to its own file.
28664         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
28665         * lib/pipe-safer.c (pipe2_safer): Remove function.
28666         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
28667         (Makefile.am): Add it to lib_SOURCES.
28668
28669 2009-12-10  Bruno Haible  <bruno@clisp.org>
28670
28671         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
28672
28673 2009-12-10  Bruno Haible  <bruno@clisp.org>
28674
28675         Declare which arguments expect non-NULL values, for GCC and clang.
28676         * build-aux/arg-nonnull.h: New file.
28677         * modules/arg-nonnull: New file.
28678         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
28679         (inet_ntop, inet_pton): Use it.
28680         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
28681         (closedir, dirfd, opendir, scandir, alphasort): Use it.
28682         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
28683         (open, openat): Use it.
28684         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
28685         (fnmatch): Use it.
28686         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
28687         (getopt, getopt_long, getopt_long_only): Use it.
28688         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
28689         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
28690         Use it.
28691         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
28692         (iconv_open): Use it.
28693         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
28694         (strtoimax, strtoumax): Use it.
28695         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
28696         (duplocale): Use it.
28697         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
28698         (frexp, frexpl): Use it.
28699         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
28700         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
28701         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
28702         (tsearch, tfind, tdelete, twalk): Use it.
28703         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
28704         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28705         sigpending): Use it.
28706         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
28707         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28708         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28709         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28710         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28711         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28712         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28713         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28714         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28715         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28716         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28717         Use it.
28718         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
28719         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
28720         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
28721         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
28722         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
28723         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
28724         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
28725         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
28726         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
28727         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
28728         strtoull, unsetenv): Use it.
28729         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
28730         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28731         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28732         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
28733         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
28734         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
28735         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
28736         (strcasecmp, strncasecmp): Use it.
28737         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
28738         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
28739         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
28740         rpl_setsockopt): Use it.
28741         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
28742         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
28743         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
28744         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
28745         (gettimeofday): Use it.
28746         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
28747         (times): Use it.
28748         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
28749         (uname): Use it.
28750         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
28751         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
28752         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
28753         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
28754         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
28755         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
28756         unlinkat, write): Use it.
28757         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
28758         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
28759         * lib/argv-iter.h: Include arg-nonnull.h.
28760         (_ATTRIBUTE_NONNULL_): Remove macro.
28761         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
28762         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
28763         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
28764         optimization.
28765         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
28766         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
28767         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
28768         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
28769         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
28770         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
28771         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
28772         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
28773         * modules/arpa_inet (Depends-on): Add arg-nonnull.
28774         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
28775         * modules/dirent (Depends-on): Add arg-nonnull.
28776         (Makefile.am): Insert arg-nonnull.h into dirent.h.
28777         * modules/fcntl-h (Depends-on): Add arg-nonnull.
28778         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
28779         * modules/fnmatch (Depends-on): Add arg-nonnull.
28780         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
28781         * modules/getopt-posix (Depends-on): Add arg-nonnull.
28782         (Makefile.am): Insert arg-nonnull.h into getopt.h.
28783         * modules/glob (Depends-on): Add arg-nonnull.
28784         (Makefile.am): Insert arg-nonnull.h into glob.h.
28785         * modules/iconv_open (Depends-on): Add arg-nonnull.
28786         (Makefile.am): Insert arg-nonnull.h into iconv.h.
28787         * modules/inttypes (Depends-on): Add arg-nonnull.
28788         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
28789         * modules/locale (Depends-on): Add arg-nonnull.
28790         (Makefile.am): Insert arg-nonnull.h into locale.h.
28791         * modules/math (Depends-on): Add arg-nonnull.
28792         (Makefile.am): Insert arg-nonnull.h into math.h.
28793         * modules/netdb (Depends-on): Add arg-nonnull.
28794         (Makefile.am): Insert arg-nonnull.h into netdb.h.
28795         * modules/search (Depends-on): Add arg-nonnull.
28796         (Makefile.am): Insert arg-nonnull.h into search.h.
28797         * modules/signal (Depends-on): Add arg-nonnull.
28798         (Makefile.am): Insert arg-nonnull.h into signal.h.
28799         * modules/spawn (Depends-on): Add arg-nonnull.
28800         (Makefile.am): Insert arg-nonnull.h into spawn.h.
28801         * modules/stdio (Depends-on): Add arg-nonnull.
28802         (Makefile.am): Insert arg-nonnull.h into stdio.h.
28803         * modules/stdlib (Depends-on): Add arg-nonnull.
28804         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
28805         * modules/string (Depends-on): Add arg-nonnull.
28806         (Makefile.am): Insert arg-nonnull.h into string.h.
28807         * modules/strings (Depends-on): Add arg-nonnull.
28808         (Makefile.am): Insert arg-nonnull.h into strings.h.
28809         * modules/sys_socket (Depends-on): Add arg-nonnull.
28810         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
28811         * modules/sys_stat (Depends-on): Add arg-nonnull.
28812         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
28813         * modules/sys_time (Depends-on): Add arg-nonnull.
28814         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
28815         * modules/sys_times (Depends-on): Add arg-nonnull.
28816         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
28817         * modules/sys_utsname (Depends-on): Add arg-nonnull.
28818         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
28819         * modules/time (Depends-on): Add arg-nonnull.
28820         (Makefile.am): Insert arg-nonnull.h into time.h.
28821         * modules/unistd (Depends-on): Add arg-nonnull.
28822         (Makefile.am): Insert arg-nonnull.h into unistd.h.
28823         * modules/wchar (Depends-on): Add arg-nonnull.
28824         (Makefile.am): Insert arg-nonnull.h into wchar.h.
28825         * modules/argv-iter (Depends-on): Add arg-nonnull.
28826         * tests/test-canonicalize.c (null_ptr): New function.
28827         (main): Use it.
28828         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
28829         (main): Use it.
28830         * tests/test-memmem.c (null_ptr): New function.
28831         (main): Use it.
28832         Reported by Jim Meyering.
28833
28834 2009-12-10  Bruno Haible  <bruno@clisp.org>
28835
28836         Use spaces for indentation, not tabs.
28837         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28838         * m4/*.m4: Untabify.
28839         * build-aux/*.h: Untabify.
28840         * tests/**/*.[hc]: Untabify.
28841         * README: New section "Indent with spaces, not TABs", based on
28842         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
28843         * NEWS: Mention the change.
28844
28845 2009-12-10  Bruno Haible  <bruno@clisp.org>
28846
28847         pty test: Fix link error.
28848         * modules/pty-tests (Makefile.am): Add the default LDADD value to
28849         test_pty_LDADD.
28850
28851 2009-12-07  Simon Josefsson  <simon@josefsson.org>
28852
28853         * modules/pty: New file.
28854         * modules/pty-tests: New file.
28855         * m4/pty.m4: New file.
28856         * tests/test-pty.c: New file.
28857         * doc/glibc-headers/pty.texi: Modified.
28858         * doc/glibc-functions/forkpty.texi: Modified.
28859         * doc/glibc-functions/openpty.texi: Modified.
28860
28861 2009-12-10  Bruno Haible  <bruno@clisp.org>
28862
28863         Avoid syntax error in C++ mode.
28864         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
28865
28866 2009-12-10  Bruno Haible  <bruno@clisp.org>
28867
28868         Use sed with option -e.
28869         * gnulib-tool (func_version, func_emit_copyright_notice,
28870         func_emit_initmacro_end, func_import, func_create_testdir): Pass
28871         option -e to sed.
28872         * modules/link-warning (Makefile.am): Likewise.
28873
28874 2009-12-10  Jim Meyering  <meyering@redhat.com>
28875
28876         mgetgroups: do not write bytes beyond end of malloc'd buffer
28877         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
28878         username, we call getgroups with a one-element-shorter buffer,
28879         but still told it the length was original, max_n_groups.
28880
28881 2009-12-09  Eric Blake  <ebb9@byu.net>
28882
28883         cloexec: relax license
28884         * modules/cloexec (Maintainer): Add myself.
28885         (License): Use LGPL, not GPL.
28886
28887         link-warning: optimize generation
28888         * modules/link-warning (Makefile.am): Reduce process usage.
28889
28890 2009-12-09  Bruno Haible  <bruno@clisp.org>
28891
28892         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
28893         workaround was added on 2009-11-17.
28894
28895 2009-12-09  Jim Meyering  <meyering@redhat.com>
28896             Bruno Haible  <bruno@clisp.org>
28897
28898         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
28899         * modules/link-warning (Makefile.am): Make the comment-removing sed
28900         command more robust in the face of bootstrap-prepended comment lines.
28901
28902 2009-12-09  Bruno Haible  <bruno@clisp.org>
28903
28904         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
28905         most one group.
28906
28907 2009-12-09  Simon Josefsson <simon@josefsson.org>
28908             Bruno Haible  <bruno@clisp.org>
28909
28910         * build-aux/link-warning.h: Add copyright notice.
28911         * modules/link-warning (Makefile.am): Generate link-warning.h from
28912         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
28913         * NEWS: Mention change in link-warning module.
28914         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
28915         * modules/dirent (Makefile.am): Add dependency to dirent.h.
28916         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
28917         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
28918         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
28919         * modules/math (Makefile.am): Add dependency to math.h.
28920         * modules/search (Makefile.am): Add dependency to search.h.
28921         * modules/signal (Makefile.am): Add dependency to signal.h.
28922         * modules/spawn (Makefile.am): Add dependency to spawn.h.
28923         * modules/stdio (Makefile.am): Add dependency to stdio.h.
28924         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
28925         * modules/string (Makefile.am): Add dependency to string.h.
28926         * modules/strings (Makefile.am): Add dependency to strings.h.
28927         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
28928         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
28929         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
28930         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
28931         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
28932         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
28933         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
28934         * modules/unistd (Makefile.am): Add dependency to unistd.h.
28935         * modules/wchar (Makefile.am): Add dependency to wchar.h.
28936
28937 2009-12-09  Bruno Haible  <bruno@clisp.org>
28938
28939         fchdir: Optimize away rpl_fstat when possible.
28940         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
28941         REPLACE_OPEN_DIRECTORY.
28942         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
28943
28944 2009-12-09  Bruno Haible  <bruno@clisp.org>
28945
28946         * lib/fchdir.c: Update comment.
28947
28948 2009-12-09  Bruno Haible  <bruno@clisp.org>
28949
28950         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
28951
28952 2009-12-08  Eric Blake  <ebb9@byu.net>
28953
28954         fchdir: avoid memory leak on re-registration.
28955         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
28956
28957 2009-12-08  Jim Meyering  <meyering@redhat.com>
28958
28959         init.sh: avoid Solaris 10 /bin/sh portability problem
28960         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
28961         sourced script:
28962           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
28963           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
28964           bar
28965         tests/init.sh relied on that, accepting a --set-path=DIR argument,
28966         and two tests used that idiom.
28967         * tests/init.sh: Update suggested usage comments.
28968         (path_prepend_): New function, to be used in place
28969         of the --src-path=DIR option.
28970         (setup_): Move PATH-prepending code into path_prepend_.
28971         * tests/test-pread.sh: Adapt to new usage.
28972         * tests/test-xalloc-die.sh: Likewise.
28973
28974 2009-12-08  Simon Josefsson  <simon@josefsson.org>
28975
28976         * doc/gnulib.texi (Glibc pty.h): Add.
28977         * doc/glibc-functions/forkpty.texi: Add.
28978         * doc/glibc-functions/openpty.texi: Add.
28979         Suggested by Bruno Haible.
28980
28981 2009-12-08  Eric Blake  <ebb9@byu.net>
28982
28983         fchdir: fix logic bugs
28984         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
28985         * tests/test-fchdir.c (main): Enhance test.
28986         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
28987         is in use.
28988
28989         dup2: fix logic bugs
28990         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
28991         REPLACE_DUP2 to decide when rpl_dup2 is needed.
28992         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
28993         exists.
28994         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
28995
28996 2009-12-07  Eric Blake  <ebb9@byu.net>
28997
28998         unlink: fix m4 detection
28999         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
29000
29001         unistd-safer: add unit test
29002         * modules/unistd-safer-tests: New file.
29003         * tests/test-dup-safer.c: Likewise.
29004         * tests/test-cloexec.c (setmode): Avoid compiler warning.
29005         * tests/test-dup2.c (setmode): Likewise.
29006         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
29007
29008         cloexec: preserve text vs. binary across dup_cloexec
29009         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
29010         mode.
29011         * modules/dup2-tests (Depends-on): Add binary-io.
29012         * modules/cloexec-tests (Depends-on): Likewise.
29013         * tests/test-dup2.c (setmode, is_mode): New helpers.
29014         (main): Add tests that translation mode is preserved.
29015         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
29016         Reported by Bruno Haible.
29017
29018         mgetgroups: reduce duplicate listings
29019         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
29020         resulting array.
29021         * tests/test-chown.h (test_chown): Simplify client.
29022         * tests/test-lchown.h (test_lchown): Likewise.
29023
29024 2009-12-06  Bruno Haible  <bruno@clisp.org>
29025
29026         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
29027         value.
29028
29029 2009-12-06  Bruno Haible  <bruno@clisp.org>
29030
29031         * lib/progname.c: Include stdio.h, stdlib.h.
29032         (set_program_name): Reject a NULL argument.
29033
29034 2009-12-05  Eric Blake  <ebb9@byu.net>
29035
29036         pipe2-safer: new module
29037         * modules/pipe2-safer: New file.
29038         * lib/unistd-safer.h (pipe2_safer): New prototype.
29039         * lib/unistd--.h (pipe2): New wrapper.
29040         * lib/pipe-safer.c (pipe2_safer): New function.
29041         * modules/pipe (Depends-on): Add pipe2-safer.
29042         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
29043
29044         stdlib-safer: preserve cloexec flag for mkostemp[s]
29045         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
29046         fd_safer_flag.
29047
29048         unistd-safer: allow preservation of cloexec status via flag
29049         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
29050         prototypes.
29051         * lib/dup-safer.c (dup_safer_flag): New function.
29052         * lib/fd-safer.c (fd_safer_flag): Likewise.
29053         * modules/cloexec (configure.ac): Set witness.
29054
29055         test-dup2: enhance test
29056         * modules/dup2-tests (Depends-on): Add cloexec.
29057         * tests/test-dup2.c (main): Enhance test.
29058
29059         cloexec: add dup_cloexec
29060         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
29061         header and comments.
29062         * lib/cloexec.c (set_cloexec_flag): Add comments.
29063         (dup_cloexec): New function, with mingw implementation borrowed
29064         from...
29065         * lib/w32spawn.h (dup_noinherit): ...here.
29066         * modules/execute (Depends-on): Add cloexec.
29067         * modules/pipe (Depends-on): Likewise.
29068         * modules/cloexec (Depends-on): Add dup2.
29069         * modules/cloexec-tests (Files): New file.
29070         * tests/test-cloexec.c: Likewise.
29071
29072         test-xalloc-die: fix test for mingw
29073         * modules/xalloc-die-tests (Files): Add tests/init.sh.
29074         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
29075         directory and .exe suffix off argv[0] output.
29076
29077         test-fseeko: fix test for mingw
29078         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
29079         than undefining fseek, so test will pass on mingw.
29080
29081 2009-12-05  Bruno Haible  <bruno@clisp.org>
29082
29083         * lib/progname.h (set_program_name): Clarify specification.
29084         * lib/progname.c (set_program_name): Likewise.
29085         Reported by Jim Meyering.
29086
29087 2009-12-05  Jim Meyering  <meyering@redhat.com>
29088
29089         maint.mk: backslash-escape parens in default regexp
29090         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
29091         backslash-escape the literal parentheses.
29092
29093         maint.mk: news-date-check: use grep -E
29094         * top/maint.mk (today): Define a Make variable, not a...
29095         (news-date-check): ...shell variable.
29096         (news-date-regexp): Use the Make variable.
29097         Use grep's -E option.  Change the failing diagnostic to mention
29098         the variable, $(news-date-regexp).
29099
29100 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
29101
29102         maintainer-makefile: allow customization of NEWS entry format
29103         * top/maint.mk (news-date-regexp): New overridable variable.
29104         (news-date-check): Use it.
29105
29106 2009-12-04  Eric Blake  <ebb9@byu.net>
29107
29108         mgetgroups: add xgetgroups, and avoid ENOSYS failures
29109         * lib/mgetgroups.h (xgetgroups): New prototype.
29110         * lib/mgetgroups.c (xgetgroups): New wrapper.
29111         (mgetgroups): Handle ENOSYS.
29112         * modules/mgetgroups (Depends-on): Add realloc.
29113         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
29114
29115         mgetgroups: avoid argument promotion issues with -1
29116         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
29117         for invalid gid_t.
29118         * tests/test-chown.h (getegid, test_chown): Likewise.
29119         * tests/test-lchown.h (getegid, test_lchown): Likewise.
29120
29121 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
29122
29123         exclude: Fix header file problems.
29124         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
29125
29126 2009-12-01  Jim Meyering  <meyering@redhat.com>
29127
29128         fts: fts_open: do not let an empty string cause immediate failure
29129         This is required in support of GNU rm, for which the command
29130         "rm A '' B" must process and remove both A and B, in spite of
29131         the empty string argument.
29132         * lib/fts.c (fts_open): Do not let the presence of an empty string
29133         cause fts_open to fail immediately.  Most fts-using tools must be
29134         able to process all arguments, in order, and can be expected to
29135         diagnose such arguments themselves.
29136
29137 2009-11-30  Eric Blake  <ebb9@byu.net>
29138
29139         utimens: fix compilation error
29140         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
29141         Declare variable at right scope.
29142
29143 2009-11-29  Jim Meyering  <meyering@redhat.com>
29144
29145         bootstrap: handle perl-5.11's changed --version output
29146         * build-aux/bootstrap (get_version): Handle perl separately,
29147         since perl-5.11's --version output is different.
29148
29149 2009-11-28  Jim Meyering  <meyering@redhat.com>
29150
29151         userspec: depend on the inttostr module, too
29152         * modules/userspec (Depends-on): Add inttostr.
29153
29154         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
29155         * lib/userspec.c (parse_with_separator): Do not accept a user ID
29156         number of MAXUID when it evaluates to (uid_t) -1.
29157         Likewise for group ID.  Reported by Matt McCutchen in
29158         <http://savannah.gnu.org/bugs/?28113>
29159
29160         userspec: reformat to use spaces, not TABs
29161         * lib/userspec.c: Expand TABs to spaces.
29162         Add Emacs' "indent-tabs-mode: nil" hint.
29163
29164 2009-11-27  Eric Blake  <ebb9@byu.net>
29165
29166         getopt-gnu: flush out another BSD bug
29167         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
29168         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
29169         flush out BSD bug.
29170         * tests/test-getopt.h (test_getopt): End lists with NULL.
29171         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29172         (test_getopt_long_posix): Enhance test.
29173         * modules/getopt-posix-tests (Depends-on): Add stdbool.
29174         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
29175         getopt-gnu.
29176         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29177         Likewise.
29178
29179 2009-11-27  Simon Josefsson  <simon@josefsson.org>
29180
29181         * modules/idpriv-droptemp-tests (Notice): Fix text.
29182
29183 2009-11-27  Jim Meyering  <meyering@redhat.com>
29184
29185         test-xalloc-die: avoid spurious failure due to libtool argv difference
29186         In a libtool-enabled project, this test would fail due to a difference
29187         in the emitted program name, e.g.,
29188         -test-xalloc-die: memory exhausted
29189         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
29190         Use program to avoid that.
29191         * modules/xalloc-die-tests (Depends-on): Add progname.
29192         * tests/test-xalloc-die.c: Include progname.h".
29193         (program_name): Remove decl.
29194         (main): Call set_program_name.
29195         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
29196
29197 2009-11-26  Richard Jones  <rjones@redhat.com>
29198
29199         w32sock: leave win32 error in place.
29200         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
29201
29202 2009-11-26  Eric Blake  <ebb9@byu.net>
29203
29204         init.sh: suggest to use skip_ and fail_ functions in comments
29205         * tests/init.sh: Add a sentence.
29206
29207 2009-11-25  Bruno Haible  <bruno@clisp.org>
29208
29209         init.sh: add documentation in comments
29210         * tests/init.sh: Add some developer and user documentation.
29211
29212 2009-11-26  Jim Meyering  <meyering@redhat.com>
29213
29214         init.sh: accommodate even those who specify bogus srcdir manually
29215         * tests/init.sh: Normally, srcdir is guaranteed by automake and
29216         configure-time tests to be sanitized, so that there is no need to
29217         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
29218         (with no double quotes) suffices.  However, since tests may be
29219         invoked manually, and since you may explicitly set srcdir to the
29220         name of a directory containing spaces, do quote its uses here.
29221         * tests/test-pread.sh: Likewise.
29222         Suggested by Bruno Haible.
29223
29224         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
29225         * tests/test-pread.sh: Write no data into the pipe, because
29226         test-pread actually reads none.  This avoids a diagnostic,
29227         "bash: echo: write error: Broken pipe", that arises in the unusual
29228         event something is ignoring SIGPIPE, and might be interpreted
29229         as some sort of failure.  Reported by Bruno Haible.
29230
29231 2009-11-25  Jim Meyering  <meyering@redhat.com>
29232
29233         test-pread: cover failure with ESPIPE and EINVAL
29234         * tests/test-pread.c (main): Test for failure, too.
29235         * tests/test-pread.sh: Invoke with stdin on a pipe.
29236         Suggested by Eric Blake.
29237
29238         pread: improvement and fix
29239         * modules/pread (Depends-on): Depend on lseek, for portability to
29240         e.g., mingw.  Suggested by Eric Blake.
29241         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
29242
29243         unistd.in.h: correct declaration of pread
29244         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
29245         Reported by Richard W.M. Jones.
29246
29247         test-pread.sh: distribute the test script
29248         * modules/pread-tests (Files): Include test-pread.sh.
29249
29250         test-pread.sh: clean up
29251         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
29252         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
29253         That is unnecessary, since it's always ".".
29254         Suggestion from Eric Blake.
29255
29256         test-pread.sh: make executable
29257         * tests/test-pread.sh: Set executable bit.
29258         Reported by Eric Blake.
29259
29260         correct typo in test-pread.sh
29261         * tests/test-pread.sh: Add #! line.
29262
29263         test pread
29264         * tests/test-pread.c: New file.
29265         * tests/test-pread.sh: Likewise.
29266         * modules/pread-tests: Likewise.
29267
29268         pread: new module
29269         * modules/pread: New file.
29270         * lib/unistd.in.h (pread): Define/declare.
29271         * lib/pread.c (pread): New file.
29272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
29273         * modules/unistd (Makefile.am): Substitute witnesses.
29274         * doc/posix-functions/pread.texi (pread): Update.
29275         * MODULES.html.sh: Add pread.
29276
29277 2009-11-25  Jim Meyering  <meyering@redhat.com>
29278
29279         tests/init.sh: new file to be used via most *.sh tests
29280         * tests/init.sh: New file.
29281
29282 2009-11-25  Eric Blake  <ebb9@byu.net>
29283
29284         utimens: work around older Linux failure with symlinks
29285         * lib/utimens.c (lutimensat_works_really): New variable.
29286         (fdutimens, lutimens): Use it to manage kernels that support
29287         nanosecond times on files, but not on symlinks.
29288         Reported by OndÅ™ej Vašík.
29289
29290         utimes: fix configure grammar
29291         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
29292
29293 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
29294
29295         regex: Fix fastmap for multibyte character ranges.
29296         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
29297         characters when a multibyte character range is included.
29298
29299 2009-11-22  Andy Wingo  <wingo@pobox.com>
29300
29301         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
29302         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
29303
29304 2009-11-24  Bruno Haible  <bruno@clisp.org>
29305
29306         doc: Most *_l functions exist in MacOS X 10.5.
29307         * doc/posix-functions/duplocale.texi: Update platforms list.
29308         * doc/posix-functions/freelocale.texi: Likewise.
29309         * doc/posix-functions/newlocale.texi: Likewise.
29310         * doc/posix-functions/uselocale.texi: Likewise.
29311         * doc/posix-functions/isalnum_l.texi: Likewise.
29312         * doc/posix-functions/isalpha_l.texi: Likewise.
29313         * doc/posix-functions/isblank_l.texi: Likewise.
29314         * doc/posix-functions/iscntrl_l.texi: Likewise.
29315         * doc/posix-functions/isdigit_l.texi: Likewise.
29316         * doc/posix-functions/isgraph_l.texi: Likewise.
29317         * doc/posix-functions/islower_l.texi: Likewise.
29318         * doc/posix-functions/isprint_l.texi: Likewise.
29319         * doc/posix-functions/ispunct_l.texi: Likewise.
29320         * doc/posix-functions/isspace_l.texi: Likewise.
29321         * doc/posix-functions/isupper_l.texi: Likewise.
29322         * doc/posix-functions/iswalnum_l.texi: Likewise.
29323         * doc/posix-functions/iswalpha_l.texi: Likewise.
29324         * doc/posix-functions/iswblank_l.texi: Likewise.
29325         * doc/posix-functions/iswcntrl_l.texi: Likewise.
29326         * doc/posix-functions/iswctype_l.texi: Likewise.
29327         * doc/posix-functions/iswdigit_l.texi: Likewise.
29328         * doc/posix-functions/iswgraph_l.texi: Likewise.
29329         * doc/posix-functions/iswlower_l.texi: Likewise.
29330         * doc/posix-functions/iswprint_l.texi: Likewise.
29331         * doc/posix-functions/iswpunct_l.texi: Likewise.
29332         * doc/posix-functions/iswspace_l.texi: Likewise.
29333         * doc/posix-functions/iswupper_l.texi: Likewise.
29334         * doc/posix-functions/iswxdigit_l.texi: Likewise.
29335         * doc/posix-functions/isxdigit_l.texi: Likewise.
29336         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
29337         * doc/posix-functions/strcasecmp_l.texi: Likewise.
29338         * doc/posix-functions/strcoll_l.texi: Likewise.
29339         * doc/posix-functions/strfmon_l.texi: Likewise.
29340         * doc/posix-functions/strftime_l.texi: Likewise.
29341         * doc/posix-functions/strncasecmp_l.texi: Likewise.
29342         * doc/posix-functions/strxfrm_l.texi: Likewise.
29343         * doc/posix-functions/tolower_l.texi: Likewise.
29344         * doc/posix-functions/toupper_l.texi: Likewise.
29345         * doc/posix-functions/towctrans_l.texi: Likewise.
29346         * doc/posix-functions/towlower_l.texi: Likewise.
29347         * doc/posix-functions/towupper_l.texi: Likewise.
29348         * doc/posix-functions/wcscoll_l.texi: Likewise.
29349         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
29350         * doc/posix-functions/wctrans_l.texi: Likewise.
29351         * doc/posix-functions/wctype_l.texi: Likewise.
29352         * doc/glibc-functions/strptime_l.texi: Likewise.
29353         * doc/glibc-functions/strtod_l.texi: Likewise.
29354         * doc/glibc-functions/strtof_l.texi: Likewise.
29355         * doc/glibc-functions/strtol_l.texi: Likewise.
29356         * doc/glibc-functions/strtold_l.texi: Likewise.
29357         * doc/glibc-functions/strtoll_l.texi: Likewise.
29358         * doc/glibc-functions/strtoul_l.texi: Likewise.
29359         * doc/glibc-functions/strtoull_l.texi: Likewise.
29360         * doc/glibc-functions/wcsftime_l.texi: Likewise.
29361         * doc/glibc-functions/wcstod_l.texi: Likewise.
29362         * doc/glibc-functions/wcstof_l.texi: Likewise.
29363         * doc/glibc-functions/wcstol_l.texi: Likewise.
29364         * doc/glibc-functions/wcstold_l.texi: Likewise.
29365         * doc/glibc-functions/wcstoll_l.texi: Likewise.
29366         * doc/glibc-functions/wcstoul_l.texi: Likewise.
29367         * doc/glibc-functions/wcstoull_l.texi: Likewise.
29368
29369 2009-11-24  Bruno Haible  <bruno@clisp.org>
29370
29371         duplocale: Fix logic bug.
29372         * lib/duplocale.c: Don't include <langinfo.h>.
29373         (_NL_LOCALE_NAME): Remove macro.
29374         (rpl_duplocale): Use setlocale instead of nl_langinfo.
29375         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
29376
29377 2009-11-23  Jim Meyering  <meyering@redhat.com>
29378
29379         test-update-copyright: don't hard-code /usr/bin/perl
29380         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
29381         perl to print the current year.  Gilles Espinasse reported that
29382         the replaced use of perl was hard-coded as /usr/bin/perl.
29383
29384 2009-11-23  Bruno Haible  <bruno@clisp.org>
29385
29386         duplocale: Add support for glibc 2.3.x.
29387         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
29388
29389 2009-11-22  Bruno Haible  <bruno@clisp.org>
29390
29391         vasnprintf: Tiny optimization.
29392         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
29393         MacOS X.
29394
29395 2009-11-22  Bruno Haible  <bruno@clisp.org>
29396
29397         Tests for module 'duplocale'.
29398         * modules/duplocale-tests: New file.
29399         * tests/test-duplocale.c: New file.
29400
29401         New module 'duplocale'.
29402         * m4/duplocale.m4: New file.
29403         * lib/locale.in.h (duplocale): New declaration.
29404         * lib/duplocale.c: New file.
29405         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
29406         gl_LOCALE_H_DEFAULTS): New macros.
29407         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
29408         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
29409         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
29410         REPLACE_DUPLOCALE.
29411         * modules/duplocale: New file.
29412         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
29413
29414 2009-11-22  Bruno Haible  <bruno@clisp.org>
29415
29416         * modules/locale-tests (configure.ac): Test for newlocale function.
29417         * tests/test-locale.c: When the system has extended locale functions,
29418         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
29419
29420         locale: Make locale_t available when possible.
29421         * lib/locale.in.h: Include <xlocale.h> when it exists.
29422         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
29423         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
29424         * modules/locale (Depends-on): Add extensions.
29425         (Makefile.am): Also substitute HAVE_XLOCALE_H.
29426         * doc/posix-headers/locale.texi: Document the problem with locale_t.
29427
29428 2009-11-22  Bruno Haible  <bruno@clisp.org>
29429
29430         Add comments.
29431         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
29432         invocation.
29433         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
29434         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29435         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29436
29437 2009-11-22  Bruno Haible  <bruno@clisp.org>
29438
29439         error: account for the possibility of freopen (stdout).
29440         * lib/error.c: Include <unistd.h>.
29441         (flush_stdout): New function, extracted from error and error_at_line.
29442         Determine stdout's fd dynamically.
29443         (error, error_at_line): Invoke flush_stdout.
29444         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
29445         * modules/error (Depends-on): Add unistd.
29446
29447 2009-11-22  Bruno Haible  <bruno@clisp.org>
29448
29449         diffseq: Add comment.
29450         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
29451
29452 2009-11-22  Jim Meyering  <meyering@redhat.com>
29453
29454         c-stack: avoid defining an unused static function
29455         * lib/c-stack.c (find_stack_direction): Do not define this function
29456         when it will not be used.
29457
29458         diffseq: avoid spurious gcc warnings
29459         * lib/diffseq.h (IF_LINT2): Define.
29460         (compareseq): Use it to initialize two members of "part".
29461         This avoids two used-uninitialized warnings.
29462
29463 2009-11-21  Jim Meyering  <meyering@redhat.com>
29464
29465         c-stack: avoid "ignoring return value of `write'" warning
29466         * lib/c-stack.c: Include "ignore-value.h".
29467         (die): Explicitly ignore each write return value.
29468         * modules/c-stack (Depends-on): Add ignore-value.
29469
29470 2009-11-21  Bruno Haible  <bruno@clisp.org>
29471
29472         diffseq: reduce scope of variable 'best'.
29473         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
29474         variable, earlier used for two different purposes.
29475
29476 2009-11-21  Jim Meyering  <meyering@redhat.com>
29477
29478         diffseq: remove useless assignment to "best"
29479         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
29480         assignment.  At that point "best" is already guaranteed to be zero.
29481
29482 2009-11-20  Eric Blake  <ebb9@byu.net>
29483
29484         build: mention ftp redirector in release announcements
29485         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
29486         values that used to come from cfg.mk; mention FTP redirect URL.
29487         * build-aux/announce-gen: Mention the mirror list.
29488         Suggested by Karl Berry.
29489
29490         nanosleep: improve port to mingw
29491         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
29492         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
29493         LIB_NANOSLEEP, but only when needed.
29494         * modules/select (Link): Document LIBSOCKET.
29495         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
29496         enough.
29497
29498         nanosleep: work around cygwin bug
29499         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
29500         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
29501         bug.
29502         (getnow): Delete, not needed.
29503         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
29504         LIB_CLOCK_GETTIME.
29505         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
29506         clock-time, gettime.
29507         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
29508         bug.
29509         * modules/nanosleep-tests: New test.
29510         * tests/test-nanosleep.c: New file.
29511
29512         sleep: work around cygwin bug
29513         * lib/sleep.c (rpl_sleep): Work around the bug.
29514         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
29515         (gl_PREREQ_SLEEP): Delete unused macro.
29516         * modules/sleep (Depends-on): Add verify.
29517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29518         * modules/unistd (Makefile.am): Substitute witness.
29519         * lib/unistd.in.h (sleep): Update prototype.
29520         * doc/posix-functions/sleep.texi (sleep): Document the bug.
29521         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
29522         * modules/sleep-tests (Depends-on): Check for alarm.
29523
29524 2009-11-20  Jim Meyering  <meyering@redhat.com>
29525
29526         maint.mk: improve sc_prohibit_magic_number_exit
29527         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
29528         so it does not match uses like System.exit(1).
29529         Add comments showing how to correct all offenders.
29530
29531 2009-11-19  Eric Blake  <ebb9@byu.net>
29532
29533         xalloc-die-tests: add missing library
29534         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
29535
29536         test-xvasprintf: silence compiler warnings
29537         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
29538         empty string from gcc.
29539
29540 2009-11-19  Jim Meyering  <meyering@redhat.com>
29541
29542         xfreopen: new module, from coreutils
29543         * modules/xfreopen: New module.
29544         * lib/xfreopen.c: New file.
29545         * lib/xfreopen.h: New file.
29546         * MODULES.html.sh (File stream based Input/Output"): Add it.
29547
29548 2009-11-19  Eric Blake  <ebb9@byu.net>
29549
29550         manywarnings: depend on warnings
29551         * modules/manywarnings (Depends-on): Add warnings.
29552
29553         build: avoid compiler warnings
29554         * lib/select.c (rpl_select): Delete unused variable.
29555         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
29556
29557 2009-11-18  Eric Blake  <ebb9@byu.net>
29558
29559         tests: avoid false negative with --with-packager
29560         * tests/test-version-etc.sh: Discard packager information.
29561         * tests/test-argp-version-etc-1.sh: Likewise.
29562         Reported by Mike Frysinger.
29563
29564         utimens: fix regression on Solaris
29565         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
29566         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
29567         can only change fd timestamps via futimesat.  Instead, use an
29568         additional witness macro to avoid BSD bug.
29569         Reported by Jim Meyering.
29570
29571 2009-11-17  Eric Blake  <ebb9@byu.net>
29572
29573         usleep: use it to simplify tests
29574         * modules/stat-time-tests (Depends-on): Add usleep.
29575         (configure.ac): Drop usleep check.
29576         * modules/chown-tests (Depends-on, configure.ac): Likewise.
29577         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
29578         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
29579         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
29580         * modules/openat-tests (Depends-on, configure.ac): Likewise.
29581         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
29582         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
29583         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
29584         Likewise.
29585         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
29586         * tests/test-lchown.h (nap): Likewise.
29587         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
29588         * tests/test-stat-time.c (nap): Likewise.
29589         * tests/test-utimens-common.h (nap): Update comments.
29590
29591         usleep: new module
29592         * modules/usleep: New file.
29593         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
29594         * lib/usleep.c (usleep): Likewise.
29595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29596         * modules/unistd (Makefile.am): Substitute witnesses.
29597         * lib/unistd.in.h (usleep): Add declaration.
29598         * doc/pastposix-functions/usleep.texi (usleep): Document this.
29599         * MODULES.html.sh (Date and time): Likewise.
29600         * modules/usleep-tests (Depends-on): New test.
29601         * tests/test-usleep.c: New file.
29602
29603         chown: work around OpenBSD bug
29604         * lib/chown.c (rpl_chown): Work around the bug.
29605         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
29606         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
29607         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
29608         * modules/chown (Depends-on): Add stdbool.
29609         * modules/lchown (Depends-on): Likewise.
29610         * doc/posix-functions/chown.texi (chown): Document the bug.
29611         * doc/posix-functions/lchown.texi (lchown): Likewise.
29612         * tests/test-lchown.h (test_chown): Relax test.
29613
29614         mkstemp: avoid conflict with C++ keyword template
29615         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
29616         * lib/mkostemp.c (mkostemp): Likewise.
29617         * lib/mkostemps.c (mkostemps): Likewise.
29618         * lib/mkstemp.c (mkstemp): Likewise.
29619         * lib/mkstemps.c (mkstemps): Likewise.
29620
29621         xalloc-die-tests: optimize
29622         * tests/test-xalloc-die.sh: Reduce number of processes.
29623
29624 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29625
29626         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
29627         patch from ludo@gnu.org (Ludovic Courtès).
29628
29629 2009-11-17  Jim Meyering  <meyering@redhat.com>
29630
29631         version-etc: use proper license string
29632         * modules/version-etc (License): Use LGPL, not LGPLv3+.
29633         * modules/version-etc-fsf: Likewise.
29634
29635 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29636
29637         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
29638         printed to stdout.  Deal with EOL differences.
29639
29640 2009-11-17  Eric Blake  <ebb9@byu.net>
29641
29642         unsetenv: work around Solaris bug
29643         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
29644         * lib/unsetenv.c (rpl_unsetenv): Work around it.
29645         Reported by Jim Meyering.
29646
29647         vasnprintf: avoid compiler warnings
29648         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
29649         variables.
29650         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
29651
29652 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29653
29654         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
29655         settings since xalloc-die is no longer the self test,
29656         xalloc-die.sh is.
29657
29658 2009-11-17  Jim Meyering  <meyering@redhat.com>
29659
29660         test-xalloc-die.sh: make the code agree with the commit log
29661         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
29662         at the end, just in case you happen to have a test-xalloc-die
29663         program in some other PATH directory.
29664
29665         test-xalloc-die.sh: fix a portability bug
29666         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
29667         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
29668         Otherwise, argv[0] (as often seen in diagnostics) would be too
29669         system-dependent, sometimes with, and sometimes without the leading "./".
29670
29671         version-etc-fsf: relax license to LGPLv3+
29672         * modules/version-etc-fsf (License): Relax license.
29673
29674 2009-11-16  Eric Blake  <ebb9@byu.net>
29675
29676         xalloc-die-tests: avoid printing null pointer
29677         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
29678         shell script.
29679         * tests/test-xalloc-die.c (program_name): Declare.
29680         * tests/test-xalloc-die.sh (tmpfiles): New file.
29681
29682         setenv, unsetenv: work around various bugs
29683         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
29684         (setenv) [HAVE_SETENV]: Work around bugs.
29685         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
29686         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
29687         for bugs.
29688         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
29689         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
29690         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
29691         * modules/stdlib (Makefile.am): Update substitutions.
29692         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
29693         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
29694         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
29695         * modules/setenv-tests: New test.
29696         * modules/unsetenv-tests: Likewise.
29697         * tests/test-setenv.c: New file.
29698         * tests/test-unsetenv.c: Likewise.
29699
29700 2009-11-16  Jim Meyering  <meyering@redhat.com>
29701
29702         version-etc: relax license to LGPLv3+
29703         * modules/version-etc (License): Relax license.
29704
29705         better AC_REQUIRE expanded-before-required-warning avoidance
29706         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
29707         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
29708         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
29709         which is no longer needed.
29710
29711 2009-11-16  Eric Blake  <ebb9@byu.net>
29712
29713         test-freading: clean up temporary file
29714         * tests/test-freading.c (main): Remove file on success, and use
29715         ASSERT more liberally.
29716         Reported by Jim Meyering.
29717
29718 2009-11-16  Jim Meyering  <meyering@redhat.com>
29719
29720         avoid new AC_REQUIRE expanded-before-required warnings
29721         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
29722         merely using it.
29723         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
29724         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
29725
29726 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29727
29728         * tests/test-xalloc-die.c: New file.
29729         * modules/xalloc-die-tests: New file.
29730         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
29731         XFAIL_TESTS so it can be appended by modules.
29732
29733 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29734
29735         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
29736         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
29737
29738 2009-11-14  Eric Blake  <ebb9@byu.net>
29739
29740         fnmatch: avoid compiler warning
29741         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
29742         to silence compiler warning about mismatch signedness in ?:.
29743         Reported by Robert Millan.
29744
29745         intprops: add double-inclusion guard
29746         * lib/intprops.h: Allow idempotent includes.
29747         Suggested by Bruce Korb.
29748
29749         openat: detect Solaris fchownat bug
29750         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
29751         penalizing glibc chownat when only lchownat is broken.
29752         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
29753         trailing slash bugs.
29754         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
29755         * modules/openat-tests (Files): Include more files.
29756         (Depends-on): Add mgetgroups, sleep, stat-time.
29757         (configure.ac): Add additional checks.
29758         (Makefile.am): Build new test.
29759         * tests/test-fchownat.c: New file.
29760
29761         lchown: detect Solaris and FreeBSD bug
29762         * lib/lchown.c (rpl_lchown): Work around bug.
29763         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
29764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29765         * modules/unistd (Makefile.am): Populate it.
29766         * lib/unistd.in.h (lchown): Update declaration.
29767         * doc/posix-functions/lchown.texi (lchown): Document the bug.
29768         * modules/lchown-tests: New file.
29769         * tests/test-lchown.h (test_lchown): Likewise.
29770         * tests/test-lchown.c (main): Likewise.
29771
29772         chown: detect Solaris and FreeBSD bug
29773         * lib/chown.c (rpl_chown): Work around bug.
29774         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
29775         (gl_PREREQ_CHOWN): Delete.
29776         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29777         * modules/unistd (Makefile.am): Populate it.
29778         * lib/unistd.in.h (chown): Update declaration.
29779         * lib/lchown.c (chown): Update client.
29780         * modules/lchown (Depends-on): Add lstat.
29781         * doc/posix-functions/chown.texi (chown): Document the bug.
29782         * doc/posix-functions/getgroups.texi (getgroups): Document
29783         getgroups pitfall.
29784         * modules/chown-tests: New file.
29785         * tests/test-chown.h (test_chown): Likewise.
29786         * tests/test-chown.c (main): Likewise.
29787
29788 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
29789
29790         gnulib-tool: correctly detect absence of m4 directories
29791         * gnulib-tool: Avoid extra newline on data passed to wc -l.
29792
29793 2009-11-14  Jim Meyering  <meyering@redhat.com>
29794
29795         maint.mk: Prohibit inclusion of "xalloc.h" without use.
29796         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29797
29798 2009-11-14  John W. Eaton  <jwe@gnu.org>
29799
29800         strftime.h: wrap funtion declaration in extern "C" block
29801         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
29802
29803 2009-11-13  Eric Blake  <ebb9@byu.net>
29804
29805         getgroups: avoid compiler warning
29806         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
29807
29808         getgroups: work around FreeBSD bug
29809         * lib/getgroups.c (rpl_getgroups): Work around the bug.
29810         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
29811         * doc/posix-functions/getgroups.texi (getgroups): Document it.
29812         * tests/test-getgroups.c (main): Fix buffer overrun.
29813
29814         getgroups: avoid compilation failure
29815         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
29816         * modules/getgroups (Depends-on): Add stdint.
29817
29818 2009-11-13  Jim Meyering  <meyering@redhat.com>
29819
29820         test-getgroups: avoid compilation failure
29821         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
29822
29823 2009-11-13  Eric Blake  <ebb9@byu.net>
29824
29825         mgetgroups: new module, taken from coreutils
29826         * modules/mgetgroups: New file.
29827         * lib/mgetgroups.h: Likewise.
29828         * lib/mgetgroups.c (mgetgroups): Likewise.
29829         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
29830         * MODULES.html.sh (Users and groups): Mention it.
29831
29832         getgroups: don't expose GETGROUPS_T to user
29833         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
29834         an element at a time if GETGROUPS_T is wrong size.
29835         * lib/getugroups.h (getugroups): Change signature.
29836         * lib/unistd.in.h (getgroups): Likewise.
29837         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
29838         signature needs fixing.
29839         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
29840         AC_TYPE_GETGROUPS.
29841         * modules/group-member (Depends-on): Add getgroups.
29842         * lib/group-member.c (group_info, get_group_info): Use gid_t.
29843         (group_member): Rely on getgroups replacement.
29844         * lib/getugroups.c (getugroups): Use gid_t.
29845         * tests/test-getgroups.c (main): Likewise.
29846         * NEWS: Mention the signature change.
29847         * doc/posix-functions/getgroups.texi (getgroups): Mention the
29848         problem with signature.
29849         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
29850         GETGROUPS_T is still useful for setgroups.
29851
29852         getgroups, getugroups: provide stubs for mingw
29853         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
29854         * lib/getugroups.c (getugroups): Likewise.
29855         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
29856         function.  Modernize replacement scheme.
29857         (gl_PREREQ_GETGROUPS): Delete.
29858         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
29859         * modules/getgroups (configure.ac): Declare witness.
29860         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29861         * modules/unistd (Depends-on): Substitute witness.
29862         * lib/unistd.in.h (getgroups): Declare replacement.
29863
29864         getgroups: avoid calling exit
29865         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
29866         drop xalloc.
29867         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
29868         dependencies.
29869         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
29870         exiting, in the rare case of malloc failure.
29871
29872         getgroups: fix logic error
29873         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
29874         has more than 20 groups.
29875         * modules/getgroups-tests: New test.
29876         * tests/test-getgroups.c: New file.
29877
29878 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29879
29880         * tests/test-base64.c: Improve.
29881
29882 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29883
29884         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
29885         Blake <ebb9@byu.net>.
29886
29887 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29888
29889         * tests/test-xvasprintf.c: Add %s%s related checks.
29890
29891 2009-11-12  Eric Blake  <ebb9@byu.net>
29892
29893         version-etc: match standards.texi style
29894         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
29895         and use <> only for URLs.
29896
29897 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
29898
29899         fts: do not fail on a submount during traversal
29900         * lib/fts.c (fts_build): Read the stat info again after opening
29901         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
29902         Original report at http://bugzilla.redhat.com/501848.
29903
29904 2009-11-12  Jim Meyering  <meyering@redhat.com>
29905
29906         bootstrap: sync from coreutils
29907         * build-aux/bootstrap (bootstrap_epilogue): New function.
29908         Use git_modules_config in one more place.  This make bootstrap's
29909         --gnulib-srcdir option more useful for testing.
29910
29911         bootstrap: generalize autoheader check
29912         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
29913         AC_CONFIG_HEADERS.
29914
29915 2009-11-11  Eric Blake  <ebb9@byu.net>
29916
29917         mkfifoat: use new modules for Solaris and BSD bugs
29918         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
29919         * lib/mkfifoat.c (mknodat): Split...
29920         * lib/mknodat.c (mknodat): ...into new file.
29921         * modules/mkfifoat (Files): Ship new file.
29922         (Depends-on): Add mkfifo, mknod.
29923         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
29924         (Depends-on): Add symlink.
29925         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
29926         redundant with test_mkfifo.h.
29927         (do_mkfifoat, do_mknodat): New helpers.
29928
29929         mknod: new module
29930         * modules/mknod: New file.
29931         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
29932         * lib/mknod.c (mknod): Likewise.
29933         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29934         defaults.
29935         * modules/sys_stat (Makefile.am): Substitute them.
29936         * lib/sys_stat.in.h (mknod): Declare replacement.
29937         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29938         Document it.
29939         * doc/posix-functions/mknod.texi (mknod): Likewise.
29940         * modules/mknod-tests: New test.
29941         * tests/test-mknod.c: Likewise.
29942
29943         mkfifo: new module
29944         * modules/mkfifo: New file.
29945         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29946         * lib/mkfifo.c (mkfifo): Likewise.
29947         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29948         defaults.
29949         * modules/sys_stat (Makefile.am): Substitute them.
29950         * lib/sys_stat.in.h (mkfifo): Declare replacement.
29951         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29952         Document it.
29953         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
29954         * modules/mkfifo-tests: New test.
29955         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
29956         from test-mkfifoat.c.
29957         * tests/test-mkfifo.c: New file.
29958
29959         readlink: detect FreeBSD bug
29960         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
29961         slash on symlink.
29962         * doc/posix-functions/readlink.texi (readlink): Document the bug.
29963         * tests/test-readlink.h (test_readlink): Enhance test.
29964
29965         symlink: detect FreeBSD bug
29966         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
29967         slash on symlink.
29968         * doc/posix-functions/symlink.texi (symlink): Document the bug.
29969         * tests/test-symlink.h (test_symlink): Enhance test.
29970
29971 2009-11-10  Eric Blake  <ebb9@byu.net>
29972
29973         link: detect FreeBSD bug
29974         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
29975         symlink.
29976         * doc/posix-functions/link.texi (link): Document the bug.
29977         * tests/test-link.h (test_link): Enhance test.
29978         * tests/test-linkat.c (main): Update caller.
29979
29980         unlink, remove: detect FreeBSD bug
29981         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
29982         slash on symlink.
29983         * doc/posix-functions/unlink.texi (unlink): Document the bug.
29984         * doc/posix-functions/remove.texi (remove): Likewise.
29985         * tests/test-unlink.h (test_unlink): Enhance test.
29986         * tests/test-remove.c (main): Likewise.
29987
29988 2009-11-09  Eric Blake  <ebb9@byu.net>
29989
29990         rename: detect FreeBSD bug
29991         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
29992         slash on symlink.
29993         * modules/renameat-tests (Depends-on): Add filenamecat.
29994         * tests/test-rename.h (test_rename): Allow one more errno.
29995         * tests/test-renameat.c (main): Likewise.
29996         * doc/posix-functions/rename.texi (rename): Document the bug.
29997
29998         open: detect FreeBSD bug
29999         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
30000         symlink.
30001         * doc/posix-functions/open.texi (open): Document the bug.
30002         * doc/posix-functions/utimes.texi (utimes): Likewise.
30003         * tests/test-open.h (test_open): Add parameters, and test symlink
30004         handling.
30005         * tests/test-open.c (main): Adjust caller.
30006         * tests/test-fcntl-safer.c (main): Likewise.
30007         * modules/open-tests (Depends-on): Add stdbool, symlink.
30008         * modules/fcntl-safer-tests (Depends-on): Likewise.
30009         * tests/test-openat.c (main): Add test-open tests.
30010
30011         stat: detect FreeBSD bug
30012         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
30013         symlink.
30014         * doc/posix-functions/stat.texi (stat): Document the bug.
30015         * tests/test-stat.h (test_stat_func): Add argument.
30016         * tests/test-stat.c (main): Adjust caller.
30017         * tests/test-fstatat.c (main): Likewise.
30018         * modules/stat-tests (Depends-on): Add stdbool, symlink.
30019         Reported by Jim Meyering.
30020
30021 2009-11-09  James Youngman  <jay@gnu.org>
30022
30023         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
30024         * lib/strftime.c: Correct placement of #include "ignore-value.h".
30025
30026 2009-11-08  Jim Meyering  <meyering@redhat.com>
30027
30028         utimens: remove invalid futimesat call
30029         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
30030         It used the file descriptor of the target file as the DIR_FD
30031         parameter and NULL as the file name.  That caused failure with
30032         errno == EFAULT on FreeBSD-8.0-rc2
30033
30034 2009-11-07  Eric Blake  <ebb9@byu.net>
30035
30036         fflush, freadseek: use fseeko, not fseek
30037         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
30038         (clear_ungetc_buffer): Avoid potential problems on large files.
30039         * lib/freadseek.c (freadseek): Likewise.
30040         * modules/freadseek (Depends-on): Add fseeko.
30041         * modules/fseek (configure.ac): Set a witness.
30042         * tests/test-fflush.c (main): Use fseeko.
30043         * tests/test-fpurge.c (fseek): Disable link warning.
30044         * tests/test-freadable.c (fseek): Likewise.
30045         * tests/test-freading.c (fseek): Likewise.
30046         * tests/test-fseeko.c (fseek): Likewise.
30047         * tests/test-ftell.c (fseek): Likewise.
30048         * tests/test-ftello.c (fseek): Likewise.
30049         * tests/test-fwritable.c (fseek): Likewise.
30050         * tests/test-fwriting.c (fseek): Likewise.
30051
30052 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30053
30054         * modules/memchr (Depends-on): Drop getpagesize dependency.
30055
30056 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30057
30058         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
30059         Reported by Ludovic Courtès.
30060         * build-aux/pmccabe2html: Improve example usage.
30061         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
30062
30063 2009-11-06  Jim Meyering  <meyering@redhat.com>
30064
30065         do-release-commit-and-tag: New module.
30066         Automate the release-commit and tag process.
30067         * build-aux/do-release-commit-and-tag: New script, from coreutils.
30068         * modules/do-release-commit-and-tag: New file.
30069         * MODULES.html.sh (Support for maintaining and releasing): Add it.
30070
30071 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30072
30073         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
30074         because test-select.c uses inet_pton.
30075
30076 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30077
30078         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
30079         GETADDRINFO_LIB.  Bump serial number.
30080         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
30081         Suggested by Eric Blake <ebb9@byu.net>.
30082
30083 2009-11-05  Eric Blake  <ebb9@byu.net>
30084
30085         strtod: detect darwin bug
30086         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
30087         Reported by Leo Davis.
30088
30089         freopen-safer: new module
30090         * modules/freopen-safer: New module.
30091         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
30092         * lib/freopen-safer.c (freopen_safer): New file.
30093         * lib/stdio-safer.h (freopen_safer): New declaration.
30094         * lib/stdio--.h (freopen): New override.
30095         * MODULES.html.sh (File stream based Input/Output): Mention it.
30096         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
30097         freopen-safer module.
30098         * doc/posix-functions/stderr.texi (stderr): Likewise.
30099         * doc/posix-functions/stdin.texi (stdin): Likewise.
30100         * doc/posix-functions/stdout.texi (stdout): Likewise.
30101         * modules/freopen-safer-tests: New test.
30102         * tests/test-reopen-safer.c: New file.
30103
30104 2009-11-05  Jim Meyering  <meyering@redhat.com>
30105
30106         maint.mk: Prohibit inclusion of "close-stream.h" without use.
30107         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
30108
30109 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30110
30111         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
30112
30113 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30114
30115         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
30116
30117 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30118
30119         Fix link error.
30120         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
30121         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30122
30123 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30124
30125         * tests/test-func.c: Also test value of __func__.
30126
30127 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30128
30129         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
30130         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
30131
30132 2009-11-05  Bruno Haible  <bruno@clisp.org>
30133
30134         Fix link error.
30135         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
30136         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30137         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
30138
30139 2009-11-05  Bruno Haible  <bruno@clisp.org>
30140
30141         Tests for module 'inet_pton'.
30142         * modules/inet_pton-tests: New file.
30143         * tests/test-inet_pton.c: New file.
30144
30145 2009-11-05  Bruno Haible  <bruno@clisp.org>
30146
30147         Tests for module 'inet_ntop'.
30148         * modules/inet_ntop-tests: New file.
30149         * tests/test-inet_ntop.c: New file.
30150
30151 2009-11-04  Eric Blake  <ebb9@byu.net>
30152
30153         stdlib-safer: wrap all mkstemp variants
30154         * modules/mkostemp (configure.ac): Set witness.
30155         * modules/mkostemps (configure.ac): Likewise.
30156         * modules/mkstemps (configure.ac): Likewise.
30157         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
30158         (mkstemps_safer): Wrap more functions.
30159         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
30160         wrapping.
30161         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
30162         (mkstemps_safer): Implement the wrappers.
30163
30164         mkstemps, mkostemps: new modules
30165         * modules/mkostemps: New module.
30166         * modules/mkstemps: Likewise.
30167         * lib/mkostemps.c (mkostemps): New file.
30168         * lib/mkstemps.c (mkstemps): Likewise.
30169         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
30170         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
30171         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
30172         * modules/stdlib (Makefile.am): Substitute them.
30173         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
30174         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
30175         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
30176         * doc/gnulib.texi (Glibc stdlib.h): Include them.
30177         * MODULES.html.sh (File system functions): Mention them.
30178
30179         tempname: resync from glibc
30180         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
30181         same values for __GT_FILE as glibc.  Abort even when assertions
30182         are disabled.
30183         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
30184         match its value otherwise.  Allow idempotent inclusion.
30185         * lib/mkdtemp.c (mkdtemp): Adjust caller.
30186         * lib/mkostemp.c (mkostemp): Likewise.
30187         * lib/mkstemp.c (mkstemp): Likewise.
30188         * lib/tmpfile.c (tmpfile): Likewise.
30189         * NEWS: Document this.
30190
30191         utimens: fix use of futimens on older Linux
30192         * lib/utimens.c (fdutimens): Use updated, rather than original,
30193         timespec to avoid bug in older Linux kernel.
30194         Reported by Simon Josefsson.
30195
30196 2009-11-04  Bruno Haible  <bruno@clisp.org>
30197
30198         Make num_processors more flexible and consistent.
30199         * lib/nproc.h (enum nproc_query): New type.
30200         (num_processors): Add a 'query' argument.
30201         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
30202         (num_processors): Add a 'query' argument. Test the value of the
30203         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
30204         mingw, count the number of CPUs available for the current process.
30205         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
30206         Check for sched_getaffinity and sched_getaffinity_np.
30207         * modules/nproc (Depends-on): Add c-ctype, extensions.
30208         * NEWS: Mention the change.
30209
30210 2009-11-03  Bruno Haible  <bruno@clisp.org>
30211
30212         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
30213
30214 2009-11-03  Jim Meyering  <meyering@redhat.com>
30215
30216         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
30217         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
30218         if it is defined.
30219
30220 2009-11-02  Eric Blake  <ebb9@byu.net>
30221
30222         mktime, timegm: share common declaration
30223         * lib/mktime-internal.h: New file.
30224         * lib/mktime.c: Use it rather than open-coding a declaration.
30225         * lib/timegm.c: Likewise.
30226         * modules/mktime (Files): Ship it.
30227         * modules/timegm (Files): Likewise.
30228         Suggested by Bruno Haible.
30229
30230         test-update-copyright: update test to match script changes
30231         * tests/test-update-copyright.sh: Avoid hard-coding perl
30232         location.  Don't update *.bak created by earlier runs.
30233
30234 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30235             Simon Josefsson  <simon@josefsson.org>
30236             Bruno Haible  <bruno@clisp.org>
30237
30238         Fix link error on Solaris 8.
30239         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
30240         also in libnsl. Define also INET_PTON_LIB.
30241         * modules/inet_pton (Link): New section.
30242
30243 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30244             Bruno Haible  <bruno@clisp.org>
30245
30246         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
30247         * modules/inet_ntop (Link): New section.
30248         Reported by Boyan Kasarov <bkasarov@gmail.com>.
30249
30250 2009-11-02  Eric Blake  <ebb9@byu.net>
30251
30252         maint: avoid compiler warnings in m4 macros
30253         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
30254         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
30255
30256 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30257
30258         * m4/pmccabe2html.m4: Remove file.
30259         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
30260         function.  Change maintainer.
30261         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
30262         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
30263         Courtès).
30264
30265 2009-10-31  Eric Blake  <ebb9@byu.net>
30266
30267         fseeko: fix m4 regression
30268         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
30269         regression from 2009-10-27.
30270         Reported by Ralf Wildenhues.
30271
30272 2009-10-31  Jim Meyering  <meyering@redhat.com>
30273
30274         inttostr: aesthetics and improved (compile-time) safety
30275         Define inttype_is_signed rather than inttype_is_unsigned,
30276         since the sole use is via "#if inttype_is_signed".
30277         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
30278         inttype_is_unsigned.
30279         * lib/offtostr.c (inttype_is_signed): Likewise.
30280         * lib/uinttostr.c (inttype_is_signed): Likewise.
30281         * lib/umaxtostr.c (inttype_is_signed): Likewise.
30282         * lib/inttostr.c (inttostr): Use verify to cross-check the
30283         inttype_is_signed value and the signedness of the actual type.
30284         * modules/inttostr (Depends-on): Add verify.
30285
30286 2009-10-30  Eric Blake  <ebb9@byu.net>
30287
30288         build: avoid compiler warnings
30289         * lib/fchmodat.c (lchmod): Mark unused variables.
30290         * lib/getopt.c (_getopt_initialize): Likewise.
30291         * lib/mktime.c (__mktime_internal): Provide prototype.
30292         * lib/inttostr.c (inttostr): Avoid compiler warning even with
30293         older gcc that do not understand #pragma GCC diagnostic.
30294         * lib/uinttostr.c (inttype_is_unsigned): Define.
30295         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
30296
30297 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
30298
30299         stat: fix compilation on AIX
30300         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
30301         only see struct stat64.
30302
30303 2009-10-30  Eric Blake  <ebb9@byu.net>
30304
30305         exclude: make more robust
30306         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
30307         rather than masking a coding bug.
30308         Suggested by Bruno Haible.
30309
30310 2009-10-30  Jim Meyering  <meyering@redhat.com>
30311
30312         perl scripts: remove #!/usr/bin/perl in favor of more portable...
30313         Rather than putting #!/usr/bin/perl on the first line,
30314         start with a variant of what's recommended by "man perlrun" that
30315         invokes the first "perl" program from your shell's search path.
30316         * build-aux/gitlog-to-changelog: Replace #!... as above.
30317         Add a "Local Variables" perl mode setting.
30318         Prompted by a patch from Ludovic Courtès.
30319         Improved by Eric Blake.
30320         * build-aux/useless-if-before-free: Likewise.
30321         * build-aux/announce-gen: Likewise.
30322         * build-aux/update-copyright: Likewise.
30323
30324 2009-10-29  Eric Blake  <ebb9@byu.net>
30325
30326         filenamecat-lgpl: adjust clients
30327         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
30328         filenamecat.
30329         * modules/renameat (Depends-on): Likewise.
30330
30331         filenamecat: split into filenamecat-lgpl
30332         * modules/filenamecat-lgpl: New module.
30333         * modules/filenamecat (Files): Move library-safe files into
30334         filenamecat-lgpl.
30335         (Depends-on): Add filenamecat-lgpl.
30336         (configure.ac): Declare witness.
30337         * lib/filenamecat.h (file_name_concat): Only declare when using
30338         GPL module.
30339         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
30340         Move...
30341         * lib/filenamecat-lgpl.c: ...into new file.
30342         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
30343         (gl_FILE_NAME_CONCAT): Use it.
30344         * MODULES.html.sh (File system functions): Mention new module.
30345
30346         argp: avoid memory leak
30347         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
30348         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
30349         base_name, since the latter malloc()s and can call exit().
30350         Leak introduced 2006-07-03.
30351
30352         dirname-lgpl: adjust clients that don't need full dirname
30353         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
30354         * modules/filenamecat (Depends-on): Likewise.
30355         * modules/linkat (Depends-on): Likewise.
30356         * modules/mkancesdirs (Depends-on): Likewise.
30357         * modules/mkdir (Depends-on): Likewise.
30358         * modules/openat (Depends-on): Likewise.
30359         * modules/savewd (Depends-on): Likewise.
30360         * modules/rename (Depends-on): Likewise.
30361         (License): Relax license.
30362         * modules/mkdir-tests (Depends-on): Drop progname.
30363         (Makefile.am): Delete unneeded LDADD.
30364         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
30365
30366         dirname: split into dirname-lgpl
30367         * modules/dirname-lgpl: New module.
30368         * modules/dirname (Files): Move library-safe files into
30369         dirname-lgpl.
30370         (Depends-on): Add dirname-lgpl.
30371         (configure.ac): Declare witness.
30372         * modules/double-slash-root (License): Relax license.
30373         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
30374         module.
30375         * lib/dirname.c (dir_len, mdir_name): Move...
30376         * lib/dirname-lgpl.c: ...into new file.
30377         * lib/basename.c (last_component, base_len): Move...
30378         * lib/basename-lgpl.c: ...into new file.
30379         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
30380         (gl_DIRNAME): Use it.
30381         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
30382         Mention new module.
30383         * modules/dirname-tests (Depends-on): Add progname.
30384         * tests/test-dirname.c (program_name): Delete.
30385
30386         mkdir: make safe for libraries
30387         * modules/mkdir (Depends-on): Drop xalloc.
30388         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
30389         exit.
30390
30391         tests: avoid some compiler warnings
30392         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
30393         literals.
30394         * tests/test-memchr.c (main): Avoid type mismatch.
30395         * tests/test-arpa_inet.c (main): Avoid unused parameters.
30396         * tests/test-base64.c (main): Likewise.
30397         * tests/test-getdelim.c (main): Likewise.
30398         * tests/test-gethostname.c (main): Likewise.
30399         * tests/test-getline.c (main): Likewise.
30400         * tests/test-netinet_in.c (main): Likewise.
30401         * tests/test-select.c (open_server_socket, main): Likewise.
30402         * tests/test-select-stdin.c (main): Likewise.
30403         * tests/test-sockets.c (main): Likewise.
30404         * tests/test-strsignal.c (main): Likewise.
30405         * tests/test-sys_select.c (main): Likewise.
30406         * tests/test-sys_socket.c (main): Likewise.
30407         * tests/test-u64.c (main): Likewise.
30408         * tests/test-xfprintf-posix.c (main): Likewise.
30409         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
30410
30411         sockets: avoid compiler warning
30412         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
30413
30414         maint: detect usage(1) and other suspicious exits
30415         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
30416
30417 2009-10-29  Jim Meyering  <meyering@redhat.com>
30418
30419         timespec: long-to-int truncation could make timespec_cmp malfunction
30420         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
30421         a multiple of 2^32 nanoseconds as no difference.
30422
30423 2009-10-28  Jim Meyering  <meyering@redhat.com>
30424
30425         fprintftime: wrap macro code argument in "do {...} while(0)"
30426         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
30427         cpy macro must be a statement that can be followed by a semicolon.
30428         Now that the else clause contains a comment and is hence longer
30429         than one line, I require curly braces.  That in turn requires
30430         that we wrap this code block in the standard do...while(0).
30431
30432         fprintftime: remove stray semicolon from previous change
30433         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
30434
30435         fprintftime: avoid a warning about ignored fwrite return value
30436         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
30437         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
30438         that is unsafe.
30439         * modules/fprintftime (Depends-on): Add ignore-value.
30440
30441         exclude: avoid an unwarranted warning
30442         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
30443
30444 2009-10-27  Eric Blake  <ebb9@byu.net>
30445
30446         fseek: avoid compilation failure when fflush is replaced
30447         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
30448         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
30449         module is in use.
30450         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
30451         module is not in use; since REPLACE_FSEEK worked otherwise.
30452         (GNULIB_FTELLO): Likewise for ftell.
30453         Reported by Ian Beckwith and others.
30454
30455 2009-10-27  Bruno Haible  <bruno@clisp.org>
30456
30457         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
30458         Reported by Jim Meyering.
30459
30460 2009-10-27  Jim Meyering  <jim@meyering.net>
30461             Bruno Haible  <bruno@clisp.org>
30462
30463         Avoid warning despite dropping the return value of fwrite.
30464         * lib/unicodeio.c: Include ignore-value.h.
30465         (fwrite_success_callback): Explicitly ignore fwrite's return value.
30466         * modules/unicodeio (Depends-on): Add ignore-value.
30467
30468 2009-10-26  Eric Blake  <ebb9@byu.net>
30469
30470         areadlinkat: fix fallback path
30471         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
30472         pointer and zero.
30473
30474 2009-10-22  Pádraig Brady  <P@draigBrady.com>
30475
30476         Use a better IO block size for modern systems
30477         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
30478         * lib/md2.c: Likewise.
30479         * lib/md4.c: Likewise.
30480         * lib/md5.c: Likewise.
30481         * lib/sha1.c: Likewise.
30482         * lib/sha256.c: Likewise.
30483         * lib/sha512.c: Likewise.
30484
30485 2009-10-22  Eric Blake  <ebb9@byu.net>
30486
30487         tests: avoid several compiler warnings
30488         * tests/test-getcwd.c (main): Avoid buffer underflow.
30489         * tests/test-getdate.c (main): String literals are not safe with
30490         putenv, so use setenv.  Declare unused argument.
30491         * modules/getdate-tests (Depends-on): Add setenv.
30492         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
30493         problems with string literals in char *.
30494         * tests/test-hash.c (main): Avoid shadowing declaration.
30495         (insert_new): Treat string literals as char const *.
30496         * tests/test-getopt.h (test_getopt): Likewise.
30497         (getopt_loop): Alter types to minimize casting elsewhere.
30498         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
30499         (test_getopt_long_posix): Likewise.
30500         (do_getopt_long): Add wrapper to minimize casting.
30501         * tests/test-atexit.c (clear_temp_file): Use void.
30502         * tests/test-areadlink-with-size.c (main): Declare unused
30503         arguments.
30504         * tests/test-areadlink.c (main): Likewise.
30505         * tests/test-areadlinkat-with-size.c (main): Likewise.
30506         * tests/test-areadlinkat.c (main): Likewise.
30507         * tests/test-canonicalize-lgpl.c (main): Likewise.
30508         * tests/test-canonicalize.c (main): Likewise.
30509         * tests/test-dirent-safer.c (main): Likewise.
30510         * tests/test-dirname.c (main): Likewise.
30511         * tests/test-dup2.c (main): Likewise.
30512         * tests/test-fchdir.c (main): Likewise.
30513         * tests/test-fcntl-h.c (main): Likewise.
30514         * tests/test-fcntl-safer.c (main): Likewise.
30515         * tests/test-fdopendir.c (main): Likewise.
30516         * tests/test-fdutimensat.c (main): Likewise.
30517         * tests/test-fflush.c (main): Likewise.
30518         * tests/test-filenamecat.c (main): Likewise.
30519         * tests/test-filevercmp.c (main): Likewise.
30520         * tests/test-fopen-safer.c (main): Likewise.
30521         * tests/test-fopen.c (main): Likewise.
30522         * tests/test-fpending.c (main): Likewise.
30523         * tests/test-fpurge.c (main): Likewise.
30524         * tests/test-freading.c (main): Likewise.
30525         * tests/test-fstatat.c (main): Likewise.
30526         * tests/test-fsync.c (main): Likewise.
30527         * tests/test-futimens.c (main): Likewise.
30528         * tests/test-getndelim2.c (main): Likewise.
30529         * tests/test-gettimeofday.c (main): Likewise.
30530         * tests/test-getopt.c (main): Likewise.
30531         * tests/test-i-ring.c (main): Likewise.
30532         * tests/test-inttypes.c (main): Likewise.
30533         * tests/test-link.c (main): Likewise.
30534         * tests/test-lstat.c (main): Likewise.
30535         * tests/test-math.c (main): Likewise.
30536         * tests/test-md5.c (main): Likewise.
30537         * tests/test-memchr2.c (main): Likewise.
30538         * tests/test-memrchr.c (main): Likewise.
30539         * tests/test-mkdir.c (main): Likewise.
30540         * tests/test-mkdirat.c (main): Likewise.
30541         * tests/test-mkfifoat.c (main): Likewise.
30542         * tests/test-open.c (main): Likewise.
30543         * tests/test-openat-safer.c (main): Likewise.
30544         * tests/test-openat.c (main): Likewise.
30545         * tests/test-quotearg.c (main): Likewise.
30546         * tests/test-rawmemchr.c (main): Likewise.
30547         * tests/test-readlink.c (main): Likewise.
30548         * tests/test-remove.c (main): Likewise.
30549         * tests/test-rename.c (main): Likewise.
30550         * tests/test-renameat.c (main): Likewise.
30551         * tests/test-rmdir.c (main): Likewise.
30552         * tests/test-sha1.c (main): Likewise.
30553         * tests/test-signal.c (main): Likewise.
30554         * tests/test-sigaction.c (main): Likewise.
30555         * tests/test-stat.c (main): Likewise.
30556         * tests/test-stat-time.c (main): Likewise.
30557         * tests/test-stddef.c (main): Likewise.
30558         * tests/test-stdint.c (main): Likewise.
30559         * tests/test-stdio.c (main): Likewise.
30560         * tests/test-stdlib.c (main): Likewise.
30561         * tests/test-strchrnul.c (main): Likewise.
30562         * tests/test-strerror.c (main): Likewise.
30563         * tests/test-string.c (main): Likewise.
30564         * tests/test-strtod.c (main): Likewise.
30565         * tests/test-strverscmp.c (main): Likewise.
30566         * tests/test-symlink.c (main): Likewise.
30567         * tests/test-symlinkat.c (main): Likewise.
30568         * tests/test-sys_stat.c (main): Likewise.
30569         * tests/test-sys_time.c (main): Likewise.
30570         * tests/test-time.c (main): Likewise.
30571         * tests/test-unistd.c (main): Likewise.
30572         * tests/test-unlink.c (main): Likewise.
30573         * tests/test-unlinkat.c (main): Likewise.
30574         * tests/test-utimens.c (main): Likewise.
30575         * tests/test-utimensat.c (main): Likewise.
30576         * tests/test-version-etc.c (main): Likewise.
30577         * tests/test-wchar.c (main): Likewise.
30578         * tests/test-wctype.c (main): Likewise.
30579         * tests/test-xprintf-posix.c (main): Likewise.
30580         * tests/test-posixtm.c (main): Likewise.
30581         (STREQ): Delete unused macro.
30582         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
30583         shadowed variables.
30584         * tests/test-memchr.c (main): Likewise.
30585
30586 2009-10-21  Eric Blake  <ebb9@byu.net>
30587
30588         areadlinkat: avoid failure on older glibc
30589         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
30590         rather than mis-comparing 0 against FUNC_RESULT of char*.
30591
30592 2009-10-21  Bruno Haible  <bruno@clisp.org>
30593
30594         * modules/stpncpy (License): Relicense under LGPLv2+.
30595         Reported by David Lutterkort <lutter@redhat.com>.
30596
30597 2009-10-20  Eric Blake  <ebb9@byu.net>
30598
30599         utimensat: work around Solaris 9 bug
30600         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
30601         has trailing slash bugs.
30602         * tests/test-lutimens.h (test_lutimens): Enhance test.
30603         * tests/test-utimens.h (test_utimens): Likewise.
30604         * doc/posix-functions/utime.texi (utime): Enhance documentation.
30605         * doc/posix-functions/utimes.texi (utimes): Likewise.
30606         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30607         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
30608         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
30609         * doc/posix-functions/futimens.texi (futimens): Likewise.
30610
30611         fdutimensat: new module
30612         * modules/fdutimensat: New file.
30613         * lib/fdutimensat.c (fdutimensat): Likewise.
30614         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
30615         * MODULES.html.sh (File system functions): Mention module.
30616         * modules/fdutimensat-tests: New test.
30617         * tests/test-fdutimensat.c: Likewise.
30618
30619         doc: regenerate INSTALL
30620         * doc/INSTALL: Reflect recent autoconf update.
30621         * doc/INSTALL.ISO: Likewise.
30622         * doc/INSTALL.UTF-8: Likewise.
30623
30624 2009-10-20  Pádraig Brady  <P@draigBrady.com>
30625
30626         acl: warn if ACL support is not detected
30627         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
30628
30629 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
30630
30631         * lib/nproc.h: Add extern "C" block for C++.
30632
30633 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
30634             Bruno Haible  <bruno@clisp.org>
30635
30636         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
30637         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
30638         * doc/posix-functions/isalpha.texi: Likewise.
30639         * doc/posix-functions/isblank.texi: Likewise.
30640         * doc/posix-functions/iscntrl.texi: Likewise.
30641         * doc/posix-functions/isdigit.texi: Likewise.
30642         * doc/posix-functions/isgraph.texi: Likewise.
30643         * doc/posix-functions/islower.texi: Likewise.
30644         * doc/posix-functions/isprint.texi: Likewise.
30645         * doc/posix-functions/ispunct.texi: Likewise.
30646         * doc/posix-functions/isspace.texi: Likewise.
30647         * doc/posix-functions/isupper.texi: Likewise.
30648         * doc/posix-functions/isxdigit.texi: Likewise.
30649
30650 2009-10-18  Bruno Haible  <bruno@clisp.org>
30651
30652         Tests for module 'isblank'.
30653         * modules/isblank-tests: New file.
30654         * tests/test-isblank.c: New file.
30655
30656         New module 'isblank'.
30657         * lib/isblank.c: New file.
30658         * m4/isblank.m4: New file.
30659         * modules/isblank: New file.
30660         * doc/posix-functions/isblank.texi: Mention the new module.
30661
30662 2009-10-18  Bruno Haible  <bruno@clisp.org>
30663
30664         New module 'ctype'.
30665         * lib/ctype.in.h: New file.
30666         * m4/ctype.m4: New file.
30667         * modules/ctype: New file.
30668         * doc/posix-headers/ctype.texi: Mention the new module.
30669
30670 2009-10-18  Jim Meyering  <meyering@redhat.com>
30671
30672         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
30673         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
30674         right after its initialization, rather than farther down.
30675         Keeping these in close proximity makes it easier to ensure
30676         that each such variable is initialized.  E.g.,
30677
30678             LIB_CLOCK_GETTIME=
30679             AC_SUBST([LIB_CLOCK_GETTIME])
30680
30681         This change also increments these serial numbers.
30682         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
30683         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30684         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30685
30686 2009-10-18  Bruno Haible  <bruno@clisp.org>
30687
30688         Don't let environment variables perturb build.
30689         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
30690         (gl_PREREQ_GETHRXTIME): ... not here.
30691
30692 2009-10-18  Bruno Haible  <bruno@clisp.org>
30693
30694         Avoid symlink attack in localcharset module.
30695         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
30696         (O_NOFOLLOW): Define fallback.
30697         (get_charset_aliases): Don't open the file if it is a symbolic link.
30698         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
30699         gl_FCNTL_H.
30700         (gl_FCNTL_H): Require it.
30701         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
30702         * modules/localcharset (Files): Add m4/fcntl_h.m4.
30703         Reported by Fergal Glynn <fglynn@veracode.com>.
30704
30705 2009-10-18  Bruno Haible  <bruno@clisp.org>
30706
30707         Implement nproc for mingw.
30708         * lib/nproc.c: Include <windows.h>
30709         (num_processors): On native Windows platforms, try GetSystemInfo.
30710
30711 2009-10-18  Bruno Haible  <bruno@clisp.org>
30712
30713         Implement nproc for IRIX.
30714         * lib/nproc.c: Include <sys/sysmp.h>.
30715         (num_processors): On IRIX systems, try sysmp.
30716         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
30717
30718 2009-10-18  Bruno Haible  <bruno@clisp.org>
30719
30720         Implement nproc for HP-UX.
30721         * lib/nproc.c: Include <sys/pstat.h>
30722         (num_processors): On HP-UX systems, try pstat_getdynamic.
30723         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
30724         pstat_getdynamic.
30725
30726 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
30727             Bruno Haible  <bruno@clisp.org>
30728
30729         Implement nproc for NetBSD, OpenBSD.
30730         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
30731         (ARRAY_SIZE): New macro.
30732         (num_processors): On BSD systems, try sysctl of HW_NCPU.
30733         * m4/nproc.m4: New file.
30734         * modules/nproc (Files): Add m4/nproc.m4.
30735         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
30736         (Makefile.am): Instead, augment lib_SOURCES.
30737
30738 2009-10-18  Bruno Haible  <bruno@clisp.org>
30739
30740         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
30741         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
30742         sys/param.h.
30743
30744 2009-10-16  Eric Blake  <ebb9@byu.net>
30745
30746         utimensat: new module
30747         * modules/utimensat: New file.
30748         * lib/utimensat.c (utimensat): Likewise.
30749         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30750         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
30751         so we can work around Linux bugs.
30752         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30753         * modules/sys_stat (Makefile.am): Substitute them.
30754         * lib/sys_stat.in.h (utimensat): Declare it.
30755         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30756         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30757         * modules/utimensat-tests: New test.
30758         * tests/test-utimensat.c: Likewise.
30759
30760         utimens: let lutimens work on non-symlinks
30761         * lib/utimens.c (lutimens): Fall back to utimens rather than
30762         failing with ENOSYS, when file is not a symlink.
30763         (utimens): Reduce redirection.
30764         * tests/test-lutimens.h (test_lutimens): Update test to cover
30765         non-symlinks.
30766         * tests/test-utimens.h (test_utimens): Update test to cover
30767         symlinks.
30768         * tests/test-utimens.c (main): Update caller.
30769
30770         utimens: cache whether utimensat syscall works
30771         * lib/utimens.c (utimensat_works_really): New cache variable.
30772         (fdutimens, lutimens): Use it to avoid failing syscall.
30773
30774         test-stat-time, test-utimens: improve portability
30775         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
30776         ext4 on alpha, and for cygwin.
30777         * tests/test-utimens-common.h: New file.
30778         (nap): Factor delays into single function.
30779         * tests/test-lutimens.h (test_lutimens): Use new header.
30780         * tests/test-futimens.h (test_futimens): Likewise.
30781         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
30782         timestamps to occur from same machine, as was done previously for
30783         test_utimens.
30784         * modules/utimens-tests (Files): Ship new file.
30785         * modules/futimens-tests (Files): Likewise.
30786         Reported in part by Jim Meyering.
30787
30788         sys_stat: sort replacement declarations
30789         * lib/sys_stat.in.h: Sort declarations.
30790         * lib/futimens.c (futimens): Fix typo.
30791
30792 2009-10-15  Jim Meyering  <meyering@redhat.com>
30793
30794         don't let environment settings perturb build
30795         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
30796         could cause a configure-time and/or build-time malfunction.
30797         Typically, a configure-time function-in-library test is performed
30798         via code like this:
30799
30800           LIB_VAR=
30801           AC_SUBST([LIB_VAR])
30802           prefix_saved_LIBS=$LIBS
30803             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
30804                        [test "$ac_cv_search_FUNC" = "none required" ||
30805                         LIB_VAR=$ac_cv_search_FUNC])
30806           LIBS=$prefix_saved_LIBS
30807
30808         However, in each of the files affected by this change, the LIB_VAR=
30809         initialization was omitted.  Thus, when set in the environment, its
30810         value would propagate into generated Makefiles when FUNC is not found
30811         in LIB_NAME.
30812         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
30813         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30814         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30815
30816 2009-10-14  Eric Blake  <ebb9@byu.net>
30817
30818         fchdir: avoid infinite recursion in mingw
30819         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
30820         recursing.
30821
30822         test-stat-time: port to mingw
30823         * tests/test-stat-time.c (force_unlink): Return a value.
30824         (test_ctime) [W32]: Fix compilation error.
30825         (nap): Don't call usleep with too large an argument.  Use
30826         force_unlink.
30827         * doc/pastposix-functions/usleep.texi (usleep): Document the
30828         portability issue.
30829
30830 2009-10-13  Jim Meyering  <meyering@redhat.com>
30831
30832         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
30833         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
30834         * modules/pipe-filter-ii: Likewise.
30835         * modules/sys_socket-tests: Likewise.
30836         * modules/tsearch-tests: Likewise.
30837         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
30838         (check): Depend on it.
30839
30840 2009-10-12  Eric Blake  <ebb9@byu.net>
30841
30842         utimens-tests: port to NFS file systems
30843         * tests/test-utimens.h (test_utimens): Refactor utimecmp
30844         comparisons to avoid spurious failures from timestamp drift
30845         between NFS machines.
30846
30847 2009-10-12  Eric Blake  <ebb9@byu.net>
30848
30849         stat-time-tests: minor cleanups
30850         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
30851         * tests/test-stat-time.c (nap): Separate assignment from call.
30852         Suggested by Paolo Bonzini and Bruno Haible.
30853
30854         sys_stat: guarantee struct timespec
30855         * lib/sys_stat.in.h (includes): Always include <time.h>
30856         * modules/sys_stat (Depends-on): Add time.
30857         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
30858         mode_t permission values.
30859         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
30860         get at subsecond timestamps.
30861
30862 2009-10-10  Eric Blake  <ebb9@byu.net>
30863
30864         futimens: new module
30865         * modules/futimens: New file.
30866         * lib/futimens.c (futimens): Likewise.
30867         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
30868         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
30869         we can work around Linux bugs.
30870         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30871         * modules/sys_stat (Makefile.am): Substitute them.
30872         * lib/sys_stat.in.h (futimens): Declare it.
30873         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30874         * doc/posix-functions/futimens.texi (futimens): Likewise.
30875         * modules/futimens-tests: New test.
30876         * tests/test-futimens.c: Likewise.
30877
30878         utimens: introduce fdutimens
30879         * lib/utimens.h (fdutimens): New prototype.
30880         * lib/utimens.c (gl_futimens): Move guts...
30881         (fdutimens): ...to new interface.
30882         * tests/test-utimens.c (do_fdutimens): Use it.
30883
30884         utimens: add UTIME_NOW and UTIME_OMIT support
30885         * lib/utimens.c (validate_timespec, update_timespec): New helper
30886         functions.
30887         (gl_futimens, lutimens): Use them.
30888         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
30889         stdbool, sys_stat.
30890         (Link): Mention resulting library dependency.
30891         * modules/utimecmp (Link): Likewise.
30892         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
30893         (Makefile.am): Pick up library dependency.
30894         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
30895         definition.
30896         * tests/test-sys_stat.c: Test the definitions.
30897         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
30898         * NEWS: Document library dependency.
30899
30900         utimecmp: support symlink timestamps
30901         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
30902         hashing when possible.  Use pathconf when available.
30903         (SYSCALL_RESOLUTION): Recognize tighter resolution.
30904         * modules/utimecmp (Depends-on): Add lstat.
30905
30906         utimens: add lutimens interface
30907         * lib/utimens.c (lutimens): New function.
30908         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
30909         * lib/utimens.h (lutimens): Declare new interface.
30910         * tests/test-utimens.c (main): Enhance test.
30911         * tests/test-lutimens.h (test_lutimens): New file.
30912         * modules/utimens-tests (Files): Distribute it.
30913         (Depends-on): Add symlink.
30914         (configure.ac): Check for usleep.
30915
30916         utimens: validate futimens usage
30917         * lib/utimens.c (gl_futimens): Require valid fd up front, using
30918         fewer syscalls on failure later on.  Avoid compiler warning on
30919         mingw.
30920         * modules/utimens (Depends-on): Add dup2.
30921
30922         utimens: add test
30923         * modules/utimens-tests: New test.
30924         * tests/test-utimens.h: New file.
30925         * tests/test-futimens.h: Likewise.
30926         * tests/test-utimens.c: Likewise.
30927
30928         doc: mention timestamp portability issues
30929         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
30930         instead.
30931         * doc/posix-functions/utime.texi (utime): Likewise.
30932         * doc/posix-functions/utimes.texi (utimes): Likewise.
30933         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
30934         instead.
30935         * doc/posix-functions/futimens.texi (futimens): Mention utimens
30936         module.
30937         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30938         Mention weakness with symlink timestamps.
30939         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
30940         to utimensat/futimens instead.
30941         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
30942
30943         test-dup2: enhance test
30944         * tests/test-dup2.c (main): Also check AT_FDCWD.
30945
30946         test-stat-time: avoid more spurious failures
30947         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
30948         xfs; and avoid race if the two timestamps cross quantization edge.
30949
30950         relocatable: prefer 'file system' over 'filesystem'
30951         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
30952         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
30953         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
30954         * doc/relocatable.texi (Enabling Relocatability): Likewise.
30955         * lib/relocatable.c (compute_curr_prefix): Likewise.
30956
30957 2009-10-10  Jim Meyering  <meyering@redhat.com>
30958
30959         stat-time-tests: check for the usleep function
30960         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
30961
30962 2009-10-10  Bruno Haible  <bruno@clisp.org>
30963
30964         * modules/xnanosleep: Put the Link section after the Include section.
30965
30966 2009-10-09  Eric Blake  <ebb9@byu.net>
30967
30968         dup2: work around FreeBSD 6.1 bug
30969         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
30970         * doc/posix-functions/dup2.texi (dup2): Document it.
30971         Reported by Nelson H. F. Beebe and Jim Meyering.
30972
30973         test-stat-time: port to buggy NFS clients
30974         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
30975         (test_ctime): Also skip test if mtime and ctime are skewed.
30976
30977         maint: prefer 'file system' over 'filesystem'
30978         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30979         * doc/posix-functions/lstat.texi (lstat): Likewise.
30980         * lib/file-has-acl.c (file_has_acl): Likewise.
30981         * lib/fwriteerror.c [TEST]: Likewise.
30982         * tests/test-areadlink.h (test_areadlink): Likewise.
30983         * tests/test-areadlinkat-with-size.c (main): Likewise.
30984         * tests/test-areadlinkat.c (main): Likewise.
30985         * tests/test-canonicalize-lgpl.c (main): Likewise.
30986         * tests/test-canonicalize.c (main): Likewise.
30987         * tests/test-fstatat.c (main): Likewise.
30988         * tests/test-linkat.c (main): Likewise.
30989         * tests/test-lstat.h (test_lstat_func): Likewise.
30990         * tests/test-mkdir.h (test_mkdir): Likewise.
30991         * tests/test-readlink.h (test_readlink): Likewise.
30992         * tests/test-remove.c (main): Likewise.
30993         * tests/test-rename.h (test_rename): Likewise.
30994         * tests/test-renameat.c (main): Likewise.
30995         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30996         * tests/test-symlink.h (test_symlink): Likewise.
30997         * tests/test-symlinkat.c (main): Likewise.
30998         * tests/test-unlink.h (test_unlink_func): Likewise.
30999         * tests/test-unlinkat.c (main): Likewise.
31000
31001         maint: make realtime library usage explicit
31002         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
31003         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
31004         * modules/settime (Link): Likewise.
31005         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
31006
31007         test-stat-time: speed up execution
31008         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
31009         warning on mingw.
31010         (nap): New helper function.
31011         (prepare_test): Use it to reduce sleep time.
31012         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
31013         execution.
31014         * modules/stat-time-tests (configure.ac): Check for usleep.
31015
31016 2009-10-09  Jim Meyering  <meyering@redhat.com>
31017
31018         selinux-h: always use getfilecon wrappers
31019         * lib/getfilecon.c: New file.
31020         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
31021         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
31022         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
31023         (fgetfilecon): Provide a stub.
31024         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
31025         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
31026         file unconditionally.
31027         When <selinux/selinux.h> is found, arrange to use wrappers.
31028         * modules/selinux-h (Files): Add getfilecon.c.
31029         (Makefile.am): Substitute include-next-related bits
31030         into the now-always-generated selinux/selinux.h file.
31031         * doc/glibc-functions/lgetfilecon.texi: New file.
31032         * doc/glibc-functions/fgetfilecon.texi: New file.
31033         * doc/glibc-functions/getfilecon.texi: New file.
31034         * doc/glibc-functions/getfilecon-desc.texi: New file.
31035         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
31036         which to pull in the new files.
31037         * MODULES.html.sh (Misc): Add selinux-h.
31038
31039 2009-10-08  Jim Meyering  <meyering@redhat.com>
31040
31041         unistd: fix comment typo
31042         * lib/unistd.in.h (euidaccess): Fix a comment typo.
31043
31044 2009-10-08  Eric Blake  <ebb9@byu.net>
31045
31046         areadlink: use SIZE_MAX consistently
31047         * modules/areadlink (Depends-on): Add stdint.
31048         * modules/areadlink-with-size (Depends-on): Likewise.
31049         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
31050         gives NULL; drop sys/types, since unistd gives size_t; and add
31051         stdint for SIZE_MAX.
31052         (SIZE_MAX): Rely on headers.
31053         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
31054         and add stdint.
31055         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
31056         (SIZE_MAX): Likewise.
31057         (INITIAL_BUF_SIZE): Turn into enum.
31058         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
31059
31060 2009-10-08  Jim Meyering  <meyering@redhat.com>
31061
31062         areadlinkat: avoid compilation failure
31063         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
31064         Fix typo in comment.
31065
31066 2009-10-07  Eric Blake  <ebb9@byu.net>
31067
31068         areadlinkat-with-size: new module
31069         * modules/areadlinkat-with-size: New module.
31070         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
31071         * lib/areadlink.h (areadlinkat): Declare it.
31072         * MODULES.html.sh (File system functions): Mention it.
31073         * modules/areadlinkat-with-size-tests: New test.
31074         * tests/test-areadlinkat-with-size.c: New file.
31075
31076         xreadlinkat: new module
31077         * modules/xreadlinkat: New module.
31078         * lib/xreadlinkat.c (xreadlinkat): New file.
31079         * lib/xreadlink.h (xreadlinkat): Declare it.
31080         * MODULES.html.sh (File system functions): Mention it.
31081
31082         areadlinkat: new module
31083         * lib/at-func.c (FUNC_FAIL): New define.
31084         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
31085         * modules/areadlinkat: New module.
31086         * lib/linkat.c (areadlinkat): Move...
31087         * lib/areadlinkat.c (areadlinkat): ...to new file.
31088         * lib/areadlink.h (areadlinkat): Declare it.
31089         * modules/linkat (Depends-on): Add areadlinkat.
31090         * MODULES.html.sh (File system functions): Mention it.
31091         * modules/areadlinkat-tests: New test.
31092         * tests/test-areadlinkat.c: New file.
31093
31094         areadlink, areadlink-with-size: add tests
31095         * modules/areadlink-tests: New test.
31096         * modules/areadlink-with-size-tests: Likewise.
31097         * tests/test-areadlink.h: New file.
31098         * tests/test-areadlink.c: Likewise.
31099         * tests/test-areadlink-with-size.c: Likewise.
31100
31101         maint: minor cleanups
31102         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
31103         _UNUSED_PARAMETER_ instead.
31104         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
31105         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
31106         * modules/linkat-tests (Files): Distribute test-link.h.
31107
31108         openat, utimens: whitespace cleanup
31109         * lib/openat.c: Prefer space throughout, rather than mix of 8
31110         spaces vs. tabs.
31111         * lib/at-func.c: Likewise.
31112         * lib/utimens.c: Likewise.
31113
31114         openat: avoid using wrong fd
31115         * lib/openat.c (openat_permissive): Reject user's fd if saving the
31116         working directory chooses same fd.
31117         * lib/at-func.c (AT_FUNC_NAME): Likewise.
31118
31119         mkdir, mkdirat: fix cygwin 1.5.x bug
31120         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
31121         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
31122         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
31123         bug.
31124         (gl_PREREQ_MKDIR): Delete unused macro.
31125         * modules/mkdir (Files): Track file rename.
31126         (configure.ac): Update macro name.
31127         * modules/openat (Depends-on): Add mkdir.
31128         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
31129
31130         mkdir, mkdirat: add tests
31131         * modules/mkdir-tests: New test.
31132         * tests/test-mkdir.h: New file.
31133         * tests/test-mkdir.c: Likewise.
31134         * tests/test-mkdirat.c: Likewise.
31135         * modules/openat-tests (Files): Add new files.
31136         (Makefile.am): Run new test.
31137
31138 2009-10-06  Eric Blake  <ebb9@byu.net>
31139
31140         doc: tweak *at function documentation
31141         * doc/posix-functions/faccessat.texi (faccessat): Mention
31142         known issue with replacement.
31143         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
31144         * doc/posix-functions/linkat.texi (linkat): Likewise.
31145         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31146         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31147         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31148         * doc/posix-functions/renameat.texi (renameat): Likewise.
31149         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31150
31151         openat: fix GNU/Hurd bug in unlinkat
31152         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
31153         broken.
31154         * doc/posix-functions/unlink.texi (unlink): Document this.
31155         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
31156
31157         fdopendir: fix GNU/Hurd bug
31158         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
31159         allowing non-directory fds.
31160         * lib/fdopendir.c (rpl_fdopendir): Work around it.
31161         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31162         * modules/dirent (Makefile.am): Substitute it.
31163         * lib/dirent.in.h (fdopendir): Declare replacement.
31164         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
31165         * tests/test-fdopendir.c (main): Test something other than
31166         /dev/null, since on Hurd that behaves like a directory.
31167
31168         test-symlink: port to GNU/Hurd
31169         * tests/test-symlink.h (test_symlink): Relax expected errno.
31170
31171         doc: tweak more cygwin information
31172         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
31173         now compatible with glibc.
31174         * doc/posix-functions/getopt.texi (getopt): Likewise.
31175
31176         getopt-gnu: add another test
31177         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
31178         guarantee behavior relied on by m4.
31179         * tests/test-getopt.c (main): Use it.
31180         * modules/getopt-posix-tests (Depends-on): Add setenv.
31181         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
31182
31183         getopt: fix compilation on darwin
31184         * lib/getopt.in.h (includes): Leave breadcrumbs during system
31185         include.
31186         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
31187         Reported by Ludovic Courtès.
31188
31189 2009-10-06  Bruno Haible  <bruno@clisp.org>
31190
31191         * modules/size_max (Description): Discourage its use.
31192         Reported by Simon Josefsson.
31193
31194 2009-10-06  Jim Meyering  <meyering@redhat.com>
31195
31196         linkat: avoid compilation failure
31197         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
31198
31199 2009-10-05  Eric Blake  <ebb9@byu.net>
31200
31201         linkat: support Linux 2.6.17
31202         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
31203         linkat on Linux, but allow cache variable override.
31204         * lib/linkat.c (rpl_linkat): Define override.
31205         * modules/linkat (Depends-on): Add symlinkat.
31206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
31207         * modules/unistd (Makefile.am): Substitute it.
31208         * lib/unistd.in.h (linkat): Declare replacement.
31209         Reported by Pádraig Brady.
31210
31211         quotearg: port test to systems with C.UTF-8 locale
31212         * tests/test-quotearg.c (struct result_strings): Add another
31213         member, differentiating between C.ASCII and C.UTF-8 handling.
31214         (compare_strings): Add parameter.
31215         (main): Adjust all callers.
31216
31217         getopt: avoid clash with FreeBSD _getopt_internal
31218         * lib/getopt.in.h (_getopt_internal): Override the name.
31219         * lib/getopt_int.h (includes): Pick up any overrides.
31220         Reported by Reuben Thomas.
31221
31222         hash: allow C89 compilation
31223         * lib/hash.c (check_tuning): Move declaration before statement.
31224         Reported by Reuben Thomas.
31225
31226 2009-10-05  Karl Berry  <karl@gnu.org>
31227
31228         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
31229
31230 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
31231             Bruno Haible  <bruno@clisp.org>
31232
31233         * lib/uname.c (uname): Use a table-driven algorithm to compute
31234         Windows NT versions.
31235
31236 2009-10-04  Bruno Haible  <bruno@clisp.org>
31237
31238         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
31239         program_invocation_short_name.
31240         * modules/progname (configure.ac): Test for presence of
31241         program_invocation_short_name.
31242         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
31243
31244 2009-10-04  Bruno Haible  <bruno@clisp.org>
31245
31246         * lib/progname.c (set_program_name): Fix comment.
31247         Reported by Jim Meyering.
31248
31249 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31250             Bruno Haible  <bruno@clisp.org>
31251
31252         * lib/uname.c: Include <string.h>.
31253         (uname): Do only one call to GetVersionEx in the common case.
31254
31255 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31256             Bruno Haible  <bruno@clisp.org>
31257
31258         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
31259         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
31260         (uname): Add support for Windows CE and various non-x86 CPU types.
31261
31262 2009-10-03  Bruno Haible  <bruno@clisp.org>
31263
31264         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
31265         invocation to tests/configure.ac.
31266         Reported by Ian Beckwith <ianb@erislabs.net>.
31267
31268 2009-10-02  Eric Blake  <ebb9@byu.net>
31269
31270         fchdir: avoid compiler warning
31271         * lib/fchdir.c (canonicalize_file_name)
31272         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
31273
31274         test-open: support mingw errno values
31275         * tests/test-open.h (test_open): Relax test.
31276         * tests/test-fopen.h (test_fopen): Likewise.
31277         * tests/test-openat-safer.c (main): Likewise.
31278
31279         open: fix opening directory on mingw
31280         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
31281
31282         test-open: on GNU/Hurd, /dev/null is a directory
31283         * tests/test-fopen.h (main): Rename...
31284         (test_fopen): ...to this.  Use a guaranteed non-directory when
31285         confirming open behavior on trailing slash.
31286         * tests/test-openat-safer.c (main): Likewise.
31287         * tests/test-open.h (main): Likewise....
31288         (test_open): ...to this.
31289         * tests/test-fopen.c (main): Adjust caller.
31290         * tests/test-fopen-safer.c (main): Likewise.
31291         * tests/test-open.c (main): Likewise.
31292         * tests/test-fcntl-safer.c (main): Likewise.
31293         Reported by Samuel Thibault.
31294
31295         rename, fchdir: don't ignore chdir failure
31296         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
31297         * lib/rename.c (rpl_rename) [W32]: Likewise.
31298         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
31299         an empty destination directory if source cannot be renamed,
31300         although there is still possibility for failure.
31301         * doc/posix-functions/rename.texi (rename): Document the race.
31302         Reported by Jim Meyering.
31303
31304         maint: cleanup whitespace in recent commits
31305         * lib/rename.c (rpl_rename): Remove tabs.
31306         * tests/test-link.h (test_link): Likewise.
31307         * lib/fchdir.c (get_name): Likewise.
31308         Reported by Jim Meyering.
31309
31310 2009-10-02  Ben Pfaff  <blp@gnu.org>
31311
31312         relocatable-prog-wrapper: Add missing dependency on
31313         double-slash-root.
31314         * modules/relocatable-prog-wrapper: Add dependency.
31315         Reported by Ian Beckwith <ianb@erislabs.net>.
31316
31317 2009-10-02  Eric Blake  <ebb9@byu.net>
31318
31319         renameat: fix Solaris bugs
31320         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
31321         needed fixing.
31322         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
31323         * modules/stdio (Makefile.am): Substitute it.
31324         * lib/stdio.in.h (renameat): Declare replacement.
31325         * lib/renameat.c (rpl_renameat): Implement fix.
31326
31327         renameat: new module
31328         * modules/renameat: New file.
31329         * lib/renameat.c (renameat): Likewise.
31330         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
31331         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31332         * modules/stdio (Makefile.am): Substitute them.
31333         * lib/stdio.in.h (renameat): Declare it.
31334         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31335         * doc/posix-functions/renameat.texi (renameat): Likewise.
31336         * modules/renameat-tests: New test.
31337         * tests/test-renameat.c: Likewise.
31338
31339         rename: fix mingw bugs
31340         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
31341         directory overwrite bugs.
31342
31343         rename: fix another cygwin 1.5 bug
31344         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
31345         checks.
31346         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
31347         unnecessary cygwin workarounds.  Also work around bug with moving
31348         full directory onto an empty one.
31349         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
31350
31351         rename-dest-slash: merge into rename module
31352         * modules/rename-dest-slash (Status): Mark obsolete.
31353         (Depends-on): Add rename.
31354         (Files): Let rename do it all.
31355         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
31356         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
31357         * m4/rename-dest-slash.m4: ...so this file can be deleted.
31358         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
31359         * lib/rename.c (rpl_rename): Update comments.
31360
31361         rename: fix cygwin 1.5.x bugs
31362         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
31363         * lib/rename.c (rpl_rename): Work around them.
31364         * modules/rename (Depends-on): Add same-inode.
31365
31366         rename: fix Solaris 10 bug
31367         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31368         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
31369         was the only bug.
31370
31371         rename: fix Solaris 9 bug
31372         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
31373         on non-directory.  Avoid calling exit.
31374         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
31375         strdup.
31376         * modules/rename-tests (Depends-on): Drop lstat.
31377         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31378         (gl_PREREQ_RENAME): Delete unused macro.
31379
31380         rename-dest-slash: fix NetBSD bug
31381         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
31382         links.
31383         * modules/rename-dest-slash (Depends-on): Add same-inode.
31384
31385         rename-tests: new test, exposes several platform bugs
31386         * modules/rename-tests: New file.
31387         * tests/test-rename.h: Likewise.
31388         * tests/test-rename.c: Likewise.
31389         * doc/posix-functions/rename.texi (rename): Improve documentation,
31390         including bugs that will eventually be fixed in gnulib.
31391
31392 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
31393
31394         * lib/uname.c: Include <stdlib.h>
31395         (uname): Assume version info is available.
31396
31397 2009-10-02  Jim Meyering  <meyering@redhat.com>
31398
31399         gnu-web-doc-update: correct --help output
31400         * build-aux/gnu-web-doc-update: Make --help output relevant.
31401
31402         gnu-web-doc-update: add standard options
31403         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
31404
31405         gnu-web-doc-update: New module.
31406         Use this script to automatically update the on-line web documentation
31407         for your GNU project at http://www.gnu.org/software/$pkg/manual/
31408         * modules/gnu-web-doc-update: New file, from coreutils.
31409         * build-aux/gnu-web-doc-update: New script.
31410
31411 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
31412
31413         link: LoadLibrary is not needed.
31414         * lib/link.c: Use GetModuleHandle.
31415
31416 2009-10-01  Eric Blake  <ebb9@byu.net>
31417
31418         getopt: bump serial number
31419         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
31420         change.
31421
31422         tests: tighten link, rmdir, and remove tests
31423         * tests/test-link.h (includes): No need to use <config.h> here.
31424         Clean up if directory hard link was created, otherwise test for
31425         trailing '.'.
31426         * tests/test-linkat.c (main): Simplify.
31427         * tests/test-remove.c (main): Enhance test for trailing '.'.
31428         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31429
31430 2009-10-01  Jim Meyering  <meyering@redhat.com>
31431
31432         maint.mk: requiring "make major" was annoying, for a "minor" release.
31433         What is intended is "stable", to contrast with alpha and beta,
31434         so require "make stable", not "make major".
31435         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
31436         (get_tool_versions): Likewise.
31437         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
31438
31439 2009-09-30  Ben Pfaff  <blp@gnu.org>
31440
31441         Fix broken build of replacement for Windows tmpfile().
31442         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
31443         flags argument added along with the 'mkostemp' module.
31444
31445 2009-09-28  Bruno Haible  <bruno@clisp.org>
31446
31447         Avoid identifier clash with POSIX function 'remove' defined as a macro.
31448         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
31449         to 'remove_elt'.
31450         (gl_list_remove): Update.
31451         * lib/gl_list.c (gl_list_remove): Update.
31452         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
31453         to 'remove_elt'.
31454         (gl_oset_remove): Update.
31455         * lib/gl_list.c (gl_oset_remove): Update.
31456         Reported by Eric Blake.
31457
31458 2009-09-28  Eric Blake  <ebb9@byu.net>
31459
31460         doc: mention yet more cygwin 1.7 status
31461         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
31462         cygwin.
31463         * doc/glibc-functions/execvpe.texi (execvpe): New file.
31464         * doc/gnulib.texi (Glibc unistd.h): Mention it.
31465
31466         argp: fix test failure
31467         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
31468         that are not upper-case.  Pass correct range to tolower.
31469
31470 2009-09-27  Jim Meyering  <meyering@redhat.com>
31471
31472         test-yesno: work around sparc-dash here-document infelicity
31473         Without this change, the literal \177 byte in a here document
31474         would make dash 0.5.5.1-3 access uninitialized memory.
31475         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
31476         Instead, use a marker, "@", and filter through tr to create the desired
31477         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
31478
31479 2009-09-27  Bruno Haible  <bruno@clisp.org>
31480
31481         Disable untested support for new flavours of ACLs on AIX.
31482         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
31483         progress.
31484         * lib/set-mode-acl.c (qset_acl): Likewise.
31485
31486 2008-12-07  Bruno Haible  <bruno@clisp.org>
31487
31488         Add support for new flavours of ACLs on AIX. (Untested.)
31489         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
31490         (file_has_acl): Add support for newer AIX.
31491         * lib/set-mode-acl.c (qset_acl): Likewise.
31492         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
31493         Rainer Tammer <tammer@tammer.net>.
31494
31495 2009-09-26  Eric Blake  <ebb9@byu.net>
31496
31497         argp: fix compilation of getopt
31498         * lib/getopt.in.h (includes): Use different guard than glibc.
31499         Reported by Sergey Poznyakoff.
31500
31501         doc: mention more cygwin 1.7 status
31502         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
31503         bug.
31504         * doc/posix-functions/execl.texi (execl): Likewise.
31505         * doc/posix-functions/execle.texi (execle): Likewise.
31506         * doc/posix-functions/execlp.texi (execlp): Likewise.
31507         * doc/posix-functions/execv.texi (execv): Likewise.
31508         * doc/posix-functions/execve.texi (execve): Likewise.
31509         * doc/posix-functions/execvp.texi (execvp): Likewise.
31510         * doc/glibc-functions/canonicalize_file_name.texi
31511         (canonicalize_file_name): Cygwin 1.7 now provides this.
31512         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
31513         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
31514         on AT_SYMLINK_NOFOLLOW.
31515
31516 2009-09-24  Eric Blake  <ebb9@byu.net>
31517
31518         test-linkat: make test more robust
31519         * tests/test-linkat.c (main): Avoid collision with EEXIST.
31520
31521         getopt: fix inclusion guards for cygwin
31522         * modules/getopt-posix (Depends-on): Add include-next.
31523         (Makefile.am): Substitute more items in replacement header.
31524         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
31525         <getopt.h>.
31526         * lib/getopt.in.h (includes): Use split inclusion guard, and
31527         prefer <getopt.h> over include <unistd.h> when one is present.
31528         (option): Also override name of 'struct option'.
31529
31530         same-inode: revert prior change; it is not yet ready
31531         * NEWS: Undo mention of this change.
31532         * lib/same-inode.h (same-inode.h): Undo tri-state change.
31533         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31534         * lib/cycle-check.c (cycle_check): Likewise.
31535         * lib/same.c (same_name): Likewise.
31536         * lib/at-func2.c (at_func2): Likewise.
31537
31538 2009-09-23  Eric Blake  <ebb9@byu.net>
31539
31540         linkat: new module
31541         * modules/linkat: New file.
31542         * lib/at-func2.c (at_func2): Likewise.
31543         * lib/linkat.c (linkat): Likewise.
31544         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
31545         * lib/openat-priv.h (at_func2): Add declaration.
31546         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31547         * modules/unistd (Makefile.am): Substitute them.
31548         * lib/unistd.in.h (linkat): Declare it.
31549         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31550         * doc/posix-functions/linkat.texi (linkat): Likewise.
31551         * doc/posix-functions/link.texi (link): Tweak wording.
31552         * tests/test-link.c (main): Move guts...
31553         * tests/test-link.h (test_link): ...into new file.
31554         * modules/linkat-tests: New test.
31555         * tests/test-linkat.c: Likewise.
31556         * modules/link-tests (Files): Ship new file.
31557         (Depends-on): Add stdbool.
31558
31559         dirname: add library-safe mdir_name
31560         * lib/dirname.h (mdir_name): New prototype.
31561         * lib/dirname.c (dir_name): Move guts...
31562         (mdir_name): ...to new function that avoids xalloc_die.
31563
31564         fchdir: another mingw fix
31565         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
31566         * lib/fchdir.c (get_name): New helper method; skips canonicalize
31567         on mingw (where it has not yet been ported), and make it optional
31568         elsewhere.
31569         (_gl_register_fd): Use it.
31570
31571         same-inode: make SAME_INODE tri-state, to port to mingw
31572         * NEWS: Mention this change.
31573         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
31574         st_ino always being 0.
31575         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31576         * lib/cycle-check.c (cycle_check): Likewise.
31577         * lib/same.c (same_name): Likewise.
31578
31579         lstat: avoid mingw compilation error
31580         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
31581         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
31582         lstat ourselves.
31583         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
31584         was adequate.
31585         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
31586         the checks for lstat.
31587         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
31588
31589         link: fix test failure on Solaris 9
31590         * lib/link.c (rpl_link): Don't assume link will catch bogus
31591         trailing slash on source.
31592
31593         test-symlinkat: enhance test
31594         * tests/test-readlink.c (main): Move guts...
31595         * tests/test-readlink.h (test_readlink): ...into new file.
31596         * tests/test-symlink.c (main): Move guts...
31597         * tests/test-symlink.h (test_symlink): ...into new file.
31598         * tests/test-symlinkat.c (main): Use new files for further
31599         coverage.
31600         (do_symlink, do_readlink): New helper functions.
31601         * modules/symlink-tests (Files): Ship new file.
31602         (Depends-on): Add stdbool.
31603         * modules/readlink-tests (Files): Ship new file.
31604         (Depends-on): Add stdbool.
31605         * modules/symlinkat-tests (Files): Use new files.
31606
31607 2009-09-23  Eric Blake  <ebb9@byu.net>
31608
31609         readlink: document portability issue with symlink length
31610         * doc/posix-functions/lstat.texi (lstat): Mention that some file
31611         systems have bogus st_size on symlinks, and mention the
31612         areadlink-with-size module.
31613         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31614         * doc/posix-functions/readlink.texi (readlink): Mention the
31615         areadlink module, and ERANGE failure.
31616         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31617         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
31618
31619         readlink: fix Solaris 9 bug with trailing slash
31620         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
31621         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
31622         * doc/posix-functions/readlink.texi (readlink): Document this.
31623         * modules/readlink-tests: New test.
31624         * tests/test-readlink.c: Likewise.
31625
31626         readlink: fix cygwin 1.5.x bug with return type
31627         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
31628         * lib/unistd.in.h (readlink): Use ssize_t.
31629         * lib/readlink.c (readlink): Likewise.
31630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31631         * modules/unistd (Makefile.am): Substitute it.
31632         * lib/unistd.in.h (readlink): Declare replacement.
31633         * doc/posix-functions/readlink.texi (readlink): Document this.
31634
31635         symlink: use throughout gnulib
31636         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
31637         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
31638         symlink is not used.
31639         * modules/symlinkat (Depends-on): Add symlink.
31640         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31641         * modules/canonicalize-tests (Depends-on): Likewise.
31642         * modules/lstat-tests (Depends-on): Likewise.
31643         * modules/openat-tests (Depends-on): Likewise.
31644         * modules/remove-tests (Depends-on): Likewise.
31645         * modules/rmdir-tests (Depends-on): Likewise.
31646         * modules/unlink-tests (Depends-on): Likewise.
31647         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
31648         * tests/test-canonicalize.c (symlink): Likewise.
31649         * tests/test-fstatat.c (symlink): Likewise.
31650         * tests/test-lstat.c (symlink): Likewise.
31651         * tests/test-remove.c (symlink): Likewise.
31652         * tests/test-rmdir.c (symlink): Likewise.
31653         * tests/test-unlink.c (symlink): Likewise.
31654         * tests/test-unlinkat.c (symlink): Likewise.
31655
31656         symlink: new module, for Solaris 9 bug
31657         * modules/symlink: New file.
31658         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
31659         * lib/symlink.c: Likewise.
31660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31661         * modules/unistd (Makefile.am): Substitute them.
31662         * lib/unistd.in.h (symlink): Declare replacement.
31663         * MODULES.html.sh (File system functions): Mention it.
31664         * doc/posix-functions/symlink.texi (symlink): Likewise.
31665         * modules/symlink-tests: New test.
31666         * tests/test-symlink.c: Likewise.
31667
31668 2009-09-23  Bruno Haible  <bruno@clisp.org>
31669
31670         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
31671         when needed.
31672         Test case: gnulib-tool --import --with-tests atexit inttypes.
31673         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
31674
31675 2009-09-23  Bruno Haible  <bruno@clisp.org>
31676
31677         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
31678         subcommand, not in a subshell.
31679
31680 2009-09-22  Eric Blake  <ebb9@byu.net>
31681
31682         unistd: sort replacement declarations
31683         * lib/unistd.in.h: Sort declarations.
31684
31685         open, openat: minor optimization
31686         * lib/open.c (open): If open succeeded, len is non-zero.
31687         * lib/openat.c (rpl_openat): Likewise.
31688
31689         link-follow: ensure correct result
31690         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
31691         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
31692         distinguish between possible failures.
31693
31694 2009-09-21  Eric Blake  <ebb9@byu.net>
31695
31696         fts: avoid compiler warning
31697         * lib/fts.c (dirent_inode_sort_may_be_useful)
31698         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
31699
31700 2009-09-19  Bruno Haible  <bruno@clisp.org>
31701
31702         * lib/progreloc.c (canonicalize_file_name): New declaration.
31703
31704 2009-09-19  Eric Blake  <ebb9@byu.net>
31705
31706         link: fix quoting
31707         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
31708
31709         openat: fix openat bugs on Solaris 9
31710         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
31711         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
31712         * modules/openat (Depends-on): Add open.
31713         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
31714         * modules/fcntl-h (Makefile.am): Substitute it.
31715         * lib/fcntl.in.h (openat): Declare replacement.
31716         * doc/posix-functions/openat.texi (openat): Document this.
31717
31718         openat: move fstatat and unlinkat into correct files
31719         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
31720         compiled.
31721         * lib/openat.c (fstatat, unlinkat): Move...
31722         * lib/fstatat.c (fstatat): ...into correct files.
31723         * lib/unlinkat.c (unlinkat): Likewise.
31724
31725         openat: fix unlinkat bugs on Solaris 9
31726         * lib/unlinkat.c (unlinkat): New file.
31727         * modules/openat (Depends-on): Add unlink.
31728         (Files): Distribute it.
31729         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
31730         trailing slash behavior is broken.
31731         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31732         * modules/unistd (Makefile.am): Substitute it.
31733         * lib/unistd.in.h (unlinkat): Declare replacement.
31734         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
31735
31736         openat: fix fstatat bugs on Solaris 9
31737         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
31738         stat.
31739         * doc/posix-functions/fstatat.texi (fstatat): Document this.
31740
31741         test-unlinkat: enhance test, to expose Solaris 9 bug
31742         * tests/test-unlink.c (main): Factor guts...
31743         * tests/test-unlink.h (test_rmdir_func): ...into new file.
31744         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
31745         * tests/test-rmdir.c (main): Adjust caller.
31746         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
31747         (unlinker): New helper function.
31748         (rmdirat): Enhance check.
31749         * modules/rmdir-tests (Depends-on): Add stdbool.
31750         * modules/unlink-tests (Depends-on): Likewise.
31751         (Files): Add test-unlink.h.
31752         * modules/openat-tests (Files): Likewise.
31753         (Depends-on): Add unlinkdir.
31754
31755         test-fstatat: new test, to expose Solaris 9 bugs
31756         * tests/test-stat.c (main): Factor guts...
31757         * tests/test-stat.h (test_stat_func): ...into new file.
31758         * tests/test-lstat.c (main): Factor guts...
31759         * tests/test-lstat.h (test_lstat_func): ...into new file.
31760         * tests/test-fstatat.c: New file.
31761         * modules/stat-tests (Files): Add test-stat.h.
31762         * modules/lstat-tests (Files): Add test-lstat.h.
31763         (Depends-on): Add stdbool.
31764         * modules/openat-tests (Depends-on): Add pathmax.
31765         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
31766         (Makefile.am): Run new test.
31767
31768         remove: new module, for mingw and Solaris 9 bugs
31769         * modules/remove: New file.
31770         * lib/remove.c: Likewise.
31771         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
31772         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31773         * modules/stdio (Makefile.am): Use them.
31774         * lib/stdio.in.h (remove): Declare replacement.
31775         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31776         * doc/posix-functions/remove.texi (remove): Likewise.
31777         * modules/remove-tests: New test.
31778         * tests/test-remove.c: Likewise.
31779
31780         unlink: new module, for Solaris 9 bug
31781         * modules/unlink: New file.
31782         * lib/unlink.c: Likewise.
31783         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
31784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31785         * modules/unistd (Makefile.am): Use them.
31786         * lib/unistd.in.h (stat): Declare replacement.
31787         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31788         * doc/posix-functions/unlink.texi (unlink): Likewise.
31789         * modules/unlink-tests: New test.
31790         * tests/test-unlink.c: Likewise.
31791
31792         lstat: fix Solaris 9 bug
31793         * lib/lstat.c (lstat): Also check for trailing slash on
31794         non-symlink, non-directories.  Use stat module to simplify logic.
31795         * doc/posix-functions/lstat.texi (lstat): Document it.
31796         * modules/lstat-tests (Depends-on): Add errno, same-inode.
31797         (configure.ac): Check for symlink.
31798         * tests/test-lstat.c (main): Add more tests.
31799
31800         stat: add as dependency to other modules
31801         * modules/chown (Depends-on): Add stat.
31802         * modules/euidaccess (Depends-on): Likewise.
31803         * modules/fchdir (Depends-on): Likewise.
31804         * modules/isdir (Depends-on): Likewise.
31805         * modules/link (Depends-on): Likewise.
31806         * modules/lstat (Depends-on): Likewise.
31807         * modules/mkdir-p (Depends-on): Likewise.
31808         * modules/modechange (Depends-on): Likewise.
31809         * modules/open (Depends-on): Likewise.
31810         * modules/readlink (Depends-on): Likewise.
31811         * modules/same (Depends-on): Likewise.
31812
31813         stat: fix Solaris 9 bug
31814         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
31815         slash.
31816         * lib/stat.c (rpl_stat): Work around it.
31817         * doc/posix-functions/stat.texi (stat): Update documentation.
31818
31819         stat: new module, for mingw bug
31820         * modules/stat: New file.
31821         * lib/stat.c: Likewise.
31822         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31823         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31824         * modules/sys_stat (Makefile.am): Use them.
31825         * lib/sys_stat.in.h (stat): Declare replacement.
31826         * lib/openat.c (fstatat): Deal with lstat and stat being function
31827         macros.
31828         * modules/openat (Depends-on): Add inline.
31829         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31830         * doc/posix-functions/stat.texi (stat): Likewise.
31831         * modules/stat-tests: New test.
31832         * tests/test-stat.c: Likewise.
31833
31834 2009-09-19  Jim Meyering  <meyering@redhat.com>
31835
31836         syntax-check: detect unnecessary inclusion of canonicalize.h
31837         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
31838
31839 2009-09-19  Eric Blake  <ebb9@byu.net>
31840
31841         canonicalize-lgpl: adjust clients to use correct header
31842         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31843         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
31844         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
31845         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
31846         * lib/progreloc.c (includes): Likewise.
31847
31848 2009-09-19  Jim Meyering  <meyering@redhat.com>
31849
31850         test-posixtm.c: correct a comment
31851         * tests/test-posixtm.c: Correct first-line comment.
31852         Spotted by Eric Blake.
31853
31854 2009-09-16  Jim Meyering  <meyering@redhat.com>
31855
31856         posixtm-tests: make T const-correct; add a test case
31857         * tests/test-posixtm.c (T): Declare const.
31858         Add a test for -(2^31+1).
31859         Remove useless can-succeed-only-in-2002 test.
31860
31861         posixtm-tests: adjust the sole failing test
31862         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
31863         expected output matches what mktime now produces.  Cross-checked via
31864         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
31865
31866         posixtm: move #ifdef'd tests into a new module
31867         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
31868         * tests/test-posixtm.c: ... this new file.
31869         * modules/posixtm-tests: New module.
31870
31871 2009-09-19  Eric Blake  <ebb9@byu.net>
31872
31873         openat: simplify use of at-func.c
31874         * lib/at-func.c (includes): Include prerequisites here, to
31875         simplify requirements on client files.
31876         * lib/openat-priv.h: Add double-inclusion guard.
31877         * lib/faccessat.c (includes): Simplify.
31878         * lib/fchmodat.c (includes): Likewise.
31879         * lib/fchownat.c (includes): Likewise.
31880         * lib/mkdirat.c (includes): Likewise.
31881         * lib/mkfifoat.c (includes): Likewise.
31882         * lib/symlinkat.c (includes): Likewise.
31883
31884         openat: allow return of fd 0
31885         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
31886         * modules/save-cwd (Depends-on): Replace fcntl-safer with
31887         unistd-safer.
31888         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
31889         <fcntl.h>; this module does not leak fds.
31890         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
31891         must be allowed to return 0, leaving openat_safer to add the
31892         safety.
31893         (openat_permissive): Avoid writing to just-opened fd 2 if
31894         restoring the current directory fails.
31895         * lib/openat-die.c (openat_restore_fail): Add comment.
31896         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
31897         (save_cwd): Guarantee safe fd, but without use of open_safer.
31898         * tests/test-openat.c: New test.
31899         * modules/openat-tests (Files, Makefile.am): Distribute and build
31900         new file.
31901
31902         relocatable-prog-wrapper: fix build
31903         * modules/relocatable-prog-wrapper (Files): Update name of
31904         canonicalize m4 file, broken on 2009-09-17.
31905         Reported by emad hajjar <aleppos@hotmail.com>.
31906
31907 2009-09-19  Bruno Haible  <bruno@clisp.org>
31908
31909         * lib/safe-alloc.h: Use the standard header with GPL copyright.
31910         * lib/safe-alloc.c: Likewise.
31911         Reported by Ian Beckwith <ianb@erislabs.net>.
31912
31913 2009-09-18  Bruno Haible  <bruno@clisp.org>
31914
31915         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
31916         Reported by <erobles@sensacd.com.mx>.
31917
31918 2009-09-17  Eric Blake  <ebb9@byu.net>
31919
31920         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
31921         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
31922         slashes when checking if last component is missing.
31923         * tests/test-canonicalize.c (main): Test this.
31924
31925         canonicalize, canonicalize-lgpl: honor // if distinct from /
31926         * modules/canonicalize (Files): Add double-slash-root.m4.
31927         * modules/canonicalize-lgpl (Files): Likewise.
31928         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31929         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
31930         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
31931         fallback definition.
31932         (canonicalize_filename_mode): Use it to protect //.
31933         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
31934         (__realpath): Likewise.
31935         * tests/test-canonicalize.c (main): Test this.
31936         * tests/test-canonicalize-lgpl.c (main): Likewise.
31937         * modules/canonicalize-tests (Depends-on): Add same-inode.
31938         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31939
31940         canonicalize-lgpl: fix glibc bug with trailing slash
31941         * m4/canonicalize-lgpl.m4: Move contents...
31942         * m4/canonicalize.m4: ...here.
31943         (gl_CANONICALIZE_LGPL): Factor realpath check...
31944         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
31945         glibc 2.3.5 bug, fixed 2005-04-27.
31946         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
31947         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
31948         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
31949         * modules/canonicalize-lgpl (Files): Manage file rename.
31950         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31951         * modules/stdlib (Makefile.am): Substitute witness.
31952         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
31953         is needed.
31954         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
31955         replacement is required.
31956         * lib/canonicalize.c (canonicalize_file_name): Likewise.
31957         * doc/glibc-functions/canonicalize_file_name.texi
31958         (canonicalize_file_name): Document this.
31959         * doc/posix-functions/realpath.texi (realpath): Likewise.
31960
31961         canonicalize-lgpl: reject non-directory with trailing slash
31962         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
31963         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
31964         catches failures in glibc 2.3.5.
31965         * tests/test-canonicalize.c (main): Likewise.
31966
31967         canonicalize-lgpl: use native realpath if it works
31968         * lib/canonicalize-lgpl.c (realpath): Guard with
31969         FUNC_REALPATH_WORKS.
31970         * lib/stdlib.in.h (realpath): Make declaration optional based on
31971         HAVE_REALPATH.
31972         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
31973         native realpath works.
31974         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31975         * modules/stdlib (Makefile.am): Substitute witness.
31976
31977         canonicalize, canonicalize-lgpl: use <stdlib.h>
31978         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
31979         (Include): Mention <stdlib.h>.
31980         (configure.ac): Mention functions we provide.
31981         * modules/canonicalize (configure.ac): Likewise.
31982         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
31983         realpath if canonicalize_file_name is missing.
31984         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
31985         * modules/stdlib (Makefile.am): Substitute witnesses.
31986         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
31987         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
31988         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
31989         * NEWS: Document this.
31990         * doc/glibc-functions/canonicalize_file_name.texi
31991         (canonicalize_file_name): Likewise.
31992         * doc/posix-functions/realpath.texi (realpath): Likewise.
31993         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
31994
31995         test-canonicalize: consolidate into single C program
31996         * tests/test-canonicalize.sh: Delete; move setup into...
31997         * tests/test-canonicalize.c (main): ...the program, making it
31998         easier to run in debugger.  Add some tests.
31999         * modules/canonicalize-tests (Files): Remove unused file.
32000         (Depends-on): Add progname.
32001         (configure.ac, Makefile.am): Simplify.
32002
32003         test-canonicalize-lgpl: consolidate into single C program
32004         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
32005         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
32006         easier to run in debugger.  Add some tests.
32007         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
32008         (configure.ac, Makefile.am): Simplify.
32009
32010         canonicalize: avoid resolvepath
32011         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
32012         unnecessary checks.
32013         * lib/canonicalize.c (includes): Simplify.
32014         (canonicalize_file_name): Drop resolvepath implementation.
32015         * modules/canonicalize (Depends-on): Drop filenamecat.
32016
32017         canonicalize: don't lose errno
32018         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
32019         over calls to free.
32020
32021         canonicalize: simplify errno handling
32022         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
32023         assignment.
32024
32025         canonicalize, canonicalize-lgpl: update module dependencies
32026         * modules/canonicalize (Depends-on): Add extensions, lstat,
32027         pathmax, stdlib.
32028         (Files): Drop pathmax.h.
32029         (configure.ac): Adjust macro name.
32030         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
32031         lstat, stdlib, sys_stat.
32032         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
32033         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
32034         extensions.
32035         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
32036         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
32037         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
32038         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
32039         declaration, if available.
32040         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
32041         we can rely on the readlink module.
32042         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
32043         (includes): Use <unistd.h> unconditionally.
32044
32045 2009-09-17  Eric Blake  <ebb9@byu.net>
32046
32047         maint: make Include sections of modules consistent
32048         * modules/alloca: Use only header name; no need to list #include.
32049         * modules/alloca-opt: Likewise.
32050         * modules/arpa_inet: Likewise.
32051         * modules/canon-host: Likewise.
32052         * modules/configmake: Likewise.
32053         * modules/dirent: Likewise.
32054         * modules/eealloc: Likewise.
32055         * modules/environ: Likewise.
32056         * modules/fchdir: Likewise.
32057         * modules/fcntl: Likewise.
32058         * modules/fcntl-h: Likewise.
32059         * modules/gethrxtime: Likewise.
32060         * modules/gettime: Likewise.
32061         * modules/ignore-value: Likewise.
32062         * modules/inet_ntop: Likewise.
32063         * modules/inet_pton: Likewise.
32064         * modules/inttypes: Likewise.
32065         * modules/isnand-nolibm: Likewise.
32066         * modules/isnanf-nolibm: Likewise.
32067         * modules/mbchar: Likewise.
32068         * modules/mbfile: Likewise.
32069         * modules/mbiter: Likewise.
32070         * modules/mbuiter: Likewise.
32071         * modules/netdb: Likewise.
32072         * modules/netinet_in: Likewise.
32073         * modules/nproc: Likewise.
32074         * modules/pagealign_alloc: Likewise.
32075         * modules/poll: Likewise.
32076         * modules/printf-frexp: Likewise.
32077         * modules/pthread: Likewise.
32078         * modules/putenv: Likewise.
32079         * modules/random_r: Likewise.
32080         * modules/relocatable-prog: Likewise.
32081         * modules/search: Likewise.
32082         * modules/select: Likewise.
32083         * modules/selinux-h: Likewise.
32084         * modules/settime: Likewise.
32085         * modules/signal: Likewise.
32086         * modules/size_max: Likewise.
32087         * modules/socklen: Likewise.
32088         * modules/ssize_t: Likewise.
32089         * modules/stdarg: Likewise.
32090         * modules/stdbool: Likewise.
32091         * modules/stddef: Likewise.
32092         * modules/stdint: Likewise.
32093         * modules/stdio: Likewise.
32094         * modules/stdlib: Likewise.
32095         * modules/string: Likewise.
32096         * modules/strings: Likewise.
32097         * modules/sys_file: Likewise.
32098         * modules/sys_ioctl: Likewise.
32099         * modules/sys_select: Likewise.
32100         * modules/sys_socket: Likewise.
32101         * modules/sys_stat: Likewise.
32102         * modules/sys_time: Likewise.
32103         * modules/sys_times: Likewise.
32104         * modules/sys_utsname: Likewise.
32105         * modules/sys_wait: Likewise.
32106         * modules/sysexits: Likewise.
32107         * modules/time: Likewise.
32108         * modules/times: Likewise.
32109         * modules/tmpfile: Likewise.
32110         * modules/trim: Likewise.
32111         * modules/unistd: Likewise.
32112         * modules/wchar: Likewise.
32113         * modules/wctype: Likewise.
32114
32115 2009-09-17  Bruno Haible  <bruno@clisp.org>
32116
32117         Make getdate.y compile on QNX and NetBSD 5 / i386.
32118         * m4/getdate.m4 (gl_GETDATE): Conditionally define
32119         TIME_T_FITS_IN_LONG_INT.
32120         * lib/getdate.y (long_time_t): New type.
32121         (relative_time): Change type of 'seconds' field to long_time_t.
32122         (get_date): Update types of local variables. Check against overflow
32123         during conversion from long_time_t to time_t.
32124         Reported by Matt Kraai <kraai@ftbfs.org>
32125         and Hasso Tepper <hasso@netbsd.org>.
32126
32127 2009-09-17  Bruno Haible  <bruno@clisp.org>
32128
32129         * modules/COPYING: Update copyright years.
32130         * modules/README: Likeiwse.
32131         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
32132         Reported by Ian Beckwith <ianb@erislabs.net>.
32133
32134 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
32135
32136         * users.txt: Update references for gnuit package.
32137
32138 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
32139
32140         * m4/getdelim.m4: Fix typo in copyright line.
32141
32142 2009-09-17  Bruno Haible  <bruno@clisp.org>
32143
32144         * lib/atoll.c: Use the standard header with GPL copyright.
32145         * lib/argz.in.h: Likewise.
32146         * lib/glob.c: Likewise.
32147         * lib/glob-libc.h: Likewise.
32148         * lib/random_r.c: Likewise.
32149         * lib/siglist.h: Likewise.
32150         * lib/strsignal.c: Likewise.
32151         Reported by Ian Beckwith <ianb@erislabs.net>.
32152
32153 2009-09-17  Eric Blake  <ebb9@byu.net>
32154
32155         rmdir: ensure correct dependency order
32156         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
32157
32158 2009-09-17  Bruno Haible  <bruno@clisp.org>
32159
32160         Disable assertion that fails on NetBSD 5 / i386.
32161         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
32162         Reported by Sam Steingold <sds@gnu.org>
32163         and Hasso Tepper <hasso@netbsd.org>.
32164
32165 2009-09-16  Eric Blake  <ebb9@byu.net>
32166
32167         unlinkdir: port to mingw
32168         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
32169         on which no one can unlink a directory.
32170
32171         stdlib: sort witness names
32172         * modules/stdlib (Makefile.am): Sort replacements.
32173         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
32174         * lib/stdlib.in.h: Likewise.
32175
32176         parse-duration-tests: avoid link failure
32177         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
32178         LIBINTL.
32179         Reported by Tom G. Christensen.
32180
32181         openat-tests: ensure unlinkat behaves like rmdir
32182         * tests/test-rmdir.c (main): Factor guts...
32183         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
32184         * modules/rmdir-tests (Files): Ship new file.
32185         * modules/openat-tests: New test.
32186         * tests/test-unlinkat.c: Likewise.
32187
32188         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
32189         * modules/rmdir-errno (Status, Notice): Now obsolete.
32190
32191         rmdir: work around cygwin 1.5.x and mingw bugs
32192         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
32193         * lib/rmdir.c (rmdir): Work around it.
32194         * modules/rmdir (Status, Notice): No longer obsolete.
32195         (Files): Add dos.m4.
32196         (Depends-on): Add unistd.
32197         (configure.ac): Set witnesses.
32198         (License): Relax to LGPLv2+.
32199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
32200         * modules/unistd (Makefile.am): Substitute witnesses.
32201         * lib/unistd.in.h (rmdir): Declare replacement.
32202         * doc/posix-functions/rmdir.texi (rmdir): Document this.
32203         * modules/rmdir-tests: New tests.
32204         * tests/test-rmdir.c: Likewise.
32205
32206 2009-09-15  Eric Blake  <ebb9@byu.net>
32207
32208         fchdir: improve use of replacement functions
32209         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
32210         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
32211         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
32212         REPLACE_CLOSEDIR.
32213         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
32214         * modules/sys_stat (Makefile.am): Substitute correct witness.
32215         * modules/dirent (Makefile.am): Likewise.
32216         * modules/unistd (Makefile.am): Likewise.
32217         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
32218         * lib/unistd.in.h (dup): Likewise.
32219         * lib/sys_stat.in.h (fstat): Likewise.
32220
32221         maint: ignore gnulib-tool temp files
32222         * .gitignore: Ignore files created during gnulib-tool --test.
32223
32224 2009-09-13  Jim Meyering  <meyering@redhat.com>
32225
32226         posixtm: don't reject a time that specify "60" as the number of seconds
32227         * lib/posixtm.c (posixtime): The code to reject invalid dates
32228         would also reject a time specified with the .60 suffix.
32229         But POSIX allows that, in order to accommodate leap seconds.
32230         So don't reject it.
32231         (main): Adjust tests accordingly.
32232         * modules/posixtm (Depends-on): Add stpcpy.
32233
32234 2009-09-11  Jim Meyering  <meyering@redhat.com>
32235
32236         announce-gen: include [$release_type] in emitted Subject:
32237         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
32238         e.g., [stable] in the emitted Subject: line.
32239
32240 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32241
32242         Remove obsolete macros from several modules.
32243         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
32244         obsolete Autoconf macros with their modern counterparts.
32245         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
32246         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
32247         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
32248         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
32249         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
32250         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32251         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
32252         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32253         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
32254         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
32255         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
32256         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
32257         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
32258         * m4/sockets.m4 (gl_SOCKETS): Likewise.
32259         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
32260         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
32261         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32262         * m4/time_r.m4 (gl_TIME_R): Likewise.
32263         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
32264         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
32265         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32266
32267         Fix copyright header in build-aux scripts.
32268         * build-aux/git-version-gen: Fix copyright header to match GPLv3
32269         recommendation.
32270         * build-aux/ncftpput-ftp: Likewise.
32271         * build-aux/update-copyright: Likewise.
32272
32273 2009-09-09  Eric Blake  <ebb9@byu.net>
32274
32275         test-link: allow Linux choice of errno
32276         * tests/test-link.c (main): Relax test for alternate error.
32277
32278         strndup: fix improper m4 caching
32279         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
32280         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
32281         (gl_PREREQ_STRNDUP): Delete.
32282         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
32283         * modules/string (Makefile.am): Substitute it.
32284         * lib/string.in.h (strndup): Modernize prototype.
32285
32286         getcwd: port to mingw
32287         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
32288         different from the POSIX assumptions made throughout the getcwd
32289         module; fortunately, the mingw getcwd does not need replacement.
32290         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
32291         * modules/getcwd-tests: New test.
32292         * tests/test-getcwd.c: Likewise.
32293
32294         link: fix platform bugs
32295         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
32296         * lib/link.c (link): Work around them.  Fix related mingw bug.
32297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
32298         * modules/unistd (Makefile.am): Substitute it.
32299         * lib/unistd.in.h (link): Declare replacement.
32300         * doc/posix-functions/link.texi (link): Document this.
32301         * modules/link (Depends-on): Add strdup-posix, sys_stat.
32302
32303         test-link: consolidate into single C program, test more cases
32304         * tests/test-link.sh: Delete.
32305         * tests/test-link.c: Test more error conditions.  Exposes bugs on
32306         at least Cygwin and Solaris.
32307         * modules/link-tests (Files): Remove unused file.
32308         (Depends-on): Add errno, sys_stat.
32309         (Makefile.am): Simplify.
32310
32311 2009-09-08  Bruno Haible  <bruno@clisp.org>
32312
32313         Work around towlower, towupper bug on mingw.
32314         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
32315         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
32316         * doc/posix-functions/towlower.texi: Mention the mingw bug.
32317         * doc/posix-functions/towupper.texi: Likewise.
32318         Reported by Eric Blake.
32319
32320 2009-09-08  Jim Meyering  <meyering@redhat.com>
32321
32322         build: don't try to run autoheader if we don't use it
32323         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
32324         is not used in configure.ac.
32325
32326 2009-09-08  Eric Blake  <ebb9@byu.net>
32327
32328         euidaccess: fix compilation error
32329         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
32330
32331         rawmemchr: relax license
32332         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
32333         okay.
32334         Reported by Jim Meyering.
32335
32336         mkfifoat: new module
32337         * modules/mkfifoat: New file.
32338         * lib/mkfifoat.c: Likewise.
32339         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
32340         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32341         * modules/sys_stat (Makefile.am): Use them.
32342         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
32343         * MODULES.html.sh (File system functions): Mention module.
32344         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
32345         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
32346         * modules/mkfifoat-tests: New test.
32347         * tests/test-mkfifoat.c: Likewise.
32348
32349         strchrnul: relax license
32350         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
32351         okay.
32352         Reported by Jim Meyering.
32353
32354 2009-09-08  Eric Blake  <ebb9@byu.net>
32355
32356         fstatat: fix compilation on Solaris
32357         * lib/fstatat.c (includes): Add fcntl.h.
32358         Reported by Pádraig Brady.
32359
32360 2009-09-07  Eric Blake  <ebb9@byu.net>
32361
32362         rename: modernize replacement
32363         * modules/rename (Depends-on): Add stdio.
32364         (configure.ac): Declare witness.
32365         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
32366         stdio take care of replacement.
32367         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32368         * modules/stdio (Makefile.am): Substitute them.
32369         * lib/stdio.in.h (rename): Declare replacement.
32370         * lib/rename.c (includes): Allow cross-compilation to non-windows
32371         machines.
32372         * doc/posix-functions/rename.texi (rename): Improve
32373         documentation.
32374
32375         stdio: sort witness names
32376         * modules/stdio (Makefile.am): Sort replacements.
32377         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32378         * lib/stdio.in.h: Likewise.
32379
32380         getcwd: minor cleanups
32381         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
32382         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
32383
32384         openat: provide more convenience names
32385         * modules/faccessat (configure.ac): Add C witness.
32386         * lib/unistd.in.h (readlinkat): Fix typo.
32387         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
32388         convenience wrappers.
32389         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
32390         wrappers in syntax checks.
32391
32392 2009-09-06  Eric Blake  <ebb9@byu.net>
32393
32394         doc: fix comments in recent patches
32395         * lib/faccessat.c: Mention correct function.
32396         * lib/fchmodat.c: Likewise.
32397         * lib/fchownat.c: Likewise.
32398         * lib/symlinkat.c: Likewise.
32399         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
32400         constants.
32401
32402         faccessat, symlinkat: continue cleanup of previous patch
32403         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
32404         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32405         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
32406         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
32407         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
32408         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
32409         set.
32410
32411 2009-09-06  Bruno Haible  <bruno@clisp.org>
32412
32413         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
32414         (fstatat): Declare if GNULIB_FSTATAT is set.
32415         (mkdirat): Declare if GNULIB_MKDIRAT is set.
32416         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
32417         (unlinkat): Declare if GNULIB_UNLINKAT is set.
32418         * modules/fcntl-h (Files): Remove m4/openat.m4.
32419         * modules/sys_stat (Files): Remove m4/openat.m4.
32420         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
32421         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
32422         * modules/unistd (Files): Remove m4/openat.m4.
32423         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
32424         GNULIB_OPENAT.
32425         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
32426         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
32427         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
32428         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
32429         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
32430         gl_OPENAT_DEFAULTS.
32431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
32432         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
32433         Don't require gl_OPENAT_DEFAULTS.
32434         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
32435         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
32436         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
32437         (gl_OPENAT_DEFAULTS): Remove macro.
32438
32439 2009-09-06  Bruno Haible  <bruno@clisp.org>
32440
32441         * modules/openat (configure.ac): Remove unneeded witness.
32442
32443 2009-09-06  Bruno Haible  <bruno@clisp.org>
32444
32445         Set errno to ENOSYS when a function is entirely unsupported.
32446         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
32447         EOPNOTSUPP.
32448         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32449         * modules/chown (Depends-on): Remove errno.
32450
32451 2009-09-06  Bruno Haible  <bruno@clisp.org>
32452
32453         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
32454
32455 2009-09-06  Bruno Haible  <bruno@clisp.org>
32456
32457         * lib/sys_stat.in.h: Fix preprocessor command indentation.
32458
32459 2009-09-06  Ben Pfaff  <blp@gnu.org>
32460             Bruno Haible  <bruno@clisp.org>
32461
32462         Work around a glibc bug in strtok_r.
32463         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
32464         Undefine if UNDEFINE_STRTOK_R is set.
32465         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
32466         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32467         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
32468         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
32469         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
32470         UNDEFINE_STRTOK_R.
32471         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
32472
32473 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32474
32475         exclude: minor fix
32476         * lib/exclude.c: Include wctype.h
32477
32478 2009-09-06  Akim Demaille  <demaille@gostai.com>
32479
32480         bootstrap: improve error message
32481         * build-aux/bootstrap (find_tool): Upon failure, report the list
32482         of candidates.
32483         Honor the initial value of the envvar.
32484
32485 2009-09-05  Eric Blake  <ebb9@byu.net>
32486
32487         symlinkat: new module
32488         * modules/symlinkat: New file.
32489         * lib/symlinkat.c: Likewise.
32490         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
32491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32492         * modules/unistd (Makefile.am): Use them.
32493         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
32494         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
32495         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
32496         * MODULES.html.sh (File system functions): Mention module.
32497         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32498         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32499         * modules/symlinkat-tests: New test.
32500         * tests/test-symlinkat.c: Likewise.
32501
32502         test-openat-safer: add more checks
32503         * tests/test-openat-safer.c (main): Check more code paths.
32504
32505 2009-09-05  Jim Meyering  <meyering@redhat.com>
32506
32507         syntax-check: detect unnecessary inclusion of openat.h
32508         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
32509
32510 2009-09-05  Bruno Haible  <bruno@clisp.org>
32511
32512         Support towlower, towupper.
32513         * doc/posix-functions/towlower.texi: Mention module wctype.
32514         * doc/posix-functions/towupper.texi: Likewise.
32515         * lib/wctype.in.h (towlower, towupper): New functions.
32516         * tests/test-wctype.c: Include stdio.h, stdlib.h.
32517         (ASSERT): New macro.
32518         (e): New variable.
32519         (main): Test also towlower, towupper. Test WEOF argument.
32520         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32521
32522 2009-09-05  Bruno Haible  <bruno@clisp.org>
32523
32524         Fix conversion behaviour when the input is invalid.
32525         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
32526         mark occurring in first pass of indirect conversion.
32527         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
32528         input.
32529         Found by clang's static analyzer.
32530
32531 2009-09-05  Bruno Haible  <bruno@clisp.org>
32532
32533         * tests/test-striconveh.c (main): Test indirect conversion on platforms
32534         where direct conversion is possible.
32535
32536 2009-09-04  Eric Blake  <ebb9@byu.net>
32537
32538         openat: fail with ENOENT on empty name
32539         * lib/openat-proc.c (openat_proc_name): Special-case the empty
32540         buffer.
32541
32542         link-follow: fix logic bug in prior patch
32543         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
32544         reversed sense of yes and no in prior patch.  Avoid confusing
32545         compilation failure with desired semantics.
32546
32547         link-follow: accomodate mingw and cross-compilation
32548         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
32549         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
32550         cross-compilation results to -1, to make linkat easier to
32551         implement when cross-compiling.  Trivially support mingw.
32552         * modules/link-follow (configure.ac): Call new name.
32553         * NEWS: Mention this.
32554
32555 2009-09-03  Eric Blake  <ebb9@byu.net>
32556
32557         faccessat: compile replacement
32558         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
32559         needed.
32560
32561         fts: fix compilation error
32562         * lib/fts.c (includes): Re-add "openat.h", for
32563         openat_needs_fchdir.
32564
32565         faccessat: new module
32566         * modules/faccessat: New file.
32567         * lib/faccessat.c: Likewise.
32568         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32569         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32570         * modules/unistd (Makefile.am): Use it.
32571         * lib/unistd.in.h (faccessat): Declare it.
32572         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
32573         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
32574         * MODULES.html.sh (File system functions): Mention it.
32575         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
32576         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32577
32578         euidaccess: prefer POSIX over non-standard implementation
32579         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
32580         * lib/euidaccess.c (euidaccess): Use it if available.
32581
32582         openat: make template easier to use
32583         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
32584         AT_FUNC_F2 to be undefined.
32585         (VALIDATE_FLAG): New macro; use it to reject bad flags.
32586         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
32587         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
32588         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
32589         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
32590         Likewise.
32591         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
32592         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
32593         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
32594         Likewise.
32595
32596         openat: declare in POSIX headers
32597         * NEWS: Mention this.
32598         * modules/openat (configure.ac): Declare witnesses.
32599         (Depends-on): Add fcntl-h, sys_stat, unistd.
32600         (Include): Mention correct headers.
32601         * modules/fcntl-h (Depends-on): Add link-warning.
32602         (Files): Add openat.m4.
32603         (Makefile.am): Substitute witnesses.
32604         * modules/sys_stat (Files, Makefile.am): Likewise.
32605         * modules/unistd (Files, Makefile.am): Likewise.
32606         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
32607         (gl_OPENAT_DEFAULTS): New macro.
32608         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
32609         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
32610         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
32611         (SYS_STAT_H): Remove unused variable.
32612         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
32613         * lib/fcntl--.h (includes): Remove unneeded header.
32614         * lib/openat-safer.c (includes): Likewise.
32615         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
32616         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
32617         appropriate headers.
32618         (__OPENAT_PREFIX): Delete.
32619         * lib/fcntl.in.h (openat): Provide declaration.
32620         (AT_FDCWD): Fix Solaris bug.
32621         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
32622         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
32623         * lib/fchmodat.c (includes):  Adjust to find declaration.
32624         * lib/fchownat.c (includes): Likewise.
32625         * lib/mkdirat.c (includes): Likewise.
32626         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
32627         still visible.
32628
32629 2009-09-02  Eric Blake  <ebb9@byu.net>
32630
32631         errno: use consistently
32632         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
32633         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
32634         * lib/canonicalize.c (ELOOP): Likewise.
32635         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
32636         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
32637         * lib/lchown.c (EOPNOTSUPP): Likewise.
32638         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
32639         * lib/savewd.c (ESTALE): Likewise.
32640         * lib/settime.c (ENOSYS): Likewise.
32641         * lib/utimens.c (ENOSYS): Likewise.
32642         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
32643         * lib/chdir-safer.c (ELOOP): Likewise.
32644         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
32645         * modules/c-stack (Depends-on): Add errno.
32646         * modules/canonicalize (Depends-on): Likewise.
32647         * modules/chdir-safer (Depends-on): Likewise.
32648         * modules/fdopendir (Depends-on): Likewise.
32649         * modules/inet_ntop (Depends-on): Likewise.
32650         * modules/inet_pton (Depends-on): Likewise.
32651         * modules/lchown (Depends-on): Likewise.
32652         * modules/openat (Depends-on): Likewise.
32653         * modules/savewd (Depends-on): Likewise.
32654         * modules/settime (Depends-on): Likewise.
32655         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
32656
32657         fts: avoid leaking fds
32658         * modules/fts (Depends-on): Add cloexec.
32659         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
32660         flag.
32661
32662         fts: make directory fds more robust
32663         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
32664         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
32665
32666         backupfile, chdir-long, fts, savedir: make safer
32667         * lib/backupfile.c (includes): Use "dirent--.h", since
32668         numbered_backup can write to stderr during readdir.
32669         * lib/savedir.c (includes): Likewise.
32670         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
32671         emulation can write to stderr on failure.
32672         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
32673         * lib/getcwd.c: Document why opendir_safer is unused.
32674         * lib/glob.c: Likewise.
32675         * lib/scandir.c: Likewise.
32676         * lib/openat-proc.c: Likewise, for open_safer.
32677         * modules/backupfile (Depends-on): Add dirent-safer.
32678         * modules/savedir (Depends-on): Likewise.
32679         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
32680         * modules/chdir-long (Depends-on): Add openat-safer.
32681
32682         openat-safer: new module
32683         * modules/openat-safer: New file.
32684         * lib/openat-safer.c: Likewise.
32685         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
32686         * lib/fcntl-safer.h (openat_safer): Declare.
32687         * lib/fcntl--.h (openat): Override.
32688         * MODULES.html.sh (File descriptor based I/O): Mention it.
32689         * lib/openat.h: Add double-inclusion guards.
32690         * lib/openat.c (includes): Only include "fcntl-safer.h", not
32691         "fcntl--.h", so we can implement openat.
32692         * modules/openat-safer-tests: New test.
32693         * tests/test-openat-safer.c: New file.
32694
32695         dirent-safer: new module
32696         * modules/dirent-safer: New file.
32697         * lib/dirent--.h: Likewise.
32698         * lib/dirent-safer.h: Likewise.
32699         * lib/opendir-safer.c: Likewise.
32700         * m4/dirent-safer.m4: Likewise.
32701         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
32702         * modules/dirent-safer-tests: New test.
32703         * tests/test-dirent-safer.c: New file.
32704         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
32705
32706         fdopendir: optimize on mingw
32707         * lib/unistd.in.h (_gl_directory_name): New prototype.
32708         * lib/fchdir.c (_gl_directory_name): Implement it.
32709         (fchdir): Use it to simplify implementation.
32710         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
32711         fchdir, when available, to avoid calling [f]chdir().
32712
32713         fdopendir: split into its own module
32714         * lib/openat.c (fdopendir): Move...
32715         * lib/fdopendir.c: ...into new file.
32716         * modules/fdopendir: New module.
32717         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
32718         * modules/openat (Depends-on): Add fdopendir.
32719         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
32720         fdopendir here.
32721         * modules/savedir (Depends-on): Only need fdopendir, not full
32722         openat.
32723         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
32724         * lib/openat.h (fdopendir): Drop prototype.
32725         * lib/dirent.in.h (fdopendir): Provide prototype.
32726         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
32727         * modules/dirent (Makefile.am): Substitute them.
32728         * MODULES.html.sh (File system functions): Mention it.
32729         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
32730         * modules/fdopendir-tests: New file.
32731         * tests/test-fdopendir.c: Likewise.
32732
32733         fchdir: use more consistent macro convention
32734         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
32735         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
32736         REPLACE_FCHDIR, rather than relying on config.h macros.
32737         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
32738         inside a single make-time REPLACE_FCHDIR block, rather than using
32739         the config.h FCHDIR_REPLACEMENT.
32740         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
32741         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
32742         Manage fstat replacement.
32743         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
32744         REPLACE_FCHDIR.
32745         * modules/sys_stat (Files): Add m4/unistd_h.m4.
32746         (Makefile.am): Substitute REPLACE_FCHDIR.
32747         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
32748         FCHDIR_REPLACEMENT.
32749         * lib/dup-safer.c (dup_safer): Likewise.
32750         * lib/dup2.c (rpl_dup2): Likewise.
32751         * lib/dup3.c (rpl_dup3): Likewise.
32752         * lib/open.c (rpl_open): Likewise.
32753
32754         fchdir: simplify error handling, and support dup3
32755         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
32756         stdbool, malloc-posix, realloc-posix.
32757         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
32758         (ensure_dirs_slot): Return false on allocation failure.
32759         (rpl_dup2): Delete.
32760         (_gl_register_dup): New function.
32761         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
32762         (_gl_register_fd): Close fd on allocation failure.
32763         * lib/fcntl.in.h (_gl_register_fd): Update signature.
32764         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
32765         prototype.
32766         (rpl_dup2_fchdir): Delete prototype.
32767         * lib/open.c (open): Update caller.
32768         * lib/dup2.c (dup2): Track fchdir metadata.
32769         * lib/dup3.c (dup3): Likewise.
32770         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
32771         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
32772
32773 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32774
32775         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
32776         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
32777         don't pass arguments to AC_OUTPUT.
32778
32779 2009-09-02  Bruno Haible  <bruno@clisp.org>
32780
32781         * modules/mkdtemp (License): Relicense under LGPLv2+.
32782         Reported by Paolo Bonzini.
32783
32784 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32785
32786         Replace uses of obsolete autoconf macros in Jim's modules.
32787         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
32788         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
32789         can evoke a warning from autoconf when run with -Wobsolete
32790         enabled.  They were declared obsolete for good reasons (see
32791         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
32792         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
32793         should not continue using the deprecated macros.
32794         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
32795         obsolete Autoconf macros with modern counterparts.
32796         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
32797         * m4/dos.m4 (gl_AC_DOS): Likewise.
32798         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
32799         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
32800         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
32801         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
32802         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
32803         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
32804         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
32805         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
32806         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
32807         Likewise.
32808         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
32809         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
32810         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
32811         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
32812         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
32813         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
32814
32815 2009-09-01  Eric Blake  <ebb9@byu.net>
32816
32817         fchdir: fix off-by-one bug in previous patch
32818         * lib/fchdir.c (rpl_fstat): Use correct bounds.
32819         (_gl_unregister_fd): Delete useless if.
32820
32821 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
32822
32823         maint.mk: sort the list of syntax-check rules
32824         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
32825         easier to get a sense of progress when the rules are run sequentially
32826         and take a long time.
32827
32828 2009-09-01  Simon Josefsson  <simon@josefsson.org>
32829
32830         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
32831         * modules/netinet_in: Likewise.
32832         * modules/sys_file: Likewise.
32833         * modules/sys_ioctl: Likewise.
32834         * modules/sys_select: Likewise.
32835         * modules/sys_socket: Likewise.
32836         * modules/sys_stat: Likewise.
32837         * modules/sys_time: Likewise.
32838         * modules/sys_times: Likewise.
32839         * modules/sys_utsname: Likewise.
32840         * modules/sys_wait: Likewise.
32841
32842 2009-09-01  Jim Meyering  <meyering@redhat.com>
32843
32844         fts: help ensure that return values are not ignored
32845         * lib/fts_.h (__GNUC_PREREQ): Define.
32846         (__attribute_warn_unused_result__): Define.
32847         (fts_children, fts_close, fts_open, fts_read): Declare with
32848         __attribute_warn_unused_result__.
32849
32850         fts: fts_close now fails also when closing a dir file descriptor fails
32851         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
32852         and propagate to caller, along with errno.
32853
32854         announce-gen: correct formatting in --help output
32855         * build-aux/announce-gen (usage): Move the one-line description in
32856         --help output "up", to where it belongs, just after Usage:.
32857
32858 2009-08-31  Eric Blake  <ebb9@byu.net>
32859
32860         fchdir: port to mingw
32861         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
32862         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
32863         opened, then use a substitute.
32864         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
32865         replacement.
32866         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
32867         (_gl_register_fd): No need to check stat if open already filters
32868         all directories.
32869         (fchdir): Fix error condition to match POSIX.
32870         * modules/fchdir (Depends-on): Add sys_stat.
32871         * doc/posix-functions/open.texi (open): Document the limitation.
32872         * modules/fchdir-tests: New file.
32873         * tests/test-fchdir.c: Likewise.
32874
32875         canonicalize: allow cross-testing from cygwin to mingw
32876         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
32877         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
32878         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
32879         Likewise.
32880         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
32881         target does not support symlinks.
32882         * tests/test-canonicalize-lgpl.sh: Likewise.
32883
32884         chown: avoid compilation warning on mingw
32885         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
32886         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
32887         mingw.
32888         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32889         * modules/chown (Depends-on): Add errno.
32890
32891 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
32892
32893         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
32894         command.
32895
32896 2009-08-31  Jim Meyering  <meyering@redhat.com>
32897
32898         canonicalize: remove useless initialization
32899         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
32900         initialization of local, "end".
32901
32902 2009-08-30  Bruno Haible  <bruno@clisp.org>
32903
32904         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
32905         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
32906         ENOSYS.
32907
32908 2009-08-30  Bruno Haible  <bruno@clisp.org>
32909
32910         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
32911         /usr/xpg4/bin/tr when it exists.
32912         * tests/test-pipe-filter-gi1.sh: Likewise.
32913
32914 2009-08-30  Bruno Haible  <bruno@clisp.org>
32915
32916         Work around deficient /usr/bin/id program on Solaris.
32917         * tests/test-file-has-acl.sh (ID): New variable.
32918         * tests/test-set-mode-acl.sh (ID): Likewise.
32919         * tests/test-copy-acl.sh (ID): Likewise.
32920         * tests/test-copy-file.sh (ID): Likewise.
32921
32922 2009-08-30  Bruno Haible  <bruno@clisp.org>
32923
32924         New module 'xstriconveh'.
32925         * lib/xstriconveh.h: New file.
32926         * lib/xstriconveh.c: New file.
32927         * modules/xstriconveh: New file.
32928
32929 2009-08-30  Bruno Haible  <bruno@clisp.org>
32930
32931         Make it easier to use mem_cd_iconveh.
32932         * lib/striconveh.h (iconveh_t): New type.
32933         (iconveh_open, iconveh_close): New declarations.
32934         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32935         with a single 'const iconveh_t *' argument.
32936         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
32937         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32938         with a single 'const iconveh_t *' argument.
32939         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
32940         * tests/test-striconveh.c (main): Update.
32941         * NEWS: Mention the change.
32942
32943 2009-08-30  Bruno Haible  <bruno@clisp.org>
32944
32945         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
32946         problem.
32947
32948 2009-08-30  Bruno Haible  <bruno@clisp.org>
32949
32950         Work around iconv_open problem on Solaris.
32951         * lib/iconv_open-solaris.gperf: New file.
32952         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
32953         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
32954         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
32955         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
32956         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
32957         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
32958
32959 2009-08-29  Jim Meyering  <meyering@redhat.com>
32960
32961         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
32962         * top/maint.mk (cvs-check): Remove target; it was just an alias
32963         to the better-named vc-diff-check.
32964         (maintainer-distcheck): Remove rule.  It was used only from
32965         the (alpha/beta/major) target, and all of its commands but one
32966         were coreutils-specific.
32967         (vc-dist): Remove rule.
32968         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
32969         Run vc-diff-check, not vc-dist.
32970         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
32971
32972 2009-08-27  Bruno Haible  <bruno@clisp.org>
32973
32974         * tests/test-bitrotate.c (main): Remove test that uses a shift count
32975         of 0.
32976
32977 2009-08-27  Bruno Haible  <bruno@clisp.org>
32978
32979         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
32980         compilers.
32981         * doc/func.texi: Document the SunPRO C bug.
32982
32983 2009-08-27  Bruno Haible  <bruno@clisp.org>
32984
32985         Fix link error on Solaris.
32986         * tests/test-parse-duration.c (xstrdup): Remove function.
32987
32988 2009-08-26  Pádraig Brady  <P@draigbrady.com>
32989
32990         ignore-value: handle pointer types, too
32991         * lib/ignore-value.h (__attribute__): Remove definition.
32992         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
32993         of a more concise and more-often effective "(void) i" statement.
32994         (ignore_ptr): New function to suppress warnings from functions that
32995         return pointers, and to make it explicit that one function doesn't
32996         handle all cases.
32997
32998 2009-08-25  Bruno Haible  <bruno@clisp.org>
32999
33000         dup2: work around a Linux bug.
33001         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
33002         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
33003         * doc/posix-functions/dup2.texi: Mention the Linux bug.
33004         Reported by Simon Josefsson.
33005
33006 2009-08-25  Jim Meyering  <meyering@redhat.com>
33007
33008         libguestfs uses gnulib
33009         * users.txt: Add libguestfs.
33010
33011 2009-08-24  Eric Blake  <ebb9@byu.net>
33012
33013         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
33014         * lib/pipe2.c (includes): Add binary-io.h.
33015         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
33016
33017 2009-08-24  Bruno Haible  <bruno@clisp.org>
33018
33019         Tolerate declared but missing accept4 syscall.
33020         * lib/accept4.c (accept4): Invoke original accept4 function first, if
33021         available.
33022         * lib/sys_socket.in.h (accept4): If the function is already present,
33023         override it.
33024         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
33025         * modules/accept4 (Makefile.am): Compile accept4.c always.
33026         Reported by Paolo Bonzini and Eric Blake.
33027
33028 2009-08-23  Bruno Haible  <bruno@clisp.org>
33029
33030         New module 'accept4'.
33031         * lib/sys_socket.in.h (accept4): New declaration.
33032         * lib/accept4.c: New file.
33033         * m4/accept4.m4: New file.
33034         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
33035         GNULIB_ACCEPT4, HAVE_ACCEPT4.
33036         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
33037         HAVE_ACCEPT4.
33038         * modules/accept4: New file.
33039         * doc/glibc-functions/accept4.texi: Mention the new module.
33040
33041 2009-08-24  Jim Meyering  <meyering@redhat.com>
33042
33043         progname: also set global program_invocation_name, when possible
33044         Before this change, a libtool-enabled program that calls glibc's
33045         error function would report the program name as
33046         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
33047         * modules/progname (configure.ac): Check for a declaration of
33048         program_invocation_name.
33049         * lib/progname.c:  Include <errno.h>.
33050         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
33051         Set program_invocation_name.
33052
33053 2009-08-23  Bruno Haible  <bruno@clisp.org>
33054
33055         * lib/dup3.c: Include <string.h>.
33056
33057 2009-08-23  Bruno Haible  <bruno@clisp.org>
33058
33059         * lib/dup3.c (dup3): Test only once whether the system actually exists.
33060         * lib/pipe2.c (pipe2): Likewise.
33061         Suggested by Eric Blake.
33062
33063 2009-08-23  Bruno Haible  <bruno@clisp.org>
33064
33065         Tolerate declared but missing dup3 syscall.
33066         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
33067         * lib/unistd.in.h (dup3): If the function is already present,
33068         override it.
33069         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
33070         * modules/dup3 (Makefile.am): Compile dup3.c always.
33071         Reported by Paolo Bonzini.
33072
33073 2009-08-23  Bruno Haible  <bruno@clisp.org>
33074
33075         Tolerate declared but missing pipe2 syscall.
33076         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
33077         available.
33078         * lib/unistd.in.h (pipe2): If the function is already present,
33079         override it.
33080         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
33081         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
33082         Reported by Paolo Bonzini.
33083
33084 2009-08-23  Bruno Haible  <bruno@clisp.org>
33085
33086         * lib/pipe2.c (pipe2): Move #ifs inside function.
33087
33088 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33089
33090         quotearg: document limitations of quote_these_too
33091         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
33092         those limitations are created.
33093         * lib/quotearg.h (set_char_quoting): Document that digits and
33094         letters that are special after backslash are not permitted.
33095         (quotearg_char): Cross-reference set_char_quoting documentation.
33096
33097 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
33098
33099         quotearg: implement custom_quoting_style
33100         * lib/quotearg.c: (struct quoting_options): Add left_quote and
33101         right_quote fields.
33102         (set_custom_quoting): New public function.
33103         (quotearg_buffer_restyled): Add left_quote and right_quote
33104         arguments, handle them very much like locale quoting, and update
33105         all uses.
33106         (quotearg_n_custom): New public function.
33107         (quotearg_n_custom_mem): New public function.
33108         (quotearg_custom): New public function.
33109         (quotearg_custom_mem): New public function.
33110         * lib/quotearg.h: Prototype and document new public functions.
33111         (enum quoting_style): For escape_quoting_style and
33112         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
33113         ignored even though they're otherwise like c_quoting_style.
33114         Add custom_quoting_style member and document with comparison to
33115         clocale_quoting_style.
33116         * tests/test-quotearg.c (custom_quotes): New array.
33117         (custom_results): New array.
33118         (main): Extend to test custom quoting.
33119
33120 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33121
33122         quotearg: fix right quote escaping when it's in quote_these_too
33123         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
33124         quote, be sure to prepend only one backslash.
33125         * tests/test-quotearg.c (use_quote_double_quotes): New function.
33126         (main): Test it.
33127
33128 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33129
33130         quotearg-tests: test escaping of embedded locale quotes
33131         * tests/test-quotearg.c (struct result_strings): Add member for
33132         new input.
33133         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
33134         (inputs): Add new input.
33135         (results_g): Add expected results.
33136         (flag_results): Likewise.
33137         (locale_results): Likewise.
33138         (compare_strings): Check those.
33139
33140 2009-08-23  Bruno Haible  <bruno@clisp.org>
33141
33142         Tests for module 'dup3'.
33143         * modules/dup3-tests: New file.
33144         * tests/test-dup3.c: New file.
33145
33146         New module 'dup3'.
33147         * lib/unistd.in.h (dup3): New declaration.
33148         * lib/dup3.c: New file.
33149         * m4/dup3.m4: New file.
33150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
33151         HAVE_DUP3.
33152         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
33153         * modules/dup3: New file.
33154         * doc/glibc-functions/dup3.texi: Mention the new module.
33155
33156 2009-08-23  Bruno Haible  <bruno@clisp.org>
33157
33158         Tweak the dup2 test.
33159         * tests/test-dup2.c (main): Create the test file empty. Verify that an
33160         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
33161         the test file is still empty. Fix argument order of lseek.
33162
33163 2009-08-23  Bruno Haible  <bruno@clisp.org>
33164
33165         Avoid test link errors when the modules getopt-gnu, gettext are used.
33166         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
33167         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33168
33169 2009-08-23  Bruno Haible  <bruno@clisp.org>
33170
33171         Fix getdtablesize() on mingw.
33172         * lib/getdtablesize.c (getdtablesize): Implement differently.
33173         * lib/unistd.in.h (getdtablesize): Improve comment.
33174
33175 2009-08-23  Bruno Haible  <bruno@clisp.org>
33176
33177         New module 'mkostemp'.
33178         Based on Ulrich Drepper's 2007-08-10 change in glibc.
33179         * lib/stdlib.in.h (mksotemp): New declaration.
33180         * lib/mkostemp.c: New file, from glibc with modifications.
33181         * lib/tempname.h (GT_FILE): Remove outdated comment.
33182         (gen_tempname): Add flags argument.
33183         * lib/tempname.c (__GT_BIGFILE): Remove macro.
33184         (__GT_FILE): Map to 1.
33185         (small_open, large_open): Remove macros.
33186         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
33187         * lib/mkstemp.c (mkstemp): Update.
33188         * lib/mkdtemp.c (mkdtemp): Likewise.
33189         * m4/mkostemp.m4: New file.
33190         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
33191         HAVE_MKOSTEMP.
33192         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
33193         HAVE_MKOSTEMP.
33194         * modules/mkostemp: New file, based on modules/mkstemp.
33195         * doc/glibc-functions/mkostemp.texi: Mention the new module.
33196         * NEWS: Mention the change.
33197
33198 2009-08-23  Bruno Haible  <bruno@clisp.org>
33199
33200         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
33201         Reported by Eric Blake.
33202
33203 2009-08-23  Bruno Haible  <bruno@clisp.org>
33204
33205         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
33206         Reported by Eric Blake.
33207
33208 2009-08-23  Bruno Haible  <bruno@clisp.org>
33209
33210         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
33211         * modules/pipe2 (Depends-on): Likewise.
33212
33213 2009-08-23  Eric Blake  <ebb9@byu.net>
33214
33215         fcntl-h: add O_TTY_INIT support
33216         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
33217         * tests/test-fcntl-h.c (o): Test it.
33218         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33219
33220         fcntl-h: rename from fcntl, in preparation for fcntl(2)
33221         * modules/fcntl: Move <fcntl.h> header replacement...
33222         * modules/fcntl-h: ...to new name, so as not to collide with
33223         like-named function.
33224         * tests/test-fcntl.c: Rename...
33225         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
33226         * modules/fcntl-tests: Rename...
33227         * modules/fcntl-h-tests: ...to this.  Update test file name.
33228         * modules/chdir-long (Depends-on): Update clients.
33229         * modules/chdir-safer (Depends-on): Likewise.
33230         * modules/fcntl-safer (Depends-on): Likewise.
33231         * modules/fts (Depends-on): Likewise.
33232         * modules/mkancesdirs (Depends-on): Likewise.
33233         * modules/mkdir-p (Depends-on): Likewise.
33234         * modules/open (Depends-on): Likewise.
33235         * modules/savewd (Depends-on): Likewise.
33236         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
33237         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33238
33239 2009-08-22  Bruno Haible  <bruno@clisp.org>
33240
33241         * modules/binary-io (License): Relicense under LGPL.
33242         * modules/pipe2 (License): Likewise.
33243
33244 2009-08-22  Bruno Haible  <bruno@clisp.org>
33245
33246         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
33247         return value.
33248         * lib/pipe-filter-gi.c (filter_init): Likewise.
33249         Reported by Eric Blake.
33250
33251 2009-08-22  Bruno Haible  <bruno@clisp.org>
33252
33253         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
33254         * modules/pipe (Depends-on): Add pipe2.
33255
33256 2009-08-22  Bruno Haible  <bruno@clisp.org>
33257
33258         Tests for module 'pipe2'.
33259         * modules/pipe2-tests: New file.
33260         * tests/test-pipe2.c: New file.
33261
33262         New module 'pipe2'.
33263         * lib/unistd.in.h (pipe2): New declaration.
33264         * lib/pipe2.c: New file.
33265         * m4/pipe2.m4: New file.
33266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
33267         HAVE_PIPE2.
33268         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
33269         * modules/pipe2: New file.
33270         * doc/glibc-functions/pipe2.texi: Mention the new module.
33271
33272 2009-08-22  Bruno Haible  <bruno@clisp.org>
33273
33274         Reference some new glibc functions.
33275         * doc/glibc-functions/accept4.texi: New file.
33276         * doc/glibc-functions/dup3.texi: New file.
33277         * doc/glibc-functions/mkostemp.texi: New file.
33278         * doc/glibc-functions/pipe2.texi: New file.
33279         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
33280         (Glibc sys/socket.h): Refer to accept4.
33281         (Glibc unistd.h): Refer to dup3, pipe2.
33282         Reported by Eric Blake.
33283
33284 2009-08-22  Jim Meyering  <meyering@redhat.com>
33285             Bruno Haible  <bruno@clisp.org>
33286
33287         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
33288         This makes it so packages using automake-1.11's silent-rules option
33289         can print e.g., a single "GEN    configmake.h" line, rather than
33290         the 30+ statements that perform the job.  If you want to see the
33291         actual commands, you can still run "make V=1".
33292         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
33293         so that make output is abbreviated when those variables are defined
33294         appropriately.
33295         * modules/argz: Likewise.
33296         * modules/arpa_inet: Likewise.
33297         * modules/byteswap: Likewise.
33298         * modules/configmake: Likewise.
33299         * modules/dirent: Likewise.
33300         * modules/errno: Likewise.
33301         * modules/fcntl: Likewise.
33302         * modules/float: Likewise.
33303         * modules/fnmatch: Likewise.
33304         * modules/getopt-posix: Likewise.
33305         * modules/glob: Likewise.
33306         * modules/iconv_open: Likewise.
33307         * modules/inttypes: Likewise.
33308         * modules/localcharset: Likewise.
33309         * modules/locale: Likewise.
33310         * modules/math: Likewise.
33311         * modules/netdb: Likewise.
33312         * modules/netinet_in: Likewise.
33313         * modules/poll: Likewise.
33314         * modules/posix_spawnp-tests: Likewise.
33315         * modules/sched: Likewise.
33316         * modules/search: Likewise.
33317         * modules/selinux-h: Likewise.
33318         * modules/signal: Likewise.
33319         * modules/spawn: Likewise.
33320         * modules/stdarg: Likewise.
33321         * modules/stdbool: Likewise.
33322         * modules/stddef: Likewise.
33323         * modules/stdint: Likewise.
33324         * modules/stdio: Likewise.
33325         * modules/stdlib: Likewise.
33326         * modules/string: Likewise.
33327         * modules/strings: Likewise.
33328         * modules/sys_file: Likewise.
33329         * modules/sys_ioctl: Likewise.
33330         * modules/sys_select: Likewise.
33331         * modules/sys_socket: Likewise.
33332         * modules/sys_stat: Likewise.
33333         * modules/sys_time: Likewise.
33334         * modules/sys_times: Likewise.
33335         * modules/sys_utsname: Likewise.
33336         * modules/sys_wait: Likewise.
33337         * modules/sysexits: Likewise.
33338         * modules/time: Likewise.
33339         * modules/unistd: Likewise.
33340         * modules/wchar: Likewise.
33341         * modules/wctype: Likewise.
33342
33343 2009-08-22  Jim Meyering  <meyering@redhat.com>
33344
33345         announce-gen: detect write failure
33346         * build-aux/announce-gen: Add Coda at end.
33347         Remove equivalent-but-more-verbose block at top.
33348
33349 2009-08-19  Akim Demaille  <demaille@gostai.com>
33350
33351         bootstrap: --help to stdout.
33352         * bootstrap (usage): Don't send --help to stderr.
33353         Use a here doc instead of a long string.
33354
33355 2009-08-21  Eric Blake  <ebb9@byu.net>
33356
33357         test-popen-safer: split from test-popen
33358         * tests/test-popen.c (main): Move...
33359         * tests/test-popen.h: ...into new file.
33360         * tests/test-popen-safer2.c: New file.
33361         * modules/popen-tests (Files): Add test-popen.h.
33362         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
33363         Suggested by Bruno Haible.
33364
33365         test-fcntl-safer: split from test-open
33366         * tests/test-open.c (main): Move...
33367         * tests/test-open.h: ...into new file.
33368         * tests/test-fcntl-safer.c: New file.
33369         * modules/open-tests (Files): Add test-open.h.
33370         * modules/fcntl-safer-tests: New file.
33371         Suggested by Bruno Haible.
33372
33373         test-fopen-safer: split from test-fopen
33374         * tests/test-fopen.c (main): Move...
33375         * tests/test-fopen.h: ...into new file.
33376         * tests/test-fopen-safer.c: New file.
33377         * modules/fopen-tests (Files): Add test-fopen.h.
33378         * modules/fopen-safer-tests: New file.
33379         Suggested by Bruno Haible.
33380
33381 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33382
33383         popen-safer: test O_CLOEXEC at run-time.
33384         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
33385
33386 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33387
33388         fcntl: move more flags to the header
33389         * lib/cloexec.c: Do not define FD_CLOEXEC here.
33390         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
33391         * lib/fcntl.in.h: Do both things here.
33392
33393 2009-08-21  Jim Meyering  <meyering@redhat.com>
33394
33395         consistently remove $@-t before redirecting to it
33396         * modules/argz: Remove $@-t and $@ before redirecting to the former.
33397         * modules/alloca-opt: Likewise.
33398         * modules/byteswap: Likewise.
33399         * modules/fnmatch: Likewise.
33400         * modules/getopt-posix: Likewise.
33401         * modules/glob: Likewise.
33402         * modules/poll: Likewise.
33403         * modules/posix_spawnp-tests: Likewise.
33404         * modules/sys_socket: Likewise.
33405         * modules/sysexits: Likewise.
33406
33407 2009-08-21  Eric Blake  <ebb9@byu.net>
33408
33409         popen: simplify access to original popen
33410         * lib/popen.c (rpl_popen): No need to worry about popen being a
33411         macro.
33412         Reported by Bruno Haible.
33413
33414 2009-08-20  Eric Blake  <ebb9@byu.net>
33415
33416         build: avoid some compiler warnings
33417         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
33418         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
33419         type.
33420         (new_exclude_segment, excluded_file_pattern_p)
33421         (excluded_file_name_p): Reduce scope.
33422         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
33423         old-style declaration.
33424
33425 2009-08-20  Simon Josefsson  <simon@josefsson.org>
33426
33427         * tests/test-exclude1.sh: Handle Windows EOL.
33428         * tests/test-exclude2.sh: Likewise.
33429         * tests/test-exclude3.sh: Likewise.
33430         * tests/test-exclude4.sh: Likewise.
33431         * tests/test-exclude5.sh: Likewise.
33432         * tests/test-exclude6.sh: Likewise.
33433         * tests/test-exclude7.sh: Likewise.
33434
33435 2009-08-19  Akim Demaille  <demaille@gostai.com>
33436
33437         bootstrap: find sha1sum when named gsha1sum.
33438         * bootstrap (find_tool): New.
33439         ($SHA1SUM): New.
33440         Use it.
33441
33442 2009-08-20  Jim Meyering  <meyering@redhat.com>
33443
33444         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
33445         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
33446         expression that converts "." in a file name to "\." in the resulting
33447         regexp.  Start with a dummy statement, so that prior shell variable
33448         definitions are expanded portably.  Reported by Simon Josefsson.
33449
33450 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
33451
33452         Fix polling for writeability of a screen buffer.
33453         * lib/poll.c: Distinguish input and screen buffers for the
33454         Win32 implementation.
33455         * lib/select.c: Likewise.
33456
33457 2009-08-19  Eric Blake  <ebb9@byu.net>
33458
33459         popen-safer: prevent popen from clobbering std descriptors
33460         * modules/popen-safer: New file.
33461         * lib/popen-safer.c: Likewise.
33462         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
33463         * lib/stdio--.h (popen): Provide override.
33464         * lib/stdio-safer.h (popen_safer): Provide declaration.
33465         * tests/test-popen.c (includes): Partially test this.
33466         * modules/popen-safer-tests: New file, for more tests.
33467         * tests/test-popen-safer.c: Likewise.
33468         * MODULES.html.sh (file stream based Input/Output): Mention it.
33469
33470         tests: test some of the *-safer modules
33471         * modules/fopen-safer (Depends-on): Add fopen.
33472         * modules/fcntl-safer (Depends-on): Add fcntl.
33473         * modules/stdlib-safer (Depends-on): Add stdlib.
33474         (configure.ac): Set indicator.
33475         * modules/unistd-safer (configure.ac): Likewise.
33476         * modules/tmpfile-safer (configure.ac): Likewise.
33477         (Depends-on): Add tmpfile.
33478         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
33479         active.
33480         * tests/test-fopen.c (includes): Test safer versions when they are
33481         in use.
33482         * tests/test-open.c (includes): Likewise.
33483
33484         popen: fix cygwin 1.5 bug when stdin closed
33485         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
33486         * modules/popen: New file.
33487         * modules/popen-tests: Likewise.
33488         * tests/test-popen.c: Likewise.
33489         * m4/popen.m4: Likewise.
33490         * lib/popen.c: Likewise.
33491         * lib/stdio.in.h (popen): New declaration.
33492         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
33493         * modules/stdio (Makefile.am): Likewise.
33494         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
33495
33496 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
33497
33498         maint.mk: give full control over update-copyright exclusions
33499         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
33500         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
33501         (update-copyright): Don't force inclusion of top-level
33502         ChangeLog.  Don't force exclusion of all COPYING files, but make
33503         them the default exclusion instead.
33504
33505 2009-08-16  Bruno Haible  <bruno@clisp.org>
33506
33507         Fix test failures on Solaris 10.
33508         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
33509         tests when Solaris iconv() is used.
33510         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
33511         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
33512         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
33513         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
33514         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
33515
33516 2009-08-16  Bruno Haible  <bruno@clisp.org>
33517
33518         Fix test failures on Solaris 10.
33519         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
33520         'tr' program and pass it as first argument.
33521         * tests/test-pipe-filter-gi1.sh: Likewise.
33522         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
33523         program as first argument.
33524         * tests/test-pipe-filter-gi1.c (main): Likewise.
33525
33526 2009-08-16  Eric Blake  <ebb9@byu.net>
33527
33528         fpurge: fix previous commits
33529         * modules/fpurge (Makefile.am): Make replacement conditional,
33530         partially reverting 2007-04-29 change; missed in previous
33531         attempt.
33532         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
33533         is missing.
33534
33535 2009-08-16  Bruno Haible  <bruno@clisp.org>
33536
33537         Clarify fpurge's effect on the file position.
33538         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
33539         * tests/test-fpurge.c (main): Make a second pass for checking the file
33540         position.
33541
33542 2009-08-16  Bruno Haible  <bruno@clisp.org>
33543
33544         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
33545         declaration of fpurge is missing.
33546         * tests/test-fpurge.c (main): Check that the file has not more contents
33547         than expected. Close the file before removing it.
33548
33549 2009-08-15  Eric Blake  <ebb9@byu.net>
33550
33551         fpurge: don't wrap working cygwin implementation
33552         * lib/fpurge.c (fpurge): Fix comment typo.
33553         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
33554         1.7 to avoid replacement.
33555         * tests/test-fpurge.c (main): Enhance test.
33556
33557 2009-08-15  Eric Blake  <ebb9@byu.net>
33558         and Jim Meyering  <meyering@redhat.com>
33559
33560         test-update-copyright: skip if perl is insufficient
33561         * tests/test-update-copyright.sh: Failure to run maintainer tool
33562         should not cause testsuite failure on cygwin 1.5.
33563
33564 2009-08-14  Eric Blake  <ebb9@byu.net>
33565
33566         doc: mention more functions added in cygwin 1.7.0
33567         * doc/posix-headers/limits.texi (limits.h): Update for recent
33568         cygwin additions.
33569         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
33570         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
33571         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
33572         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
33573         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
33574
33575 2009-08-14  Eric Blake  <ebb9@byu.net>
33576
33577         maint.mk: simplify update-copyright rule
33578         * top/maint.mk (update-copyright-local): Delete, and document how
33579         to do it in cfg.mk instead.
33580         (update-copyright-exclude-regexp): Delete, and document how to do
33581         it in .x-update-copyright instead.
33582         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
33583         exclude ChangeLog.
33584
33585 2009-08-14  Bruno Haible  <bruno@clisp.org>
33586
33587         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
33588
33589 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33590
33591         maint.mk: support update-copyright-env
33592         * top/maint.mk (update-copyright-env): Define place-holder.
33593         (update-copyright): Expand $(update-copyright-env) before
33594         invoking update-copyright.
33595
33596 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33597
33598         update-copyright: implement forced reformatting
33599         * build-aux/update-copyright: Implement and document
33600         UPDATE_COPYRIGHT_FORCE.
33601         * tests/test-update-copyright.sh: Test it.
33602
33603 2009-08-14  Eric Blake  <ebb9@byu.net>
33604         and Bruno Haible  <bruno@clisp.org>
33605
33606         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
33607         * tests/test-locale.c: Revert previous patch related to NULL.
33608         * tests/test-stdio.c: Likewise.
33609         * tests/test-stdlib.c: Likewise.
33610         * tests/test-string.c: Likewise.
33611         * tests/test-unistd.c: Likewise.
33612         * modules/time-tests (Depends-on): Add verify.
33613         * modules/wchar-tests (Depends-on): Likewise.
33614         * tests/test-time.c: Test for NULL compliance.
33615         * tests/test-wchar.c: Likewise.
33616         * modules/locale (Depends-on): Add stddef.
33617         * modules/stdio (Depends-on): Likewise.
33618         * modules/stdlib (Depends-on): Likewise.
33619         * modules/string (Depends-on): Likewise.
33620         * modules/time (Depends-on): Likewise.
33621         * modules/unistd (Depends-on): Likewise.
33622         * modules/wchar (Depends-on): Likewise.
33623         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
33624         * lib/stdlib.in.h (includes): Likewise.
33625         * lib/string.in.h (includes): Likewise.
33626         * lib/time.in.h (includes): Likewise.
33627         * lib/unistd.in.h (includes): Likewise.
33628         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
33629         replaced.
33630         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33631         * m4/stddef_h.m4: New file.
33632         * modules/stddef: Likewise.
33633         * lib/stddef.in.h: Likewise.
33634         * modules/stddef-tests: Likewise.
33635         * tests/test-stddef.c: Likewise.
33636         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
33637         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
33638         * doc/posix-headers/locale.texi (locale.h): Likewise.
33639         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
33640         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
33641         * doc/posix-headers/string.texi (string.h): Likewise.
33642         * doc/posix-headers/time.texi (time.h): Likewise.
33643         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
33644         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
33645
33646 2009-08-14  Eric Blake  <ebb9@byu.net>
33647
33648         doc: improve git diff of texinfo files
33649         * .gitattributes: Add rule for *.texi files, with hint on how to
33650         use it.
33651         Copied from m4, and based on a report by Bruno Haible.
33652
33653 2009-08-14  Bruno Haible  <bruno@clisp.org>
33654
33655         Disable multithread support by default on Cygwin 1.5.x for real.
33656         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
33657
33658 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33659
33660         update-copyright: much ado about intervals
33661         * build-aux/update-copyright: Implement and document
33662         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
33663         of copyright year intervals.
33664         Also, document UPDATE_COPYRIGHT_YEAR.
33665         * tests/test-update-copyright.sh: Test it.
33666
33667         update-copyright: convert 2-digit to 4-digit years
33668         * build-aux/update-copyright: Implement and document.
33669         * tests/test-update-copyright.sh: Update.
33670
33671 2009-08-14  Jim Meyering  <meyering@redhat.com>
33672
33673         test-exclude: avoid coreutils "make check" failure
33674         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
33675         just as in test-argmatch.c.
33676
33677 2009-08-13  Eric Blake  <ebb9@byu.net>
33678
33679         test-dup2: fix bad assumption
33680         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
33681         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
33682
33683         test-version-etc: fix CRLF portability issue
33684         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
33685         recognize \r.
33686         * tests/test-argp-version-etc-1.sh: Likewise.
33687
33688         getopt: update client modules
33689         * modules/argp (Depends-on): Use getopt-gnu.
33690         * modules/git-merge-changelog (Depends-on): Likewise.
33691         * modules/long-options (Depends-on): Likewise.
33692         * modules/xstrtol (Depends-on): Likewise.
33693
33694 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33695
33696         * tests/test-version-etc.sh: Don't fail on different
33697         project/version.  Don't fail on CRLF differences.  Rewrite to use
33698         multiple -e instead of multiple sed forks, suggested by Eric Blake
33699         <ebb9@byu.net>.
33700         * tests/test-argp-version-etc-1.sh: Likewise.
33701
33702 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33703
33704         * tests/test-version-etc.sh: Don't fail on different
33705         project/version.
33706
33707 2009-08-12  Bruno Haible  <bruno@clisp.org>
33708
33709         Tests for modules 'getopt-posix', 'getopt-gnu'.
33710         * modules/getopt-posix-tests: New file.
33711         * tests/test-getopt.c: New file.
33712         * tests/test-getopt.h: New file.
33713         * tests/test-getopt_long.h: New file.
33714
33715         New modules 'getopt-posix', 'getopt-gnu'.
33716         * modules/getopt-gnu: New file, renamed from modules/getopt.
33717         * modules/getopt-posix: New file.
33718         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
33719         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
33720         (gl_GETOPT): Remove macro.
33721         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
33722         Disable the test against BSD systems that declare optreset. Test
33723         against mingw bug. Test against lack of support of optional arguments
33724         on many platforms.
33725         * doc/glibc-headers/getopt.texi: Update module name and list of
33726         relevant platforms.
33727         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
33728         'getopt-gnu' and more portability problems.
33729         * NEWS: Mention the changes.
33730
33731 2009-08-12  Bruno Haible  <bruno@clisp.org>
33732
33733         Ensure that optarg etc. get declared by <unistd.h>.
33734         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
33735         AC_USE_SYSTEM_EXTENSIONS.
33736         * modules/getopt (Depends-on): Add 'extensions'.
33737
33738 2009-08-12  Bruno Haible  <bruno@clisp.org>
33739
33740         Avoid test link errors.
33741         * modules/pipe-filter-ii-tests (Makefile.am): Define
33742         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
33743         * modules/pipe-filter-gi-tests (Makefile.am): Define
33744         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
33745         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33746
33747 2009-08-12  Bruno Haible  <bruno@clisp.org>
33748
33749         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
33750         gl_GETOPT_SUBSTITUTE before.
33751         (gl_GETOPT): Use it.
33752         * m4/argp.m4 (gl_ARGP): Update.
33753         Reported by Sergey Poznyakoff.
33754
33755         * m4/getopt.m4: Reorder macros.
33756         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
33757         (gl_GETOPT_SUBSTITUTE): Remove macro.
33758
33759 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33760
33761         Minor improvement in gitlog-to-changelog
33762
33763         * build-aux/gitlog-to-changelog: New option `--format' makes
33764         output format string configurable.
33765
33766 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33767
33768         Optimize exclude: use hash tables for non-wildcard patterns.
33769
33770         * lib/exclude.c: Include hash.h and mbuiter.h
33771         (struct exclude_pattern, exclude_segment): New data types.
33772         (struct exclude): Rewrite.
33773         (fnmatch_pattern_has_wildcards): New function.
33774         (new_exclude_segment, free_exclude_segment): New functions.
33775         (excluded_file_pattern_p, excluded_file_name_p): New functions.
33776         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
33777         * lib/exclude.h (is_fnmatch_pattern): New prototype.
33778         * modules/exclude: Depend on hash and mbuiter.
33779
33780         * modules/exclude-tests: New file.
33781         * tests/test-exclude.c: New file.
33782         * tests/test-exclude1.sh: New file.
33783         * tests/test-exclude2.sh: New file.
33784         * tests/test-exclude3.sh: New file.
33785         * tests/test-exclude4.sh: New file.
33786         * tests/test-exclude5.sh: New file.
33787         * tests/test-exclude6.sh: New file.
33788         * tests/test-exclude7.sh: New file.
33789
33790 2009-08-12  Bruno Haible  <bruno@clisp.org>
33791
33792         Ensure that getopt() gets declared by <unistd.h>.
33793         * lib/unistd.in.h: Conditionally include getopt.h.
33794         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
33795         Set GNULIB_UNISTD_H_GETOPT.
33796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33797         GNULIB_UNISTD_H_GETOPT.
33798         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
33799
33800 2009-08-12  Bruno Haible  <bruno@clisp.org>
33801
33802         Clarify logic.
33803         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
33804         gl_replace_getopt instead of GETOPT_H.
33805
33806 2009-08-12  Bruno Haible  <bruno@clisp.org>
33807
33808         * m4/getopt.m4: Add comments.
33809
33810 2009-08-12  Bruno Haible  <bruno@clisp.org>
33811
33812         Disable multithread support by default on Cygwin 1.5.x.
33813         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
33814         set gl_use_threads=no if not specified otherwise.
33815
33816 2009-08-11  Bruno Haible  <bruno@clisp.org>
33817
33818         Avoid compilation error on NetBSD 5.0.
33819         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
33820         * tests/test-stdio.c: Likewise.
33821         * tests/test-stdlib.c: Likewise.
33822         * tests/test-string.c: Likewise.
33823         * tests/test-unistd.c: Likewise.
33824         Reported by Greg Troxel <gdt@ir.bbn.com>
33825         at <https://savannah.gnu.org/support/?106973>.
33826
33827 2009-08-11  Bruno Haible  <bruno@clisp.org>
33828
33829         * modules/dup2-tests (Depends-on): Remove close.
33830
33831         Undo 2009-07-19 commit.
33832         * modules/acl-tests (Depends-on): Remove close.
33833         * modules/binary-io-tests (Depends-on): Likewise.
33834         * modules/closein-tests (Depends-on): Likewise.
33835         * modules/flock-tests (Depends-on): Likewise.
33836         * modules/fsync-tests (Depends-on): Likewise.
33837         * modules/lseek-tests (Depends-on): Likewise.
33838         * modules/pipe-tests (Depends-on): Likewise.
33839         * modules/posix_spawn-tests (Depends-on): Likewise.
33840         * modules/posix_spawnp-tests (Depends-on): Likewise.
33841         * modules/stat-time-tests (Depends-on): Likewise.
33842         * modules/yesno-tests (Depends-on): Likewise.
33843
33844 2009-08-10  Bruno Haible  <bruno@clisp.org>
33845
33846         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
33847
33848 2009-08-10  Bruno Haible  <bruno@clisp.org>
33849
33850         Fix a gcc warning.
33851         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
33852
33853 2009-08-10  Bruno Haible  <bruno@clisp.org>
33854
33855         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
33856         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
33857         not only the first time.
33858         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
33859         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
33860         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
33861         is 1, not only the the first time.
33862
33863 2009-08-10  Bruno Haible  <bruno@clisp.org>
33864
33865         Make it possible to use module 'gethostname' without module 'close'.
33866         * lib/unistd.in.h (close): Evoke a link error only if
33867         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33869         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33870         * modules/unistd (Makefile.am): Substitute
33871         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33872         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
33873         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33874         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33875         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33876         * modules/sys_ioctl (Makefile.am): Substitute
33877         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33878         * modules/socket (configure.ac): On native Windows, set
33879         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
33880         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33881         Reported by Sam Steingold <sds@gnu.org>.
33882
33883 2009-08-10  Bruno Haible  <bruno@clisp.org>
33884
33885         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
33886         * modules/ioctl (configure.ac): Likewise.
33887
33888 2009-08-10  Bruno Haible  <bruno@clisp.org>
33889
33890         Avoid collision between gnulib wrapper and libintl wrapper.
33891         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
33892         already defined in intl/printf.c.
33893         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
33894         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
33895
33896 2009-08-09  Bruno Haible  <bruno@clisp.org>
33897
33898         Make <sys/select.h> really self-contained, also on Solaris 10.
33899         * lib/sys_select.in.h: Include <string.h>.
33900         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
33901         Solaris 10 problem.
33902         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
33903         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
33904         Reported by Jim Meyering.
33905
33906 2009-08-09  Bruno Haible  <bruno@clisp.org>
33907
33908         Avoid warnings from 'aclocal' that are due to a use of macro name
33909         AM_XGETTEXT_OPTION that is not defined in automake.
33910         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
33911         automake.
33912         * modules/error (configure.ac): Likewise.
33913         * modules/propername (configure.ac): Likewise.
33914         * modules/vasprintf (configure.ac): Likewise.
33915         * modules/verror (configure.ac): Likewise.
33916         * modules/xprintf (configure.ac): Likewise.
33917         * modules/xvasprintf (configure.ac): Likewise.
33918
33919 2009-08-08  Bruno Haible  <bruno@clisp.org>
33920
33921         Avoid compilation error in C++ mode.
33922         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
33923         Reported by Sam Steingold <sds@gnu.org>.
33924
33925 2009-08-08  Bruno Haible  <bruno@clisp.org>
33926
33927         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
33928         for the various Unix platforms.
33929         * doc/posix-headers/limits.texi: Update platforms list regarding
33930         HOST_NAME_MAX.
33931         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33932
33933 2009-08-07  Jim Meyering  <meyering@redhat.com>
33934
33935         selinux-at: fix typo in a comment
33936         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
33937         Spotted by Paolo Bonzini.
33938
33939         selinux-at: remove redundant m4 code, add documentation
33940         * modules/selinux-at (configure.ac): Remove redundant code.
33941         LIB_SELINUX is already set via the dependent module, selinux-h.
33942         (Include): Add quotes around selinux-at.h.
33943         * lib/selinux-at.h: Add documentation.
33944         Reported by Bruno Haible in
33945         http://marc.info/?l=gnulib-bug&m=124958988300749
33946
33947 2009-08-07  Bruno Haible  <bruno@clisp.org>
33948
33949         Avoid link error on MacOS X 10.3 and 10.4.
33950         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
33951         on non-ELF systems.
33952         * lib/argp-pv.c (argp_program_version): Likewise.
33953         Reported by Simon Josefsson.
33954
33955 2009-08-07  Simon Josefsson  <simon@josefsson.org>
33956
33957         * tests/test-version-etc.sh: Use $EXEEXT.
33958
33959 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
33960
33961         update-copyright: update documentation to point to maint.mk
33962         * build-aux/update-copyright: Here.
33963
33964 2009-08-06  Jim Meyering  <meyering@redhat.com>
33965
33966         maint.mk: support update-copyright-local
33967         * top/maint.mk (update-copyright-local): Define place-holder.
33968         (update-copyright): Depend on $(update-copyright-local).
33969
33970 2009-08-06  Jim Meyering  <meyering@redhat.com>
33971
33972         selinux-at: new module
33973         Initially written for coreutils, this module will soon be
33974         used by findutils, too.
33975         * MODULES.html.sh [Misc]: Add selinux-at.
33976         * lib/selinux-at.h: New file, from coreutils.
33977         * lib/selinux-at.c: Likewise.
33978         * modules/selinux-at: Likewise.
33979         (License): Change from LGPL to GPL, since it depends
33980         on the GPL'd openat module.
33981
33982         doc: update README
33983         * README: Remove references to cogito.
33984         Remove cvs-repo-updating instructions from 2007.
33985         Don't imply that CVS is better if you have limited disk space.
33986
33987 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33988
33989         update-copyright: support C-style comments
33990         * build-aux/update-copyright: Implement and document.
33991         * tests/test-update-copyright.sh: Test.
33992
33993 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33994
33995         update-copyright: support omitted "(C)"
33996         * build-aux/update-copyright: Implement and document.  Also,
33997         allow variable whitespace before "(C)".
33998         * tests/test-update-copyright.sh: Test.
33999
34000 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34001
34002         update-copyright: don't trip on non-FSF copyright statements
34003         * build-aux/update-copyright: Fix so that the first correctly
34004         formatted FSF copyright statement is recognized no matter what
34005         appears before it.  Update documentation.
34006         * tests/test-update-copyright.sh: Test that.
34007
34008 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34009
34010         update-copyright: clean up code a little
34011         * build-aux/update-copyright: Append "_re" to the name of any
34012         variable holding a regular expression.
34013         Replace "old" and "new" with "stmt" in variable names.
34014         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
34015         handled correctly.
34016         Format code more consistently.
34017
34018 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34019
34020         update-copyright-tests: improve portability
34021         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
34022         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
34023
34024 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
34025
34026         update-copyright: support @copyright{} and &copy;
34027         * build-aux/update-copyright: Implement and document.
34028         * tests/test-update-copyright.sh: Test.
34029
34030 2009-08-04  Jim Meyering  <meyering@redhat.com>
34031
34032         update-copyright-tests: correctly test EOL=\r\n handling
34033         * tests/test-update-copyright.sh: Put \r at the end of some lines
34034         for the dos-eol tests.  Based on a patch by Joel E. Denny.
34035
34036         maint.mk: make update-copyright exclusion list more configurable
34037         * top/maint.mk (update-copyright): Default to excluding COPYING,
34038         but allow an override, in case someone does want to update that file.
34039
34040         maint.mk: don't update copyright date in COPYING
34041         * top/maint.mk (update-copyright): Exclude COPYING.
34042
34043         maint.mk: add a copyright-updating rule
34044         * top/maint.mk (update-copyright): New rule.
34045         Derived from coreutils/Makefile.am.
34046
34047         update-copyright: rename some variables
34048         * build-aux/update-copyright: Rename a few variables for clarity.
34049         Tweak syntax.  List Joel E. Denny as coauthor.
34050
34051 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
34052
34053         update-copyright: fix bug for 2-digit last year and add tests
34054         * build-aux/update-copyright: Fix bug.
34055         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
34056         specified.
34057         * modules/update-copyright-tests: New
34058         * tests/test-update-copyright.sh: New.
34059
34060 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34061
34062         update-copyright: handle leading tabs in line prefix
34063         * build-aux/update-copyright: Count leading tabs as 8 spaces
34064         when computing margin.  This helps with the formatting of
34065         ChangeLogs, for example.
34066         Fix documentation a little.
34067
34068 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34069
34070         update-copyright: support EOL=\r\n
34071         * build-aux/update-copyright: Implement that.
34072
34073 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34074
34075         update-copyright: automatically format copyright statements
34076         * build-aux/update-copyright: Implement that.
34077         Also, be a little more predictable and safer by always failing
34078         when the full copyright format is not perfectly recognized as an
34079         unbroken whole.  Discussed at
34080         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
34081         Rewrite documentation.
34082
34083 2009-08-03  Bruno Haible  <bruno@clisp.org>
34084
34085         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
34086
34087 2009-08-02  Bruno Haible  <bruno@clisp.org>
34088
34089         Tests for module 'uname'.
34090         * modules/uname-tests: New file.
34091         * tests/test-uname.c: New file.
34092
34093         New module 'uname'.
34094         * lib/uname.c: New file.
34095         * m4/uname.m4: New file.
34096         * modules/uname: New file.
34097         * doc/posix-functions/uname.texi: Mention the new module.
34098
34099 2009-08-02  Bruno Haible  <bruno@clisp.org>
34100
34101         Tests for module 'sys_utsname'.
34102         * modules/sys_utsname-tests: New file.
34103         * tests/test-sys_utsname.c: New file.
34104
34105         New module 'sys_utsname'.
34106         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
34107         * m4/sys_utsname_h.m4: New file.
34108         * modules/sys_utsname: New file.
34109         * doc/posix-headers/sys_utsname.texi: Mention the new module.
34110
34111 2009-08-02  Bruno Haible  <bruno@clisp.org>
34112
34113         Implicitly initialize the sockets library.
34114         * lib/gethostname.c: Include sockets.h.
34115         (rpl_gethostname): Invoke gl_sockets_startup.
34116         * lib/socket.c: Include sockets.h.
34117         (rpl_socket): Invoke gl_sockets_startup.
34118         * modules/gethostname (Depends-on): Add sockets.
34119         * modules/socket (Depends-on): Likewise.
34120         * tests/test-poll.c: Don't include sockets.h.
34121         (main): Don't invoke gl_sockets_startup.
34122         * tests/test-select.c: Don't include sockets.h.
34123         (main): Don't invoke gl_sockets_startup.
34124
34125 2009-08-02  Bruno Haible  <bruno@clisp.org>
34126
34127         Allow multiple calls to gl_sockets_startup.
34128         * lib/sockets.c (initialized_sockets_version): New variable.
34129         (gl_sockets_startup): Do nothing if already called for this or a higher
34130         version.
34131         (gl_sockets_cleanup): Reset initialized_sockets_version.
34132
34133 2009-08-03  Simon Josefsson  <simon@josefsson.org>
34134
34135         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
34136         different project/version.
34137
34138 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
34139             Bruno Haible  <bruno@clisp.org>
34140
34141         Tests for module 'pipe-filter-gi'.
34142         * modules/pipe-filter-gi-tests: New file.
34143         * tests/test-pipe-filter-gi1.sh: New file.
34144         * tests/test-pipe-filter-gi1.c: New file.
34145         * tests/test-pipe-filter-gi2.sh: New file.
34146         * tests/test-pipe-filter-gi2-main.c: New file.
34147         * tests/test-pipe-filter-gi2-child.c: New file.
34148
34149         New module 'pipe-filter-gi'.
34150         * lib/pipe-filter-gi.c: New file.
34151         * modules/pipe-filter-gi: New file.
34152
34153 2009-08-02  Bruno Haible  <bruno@clisp.org>
34154             Paolo Bonzini  <bonzini@gnu.org>
34155
34156         Tests for module 'pipe-filter-ii'.
34157         * modules/pipe-filter-ii-tests: New file.
34158         * tests/test-pipe-filter-ii1.sh: New file.
34159         * tests/test-pipe-filter-ii1.c: New file.
34160         * tests/test-pipe-filter-ii2.sh: New file.
34161         * tests/test-pipe-filter-ii2-main.c: New file.
34162         * tests/test-pipe-filter-ii2-child.c: New file.
34163
34164         New module 'pipe-filter-ii'.
34165         * lib/pipe-filter.h: New file.
34166         * lib/pipe-filter-ii.c: New file.
34167         * lib/pipe-filter-aux.h: New file.
34168         * modules/pipe-filter-ii: New file.
34169
34170 2009-08-02  Simon Josefsson  <simon@josefsson.org>
34171
34172         * lib/gc-libgcrypt.c: Change copyright to FSF.
34173         * lib/gc-gnulib.c: Likewise.
34174
34175 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
34176
34177         * lib/gethostname.c: Include limits.h.
34178
34179 2009-08-02  Simon Josefsson  <simon@josefsson.org>
34180             Bruno Haible  <bruno@clisp.org>
34181
34182         Ensure HOST_NAME_MAX as part of the gethostname module.
34183         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
34184         define also HOST_NAME_MAX.
34185         * tests/test-gethostname.c: Include <limits.h>.
34186         (main): Check also HOST_NAME_MAX.
34187         * doc/posix-headers/limits.texi: Document the mingw problem.
34188
34189 2009-08-02  Bruno Haible  <bruno@clisp.org>
34190
34191         * lib/gethostname.c (gethostname): Fix handling of large len argument.
34192         Add comments.
34193
34194 2009-03-31  Simon Josefsson  <simon@josefsson.org>
34195
34196         * lib/gethostname.c: Add Windows wrapper.
34197         * m4/gethostname.m4: Look for gethostname in -lws2_32.
34198         * modules/gethostname: Depend on sys_socket & errno, for also
34199         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
34200         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
34201
34202 2009-07-31  Jim Meyering  <meyering@redhat.com>
34203
34204         getloadavg: fix symbol name in comment
34205         * lib/getloadavg.c: Correct a typo I introduced when adding
34206         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
34207         Matt Kraai spotted the problem.
34208
34209 2009-07-29  Matt Kraai  <mkraai@beckman.com>
34210
34211         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
34212         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
34213         code also if ! defined N_NAME_POINTER.
34214         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
34215         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
34216         but the n_name member is a 12-byte array.
34217
34218 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
34219
34220         update-copyright: generalize comment handling
34221         * build-aux/update-copyright: Handle copyright statements
34222         within more comment styles.
34223         Document usage.
34224         Report any file with an external copyright holder or parse failure.
34225
34226 2009-07-29  Jim Meyering  <meyering@redhat.com>
34227
34228         mktime: correct setting of REPLACE_MKTIME
34229         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
34230
34231         update-copyright: new module
34232         * modules/update-copyright: New file.
34233         * build-aux/update-copyright: New file.
34234         * MODULES.html.sh (maint+release support): Add update-copyright.
34235
34236 2009-07-27  Bruno Haible  <bruno@clisp.org>
34237
34238         Fix compilation error when <ctime> is used and mktime is replaced.
34239         * lib/time.in.h (mktime): New declaration.
34240         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
34241         REPLACE_MKTIME instead of defining mktime in config.h.
34242         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
34243         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
34244         Reported by Ross McFarland <rwmcfa1@neces.com>.
34245
34246 2009-07-27  Bruno Haible  <bruno@clisp.org>
34247
34248         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
34249         Reported by Matt Kraai <mkraai@beckman.com>.
34250
34251 2009-07-25  Jim Meyering  <meyering@redhat.com>
34252
34253         maint.mk: avoid warnings about missing files
34254         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
34255         diagnostic when .prev-version does not exist.
34256         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
34257         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
34258         nonexistent cfg.mk.
34259         Suggestions from Simon Josefsson.
34260
34261 2009-07-25  Bruno Haible  <bruno@clisp.org>
34262
34263         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
34264         defined as macros. Needed on QNX 6.4.1.
34265         Reported by Matt Kraai <mkraai@beckman.com>.
34266
34267 2009-07-23  Jim Meyering  <meyering@redhat.com>
34268
34269         maint.mk: invoke "make dist" with a working value of XZ_OPT
34270         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
34271
34272 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
34273
34274         Make fseeko.c compile on QNX.
34275         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
34276
34277 2009-07-22  Peter Simons  <simons@cryp.to>
34278
34279         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
34280         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
34281         * lib/md4.h: Likewise.
34282         * lib/md5.h: Likewise.
34283         * lib/sha1.h: Likewise.
34284         * lib/sha256.h: Likewise.
34285         * lib/sha512.h: Likewise.
34286
34287         tests-sha1: don't assign literal string to 'char *' variable
34288         * tests/test-sha1.c (main): Declare locals with "const" to match
34289         attributes of the right hand side.
34290
34291 2009-07-21  Eric Blake  <ebb9@byu.net>
34292
34293         dup2: fix more mingw problems
34294         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
34295         fd to itself.
34296         * doc/posix-functions/dup2.texi (dup2): Document the bug.
34297         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
34298         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
34299         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
34300         care of mingw bugs.
34301
34302 2009-07-21  Jim Meyering  <meyering@redhat.com>
34303
34304         vc-list-files: avoid failure when /bin/sh is dash
34305         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
34306         On some Debian based systems, /bin/sh is a symlink to dash, and running
34307         this command would omit the "/" following each 'tests' prefix:
34308           dash -x build-aux/vc-list-files -C . tests
34309         That is because bash and dash work differently:
34310           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
34311           bash ok
34312           dash odd
34313
34314 2009-07-21  Eric Blake  <ebb9@byu.net>
34315
34316         dup2-tests: test previous patch
34317         * modules/dup2-tests: New file.
34318         * tests/test-dup2.c: Likewise.
34319         * tests/test-open.c (main): Avoid unspecified behavior.
34320         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
34321         test.
34322
34323         dup2: work around mingw and cygwin 1.5 bug
34324         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
34325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34326         * modules/unistd (Makefile.am): Substitute it.
34327         * lib/unistd.in.h (dup2): Declare the replacement.
34328         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
34329         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
34330         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
34331         * modules/execute (Depends-on): Add dup2.
34332         * modules/fseterr (Depends-on): Likewise.
34333         * modules/pipe (Depends-on): Likewise.
34334         * modules/posix_spawn-internal (Depends-on): Likewise.
34335
34336 2009-07-21  Bruno Haible  <bruno@clisp.org>
34337
34338         * modules/.gitattributes: New file.
34339
34340 2009-07-20  Bruno Haible  <bruno@clisp.org>
34341
34342         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
34343         (main): Use it.
34344
34345 2009-07-20  Eric Blake  <ebb9@byu.net>
34346
34347         test-pipe: make a bit more robust.
34348         * tests/test-pipe.c (myerr): Allow error messages regardless of
34349         what we do to stderr.
34350         (test_pipe): Rearrange to avoid deadlock.
34351         (child_main): Try a larger read, to ensure we avoided deadlock.
34352         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
34353         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
34354         if misused.
34355
34356 2009-07-19  Jim Meyering  <meyering@redhat.com>
34357
34358         fts: avoid false-positive cycle-detection
34359         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
34360         for each new command line argument.
34361
34362 2009-07-19  Bruno Haible  <bruno@clisp.org>
34363
34364         Fix build error on mingw with the modules sys_select and unistd.
34365         * modules/acl-tests (Depends-on): Add close.
34366         * modules/binary-io-tests (Depends-on): Likewise.
34367         * modules/closein-tests (Depends-on): Likewise.
34368         * modules/flock-tests (Depends-on): Likewise.
34369         * modules/fsync-tests (Depends-on): Likewise.
34370         * modules/lseek-tests (Depends-on): Likewise.
34371         * modules/pipe-tests (Depends-on): Likewise.
34372         * modules/posix_spawn-tests (Depends-on): Likewise.
34373         * modules/posix_spawnp-tests (Depends-on): Likewise.
34374         * modules/stat-time-tests (Depends-on): Likewise.
34375         * modules/yesno-tests (Depends-on): Likewise.
34376
34377 2009-07-19  Bruno Haible  <bruno@clisp.org>
34378
34379         Unify conditionals.
34380         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
34381         macros, not at the compiler macros.
34382         * lib/pipe.c: Likewise.
34383         * lib/execute.c: Likewise.
34384         * lib/spawni.c: Likewise.
34385
34386 2009-07-19  Bruno Haible  <bruno@clisp.org>
34387
34388         Fix handling of closed stdin/stdout/stderr on mingw.
34389         * lib/w32spawn.h: Include unistd.h.
34390         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
34391         file descriptor with O_NOINHERIT flag.
34392         (fd_safer_noinherit): New function, based on fd-safer.c.
34393         (dup_safer_noinherit): New function, based on dup-safer.c.
34394         (undup_safer_noinherit): New function.
34395         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
34396         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
34397         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
34398         instead of fd_safer.
34399         * tests/test-pipe.c: Include <windows.h>.
34400         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
34401         result.
34402
34403         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
34404         from main.
34405         (test_pipe): Pass an extra argument for disambiguation.
34406         (main): Invoke parent_main or child_main.
34407
34408         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
34409         consistently.
34410
34411 2009-07-18  Eric Blake  <ebb9@byu.net>
34412
34413         test-pipe: fix mingw build
34414         * tests/test-pipe.c (main): Avoid fcntl on mingw.
34415
34416 2009-07-18  Bruno Haible  <bruno@clisp.org>
34417
34418         * modules/pipe-tests (Makefile.am): Fix typo.
34419
34420 2009-07-18  Eric Blake  <ebb9@byu.net>
34421
34422         error: fix mingw build
34423         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
34424         Reported by Bruno Haible.
34425
34426         error: avoid undefined use of stdout
34427         * lib/error.c (error, error_at_line): Check that fd 1 is open
34428         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
34429         is handling faults and the close_stdout module wants to report the
34430         detection of closed stdout as an error.
34431
34432 2009-07-17  Eric Blake  <ebb9@byu.net>
34433
34434         pipe: be robust in face of closed fds
34435         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
34436         should cause child to misbehave.
34437         * modules/pipe-tests: New module.
34438         * tests/test-pipe.c: New file.
34439         * tests/test-pipe.sh: New file.
34440         Reported by Akim Demaille.
34441
34442 2009-07-14  Bruno Haible  <bruno@clisp.org>
34443
34444         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
34445         Reported by anonymous kc.
34446
34447 2009-07-07  Jim Meyering  <meyering@redhat.com>
34448
34449         maint.mk: don't look for translatable strings in *.m4 or *.mk
34450         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
34451         when searching for translatable strings.
34452
34453 2009-07-05  Jim Meyering  <meyering@redhat.com>
34454
34455         remove superfluous parentheses in STREQ definition
34456         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
34457         * lib/getugroups.c (STREQ): Likewise.
34458         * lib/fnmatch.c (STREQ): Likewise.
34459         Spotted by Bruno Haible.
34460
34461 2009-07-04  Jim Meyering  <meyering@redhat.com>
34462
34463         argv-iter: new module
34464         * MODULES.html.sh: Add argv-iter.
34465         * lib/argv-iter.c, lib/argv-iter.h: New files.
34466         * modules/argv-iter: New file.
34467         * modules/argv-iter-tests: New file.
34468         * tests/test-argv-iter.c: Test it.
34469
34470 2009-07-04  Bruno Haible  <bruno@clisp.org>
34471
34472         Fix assertion.
34473         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
34474         contains more exact copies of a given entry than file2, leave the extra
34475         copies unpaired rather than aborting.
34476         Reported by Eric Blake.
34477
34478 2009-07-02  Bruno Haible  <bruno@clisp.org>
34479
34480         Speedup git-merge-changelog for git cherry-pick.
34481         * lib/git-merge-changelog.c (struct entries_mapping): New type.
34482         (entries_mapping_get): New function, extracted from compute_mapping.
34483         (entries_mapping_reverse_get): New function.
34484         (compute_mapping): Add a 'full' argument. Return the result in a
34485         'struct entries_mapping'.
34486         (main): Update. Access the mappings through entries_mapping_get.
34487         Reported by Eric Blake.
34488
34489 2009-07-02  Bruno Haible  <bruno@clisp.org>
34490
34491         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
34492         best_i.
34493
34494 2009-07-02  Bruno Haible  <bruno@clisp.org>
34495
34496         Speed up approximate search for matching ChangeLog entries.
34497         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
34498         argument. Call fstrcmp_bounded instead of fstrcmp.
34499         (compute_mapping, try_split_merged_entry, main): Update callers.
34500
34501 2009-07-02  Bruno Haible  <bruno@clisp.org>
34502
34503         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
34504
34505 2009-06-30  Bruno Haible  <bruno@clisp.org>
34506
34507         Reduce the number of uc_is_cased calls.
34508         * lib/unicase.h (casing_suffix_context_t): Add
34509         'first_char_except_ignorable' field.
34510         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
34511         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
34512         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
34513         Update initializer.
34514         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
34515         case-ignorable characters.
34516         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
34517         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
34518         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
34519         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
34520         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
34521
34522 2009-06-30  Bruno Haible  <bruno@clisp.org>
34523
34524         Tests for module 'unicase/ignorable'.
34525         * modules/unicase/ignorable-tests: New file.
34526         * tests/unicase/test-ignorable.c: New file, generated by
34527         gen-uni-tables.
34528
34529         Tests for module 'unicase/cased'.
34530         * modules/unicase/cased-tests: New file.
34531         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
34532         * tests/unicase/test-predicate-part1.h: New file, derived from
34533         tests/unictype/test-predicate-part1.h.
34534         * tests/unicase/test-predicate-part2.h: New file, same as
34535         tests/unictype/test-predicate-part2.h.
34536
34537         Fix evaluation of "Before C" condition of FINAL_SIGMA.
34538         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
34539         (output_casing_properties): New function.
34540         (main): Call it.
34541         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
34542         * lib/unicase/cased.c: Include unictype/bitmap.h.
34543         (uc_is_cased): Define through a bitmap lookup.
34544         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
34545         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
34546         (uc_is_case_ignorable): Define through a bitmap lookup.
34547         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
34548         lib/unictype/bitmap.h.
34549         (Depends-on): Add inline. Clean up.
34550         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
34551         lib/unictype/bitmap.h.
34552         (Depends-on): Add inline. Clean up.
34553         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
34554         recognition.
34555         * tests/unicase/test-u16-tolower.c (main): Likewise.
34556         * tests/unicase/test-u32-tolower.c (main): Likewise.
34557
34558 2009-06-30  Bruno Haible  <bruno@clisp.org>
34559
34560         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
34561         * lib/unicase/u16-casemap.c: Likewise.
34562         * lib/unicase/u32-casemap.c: Likewise.
34563
34564 2009-06-29  Bruno Haible  <bruno@clisp.org>
34565
34566         Define u32_casefold as a wrapper around u32_ct_casefold.
34567         * lib/unicase/u32-casefold.c: Update.
34568         * modules/unicase/u32-casefold (Depends-on): Add
34569         unicase/u32-ct-casefold, unicase/empty-prefix-context,
34570         unicase/empty-suffix-context. Clean up.
34571
34572         Define u16_casefold as a wrapper around u16_ct_casefold.
34573         * lib/unicase/u16-casefold.c: Update.
34574         * modules/unicase/u16-casefold (Depends-on): Add
34575         unicase/u16-ct-casefold, unicase/empty-prefix-context,
34576         unicase/empty-suffix-context. Clean up.
34577
34578         Define u8_casefold as a wrapper around u8_ct_casefold.
34579         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
34580         * lib/unicase/u8-casefold.c: Update.
34581         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
34582         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34583
34584         Define u32_totitle as a wrapper around u32_ct_totitle.
34585         * lib/unicase/u32-totitle.c: Update.
34586         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
34587         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34588
34589         Define u16_totitle as a wrapper around u16_ct_totitle.
34590         * lib/unicase/u16-totitle.c: Update.
34591         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
34592         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34593
34594         Define u8_totitle as a wrapper around u8_ct_totitle.
34595         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
34596         functions.
34597         (FUNC): Delegate to U_CT_TOTITLE.
34598         * lib/unicase/u8-totitle.c: Update.
34599         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
34600         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34601
34602         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
34603         invocation.
34604         * modules/unicase/u32-tolower (Depends-on): Add
34605         unicase/empty-prefix-context, unicase/empty-suffix-context.
34606
34607         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
34608         invocation.
34609         * modules/unicase/u16-tolower (Depends-on): Add
34610         unicase/empty-prefix-context, unicase/empty-suffix-context.
34611
34612         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
34613         * modules/unicase/u8-tolower (Depends-on): Add
34614         unicase/empty-prefix-context, unicase/empty-suffix-context.
34615
34616         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
34617         invocation.
34618         * modules/unicase/u32-toupper (Depends-on): Add
34619         unicase/empty-prefix-context, unicase/empty-suffix-context.
34620
34621         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
34622         invocation.
34623         * modules/unicase/u16-toupper (Depends-on): Add
34624         unicase/empty-prefix-context, unicase/empty-suffix-context.
34625
34626         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
34627         * modules/unicase/u8-toupper (Depends-on): Add
34628         unicase/empty-prefix-context, unicase/empty-suffix-context.
34629
34630         New module 'unicase/u32-ct-casefold'.
34631         * lib/unicase/u32-ct-casefold.c: New file.
34632         * modules/unicase/u32-ct-casefold: New file.
34633
34634         New module 'unicase/u16-ct-casefold'.
34635         * lib/unicase/u16-ct-casefold.c: New file.
34636         * modules/unicase/u16-ct-casefold: New file.
34637
34638         New module 'unicase/u8-ct-casefold'.
34639         * lib/unicase/u8-ct-casefold.c: New file.
34640         * lib/unicase/u-ct-casefold.h: New file, derived from
34641         lib/unicase/u-casefold.h.
34642         * modules/unicase/u8-ct-casefold: New file.
34643
34644         New module 'unicase/u32-ct-totitle'.
34645         * lib/unicase/u32-ct-totitle.c: New file.
34646         * modules/unicase/u32-ct-totitle: New file.
34647
34648         New module 'unicase/u16-ct-totitle'.
34649         * lib/unicase/u16-ct-totitle.c: New file.
34650         * modules/unicase/u16-ct-totitle: New file.
34651
34652         New module 'unicase/u8-ct-totitle'.
34653         * lib/unicase/u8-ct-totitle.c: New file.
34654         * lib/unicase/u-ct-totitle.h: New file, derived from
34655         lib/unicase/u-totitle.h.
34656         * modules/unicase/u8-ct-totitle: New file.
34657
34658         New module 'unicase/u32-ct-tolower'.
34659         * lib/unicase/u32-ct-tolower.c: New file.
34660         * modules/unicase/u32-ct-tolower: New file.
34661
34662         New module 'unicase/u16-ct-tolower'.
34663         * lib/unicase/u16-ct-tolower.c: New file.
34664         * modules/unicase/u16-ct-tolower: New file.
34665
34666         New module 'unicase/u8-ct-tolower'.
34667         * lib/unicase/u8-ct-tolower.c: New file.
34668         * modules/unicase/u8-ct-tolower: New file.
34669
34670         New module 'unicase/u32-ct-toupper'.
34671         * lib/unicase/u32-ct-toupper.c: New file.
34672         * modules/unicase/u32-ct-toupper: New file.
34673
34674         New module 'unicase/u16-ct-toupper'.
34675         * lib/unicase/u16-ct-toupper.c: New file.
34676         * modules/unicase/u16-ct-toupper: New file.
34677
34678         New module 'unicase/u8-ct-toupper'.
34679         * lib/unicase/u8-ct-toupper.c: New file.
34680         * modules/unicase/u8-ct-toupper: New file.
34681
34682         Add context arguments to u*_casemap functions.
34683         * lib/unicase/unicasemap.h: Include unicase.h.
34684         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
34685         suffix_context arguments.
34686         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
34687         functions.
34688         (FUNC): Add prefix_context and suffix_context arguments. Use
34689         uc_is_cased and uc_is_case_ignorable.
34690         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
34691         * lib/unicase/u16-casemap.c: Likewise.
34692         * lib/unicase/u32-casemap.c: Likewise.
34693         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
34694         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34695         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
34696         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34697         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
34698         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34699
34700         New module 'unicase/u32-suffix-context'.
34701         * lib/unicase/u32-suffix-context.c: New file.
34702         * modules/unicase/u32-suffix-context: New file.
34703
34704         New module 'unicase/u16-suffix-context'.
34705         * lib/unicase/u16-suffix-context.c: New file.
34706         * modules/unicase/u16-suffix-context: New file.
34707
34708         New module 'unicase/u8-suffix-context'.
34709         * lib/unicase/u8-suffix-context.c: New file.
34710         * lib/unicase/u-suffix-context.h: New file.
34711         * modules/unicase/u8-suffix-context: New file.
34712
34713         New module 'unicase/empty-suffix-context'.
34714         * lib/unicase/empty-suffix-context.c: New file.
34715         * modules/unicase/empty-suffix-context: New file.
34716
34717         New module 'unicase/u32-prefix-context'.
34718         * lib/unicase/u32-prefix-context.c: New file.
34719         * modules/unicase/u32-prefix-context: New file.
34720
34721         New module 'unicase/u16-prefix-context'.
34722         * lib/unicase/u16-prefix-context.c: New file.
34723         * modules/unicase/u16-prefix-context: New file.
34724
34725         New module 'unicase/u8-prefix-context'.
34726         * lib/unicase/u8-prefix-context.c: New file.
34727         * lib/unicase/u-prefix-context.h: New file.
34728         * lib/unicase/context.h: New file.
34729         * modules/unicase/u8-prefix-context: New file.
34730
34731         New module 'unicase/empty-prefix-context'.
34732         * lib/unicase/empty-prefix-context.c: New file.
34733         * modules/unicase/empty-prefix-context: New file.
34734
34735         New module 'unicase/ignorable'.
34736         * lib/unicase/ignorable.c: New file.
34737         * modules/unicase/ignorable: New file.
34738
34739         New module 'unicase/cased'.
34740         * lib/unicase/caseprop.h: New file.
34741         * lib/unicase/cased.c: New file.
34742         * modules/unicase/cased: New file.
34743
34744         New functions for case mapping of substrings.
34745         * lib/unicase.h (casing_prefix_context_t): New type.
34746         (unicase_empty_prefix_context): New variable.
34747         (u8_casing_prefix_context, u16_casing_prefix_context,
34748         u32_casing_prefix_context, u8_casing_prefixes_context,
34749         u16_casing_prefixes_context, u32_casing_prefixes_context): New
34750         declarations.
34751         (casing_suffix_context_t): New type.
34752         (unicase_empty_suffix_context): New variable.
34753         (u8_casing_suffix_context, u16_casing_suffix_context,
34754         u32_casing_suffix_context, u8_casing_suffixes_context,
34755         u16_casing_suffixes_context, u32_casing_suffixes_context,
34756         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
34757         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
34758         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
34759         declarations.
34760
34761 2009-06-28  Jim Meyering  <meyering@redhat.com>
34762
34763         boostrap: indent only with spaces
34764         * build-aux/bootstrap: Indent only with spaces, never TABs.
34765
34766         bootstrap: split long lines
34767         * build-aux/bootstrap: Keep line length < 80.
34768
34769         bootstrap: sync from coreutils
34770         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
34771         just as autoreconf does.  Verify a list of prerequisite
34772         package-name,version-number pairs if defined in bootstrap.conf.
34773         Refer to README-prereq, if prerequisites are not satisfied.
34774
34775 2009-06-27  Eric Blake  <ebb9@byu.net>
34776
34777         tests: add test for bogus NULL definition
34778         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
34779         * tests/test-stdlib.c: Likewise.
34780         * tests/test-string.c: Likewise.
34781         * tests/test-locale.c: Likewise.
34782         * tests/test-unistd.c: Likewise.
34783         * modules/stdio-tests (Depends-on): Add verify.
34784         * modules/stdlib-tests (Depends-on): Likewise.
34785         * modules/string-tests (Depends-on): Likewise.
34786         * modules/locale-tests (Depends-on): Likewise.
34787         * modules/unistd-tests (Depends-on): Likewise.
34788
34789 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
34790
34791         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
34792         self-explaining comment.
34793         * m4/selinux-selinux-h: Update serial.
34794         (gl_LIBSELINUX): New macro, adding a warning for missing development
34795         packages to code extracted from...
34796         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
34797         Add warning for missing development packages here, too.
34798
34799 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
34800
34801         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
34802
34803 2009-06-25  Eric Blake  <ebb9@byu.net>
34804
34805         version-etc: fix regression
34806         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
34807         gcc.
34808         (version_etc): Use it, to catch bugs with trailing NULL.
34809         * lib/version-etc.c (version_etc_arn): Delete unused argument.
34810         (version_etc_va): Fix logic bug.
34811         * modules/version-etc-tests: Add test.
34812         * tests/test-version-etc.c: New file.
34813         * tests/test-version-etc.sh: Likewise.
34814
34815 2009-06-25  Sam Steingold  <sds@gnu.org>
34816
34817         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
34818         mbtowc declaration.
34819
34820 2009-06-25  Eric Blake  <ebb9@byu.net>
34821
34822         fpurge: migrate into <stdio.h>
34823         * lib/fpurge.h: Delete...
34824         * lib/stdio.in.h (fpurge): ...and declare here, instead.
34825         * lib/fpurge.c (fpurge): Change declaring header.
34826         * modules/fpurge (Files): Drop deleted file.
34827         (Depends-on): Add stdio.
34828         (configure.ac): Set witness.
34829         * modules/stdio (Makefile.am): Support fpurge macros.
34830         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34831         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
34832         * lib/fflush.c: Update client.
34833         * tests/test-fpurge.c: Likewise.
34834         * NEWS: Mention the change.
34835
34836 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34837
34838         * lib/argp-version-etc.c (program_authors): Add const
34839         qualifier.
34840         * lib/version-etc.c: Fix typos in the comments.
34841         * modules/argp-version-etc: Depends on version-etc.
34842
34843 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34844
34845         argp-version-etc: new module.
34846
34847         * lib/argp-version-etc.c: New file.
34848         * lib/argp-version-etc.h: New file.
34849         * modules/argp-version-etc: New file.
34850         * modules/argp-version-etc-tests: New file.
34851         * tests/test-argp-version-etc.c: New test.
34852         * tests/test-argp-version-etc-1.sh: New test.
34853
34854 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34855
34856         Provide additional interfaces and documentation for version-etc
34857         module.
34858
34859         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
34860         interfaces.
34861         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
34862         prototypes.
34863
34864 2009-06-24  Bruno Haible  <bruno@clisp.org>
34865
34866         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
34867         HAVE_LIB${NAME} macro.
34868         Reported by Sam Steingold <sds@gnu.org>.
34869
34870 2009-06-23  Simon Josefsson  <simon@josefsson.org>
34871
34872         * modules/hash-tests (test_hash_LDADD): Link to libintl when
34873         needed.
34874
34875 2009-06-21  Bruno Haible  <bruno@clisp.org>
34876
34877         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
34878         work.
34879         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
34880         together with LIB${NAME}, LTLIB${NAME}.
34881         Reported by Sam Steingold <sds@gnu.org>.
34882
34883 2009-06-20  Jim Meyering  <meyering@redhat.com>
34884
34885         tests: make sc_require_test_exit_idiom more generic
34886         * top/maint.mk (Exit_witness_file): New overridable variable.
34887         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
34888         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
34889
34890 2009-06-19  Jim Meyering  <meyering@redhat.com>
34891
34892         hash: reverse order of src/dst parameters in an internal interface
34893         * lib/hash.c (transfer_entries): Reverse order of parameters to
34894         put DST before SRC.  Adjust callers.
34895
34896         tests: test-hash: avoid wholesale duplication
34897         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
34898         Instead, use a loop and add a single conditional.
34899
34900         tests: test-hash: allow seed selection via a command line argument
34901         * tests/test-hash.c (get_seed): New function.
34902         (main): Use it.
34903
34904 2009-06-19  Eric Blake  <ebb9@byu.net>
34905
34906         hash: avoid memory leak on allocation failure
34907         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
34908         failure.  Factor repeated algorithm...
34909         (transfer_entries): ...into new helper routine.
34910         (hash_delete): React to hash_rehash return value.
34911
34912         hash: reduce memory pressure in hash_rehash no-op case
34913         * lib/hash.c (next_prime): Avoid overflow.
34914         (hash_initialize): Factor bucket size computation...
34915         (compute_bucket_size): ...into new helper function.
34916         (hash_rehash): Use new function and open coding to reduce memory
34917         pressure, and avoid a memory leak in USE_OBSTACK code.
34918         Reported by Jim Meyering.
34919
34920 2009-06-18  Eric Blake  <ebb9@byu.net>
34921
34922         hash: make rotation more obvious
34923         * modules/hash (Depends-on): Add bitrotate and stdint.
34924         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
34925         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
34926         (SIZE_MAX): Rely on headers for definition.
34927         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
34928         (raw_hasher): Use rotr_sz.
34929         Suggested by Jim Meyering.
34930
34931         hash: fix memory leak in last patch
34932         * lib/hash.c (hash_rehash): Avoid memory leak.
34933
34934         hash: avoid no-op rehashing
34935         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
34936
34937         hash: provide default callback functions
34938         * lib/hash.c (raw_hasher, raw_comparator): New functions.
34939         (hash_initialize): Use them as defaults.
34940         * tests/test-hash.c (main): Test this.
34941
34942         hash: minor optimization
34943         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
34944         when possible.
34945         (hash_initialize): Document this promise.
34946         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
34947         * tests/test-hash.c (hash_compare_strings): Test this.
34948
34949 2009-06-18  Bruno Haible  <bruno@clisp.org>
34950
34951         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
34952         going to be replaced anyway.
34953
34954 2009-06-18  Bruno Haible  <bruno@clisp.org>
34955
34956         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
34957         in one place.
34958         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
34959         be replaced anyway.
34960
34961 2009-06-18  Eric Blake  <ebb9@byu.net>
34962
34963         hash: check for resize before insertion
34964         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
34965         threshold before insertion, so that a pathological hash_rehash
34966         that fills every bucket can still trigger another rehash.
34967
34968 2009-06-18  Jim Meyering  <meyering@redhat.com>
34969
34970         hash-tests: add a loop around the small tests
34971         * tests/test-hash.c (main): Repeat small tests with selected
34972         small initial table sizes.
34973
34974 2009-06-17  Eric Blake  <ebb9@byu.net>
34975
34976         hash: minor cleanups
34977         * lib/hash.h (hash_entry): Make opaque, by moving...
34978         * lib/hash.c (hash_entry): ...here.
34979         (hash_insert): Clarify restrictions on what can be inserted.
34980         (hash_get_next): Clarify when it is safe to remove an element
34981         during traversal.
34982         (check_tuning): Skip verification when tuning is known safe.
34983         (hash_initialize): Clarify restrictions on tuning.
34984
34985 2009-06-17  Jim Meyering  <jim@meyering.net>
34986         and Eric Blake  <ebb9@byu.net>
34987
34988         hash-tests: new module
34989         * modules/hash-tests: New file.
34990         * tests/test-hash.c: New file.
34991
34992 2009-06-17  Eric Blake  <ebb9@byu.net>
34993
34994         strstr-simple: document new module
34995         * MODULES.html.sh: Document new module.
34996
34997         strstr, strcasestr: replace on platforms with broken memchr
34998         * modules/strstr: Split into...
34999         * modules/strstr-simple: ...new module that does not care about
35000         performance, but does care about glibc bug.
35001         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
35002         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
35003         if platform memchr is broken, per Debian bug 521737.
35004         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
35005         memchr.
35006         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
35007         * doc/posix-functions/strstr.texi (strstr): Document the fix.
35008         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
35009         * modules/mountlist (Depends-on): Add strstr-simple.
35010         * modules/gen-uni-tables (Depends-on): Likewise.
35011         * modules/argz (Depends-on): Add strstr.
35012
35013 2009-06-17  Bruno Haible  <bruno@clisp.org>
35014
35015         * modules/posix_spawn-internal (Depends-on): Add errno.
35016
35017 2009-06-17  Bruno Haible  <bruno@clisp.org>
35018
35019         Define missing ESTALE on Interix 3.5.
35020         * lib/errno.in.h (ESTALE): Assign a value if missing.
35021         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
35022         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
35023         missing.
35024         * doc/posix-headers/errno.texi: Mention the Interix bug.
35025         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
35026
35027 2009-06-15  Eric Blake  <ebb9@byu.net>
35028
35029         memchr, memchr2: add valgrind exception
35030         * lib/memchr.valgrind: New file.
35031         * lib/memchr2.valgrind: New file.
35032         * modules/memchr (Files): Distribute valgrind file.
35033         * modules/memchr2 (Files): Likewise.
35034
35035         docs: memchr is no longer obsolete
35036         * MODULES.html.sh: Move memchr from obsolete to string.h section.
35037         * lib/string.in.h (memchr): Simplify logic.
35038
35039 2009-06-14  Jim Meyering  <meyering@redhat.com>
35040
35041         link-follow: fix the "checking..." message to not mention trailing slash
35042         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
35043         never considered trailing slashes.
35044
35045 2009-06-14  Bruno Haible  <bruno@clisp.org>
35046
35047         * m4/memchr.m4: Mention also the bug on IA-64.
35048         * doc/posix-functions/memchr.texi: Likewise.
35049
35050 2009-06-12  Eric Blake  <ebb9@byu.net>
35051
35052         memchr: detect broken x86_64 and alpha implementations
35053         * modules/memchr-tests (Depends-on): Move mmap detection...
35054         * modules/memchr (Depends-on): ...here.
35055         (configure.ac): Set indicator.
35056         * lib/string.in.h (memchr): Declare replacement.
35057         * modules/string (Makefile.am): Trigger replacement.
35058         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
35059         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
35060         bugs.
35061         * doc/posix-functions/memchr.texi (memchr): Document the bug.
35062         * modules/getpagesize (License): Relax license.
35063
35064 2009-06-11  Bruno Haible  <bruno@clisp.org>
35065
35066         * lib/idpriv.h: Add more references.
35067
35068 2009-06-08  Bruno Haible  <bruno@clisp.org>
35069
35070         Tests for module 'idpriv-droptemp'.
35071         * modules/idpriv-droptemp-tests: New file.
35072         * tests/test-idpriv-droptemp.sh: New file.
35073         * tests/test-idpriv-droptemp.su.sh: New file.
35074         * tests/test-idpriv-droptemp.c: New file.
35075
35076         New module 'idpriv-droptemp'.
35077         * lib/idpriv-droptemp.c: New file.
35078         * modules/idpriv-droptemp: New file.
35079
35080 2009-06-08  Bruno Haible  <bruno@clisp.org>
35081
35082         Tests for module 'idpriv-drop'.
35083         * modules/idpriv-drop-tests: New file.
35084         * tests/test-idpriv-drop.sh: New file.
35085         * tests/test-idpriv-drop.su.sh: New file.
35086         * tests/test-idpriv-drop.c: New file.
35087
35088         New module 'idpriv-drop'.
35089         * lib/idpriv.h: New file.
35090         * lib-idpriv-drop.c: New file.
35091         * m4/idpriv.m4: New file.
35092         * modules/idpriv-drop: New file.
35093
35094 2009-06-08  Bruno Haible  <bruno@clisp.org>
35095
35096         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
35097         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35098         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35099         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35100         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35101         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35102         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35103
35104 2009-06-08  Eric Blake  <ebb9@byu.net>
35105
35106         test-strstr: use memory fence, when possible
35107         * tests/test-strstr.c (main): Use memory fence, in order to be
35108         more likely to trigger Debian bug 521737.
35109         * modules/strstr-tests (Files): Pull in additional files.
35110
35111         memchr: no longer obsolete, for wider field testing
35112         * modules/memchr (Status, Notice): Delete, this module is no
35113         longer obsolete.
35114         * modules/vasnprintf (Depends-on): Add memchr.
35115
35116 2009-06-07  Jim Meyering  <meyering@redhat.com>
35117
35118         hash: declare some functions with the warn_unused_result attribute
35119         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
35120
35121 2009-06-07  Bruno Haible  <bruno@clisp.org>
35122
35123         * tests/test-alignof.c: Don't test int64_t if it does not exist.
35124         Reported by Eric Blake.
35125
35126 2009-06-06  Eric Blake  <ebb9@byu.net>
35127
35128         test-alignof: fix typo with long double
35129         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
35130         compiler error.
35131
35132 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
35133
35134         Escape non-texinfo { and }s.
35135         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
35136         markup error.
35137
35138 2009-06-04  Jim Meyering  <meyering@redhat.com>
35139
35140         gitlog-to-changelog: don't infloop on an empty commit log
35141         * build-aux/gitlog-to-changelog: Warn about an empty log message.
35142         Reported by Boris Petersen <transacid@centerim.org>.
35143
35144 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
35145
35146         version-etc: extend for packagers
35147         Add three new configure options, intended for packagers:
35148           --with-packager="packager name"
35149           --with-packager-version="packager-specific version"
35150           --with-packager-bug-reports="packager bug reporting"
35151         An example with coreutils:
35152           $ ./configure \
35153             --with-packager=Gentoo \
35154             --with-packager-bug-report=http://bugs.gentoo.org/ \
35155             --with-packager-version="patchset 1.6"
35156           $ ./src/ls --version | head -n2
35157           ls (GNU coreutils) 7.1-dirty
35158           Packaged by Gentoo (patchset 1.6)
35159         Note that the bug reporting info via --help doesn't show up because
35160         coreutils uses its own custom emit_bug_reporting_address() implementation
35161         in src/system.h.  If it didn't, it'd look like:
35162           $ ./src/ls --help | tail -n4
35163           Report bugs to <bug-coreutils@gnu.org>.
35164           Report Gentoo bugs to <http://bugs.gentoo.org/>.
35165           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
35166           General help using GNU software: <http://www.gnu.org/gethelp/>.
35167         * lib/version-etc.c: Print new information, if provided.
35168         * m4/version-etc.m4: New file.
35169         * modules/version-etc (Files): Add m4/version-etc.m4.
35170         (configure.ac): Add gl_VERSION_ETC.
35171
35172 2009-05-31  Bruno Haible  <bruno@clisp.org>
35173
35174         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
35175         and 'int64_t'.
35176         * modules/alignof-tests (Dependencies): Add stdint.
35177         Reported by Eric Blake.
35178
35179 2009-05-31  Bruno Haible  <bruno@clisp.org>
35180
35181         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
35182         restriction due to compiler bugs.
35183         Reported by Eric Blake.
35184
35185 2009-05-31  Simon Josefsson  <simon@josefsson.org>
35186             Bruno Haible  <bruno@clisp.org>
35187
35188         Fix test-alignof failure.
35189         * lib/alignof.h (alignof_slot): New macro.
35190         (alignof_type): New macro, with the same semantics as the previous
35191         'alignof'.
35192         (alignof): Alias to alignof_slot.
35193         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
35194         check that the results are usable as constant expressions.
35195
35196 2009-05-31  Bruno Haible  <bruno@clisp.org>
35197
35198         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
35199         * tests/test-memchr.c (main): Check that memchr does not read past the
35200         first occurrence of the byte.
35201         * tests/test-strstr.c (main): Update comment.
35202         Suggested by Eric Blake.
35203
35204 2009-05-30  Bruno Haible  <bruno@clisp.org>
35205
35206         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
35207         detail how to use dumpbin.
35208         Reported by David Byron <dbyron@dbyron.com>.
35209
35210 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35211
35212         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
35213
35214 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35215
35216         * m4/manywarnings.m4: Add GCC 4.4 warnings.
35217
35218 2009-05-28  Bruno Haible  <bruno@clisp.org>
35219
35220         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
35221         build-aux/ files.
35222
35223 2009-05-28  Simon Josefsson  <simon@josefsson.org>
35224
35225         * gnulib-tool (func_import): Transform license on build-aux/ files too.
35226
35227 2009-05-27  Simon Josefsson  <simon@josefsson.org>
35228
35229         * gnulib-tool (sed_transform_main_lib_file)
35230         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
35231         regexps.
35232
35233 2009-05-26  Simon Josefsson  <simon@josefsson.org>
35234
35235         * tests/test-strstr.c: Add another self-test.
35236         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
35237         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
35238
35239 2009-05-23  Bruno Haible  <bruno@clisp.org>
35240
35241         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
35242         change.
35243
35244 2009-05-21  Bruno Haible  <bruno@clisp.org>
35245
35246         Simplify use of mode_t varargs.
35247         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
35248         uses 'mode_t' or 'int'.
35249         * lib/openat.c (openat): Likewise.
35250         * lib/open-safer.c (open_safer): Likewise.
35251         * m4/mode_t.m4: New file.
35252         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
35253         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
35254         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
35255         * modules/open (Files): Add m4/mode_t.m4.
35256         * modules/openat (Files): Likewise.
35257         * modules/fcntl-safer (Files): Likewise.
35258         Suggested by Eric Blake.
35259
35260 2009-05-21  Pádraig Brady  <P@draigbrady.com>
35261
35262         * doc/glibc-functions/fallocate.texi: New file.
35263         * doc/gnulib.texi: Include it.
35264
35265 2009-05-21  Eric Blake  <ebb9@byu.net>
35266             Bruno Haible  <bruno@clisp.org>
35267
35268         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
35269         invocations.
35270         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35271
35272 2009-05-21  Eric Blake  <ebb9@byu.net>
35273             Bruno Haible  <bruno@clisp.org>
35274
35275         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
35276         include_next. Fix of 2008-11-20 commit.
35277         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
35278         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
35279         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
35280         NEXT_MATH_H.
35281         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
35282         instead of NEXT_MATH_H.
35283
35284 2009-05-21  Bruno Haible  <bruno@clisp.org>
35285
35286         Avoid redefinition warnings for SIZE_MAX.
35287         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
35288         Reported by Simon Josefsson.
35289
35290 2009-05-21  Bruno Haible  <bruno@clisp.org>
35291
35292         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
35293         AC_CACHE_VAL.
35294
35295 2009-05-20  Bruno Haible  <bruno@clisp.org>
35296
35297         Make zeroptr.h work on mingw.
35298         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
35299         mprotect.
35300         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
35301         * modules/memchr2-tests (configure.ac): Likewise.
35302         * modules/memcmp-tests (configure.ac): Likewise.
35303         * modules/memmem-tests (configure.ac): Likewise.
35304         * modules/memrchr-tests (configure.ac): Likewise.
35305         Reported by Simon Josefsson.
35306
35307 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35308
35309         * tests/test-glob.c: Include string.h for strcmp prototype.
35310
35311 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35312
35313         * modules/getdelim (Depends-on): Add explicit stdint, although it
35314         was implicitly already pulled in via realloc-posix.
35315         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
35316
35317 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35318
35319         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
35320         G. Christensen" <tgc@jupiterrise.com>.
35321         * m4/sys_socket_h.m4: Check for sa_family_t.
35322         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
35323         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
35324         * tests/test-sys_socket.c: Check that sa_family_t works.
35325
35326 2009-05-18  Eric Blake  <ebb9@byu.net>
35327
35328         maint.mk: allow gnulib_dir in VPATH build
35329         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
35330
35331 2009-05-15  Jim Meyering  <meyering@redhat.com>
35332
35333         maint.mk: Give gnulib_dir a default definition.
35334         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
35335         Thus, most packages no longer need to specify this variable in cfg.mk
35336
35337 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
35338
35339         rename.m4: fix typos that would make non-mingw cross-configure fail
35340         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
35341
35342 2009-05-13  Eric Blake  <ebb9@byu.net>
35343
35344         mmap-anon: avoid out-of-order autoconf expansion
35345         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
35346         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
35347         * modules/memchr-tests (Depends-on): Add extensions.
35348         * modules/memchr2-tests (Depends-on): Add extensions.
35349         * modules/memcmp-tests (Depends-on): Add extensions.
35350         * modules/memmem-tests (Depends-on): Add extensions.
35351         * modules/memrchr-tests (Depends-on): Add extensions.
35352
35353 2009-05-13  Bruno Haible  <bruno@clisp.org>
35354
35355         Make some tests ISO C 99 compliant.
35356         * tests/zerosize-ptr.h: New file.
35357         * tests/test-memchr.c: Include zerosize-ptr.h.
35358         (main): Use a zero-size object pointer instead of NULL.
35359         * tests/test-memchr2.c: Include zerosize-ptr.h.
35360         (main): Use a zero-size object pointer instead of NULL.
35361         * tests/test-memcmp.c: Include zerosize-ptr.h.
35362         (main): Use a zero-size object pointer instead of NULL.
35363         * tests/test-memmem.c: Include zerosize-ptr.h.
35364         (main): Use a zero-size object pointer instead of NULL.
35365         * tests/test-memrchr.c: Include zerosize-ptr.h.
35366         (main): Use a zero-size object pointer instead of NULL.
35367         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
35368         m4/mmap-anon.m4.
35369         (Depends-on): Add getpagesize.
35370         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35371         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
35372         m4/mmap-anon.m4.
35373         (Depends-on): Add getpagesize.
35374         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35375         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
35376         m4/mmap-anon.m4.
35377         (Depends-on): Add getpagesize.
35378         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35379         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
35380         m4/mmap-anon.m4.
35381         (Depends-on): Add getpagesize.
35382         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35383         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
35384         m4/mmap-anon.m4.
35385         (Depends-on): Add getpagesize.
35386         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35387
35388 2009-05-12  Bruno Haible  <bruno@clisp.org>
35389
35390         Tests for module 'alignof'.
35391         * modules/alignof-tests: New file.
35392         * tests/test-alignof.c: New file.
35393
35394 2009-05-12  Bruno Haible  <bruno@clisp.org>
35395
35396         Fix alignof macro.
35397         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
35398         vendor compilers that are always correct.
35399
35400 2009-05-12  Bruno Haible  <bruno@clisp.org>
35401
35402         Make the MAP_ANONYMOUS detection work on HP-UX 11.
35403         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
35404         not whether its fully works.
35405
35406 2009-05-12  Bruno Haible  <bruno@clisp.org>
35407
35408         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
35409
35410 2009-05-12  Jim Meyering  <meyering@redhat.com>
35411
35412         * top/maint.mk: Adjust backslash alignment.
35413
35414 2009-05-11  Simon Josefsson  <simon@josefsson.org>
35415
35416         * top/maint.mk: Make $(srcdir)/build-aux configurable.
35417
35418 2009-05-11  Eric Blake  <ebb9@byu.net>
35419
35420         argp: avoid undefined behavior
35421         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
35422         macros.
35423
35424 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35425
35426         * tests/test-vc-list-files-git.sh: Do git config of user.email and
35427         user.name to prevent git commit from complaining.
35428
35429 2009-05-10  Bruno Haible  <bruno@clisp.org>
35430
35431         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
35432         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
35433         it rewrites every file name only once.
35434         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
35435
35436 2009-05-08  Bruno Haible  <bruno@clisp.org>
35437
35438         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
35439         instead of 'max'.
35440
35441 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35442
35443         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
35444         sockaddr_storage test.
35445
35446 2009-05-07  Simon Josefsson  <simon@josefsson.org>
35447
35448         * modules/sys_socket (Makefile.am): Substitute
35449         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
35450         * m4/sys_socket_h.m4: Check for sockaddr_storage.
35451         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
35452         * tests/test-sys_socket.c: Check sockaddr_storage.
35453
35454 2009-05-08  Bruno Haible  <bruno@clisp.org>
35455
35456         New module 'alignof'.
35457         * lib/alignof.h: New file.
35458         * modules/alignof: New file.
35459
35460 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35461             Bruno Haible  <bruno@clisp.org>
35462
35463         Fix test-file-has-acl on FreeBSD.
35464         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
35465         mask is implicitly added.
35466         * tests/test-file-has-acl.c: Include <signal.h>.
35467         (main): Terminate the test after 5 seconds.
35468         * modules/acl-tests (configure.ac): Check for alarm function.
35469
35470 2009-05-04  Bruno Haible  <bruno@clisp.org>
35471
35472         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
35473         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
35474         * modules/errno (configure.ac): Drop AC_REQUIRE.
35475         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
35476         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
35477
35478 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35479
35480         * modules/glob-tests: New module.
35481         * tests/test-glob.c: Add.
35482
35483 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35484
35485         * modules/fnmatch-tests: New module.
35486         * tests/test-fnmatch.c: Add.
35487
35488 2009-05-04  Eric Blake  <ebb9@byu.net>
35489
35490         maint: make the new no-submodule-changes rule VPATH-safe
35491         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
35492
35493 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35494             Bruno Haible  <bruno@clisp.org>
35495
35496         acl: Fix infinite loop on FreeBSD.
35497         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
35498         of return value from acl_get_entry.
35499         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
35500         Likewise.
35501
35502 2009-05-03  Bruno Haible  <bruno@clisp.org>
35503
35504         * lib/acl-internal.h (acl_entries): Clarify return value.
35505         * lib/acl_entries.c (acl_entries): Likewise.
35506
35507 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35508
35509         Bug fix in acl module.
35510         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
35511
35512 2009-05-03  Bruno Haible  <bruno@clisp.org>
35513
35514         Create gperf-generated file in the source dir, not in the build dir.
35515         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
35516         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
35517         * modules/unicase/locale-language (unicase/locale-languages.h):
35518         Likewise.
35519         * modules/unicase/special-casing (unicase/special-casing-table.h):
35520         Likewise.
35521         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
35522         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
35523         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
35524         Reported by Ralf Wildenhues.
35525
35526 2009-05-03  Bruno Haible  <bruno@clisp.org>
35527
35528         * modules/fnmatch (Description, configure.ac): Taken from
35529         fnmatch-posix.
35530         * modules/fnmatch-posix: Turn into a symbolic reference to the
35531         'fnmatch' module, and deprecate.
35532         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
35533
35534 2009-05-03  Bruno Haible  <bruno@clisp.org>
35535
35536         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
35537         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
35538         Reported by Ralf Wildenhues.
35539
35540 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35541
35542         * m4/fnmatch.m4: Fix fnmatch re-define.
35543
35544 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35545
35546         priv-set: new module and tests; adapt write-any-file
35547         * lib/priv-set.c: New file.
35548         * lib/priv-set.h: New file.
35549         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
35550         * lib/write-any-file.c: Simplify by using priv-set module.
35551         * m4/priv-set.m4: New file.
35552         * modules/priv-set: New file.
35553         * modules/unlinkdir: Add dependency on priv-set module.
35554         * modules/write-any-file: Likewise.
35555
35556         Tests for module 'priv-set'.
35557         * modules/priv-set-tests: New file.
35558         * tests/test-priv-set.c: New file.
35559
35560 2009-05-03  Jim Meyering  <meyering@redhat.com>
35561             Bruno Haible  <bruno@clisp.org>
35562
35563         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
35564         use the converted UTF-8 variant of the name instead.
35565
35566 2009-05-03  Jim Meyering  <meyering@redhat.com>
35567
35568         tests: tighten some getdate tests
35569         * tests/test-getdate.c (main): Tighten tests: require equality,
35570         not just greater than.  Set TZ envvar to UTC0.
35571
35572 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
35573
35574         getdate: correctly interpret "next monday" when run on a Monday
35575         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
35576         that e.g., "next tues" (when run on a tuesday) results in a date
35577         that is one week in the future, and not today's date.
35578         I.e., add a week when the wday is the same as the current one.
35579         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
35580         and earlier by Martin Bernreuther and Jan Minář.
35581         * tests/test-getdate.c (main): Check that "next DAY" is always in
35582         the future and that "last DAY" is always in the past.
35583
35584 2009-05-02  Jim Meyering  <meyering@redhat.com>
35585
35586         build: ensure that a release build fails when a submodule is unclean
35587         * top/maint.mk (no-submodule-changes): New rule.
35588         (alpha beta major): Depend on it.
35589
35590 2009-05-02  Bruno Haible  <bruno@clisp.org>
35591
35592         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
35593         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
35594         shell variable gl_fnmatch_required to detect which variant is
35595         requested.
35596         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
35597         gl_FUNC_FNMATCH_POSIX.
35598         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
35599         exclude fnmatch-posix.
35600
35601 2009-05-02  Bruno Haible  <bruno@clisp.org>
35602
35603         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
35604         * modules/mbsrtowcs (License): Change to LGPLv2+.
35605         * modules/strnlen1 (License): Likewise.
35606         Reported by Simon Josefsson.
35607
35608 2009-05-02  Bruno Haible  <bruno@clisp.org>
35609
35610         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
35611         "cross".
35612         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
35613         gnulib-tool was called with option --source-base=lib.
35614
35615 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35616
35617         Use automake *-local hooks without commands, for extensibility.
35618         * modules/localcharset (Makefile.am): Rename install-exec-local
35619         rule to install-exec-localcharset, and make it a prerequisite of
35620         install-exec-local.  Likewise, rename the uninstall-local rule to
35621         uninstall-localcharset, and make it a prerequisite of the former.
35622
35623 2009-05-01  Bruno Haible  <bruno@clisp.org>
35624
35625         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
35626         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35627         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
35628         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
35629         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
35630         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35631         m4/locale-zh.m4, m4/codeset.m4.
35632
35633         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35634         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
35635         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35636         m4/locale-zh.m4.
35637
35638         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
35639         REPLACE_WCRTOMB if mbstate_t must be replaced.
35640         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
35641         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
35642
35643 2009-05-01  Bruno Haible  <bruno@clisp.org>
35644
35645         Avoid compiler warnings when redefining macros defined by <libintl.h>.
35646         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
35647         dngettext, dcngettext, textdomain, bindtextdomain,
35648         bind_textdomain_codeset): Undefine before redefining.
35649
35650 2009-04-30  Bruno Haible  <bruno@clisp.org>
35651
35652         Fix bug introduced on 2009-04-25.
35653         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
35654         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
35655         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
35656         is defined.
35657         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
35658         is defined.
35659         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
35660         is defined.
35661         Reported by Elbert_Pol <elbert.pol@gmail.com>.
35662
35663 2009-04-28  Bruno Haible  <bruno@clisp.org>
35664
35665         Comment tweaks.
35666         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
35667         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
35668         * lib/unicase.h (u*_casexfrm): Likewise.
35669         Reported by Paolo Bonzini.
35670
35671 2009-04-28  Bruno Haible  <bruno@clisp.org>
35672
35673         Fix a compilation error.
35674         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
35675         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
35676         Reported by Jim Meyering.
35677
35678 2009-04-27  Bruno Haible  <bruno@clisp.org>
35679
35680         New module 'libunistring'.
35681         * modules/libunistring: New file.
35682         * m4/libunistring.m4: New file.
35683         * MODULES.html.sh (Unicode string functions): Add it.
35684
35685 2009-04-27  Eric Blake  <ebb9@byu.net>
35686
35687         maint.mk: allow package-specific header to provide <config.h>
35688         * top/maint.mk (sc_require_config_h): New variable.
35689         (sc_require_config_h, sc_require_config_h_first): Use it.
35690
35691 2009-04-27  Simon Josefsson  <simon@josefsson.org>
35692
35693         * top/maint.mk (sc_avoid_if_before_free): Except
35694         useless-if-before-free script.
35695
35696 2009-04-27  Eric Blake  <ebb9@byu.net>
35697
35698         maintainer-makefile: depend on all required helper scripts
35699         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
35700         useless-if-before-free.
35701         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
35702         version, rather than assuming gnulib checkout is available.
35703         Reported by Simen Josefsson.
35704
35705 2009-04-26  Bruno Haible  <bruno@clisp.org>
35706
35707         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
35708         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
35709         "../" or "..".
35710
35711 2009-04-26  Bruno Haible  <bruno@clisp.org>
35712
35713         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
35714         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
35715         AC_LIB_HAVE_LINKFLAGS.
35716
35717 2009-04-26  Bruno Haible  <bruno@clisp.org>
35718
35719         Simplify calling convention of u*_conv_from_encoding.
35720         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
35721         u32_conv_from_encoding): Expect a resultbuf argument and return the
35722         result directly as a pointer.
35723         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
35724         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
35725         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
35726         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
35727         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
35728         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35729         Update.
35730         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
35731         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
35732         * lib/vasnprintf.c (VASNPRINTF): Update.
35733         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
35734         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
35735         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
35736         * NEWS: Mention the change.
35737
35738 2009-04-26  Bruno Haible  <bruno@clisp.org>
35739
35740         Simplify calling convention of u*_conv_to_encoding.
35741         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
35742         u32_conv_to_encoding): Expect a resultbuf argument and return the
35743         result directly as a pointer.
35744         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35745         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
35746         freeing scaled_offsets if mem_iconveha failed.
35747         * lib/unicase/u-casexfrm.h (FUNC): Update.
35748         * lib/uninorm/u-normxfrm.h (FUNC): Update.
35749         * lib/vasnprintf.c (VASNPRINTF): Update.
35750         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
35751         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
35752         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
35753         * NEWS: Mention the change.
35754
35755 2009-04-26  Bruno Haible  <bruno@clisp.org>
35756
35757         Avoid test failures on AIX and OSF/1.
35758         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
35759         malloc(0).
35760         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35761         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35762         Likewise.
35763         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
35764         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
35765         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
35766         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
35767         * doc/posix-functions/malloc.texi: Document the portability problem
35768         related to malloc(0).
35769
35770 2009-04-26  Bruno Haible  <bruno@clisp.org>
35771
35772         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
35773         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
35774         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
35775
35776 2009-04-25  Bruno Haible  <bruno@clisp.org>
35777
35778         Avoid link error when creating a namespace clean library.
35779         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
35780         as macro with arguments if already defined as an alias.
35781         * lib/signbitf.c (gl_signbitf): Don't undefine.
35782         * lib/signbitd.c (gl_signbitd): Don't undefine.
35783         * lib/signbitl.c (gl_signbitl): Don't undefine.
35784
35785 2009-04-25  Jim Meyering  <meyering@redhat.com>
35786
35787         vc-list-files: fix another quoting bug
35788         * build-aux/vc-list-files: Avoid sed backslash expansion
35789         of pathological directory names.
35790
35791 2009-04-25  Eric Blake  <ebb9@byu.net>
35792
35793         vc-list-files: fix shell quoting error
35794         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
35795         timestamp.
35796
35797 2009-04-25  Jim Meyering  <meyering@redhat.com>
35798
35799         vc-list-files: restore lost functionality with subdir argument
35800         * build-aux/vc-list-files: When given a non-"." sub-directory
35801         argument, substitute the $dir/ prefix back onto each resulting name.
35802         Otherwise, coreutils' root_tests check would fail.
35803
35804 2009-04-24  Eric Blake  <ebb9@byu.net>
35805
35806         vc-list-files: ignore git symlinks
35807         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
35808         than ls-files, to ignore git symlinks.
35809
35810         maint.mk: import improvements from m4
35811         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
35812         (move_if_change): Delete unused macro.
35813         (news-date-check, vc-diff-check): Support VPATH builds.
35814         (announcement): Likewise.  Split --bootstrap-tools list...
35815         (boostrap-tools): ...into separate list, which can be overridden
35816         in cfg.mk.
35817         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
35818         requiring dependency on useless-if-before-free module.
35819         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
35820         Support VPATH builds.
35821
35822 2009-04-24  Jim Meyering  <meyering@redhat.com>
35823
35824         maint.mk: remove coreutils-specific rules and variables
35825         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
35826         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
35827         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
35828
35829         maint.mk: remove obsolete rule
35830         * top/maint.mk (rel-check): Remove rule.
35831         (WGET, WGETFLAGS): Remove now-unused variables.
35832
35833 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35834
35835         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
35836         consistency.
35837
35838         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
35839         '$(PATH_SEPARATOR)' instead of ':'.
35840
35841 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35842
35843         * lib/getopt1.c (main): Use 'const' for static array.
35844
35845 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35846
35847         * top/maint.mk: Sync with coreutils.
35848         * NEWS: Explain incompatibilities.
35849
35850 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35851             Bruno Haible  <bruno@clisp.org>
35852
35853         Fix cross-compilation results.
35854         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
35855         statement, as third argument of AC_TRY_RUN.
35856         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
35857         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
35858         Likewise.
35859         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
35860         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
35861         Likewise.
35862         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
35863         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
35864         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
35865
35866 2009-04-20  Bruno Haible  <bruno@clisp.org>
35867
35868         Avoid test failure on mingw.
35869         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
35870
35871 2009-04-20  Bruno Haible  <bruno@clisp.org>
35872
35873         Avoid compilation error on mingw.
35874         * modules/localename-tests (Depends-on): Add locale.
35875
35876 2009-04-19  Bruno Haible  <bruno@clisp.org>
35877
35878         Support for building a shared library on Windows platforms.
35879         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
35880         (main): Test the presence of UNINORM_NFC here.
35881         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
35882         (main): Test the presence of UNINORM_NFD here.
35883         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
35884         (main): Test the presence of UNINORM_NFKC here.
35885         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
35886         (main): Test the presence of UNINORM_NFKD here.
35887
35888 2009-04-19  Bruno Haible  <bruno@clisp.org>
35889
35890         Avoid a compiler warning.
35891         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
35892         Change type of variable 'sequence'.
35893
35894 2009-04-19  Bruno Haible  <bruno@clisp.org>
35895
35896         * modules/configmake (Makefile.am): When the contents of configmake.h
35897         does not change, arrange to preserve its modification time.
35898
35899 2009-04-17  Simon Josefsson  <simon@josefsson.org>
35900
35901         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
35902         gettext domain.
35903
35904 2009-04-16  Jim Meyering  <meyering@redhat.com>
35905
35906         useless-if-before-free: improve conversion code
35907         * build-aux/useless-if-before-free: Adjust code-in-comment to match
35908         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
35909
35910 2009-04-14  Bruno Haible  <bruno@clisp.org>
35911
35912         * modules/fcntl (Depends-on): Add extensions.
35913         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
35914
35915 2009-04-12  Ben Pfaff  <blp@gnu.org>
35916
35917         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
35918         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
35919
35920 2009-03-20  Ben Pfaff  <blp@gnu.org>
35921
35922         Make rename replace existing destinations on Windows.
35923         * m4/rename.m4: Add test for Mingw.
35924         * lib/rename.c: Add rename replacement that uses MoveFileEx with
35925         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
35926         * doc/posix-functions/rename.texi: Document.
35927
35928 2009-04-10  Bruno Haible  <bruno@clisp.org>
35929
35930         New include file "iconveh.h".
35931         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
35932         * lib/striconveh.h: Include it.
35933         (enum iconv_ilseq_handler): Remove definition.
35934         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
35935         striconveh.h.
35936         * lib/striconveha.c: Include striconveh.h.
35937         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
35938         * modules/striconveh (Files): Add lib/iconveh.h.
35939         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
35940         lib/striconveh.h.
35941
35942 2009-04-10  Bruno Haible  <bruno@clisp.org>
35943
35944         * lib/uniconv.h: Update comment.
35945
35946 2009-04-10  Bruno Haible  <bruno@clisp.org>
35947
35948         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
35949         always.
35950         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35951         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35952         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35953         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
35954         "unistring-notinline.h", so that the function gets defined always.
35955         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35956         * lib/unistr/u8-uctomb.c: Likewise.
35957         * lib/unistr/u16-mbtouc.c: Likewise.
35958         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35959         * lib/unistr/u16-uctomb.c: Likewise.
35960         * lib/unistr/u32-mbtouc.c: Likewise.
35961         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35962         * lib/unistr/u32-uctomb.c: Likewise.
35963
35964 2009-04-10  Bruno Haible  <bruno@clisp.org>
35965
35966         Mark 'utime' obsolete.
35967         * modules/utime (Status, Notice): New sections.
35968         Suggested by Jim Meyering.
35969
35970         Fix cross-compile guess for utime test.
35971         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
35972         autoconf.
35973         * doc/posix-functions/utime.texi: Give more precisions.
35974         Reported by Jan <ipif@ymail.com>.
35975
35976 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
35977
35978         filevercmp: correct today's change
35979         * lib/filevercmp.c: Also handle coreutils' test inputs.
35980         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
35981
35982         Fix regression in 'filevercmp' module. Thanks Sven Joachim
35983         for reporting it.
35984         * lib/filevercmp.c: Special handle for "", "." and "..".
35985         * tests/test-filevercmp.c: Enlarge the set suite.
35986
35987 2009-04-07  Jim Meyering  <meyering@redhat.com>
35988
35989         useless-if-before-free: show how to remove braced useless free, too
35990         * build-aux/useless-if-before-free: still only in a comment, though.
35991
35992 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
35993
35994         maint.mk: import changes to syntax-check macros from coreutils
35995         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
35996         Use them in the relevant macros.
35997
35998 2009-04-06  Bruno Haible  <bruno@clisp.org>
35999
36000         Fix unportable use of bit-fields.
36001         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
36002         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
36003         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
36004
36005 2009-04-06  Bruno Haible  <bruno@clisp.org>
36006
36007         Avoid test failures on AIX and OSF/1.
36008         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
36009         that malloc(0) = NULL.
36010         * tests/unicase/test-u8-tolower.c (check): Likewise.
36011         * tests/unicase/test-u8-totitle.c (check): Likewise.
36012         * tests/unicase/test-u8-toupper.c (check): Likewise.
36013         * tests/unicase/test-u16-casefold.c (check): Likewise.
36014         * tests/unicase/test-u16-tolower.c (check): Likewise.
36015         * tests/unicase/test-u16-totitle.c (check): Likewise.
36016         * tests/unicase/test-u16-toupper.c (check): Likewise.
36017         * tests/unicase/test-u32-casefold.c (check): Likewise.
36018         * tests/unicase/test-u32-tolower.c (check): Likewise.
36019         * tests/unicase/test-u32-totitle.c (check): Likewise.
36020         * tests/unicase/test-u32-toupper.c (check): Likewise.
36021         * tests/uninorm/test-u8-nfc.c (check): Likewise.
36022         * tests/uninorm/test-u8-nfd.c (check): Likewise.
36023         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
36024         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
36025         * tests/uninorm/test-u16-nfc.c (check): Likewise.
36026         * tests/uninorm/test-u16-nfd.c (check): Likewise.
36027         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
36028         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
36029         * tests/uninorm/test-u32-nfc.c (check): Likewise.
36030         * tests/uninorm/test-u32-nfd.c (check): Likewise.
36031         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
36032         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
36033
36034 2009-04-05  Bruno Haible  <bruno@clisp.org>
36035
36036         Work around an autoconf limitation.
36037         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
36038         comment line if it would be longer than 3 KB.
36039
36040 2009-04-05  Bruno Haible  <bruno@clisp.org>
36041
36042         Avoid test failure with libiconv-1.13.
36043         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
36044         of the expected test results.
36045
36046 2009-04-05  Bruno Haible  <bruno@clisp.org>
36047
36048         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
36049         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
36050         that it should be installed.
36051
36052 2009-04-05  Bruno Haible  <bruno@clisp.org>
36053
36054         * gnulib-tool: New option --copy-file.
36055         (func_usage): Document it.
36056         (func_dest_tmpfilename): Moved out of func_import.
36057         (func_add_file, func_update_file): New functions, extracted from
36058         func_import.
36059         (func_import): Update.
36060
36061 2009-04-05  Karl Berry  <karl@gnu.org>
36062
36063         * README: prominently mention gnulib-tool.
36064         Rearrange sections so getting the code is near the top.
36065
36066 2009-04-05  Bruno Haible  <bruno@clisp.org>
36067
36068         * lib/unicase.h: Mention u*_cmp2.
36069         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
36070         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
36071         * lib/unicase/ulc-casecmp.c: Likewise.
36072         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
36073         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
36074         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
36075         unistr/u8-cmp.
36076         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
36077         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
36078         unistr/u16-cmp.
36079         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
36080         unistr/u32-cmp.
36081
36082         * lib/uninorm.h: Mention u*_cmp2.
36083         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
36084         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
36085         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
36086         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
36087         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
36088         unistr/u8-cmp.
36089         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
36090         unistr/u16-cmp.
36091         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
36092         unistr/u32-cmp.
36093
36094         New module 'unistr/u32-cmp2'.
36095         * lib/unistr/u32-cmp2.c: New file.
36096         * modules/unistr/u32-cmp2: New file.
36097
36098         New module 'unistr/u16-cmp2'.
36099         * lib/unistr/u16-cmp2.c: New file.
36100         * modules/unistr/u16-cmp2: New file.
36101
36102         New module 'unistr/u8-cmp2'.
36103         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
36104         * lib/unistr/u8-cmp2.c: New file.
36105         * lib/unistr/u-cmp2.h: New file.
36106         * modules/unistr/u8-cmp2: New file.
36107
36108 2009-04-05  Bruno Haible  <bruno@clisp.org>
36109
36110         * lib/unictype.h (uc_property_is_valid): New macro.
36111         * tests/unictype/test-pr_byname.c (main): Use it.
36112
36113         * lib/unistr.h: Doc fixes.
36114         * lib/uniconv.h: Doc fixes.
36115         * lib/unictype.h: Doc fixes.
36116
36117 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
36118
36119         Port coreutils 7.2 to Solaris 8.
36120
36121         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
36122         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
36123         for Solaris 8.  This is a bit of a hack, as it means it's the
36124         caller's responsibility to add -lnsl if needed, but most likely it
36125         won't be needed since only getaddrinfo uses this and getaddrinfo
36126         isn't needed on Solaris 8.
36127
36128         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
36129         problem to Solaris 8 encountered with coreutils 7.2, which
36130         resulted in a message "fnmatch.c:292: warning: passing argument 4
36131         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
36132         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
36133
36134 2009-04-03  Simon Josefsson  <simon@josefsson.org>
36135
36136         * m4/ld-version-script.m4: Add FIXME comment.
36137
36138 2009-04-02  Simon Josefsson  <simon@josefsson.org>
36139
36140         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
36141         SOVERSION variable.
36142
36143 2009-04-02  Bruno Haible  <bruno@clisp.org>
36144
36145         * Makefile (info, html, dvi, pdf): Combine the rules.
36146         Suggested by Jim Meyering.
36147
36148 2009-04-01  Bruno Haible  <bruno@clisp.org>
36149
36150         * Makefile (info, html, dvi, pdf): New targets.
36151         Reported by Reuben Thomas <rrt@sc3d.org>.
36152
36153 2009-04-01  Bruno Haible  <bruno@clisp.org>
36154
36155         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
36156         can be put into PATH.
36157         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
36158
36159 2009-04-01  Bruno Haible  <bruno@clisp.org>
36160
36161         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
36162
36163 2009-04-01  Bruno Haible  <bruno@clisp.org>
36164
36165         Rename module 'visibility'.
36166         * modules/lib-symbol-visibility: Renamed from modules/visibility.
36167         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
36168         * doc/gnulib.texi: Update.
36169         * MODULES.html.sh (Misc): Update.
36170         * NEWS: Mention the change.
36171
36172 2009-04-01  Simon Josefsson  <simon@josefsson.org>
36173
36174         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
36175         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
36176         Eric Blake <ebb9@byu.net> for review.
36177         * MODULES.html.sh: Add lib-msvc-compat.
36178         * doc/gnulib.texi: Link to new section.
36179         * m4/ld-output-def.m4: New file.
36180         * doc/ld-output-def.texi: New file.
36181
36182 2009-04-01  Simon Josefsson  <simon@josefsson.org>
36183
36184         Rename ld-version-script to lib-symbol-versions.  Suggested by
36185         Bruno Haible <bruno@clisp.org>.
36186         * modules/ld-version-script: Renamed to lib-symbol-versions.
36187         * doc/ld-version-script.texi: Fix module name.
36188         * MODULES.html.sh: Add lib-symbol-versions.
36189
36190 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36191
36192         * modules/u64-tests: New file.
36193         * tests/test-u64.c: New file.
36194
36195 2009-03-04  Simon Josefsson  <simon@josefsson.org>
36196
36197         * MODULES.html.sh: Mention u64.
36198         * modules/u64: New module.
36199         * modules/crypto/sha512: Depend on u64 module instead of providing
36200         u64.h.
36201
36202 2009-03-27  Eric Blake  <ebb9@byu.net>
36203
36204         test-strerror: make debugging EAI_SYSTEM easier
36205         * modules/getaddrinfo-tests (Depends-on): Add strerror.
36206         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
36207         failure was EAI_SYSTEM.
36208
36209 2009-03-25  Bruno Haible  <bruno@clisp.org>
36210
36211         Fix a problem with --enable-relocatable on Solaris 7.
36212         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
36213         since 2008-02-24.
36214
36215 2009-03-25  Eric Blake  <ebb9@byu.net>
36216
36217         test-sockets: avoid gcc warning
36218         * tests/test-sockets.c (main): Silence compiler warning.
36219
36220 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
36221
36222         New modules nproc, pthread, contributed by Glen Lenker.
36223
36224         * MODULES.html.sh: Add pthread, nproc.
36225         * lib/nproc.c: New file.
36226         * lib/nproc.h: New file.
36227         * lib/pthread.in.h: New file.
36228         * m4/pthread.m4: New file.
36229         * modules/nproc: New file.
36230         * modules/pthread: New file.
36231
36232 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36233
36234         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
36235         New variable.
36236
36237 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
36238
36239         filevercmp: handle simple~ and numbered.~3~ backup suffixes
36240         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
36241         * tests/test-filevercmp.c: Add tests for backup suffixes.
36242
36243 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36244
36245         * modules/stdlib (Depends-on): Add stdint, needed when defining
36246         struct random_data on, for example, HP-UX 10.20.  Reported by
36247         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36248
36249 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36250
36251         * lib/readline.c (readline): Call fflush on stdout after printing
36252         prompt.
36253
36254 2009-03-20  Bruno Haible  <bruno@clisp.org>
36255
36256         Remove dependency from 'close' module to -lws2_32 on native Windows.
36257         * lib/close-hook.h: New file.
36258         * lib/close-hook.c: New file.
36259         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
36260         w32sock.h.
36261         (_gl_close_fd_maybe_socket): Remove function.
36262         (rpl_close): Invoke execute_all_close_hooks instead of
36263         _gl_close_fd_maybe_socket.
36264         * lib/sockets.c: Include close-hook.h, w32sock.h.
36265         (close_fd_maybe_socket): New function, essentially from lib/close.c.
36266         (close_sockets_hook): New variable.
36267         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
36268         (gl_sockets_cleanup): Unregister it.
36269         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
36270         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
36271         * modules/close-hook: New file.
36272         * modules/close (Files): Remove lib/w32sock.h.
36273         (Depends-on): Add close-hook.
36274         (Link): Remove section.
36275         * modules/sockets (Files): Add lib/w32sock.h.
36276         (Depends-on): Add close-hook.
36277         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
36278         invocation.
36279         * NEWS: Mention that LIB_CLOSE is gone.
36280
36281 2009-03-23  Eric Blake  <ebb9@byu.net>
36282
36283         signal-tests: test previous patch
36284         * tests/test-signal.c: New file.
36285         * modules/signal-tests: Likewise.
36286
36287         signal.h: always support 'volatile sig_atomic_t'
36288         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
36289         (gl_SIGNAL_H_DEFAULTS): Add a default.
36290         * modules/signal (Makefile.am): Substitute if needed.
36291         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
36292         users can blindly add volatile.
36293         * doc/posix-headers/signal.texi (signal.h): Document it.
36294         Reported by Matthew Woehlke.
36295
36296 2009-03-23  Jim Meyering  <meyering@redhat.com>
36297
36298         pathmax: PATH_MAX: use pathconf only when available
36299         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
36300         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
36301         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
36302         This avoids a link failure in a PSP cross-compilation environment
36303         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
36304
36305         * lib/vasnprintf.c (divide): Fix typo in comment.
36306
36307 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36308
36309         * gnulib-tool (func_filter_filelist): Fix comment.
36310
36311 2009-03-20  Bruno Haible  <bruno@clisp.org>
36312
36313         Make sockets.h self-contained.
36314         * lib/sockets.c: Include sockets.h first.
36315         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
36316
36317 2009-03-19  Eric Blake  <ebb9@byu.net>
36318
36319         doc: mention more functions added in cygwin 1.7.0
36320         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
36321         addition.
36322         * doc/posix-functions/log2f.texi: Likewise.
36323
36324 2009-03-19  Jim Meyering  <meyering@redhat.com>
36325
36326         fsusage: avoid syntax error due to statement-before-declaration
36327         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
36328         after all declarations.  Reported by Matthew Woehlke in
36329         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
36330
36331 2009-03-18  Eric Blake  <ebb9@byu.net>
36332
36333         build-aux/compile: sync from automake
36334         * build-aux/compile: New file, from automake.
36335         * config/srclist.txt: Mention build-aux/compile.
36336
36337 2009-03-17  Bruno Haible  <bruno@clisp.org>
36338
36339         * lib/git-merge-changelog.c: Fix typo in comment.
36340         Reported by Reuben Thomas <rrt@sc3d.org>.
36341
36342 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
36343
36344         * m4/regex.m4: update and improve help for
36345         --without-included-regex.
36346
36347 2009-03-17  Simon Josefsson  <simon@josefsson.org>
36348
36349         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
36350         failure on missing include files.
36351
36352 2009-03-17  Eric Blake  <ebb9@byu.net>
36353
36354         doc: mention more functions added in cygwin 1.7.0
36355         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
36356         addition.
36357         * doc/posix-functions/fwscanf.texi: Likewise.
36358         * doc/posix-functions/swprintf.texi: Likewise.
36359         * doc/posix-functions/swscanf.texi: Likewise.
36360         * doc/posix-functions/vfwprintf.texi: Likewise.
36361         * doc/posix-functions/vfwscanf.texi: Likewise.
36362         * doc/posix-functions/vswprintf.texi: Likewise.
36363         * doc/posix-functions/vswscanf.texi: Likewise.
36364         * doc/posix-functions/vwprintf.texi: Likewise.
36365         * doc/posix-functions/vwscanf.texi: Likewise.
36366         * doc/posix-functions/wcscasecmp.texi: Likewise.
36367         * doc/posix-functions/wcsdup.texi: Likewise.
36368         * doc/posix-functions/wcsftime.texi: Likewise.
36369         * doc/posix-functions/wcsncasecmp.texi: Likewise.
36370         * doc/posix-functions/wprintf.texi: Likewise.
36371         * doc/posix-functions/wscanf.texi: Likewise.
36372         * doc/glibc-functions/gethostbyname2.texi: Likewise.
36373
36374 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36375
36376         maint.mk: really add $(AM_MAKEFLAGS)
36377         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
36378         was inadvertently omitted in the last commit.
36379         Spotted by Bruno Haible.
36380
36381         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
36382         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
36383         $(AM_MAKEFLAGS)' rather than plain `make'.
36384
36385         gnulib-tool: execute $MAKE not make
36386         * gnulib-tool: Default $MAKE to 'make'.
36387         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
36388         than make.  Initialize $MAKE in the do-autobuild script.
36389
36390         gnulib-tool: use $MAKE not make in generated files
36391         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
36392         make, in generated files.  Initialize $MAKE in the do-autobuild
36393         script.
36394
36395         * top/GNUmakefile (_have-git-version-gen): Fix typo.
36396
36397         GNUmakefile: disable parallelism only for multiple, recursive targets
36398         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
36399         additions in the Makefile.
36400         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
36401         by Automake.
36402         (.NOTPARALLEL): Only disable parallel builds if multiple targets
36403         are listed on the command line and at least one of them is
36404         listed in $(ALL_RECURSIVE_TARGETS).
36405
36406 2009-03-14  Bruno Haible  <bruno@clisp.org>
36407
36408         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
36409         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
36410         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
36411         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
36412         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
36413         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
36414         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
36415         unistr/u8-uctomb.
36416         * modules/unistr/u8-strchr (Depends-on): Likewise.
36417         * modules/unistr/u8-strrchr (Depends-on): Likewise.
36418         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
36419         unistr/u16-uctomb.
36420         * modules/unistr/u16-strchr (Depends-on): Likewise.
36421         * modules/unistr/u16-strrchr (Depends-on): Likewise.
36422
36423 2009-03-12  Bruno Haible  <bruno@clisp.org>
36424
36425         Work around select() bug on Interix 3.5.
36426         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
36427         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
36428         * m4/select.m4: New file.
36429         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
36430         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
36431         * modules/select (Files): Add m4/select.m4.
36432         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
36433         * modules/nanosleep (Depends-on): Add select.
36434         * modules/poll (Depends-on): Likewise.
36435         * doc/posix-functions/select.texi: Mention the Interix bug.
36436         Reported by Markus Duft <mduft@gentoo.org>.
36437
36438         * lib/select.c: Renamed from lib/winsock-select.c.
36439         * modules/select (Files): Add lib/select.c, remove
36440         lib/winsock-select.c.
36441         (configure.ac): Update.
36442
36443 2009-03-12  Jim Meyering  <meyering@redhat.com>
36444
36445         avoid gcc warnings about unused macro definitions
36446         * lib/readtokens.c (STREQ): Remove unused definition.
36447         * lib/xmalloc.c (SIZE_MAX): Likewise.
36448         * lib/openat-die.c (N_): Likewise.
36449         * lib/mountlist.c (SIZE_MAX): Remove definition.
36450         Instead, include <stdint.h>.
36451         * lib/readutmp.c: Likewise.
36452         * modules/readutmp (Depends-on): Add stdint.
36453         * modules/mountlist (Depends-on): Add stdint.
36454         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
36455
36456 2009-03-10  Bruno Haible  <bruno@clisp.org>
36457
36458         Tests for module 'mbmemcasecoll'.
36459         * modules/mbmemcasecoll-tests: New file.
36460         * tests/test-mbmemcasecoll1.sh: New file.
36461         * tests/test-mbmemcasecoll2.sh: New file.
36462         * tests/test-mbmemcasecoll3.sh: New file.
36463         * tests/test-mbmemcasecoll.c: New file.
36464
36465         New module 'mbmemcasecoll'.
36466         * lib/mbmemcasecoll.h: New file.
36467         * lib/mbmemcasecoll.c: New file.
36468         * modules/mbmemcasecoll: New file.
36469
36470         * tests/test-mbmemcasecmp.h: New file, extracted from
36471         tests/test-mbmemcasecmp.c.
36472         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
36473         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
36474         (main): Update.
36475         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
36476
36477 2009-03-09  Bruno Haible  <bruno@clisp.org>
36478
36479         Tests for module 'mbmemcasecmp'.
36480         * modules/mbmemcasecmp-tests: New file.
36481         * tests/test-mbmemcasecmp1.sh: New file.
36482         * tests/test-mbmemcasecmp2.sh: New file.
36483         * tests/test-mbmemcasecmp3.sh: New file.
36484         * tests/test-mbmemcasecmp.c: New file.
36485
36486         New module 'mbmemcasecmp'.
36487         * lib/mbmemcasecmp.h: New file.
36488         * lib/mbmemcasecmp.c: New file.
36489         * modules/mbmemcasecmp: New file.
36490
36491 2009-03-09  Bruno Haible  <bruno@clisp.org>
36492
36493         Tests for module 'unicase/ulc-casecoll'.
36494         * modules/unicase/ulc-casecoll-tests: New file.
36495         * tests/unicase/test-ulc-casecoll1.sh: New file.
36496         * tests/unicase/test-ulc-casecoll2.sh: New file.
36497         * tests/unicase/test-ulc-casecoll.c: New file.
36498
36499         New module 'unicase/ulc-casecoll'.
36500         * lib/unicase.h (ulc_casecoll): New declaration.
36501         * lib/unicase/ulc-casecoll.c: New file.
36502         * modules/unicase/ulc-casecoll: New file.
36503
36504         New module 'unicase/ulc-casexfrm'.
36505         * lib/unicase.h (ulc_casexfrm): New declaration.
36506         * lib/unicase/ulc-casexfrm.c: New file.
36507         * modules/unicase/ulc-casexfrm: New file.
36508
36509 2009-03-09  Bruno Haible  <bruno@clisp.org>
36510
36511         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
36512         invocations.
36513
36514         * m4/mbscasecmp.m4: Remove file.
36515         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
36516         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
36517
36518         * m4/mbscasestr.m4: Remove file.
36519         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
36520         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
36521
36522         * m4/mbschr.m4: Remove file.
36523         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
36524         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
36525
36526         * m4/mbscspn.m4: Remove file.
36527         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
36528         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
36529
36530         * m4/mbslen.m4: Remove file.
36531         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
36532         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
36533
36534         * m4/mbsncasecmp.m4: Remove file.
36535         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
36536         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
36537
36538         * m4/mbsnlen.m4: Remove file.
36539         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
36540         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
36541
36542         * m4/mbspbrk.m4: Remove file.
36543         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
36544         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
36545
36546         * m4/mbspcasecmp.m4: Remove file.
36547         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
36548         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
36549
36550         * m4/mbsrchr.m4: Remove file.
36551         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
36552         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
36553
36554         * m4/mbssep.m4: Remove file.
36555         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
36556         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
36557
36558         * m4/mbsspn.m4: Remove file.
36559         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
36560         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
36561
36562         * m4/mbsstr.m4: Remove file.
36563         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
36564         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
36565
36566         * m4/mbstok_r.m4: Remove file.
36567         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
36568         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
36569
36570         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
36571
36572         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
36573         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
36574
36575         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
36576
36577 2009-03-08  Bruno Haible  <bruno@clisp.org>
36578
36579         Tests for module 'unicase/ulc-casecmp'.
36580         * modules/unicase/ulc-casecmp-tests: New file.
36581         * tests/unicase/test-ulc-casecmp1.sh: New file.
36582         * tests/unicase/test-ulc-casecmp2.sh: New file.
36583         * tests/unicase/test-ulc-casecmp.c: New file.
36584
36585         New module 'unicase/ulc-casecmp'.
36586         * lib/unicase.h (ulc_casecmp): New declaration.
36587         * lib/unicase/ulc-casecmp.c: New file.
36588         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
36589         'const SRC_UNIT *'.
36590         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
36591         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
36592         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
36593         * modules/unicase/ulc-casecmp: New file.
36594
36595         Tests for module 'unicase/u32-is-cased'.
36596         * modules/unicase/u32-is-cased-tests: New file.
36597         * tests/unicase/test-u32-is-cased.c: New file.
36598
36599         Tests for module 'unicase/u16-is-cased'.
36600         * modules/unicase/u16-is-cased-tests: New file.
36601         * tests/unicase/test-u16-is-cased.c: New file.
36602
36603         Tests for module 'unicase/u8-is-cased'.
36604         * modules/unicase/u8-is-cased-tests: New file.
36605         * tests/unicase/test-u8-is-cased.c: New file.
36606         * tests/unicase/test-is-cased.h: New file.
36607
36608         New module 'unicase/u32-is-cased'.
36609         * lib/unicase/u32-is-cased.c: New file.
36610         * modules/unicase/u32-is-cased: New file.
36611
36612         New module 'unicase/u16-is-cased'.
36613         * lib/unicase/u16-is-cased.c: New file.
36614         * modules/unicase/u16-is-cased: New file.
36615
36616         New module 'unicase/u8-is-cased'.
36617         * lib/unicase/u8-is-cased.c: New file.
36618         * lib/unicase/u-is-cased.h: New file.
36619         * modules/unicase/u8-is-cased: New file.
36620
36621         Tests for module 'unicase/u32-is-casefolded'.
36622         * modules/unicase/u32-is-casefolded-tests: New file.
36623         * tests/unicase/test-u32-is-casefolded.c: New file.
36624
36625         Tests for module 'unicase/u16-is-casefolded'.
36626         * modules/unicase/u16-is-casefolded-tests: New file.
36627         * tests/unicase/test-u16-is-casefolded.c: New file.
36628
36629         Tests for module 'unicase/u8-is-casefolded'.
36630         * modules/unicase/u8-is-casefolded-tests: New file.
36631         * tests/unicase/test-u8-is-casefolded.c: New file.
36632         * tests/unicase/test-is-casefolded.h: New file.
36633
36634         New module 'unicase/u32-is-casefolded'.
36635         * lib/unicase/u32-is-casefolded.c: New file.
36636         * modules/unicase/u32-is-casefolded: New file.
36637
36638         New module 'unicase/u16-is-casefolded'.
36639         * lib/unicase/u16-is-casefolded.c: New file.
36640         * modules/unicase/u16-is-casefolded: New file.
36641
36642         New module 'unicase/u8-is-casefolded'.
36643         * lib/unicase/u8-is-casefolded.c: New file.
36644         * modules/unicase/u8-is-casefolded: New file.
36645
36646         Tests for module 'unicase/u32-is-titlecase'.
36647         * modules/unicase/u32-is-titlecase-tests: New file.
36648         * tests/unicase/test-u32-is-titlecase.c: New file.
36649
36650         Tests for module 'unicase/u16-is-titlecase'.
36651         * modules/unicase/u16-is-titlecase-tests: New file.
36652         * tests/unicase/test-u16-is-titlecase.c: New file.
36653
36654         Tests for module 'unicase/u8-is-titlecase'.
36655         * modules/unicase/u8-is-titlecase-tests: New file.
36656         * tests/unicase/test-u8-is-titlecase.c: New file.
36657         * tests/unicase/test-is-titlecase.h: New file.
36658
36659         New module 'unicase/u32-is-titlecase'.
36660         * lib/unicase/u32-is-titlecase.c: New file.
36661         * modules/unicase/u32-is-titlecase: New file.
36662
36663         New module 'unicase/u16-is-titlecase'.
36664         * lib/unicase/u16-is-titlecase.c: New file.
36665         * modules/unicase/u16-is-titlecase: New file.
36666
36667         New module 'unicase/u8-is-titlecase'.
36668         * lib/unicase/u8-is-titlecase.c: New file.
36669         * modules/unicase/u8-is-titlecase: New file.
36670
36671         Tests for module 'unicase/u32-is-lowercase'.
36672         * modules/unicase/u32-is-lowercase-tests: New file.
36673         * tests/unicase/test-u32-is-lowercase.c: New file.
36674
36675         Tests for module 'unicase/u16-is-lowercase'.
36676         * modules/unicase/u16-is-lowercase-tests: New file.
36677         * tests/unicase/test-u16-is-lowercase.c: New file.
36678
36679         Tests for module 'unicase/u8-is-lowercase'.
36680         * modules/unicase/u8-is-lowercase-tests: New file.
36681         * tests/unicase/test-u8-is-lowercase.c: New file.
36682         * tests/unicase/test-is-lowercase.h: New file.
36683
36684         New module 'unicase/u32-is-lowercase'.
36685         * lib/unicase/u32-is-lowercase.c: New file.
36686         * modules/unicase/u32-is-lowercase: New file.
36687
36688         New module 'unicase/u16-is-lowercase'.
36689         * lib/unicase/u16-is-lowercase.c: New file.
36690         * modules/unicase/u16-is-lowercase: New file.
36691
36692         New module 'unicase/u8-is-lowercase'.
36693         * lib/unicase/u8-is-lowercase.c: New file.
36694         * modules/unicase/u8-is-lowercase: New file.
36695
36696         Tests for module 'unicase/u32-is-uppercase'.
36697         * modules/unicase/u32-is-uppercase-tests: New file.
36698         * tests/unicase/test-u32-is-uppercase.c: New file.
36699
36700         Tests for module 'unicase/u16-is-uppercase'.
36701         * modules/unicase/u16-is-uppercase-tests: New file.
36702         * tests/unicase/test-u16-is-uppercase.c: New file.
36703
36704         Tests for module 'unicase/u8-is-uppercase'.
36705         * modules/unicase/u8-is-uppercase-tests: New file.
36706         * tests/unicase/test-u8-is-uppercase.c: New file.
36707         * tests/unicase/test-is-uppercase.h: New file.
36708
36709         New module 'unicase/u32-is-uppercase'.
36710         * lib/unicase/u32-is-uppercase.c: New file.
36711         * modules/unicase/u32-is-uppercase: New file.
36712
36713         New module 'unicase/u16-is-uppercase'.
36714         * lib/unicase/u16-is-uppercase.c: New file.
36715         * modules/unicase/u16-is-uppercase: New file.
36716
36717         New module 'unicase/u8-is-uppercase'.
36718         * lib/unicase/u8-is-uppercase.c: New file.
36719         * modules/unicase/u8-is-uppercase: New file.
36720
36721         New module 'unicase/u32-is-invariant'.
36722         * lib/unicase/u32-is-invariant.c: New file.
36723         * modules/unicase/u32-is-invariant: New file.
36724
36725         New module 'unicase/u16-is-invariant'.
36726         * lib/unicase/u16-is-invariant.c: New file.
36727         * modules/unicase/u16-is-invariant: New file.
36728
36729         New module 'unicase/u8-is-invariant'.
36730         * lib/unicase/u8-is-invariant.c: New file.
36731         * lib/unicase/invariant.h: New file.
36732         * lib/unicase/u-is-invariant.h: New file.
36733         * modules/unicase/u8-is-invariant: New file.
36734
36735         Tests for module 'unicase/u32-casecoll'.
36736         * modules/unicase/u32-casecoll-tests: New file.
36737         * tests/unicase/test-u32-casecoll.c: New file.
36738
36739         Tests for module 'unicase/u16-casecoll'.
36740         * modules/unicase/u16-casecoll-tests: New file.
36741         * tests/unicase/test-u16-casecoll.c: New file.
36742
36743         Tests for module 'unicase/u8-casecoll'.
36744         * modules/unicase/u8-casecoll-tests: New file.
36745         * tests/unicase/test-u8-casecoll.c: New file.
36746
36747         New module 'unicase/u32-casecoll'.
36748         * lib/unicase/u32-casecoll.c: New file.
36749         * modules/unicase/u32-casecoll: New file.
36750
36751         New module 'unicase/u16-casecoll'.
36752         * lib/unicase/u16-casecoll.c: New file.
36753         * modules/unicase/u16-casecoll: New file.
36754
36755         New module 'unicase/u8-casecoll'.
36756         * lib/unicase/u8-casecoll.c: New file.
36757         * lib/unicase/u-casecoll.h: New file.
36758         * modules/unicase/u8-casecoll: New file.
36759
36760         New module 'unicase/u32-casexfrm'.
36761         * lib/unicase/u32-casexfrm.c: New file.
36762         * modules/unicase/u32-casexfrm: New file.
36763
36764         New module 'unicase/u16-casexfrm'.
36765         * lib/unicase/u16-casexfrm.c: New file.
36766         * modules/unicase/u16-casexfrm: New file.
36767
36768         New module 'unicase/u8-casexfrm'.
36769         * lib/unicase/u8-casexfrm.c: New file.
36770         * lib/unicase/u-casexfrm.h: New file.
36771         * modules/unicase/u8-casexfrm: New file.
36772
36773         Tests for module 'unicase/u32-casecmp'.
36774         * modules/unicase/u32-casecmp-tests: New file.
36775         * tests/unicase/test-u32-casecmp.c: New file.
36776
36777         Tests for module 'unicase/u16-casecmp'.
36778         * modules/unicase/u16-casecmp-tests: New file.
36779         * tests/unicase/test-u16-casecmp.c: New file.
36780
36781         Tests for module 'unicase/u8-casecmp'.
36782         * modules/unicase/u8-casecmp-tests: New file.
36783         * tests/unicase/test-u8-casecmp.c: New file.
36784         * tests/unicase/test-casecmp.h: New file.
36785
36786         New module 'unicase/u32-casecmp'.
36787         * lib/unicase/u32-casecmp.c: New file.
36788         * modules/unicase/u32-casecmp: New file.
36789
36790         New module 'unicase/u16-casecmp'.
36791         * lib/unicase/u16-casecmp.c: New file.
36792         * modules/unicase/u16-casecmp: New file.
36793
36794         New module 'unicase/u8-casecmp'.
36795         * lib/unicase/u8-casecmp.c: New file.
36796         * lib/unicase/u-casecmp.h: New file.
36797         * modules/unicase/u8-casecmp: New file.
36798
36799         Tests for module 'unicase/u32-casefold'.
36800         * modules/unicase/u32-casefold-tests: New file.
36801         * tests/unicase/test-u32-casefold.c: New file.
36802
36803         Tests for module 'unicase/u16-casefold'.
36804         * modules/unicase/u16-casefold-tests: New file.
36805         * tests/unicase/test-u16-casefold.c: New file.
36806
36807         Tests for module 'unicase/u8-casefold'.
36808         * modules/unicase/u8-casefold-tests: New file.
36809         * tests/unicase/test-u8-casefold.c: New file.
36810
36811         New module 'unicase/u32-casefold'.
36812         * lib/unicase/u32-casefold.c: New file.
36813         * modules/unicase/u32-casefold: New file.
36814
36815         New module 'unicase/u16-casefold'.
36816         * lib/unicase/u16-casefold.c: New file.
36817         * modules/unicase/u16-casefold: New file.
36818
36819         New module 'unicase/u8-casefold'.
36820         * lib/unicase/u8-casefold.c: New file.
36821         * lib/unicase/u-casefold.h: New file.
36822         * modules/unicase/u8-casefold: New file.
36823
36824         New module 'unicase/tocasefold'.
36825         * lib/unicase/casefold.h: New file.
36826         * lib/unicase/tocasefold.c: New file.
36827         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
36828         * modules/unicase/tocasefold: New file.
36829
36830         Tests for module 'unicase/u32-totitle'.
36831         * modules/unicase/u32-totitle-tests: New file.
36832         * tests/unicase/test-u32-totitle.c: New file.
36833
36834         Tests for module 'unicase/u16-totitle'.
36835         * modules/unicase/u16-totitle-tests: New file.
36836         * tests/unicase/test-u16-totitle.c: New file.
36837
36838         Tests for module 'unicase/u8-totitle'.
36839         * modules/unicase/u8-totitle-tests: New file.
36840         * tests/unicase/test-u8-totitle.c: New file.
36841
36842         New module 'unicase/u32-totitle'.
36843         * lib/unicase/u32-totitle.c: New file.
36844         * modules/unicase/u32-totitle: New file.
36845
36846         New module 'unicase/u16-totitle'.
36847         * lib/unicase/u16-totitle.c: New file.
36848         * modules/unicase/u16-totitle: New file.
36849
36850         New module 'unicase/u8-totitle'.
36851         * lib/unicase/u8-totitle.c: New file.
36852         * lib/unicase/u-totitle.h: New file.
36853         * modules/unicase/u8-totitle: New file.
36854
36855         Tests for module 'unicase/u32-tolower'.
36856         * modules/unicase/u32-tolower-tests: New file.
36857         * tests/unicase/test-u32-tolower.c: New file.
36858
36859         Tests for module 'unicase/u16-tolower'.
36860         * modules/unicase/u16-tolower-tests: New file.
36861         * tests/unicase/test-u16-tolower.c: New file.
36862
36863         Tests for module 'unicase/u8-tolower'.
36864         * modules/unicase/u8-tolower-tests: New file.
36865         * tests/unicase/test-u8-tolower.c: New file.
36866
36867         New module 'unicase/u32-tolower'.
36868         * lib/unicase/u32-tolower.c: New file.
36869         * modules/unicase/u32-tolower: New file.
36870
36871         New module 'unicase/u16-tolower'.
36872         * lib/unicase/u16-tolower.c: New file.
36873         * modules/unicase/u16-tolower: New file.
36874
36875         New module 'unicase/u8-tolower'.
36876         * lib/unicase/u8-tolower.c: New file.
36877         * modules/unicase/u8-tolower: New file.
36878
36879         Tests for module 'unicase/u32-toupper'.
36880         * modules/unicase/u32-toupper-tests: New file.
36881         * tests/unicase/test-u32-toupper.c: New file.
36882
36883         Tests for module 'unicase/u16-toupper'.
36884         * modules/unicase/u16-toupper-tests: New file.
36885         * tests/unicase/test-u16-toupper.c: New file.
36886
36887         Tests for module 'unicase/u8-toupper'.
36888         * modules/unicase/u8-toupper-tests: New file.
36889         * tests/unicase/test-u8-toupper.c: New file.
36890
36891         New module 'unicase/u32-toupper'.
36892         * lib/unicase/u32-toupper.c: New file.
36893         * modules/unicase/u32-toupper: New file.
36894
36895         New module 'unicase/u16-toupper'.
36896         * lib/unicase/u16-toupper.c: New file.
36897         * modules/unicase/u16-toupper: New file.
36898
36899         New module 'unicase/u8-toupper'.
36900         * lib/unicase/u8-toupper.c: New file.
36901         * modules/unicase/u8-toupper: New file.
36902
36903         New module 'unicase/u32-casemap'.
36904         * lib/unicase/u32-casemap.c: New file.
36905         * modules/unicase/u32-casemap: New file.
36906
36907         New module 'unicase/u16-casemap'.
36908         * lib/unicase/u16-casemap.c: New file.
36909         * modules/unicase/u16-casemap: New file.
36910
36911         New module 'unicase/u8-casemap'.
36912         * lib/unicase/unicasemap.h: New file.
36913         * lib/unicase/u8-casemap.c: New file.
36914         * lib/unicase/u-casemap.h: New file.
36915         * modules/unicase/u8-casemap: New file.
36916
36917         New module 'unicase/special-casing'.
36918         * lib/unicase/special-casing.h: New file.
36919         * lib/unicase/special-casing.c: New file.
36920         * lib/unicase/special-casing-table.gperf: New file, generated by
36921         gen-uni-tables.c.
36922         * modules/unicase/special-casing: New file.
36923
36924         Tests for module 'unicase/locale-language'.
36925         * modules/unicase/locale-language-tests: New file.
36926         * tests/unicase/test-locale-language.sh: New file.
36927         * tests/unicase/test-locale-language.c: New file.
36928
36929         New module 'unicase/locale-language'.
36930         * lib/unicase/locale-language.c: New file.
36931         * lib/unicase/locale-languages.gperf: New file.
36932         * modules/unicase/locale-language: New file.
36933
36934         Generate more tables for case conversion and case folding.
36935         * lib/gen-uni-tables.c (SCC_*): New enum items.
36936         (struct special_casing_rule): New type.
36937         (casing_rules, num_casing_rules, allocated_casing_rules): New
36938         variables.
36939         (add_casing_rule, fill_casing_rules): New functions.
36940         (struct casefold_rule): New type.
36941         (casefolding_rules, num_casefolding_rules,
36942         allocated_casefolding_rules): New variables.
36943         (fill_casefolding_rules): New function.
36944         (unicode_casefold): New variable.
36945         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
36946         sort_casing_rules, output_casing_rules): New functions.
36947         (main): Accept to more arguments: SpecialCasing.txt and
36948         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
36949         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
36950         Output mapping for casefolding.
36951
36952         * lib/unicase.h: Include stdbool.h, uninorm.h.
36953         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
36954         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
36955         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
36956         arguments.
36957         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
36958         resultp arguments.
36959         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
36960         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
36961         resultp arguments.
36962         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
36963         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
36964         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
36965         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
36966         declarations.
36967         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
36968
36969 2009-03-08  Bruno Haible  <bruno@clisp.org>
36970
36971         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36972         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
36973         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
36974         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36975
36976 2009-03-07  Bruno Haible  <bruno@clisp.org>
36977
36978         Adjust u*_normcmp, u*_normcoll API.
36979         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36980         u16_normcoll, u32_normcoll): Change failure conventions.
36981         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
36982         errno and return -1.
36983         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36984
36985 2009-03-07  Bruno Haible  <bruno@clisp.org>
36986
36987         Tests for module 'uninorm/u32-normcoll'.
36988         * modules/uninorm/u32-normcoll-tests: New file.
36989         * tests/uninorm/test-u32-normcoll.c: New file.
36990
36991         Tests for module 'uninorm/u16-normcoll'.
36992         * modules/uninorm/u16-normcoll-tests: New file.
36993         * tests/uninorm/test-u16-normcoll.c: New file.
36994
36995         Tests for module 'uninorm/u8-normcoll'.
36996         * modules/uninorm/u8-normcoll-tests: New file.
36997         * tests/uninorm/test-u8-normcoll.c: New file.
36998
36999 2009-03-07  Bruno Haible  <bruno@clisp.org>
37000
37001         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
37002         tests/uninorm/test-u32-normcmp.c.
37003         * tests/uninorm/test-u32-normcmp.c: Include it.
37004         (test_nonascii): New function, extracted from main. Add some more
37005         tests.
37006         (main): Invoke test_ascii and test_nonascii.
37007         * modules/uninorm/u32-normcmp-tests (Files): Add
37008         tests/uninorm/test-u32-normcmp.h.
37009         (Depends-on): Remove uninorm/u32-normcmp.
37010
37011         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
37012         tests/uninorm/test-u16-normcmp.c.
37013         * tests/uninorm/test-u16-normcmp.c: Include it.
37014         (test_nonascii): New function, extracted from main. Add some more
37015         tests.
37016         (main): Invoke test_ascii and test_nonascii.
37017         * modules/uninorm/u16-normcmp-tests (Files): Add
37018         tests/uninorm/test-u16-normcmp.h.
37019         (Depends-on): Remove uninorm/u16-normcmp.
37020
37021         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
37022         tests/uninorm/test-u8-normcmp.c.
37023         * tests/uninorm/test-u8-normcmp.c: Include it.
37024         (test_nonascii): New function, extracted from main. Add some more
37025         tests.
37026         (main): Invoke test_ascii and test_nonascii.
37027         * modules/uninorm/u8-normcmp-tests (Files): Add
37028         tests/uninorm/test-u8-normcmp.h.
37029         (Depends-on): Remove uninorm/u8-normcmp.
37030
37031 2009-03-07  Bruno Haible  <bruno@clisp.org>
37032
37033         New module 'uninorm/u32-normcoll'.
37034         * lib/uninorm/u32-normcoll.c: New file.
37035         * modules/uninorm/u32-normcoll: New file.
37036
37037         New module 'uninorm/u16-normcoll'.
37038         * lib/uninorm/u16-normcoll.c: New file.
37039         * modules/uninorm/u16-normcoll: New file.
37040
37041         New module 'uninorm/u8-normcoll'.
37042         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
37043         declarations.
37044         * lib/uninorm/u8-normcoll.c: New file.
37045         * lib/uninorm/u-normcoll.h: New file.
37046         * modules/uninorm/u8-normcoll: New file.
37047
37048         New module 'uninorm/u32-normxfrm'.
37049         * lib/uninorm/u32-normxfrm.c: New file.
37050         * modules/uninorm/u32-normxfrm: New file.
37051
37052         New module 'uninorm/u16-normxfrm'.
37053         * lib/uninorm/u16-normxfrm.c: New file.
37054         * modules/uninorm/u16-normxfrm: New file.
37055
37056         New module 'uninorm/u8-normxfrm'.
37057         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
37058         declarations.
37059         * lib/uninorm/u8-normxfrm.c: New file.
37060         * lib/uninorm/u-normxfrm.h: New file.
37061         * modules/uninorm/u8-normxfrm: New file.
37062
37063 2009-03-07  Bruno Haible  <bruno@clisp.org>
37064
37065         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
37066         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
37067         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
37068
37069 2009-03-07  Bruno Haible  <bruno@clisp.org>
37070
37071         New module 'memxfrm'.
37072         * lib/memxfrm.h: New file.
37073         * lib/memxfrm.c: New file.
37074         * modules/memxfrm: New file.
37075
37076 2009-03-07  Bruno Haible  <bruno@clisp.org>
37077
37078         New module 'memcmp2'.
37079         * lib/memcmp2.h: New file.
37080         * lib/memcmp2.c: New file.
37081         * modules/memcmp2: New file.
37082
37083 2009-03-07  Bruno Haible  <bruno@clisp.org>
37084
37085         Tests for module 'uninorm/decomposing-form'.
37086         * modules/uninorm/decomposing-form-tests: New file.
37087         * tests/uninorm/test-decomposing-form.c: New file.
37088
37089         New module 'uninorm/decomposing-form'.
37090         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
37091         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
37092         Add 'decomposing_variant' field.
37093         * lib/uninorm/decomposing-form.c: New file.
37094         * lib/uninorm/nfc.c (uninorm_nfc): Update.
37095         * lib/uninorm/nfd.c (uninorm_nfd): Update.
37096         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
37097         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
37098         * modules/uninorm/decomposing-form: New file.
37099         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
37100         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
37101
37102 2009-03-07  Bruno Haible  <bruno@clisp.org>
37103
37104         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
37105         strings.
37106
37107 2009-03-06  Bruno Haible  <bruno@clisp.org>
37108
37109         Tests for module 'uninorm/u32-normcmp'.
37110         * tests/uninorm/test-u32-normcmp.c: New file.
37111         * modules/uninorm/u32-normcmp-tests: New file.
37112
37113         Tests for module 'uninorm/u16-normcmp'.
37114         * tests/uninorm/test-u16-normcmp.c: New file.
37115         * modules/uninorm/u16-normcmp-tests: New file.
37116
37117         Tests for module 'uninorm/u8-normcmp'.
37118         * tests/uninorm/test-u8-normcmp.c: New file.
37119         * modules/uninorm/u8-normcmp-tests: New file.
37120
37121         New module 'uninorm/u32-normcmp'.
37122         * lib/uninorm/u32-normcmp.c: New file.
37123         * modules/uninorm/u32-normcmp: New file.
37124
37125         New module 'uninorm/u16-normcmp'.
37126         * lib/uninorm/u16-normcmp.c: New file.
37127         * modules/uninorm/u16-normcmp: New file.
37128
37129         New module 'uninorm/u8-normcmp'.
37130         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
37131         declarations.
37132         * lib/uninorm/u8-normcmp.c: New file.
37133         * lib/uninorm/u-normcmp.h: New file.
37134         * modules/uninorm/u8-normcmp: New file.
37135
37136 2009-03-06  Bruno Haible  <bruno@clisp.org>
37137
37138         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
37139         Reported by Eric Blake.
37140
37141 2009-03-06  Eric Blake  <ebb9@byu.net>
37142             Bruno Haible  <bruno@clisp.org>
37143
37144         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
37145         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
37146         condition.
37147         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
37148         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
37149         condition.
37150         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
37151
37152 2009-03-06  Eric Blake  <ebb9@byu.net>
37153
37154         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
37155         to avoid compiler warnings.
37156         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
37157
37158 2009-03-05  Bruno Haible  <bruno@clisp.org>
37159
37160         * tests/test-ftell.c (main): Disable test beyond end of file on
37161         FreeMiNT.
37162         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37163
37164 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
37165
37166         * lib/filevercmp.c: Move hidden files up in ordering.
37167         * tests/test-filevercmp.c: Add tests for hidden files.
37168
37169 2009-03-04  Bruno Haible  <bruno@clisp.org>
37170
37171         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
37172         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
37173         AM_CFLAGS.
37174         Reported by Simon Josefsson.
37175
37176 2009-03-03  Bruno Haible  <bruno@clisp.org>
37177
37178         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
37179         Reported by Simon Josefsson.
37180
37181         * doc/ld-version-script.texi: Update node reference.
37182
37183 2009-03-03  Bruno Haible  <bruno@clisp.org>
37184
37185         * modules/visibility (License): Change to 'unlimited'.
37186         Suggested by Simon Josefsson.
37187
37188 2009-03-03  Jim Meyering  <meyering@redhat.com>
37189
37190         unlinkdir: cannot_unlink_dir may modify process state
37191         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
37192         it's neither thread-safe nor appropriate for use in a library.
37193
37194 2009-03-03  Eric Blake  <ebb9@byu.net>
37195
37196         test-closein: silence test under Darwin
37197         * tests/test-closein.sh: Ignore stderr from cat, since we don't
37198         care if it dies from EPIPE or EBADF.
37199
37200 2009-03-03  Bruno Haible  <bruno@clisp.org>
37201
37202         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
37203         earlier.
37204         * doc/visibility.texi: Fix @node and @section.
37205
37206 2009-03-03  Simon Josefsson  <simon@josefsson.org>
37207
37208         * doc/gnulib.texi: Link to sections for ld version script and
37209         visibility.
37210         * doc/visibility.texi: Add @node and @section.
37211         * modules/ld-version-script: New module.
37212         * m4/ld-version-script.m4: New file.
37213         * doc/ld-version-script.texi: New file.
37214
37215 2009-03-02  David Lutterkort  <lutter@redhat.com>
37216
37217         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
37218         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37219
37220 2009-03-02  Bruno Haible  <bruno@clisp.org>
37221
37222         * doc/visibility.texi: Mention libtool's -export-symbols option.
37223
37224 2009-03-02  Jim Meyering  <meyering@redhat.com>
37225
37226         announce-gen: new option: --no-print-checksums
37227         * build-aux/announce-gen (usage): Describe it.
37228         (print_checksums): Print a newline here, not in the [*] footnote.
37229         (main): Honor it.
37230
37231 2009-03-01  Bruno Haible  <bruno@clisp.org>
37232
37233         Use socklen_t in the native Windows replacements prototypes.
37234         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
37235         instead of 'int'.
37236         * lib/getsockopt.c (rpl_getsockopt): Likewise.
37237         * lib/setsockopt.c (rpl_setsockopt): Likewise.
37238         * modules/getsockopt (Depends-on): Add socklen.
37239         * modules/setsockopt (Depends-on): Add socklen.
37240
37241 2009-03-01  Bruno Haible  <bruno@clisp.org>
37242
37243         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
37244         least 4.2.
37245
37246 2009-03-01  Eric Blake  <ebb9@byu.net>
37247             Bruno Haible  <bruno@clisp.org>
37248
37249         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
37250         error messages.
37251         * lib/wait-process.c (wait_subprocess): Omit error message about
37252         deadly signal sent to the child of termsigp != NULL.
37253
37254 2009-03-01  Eric Blake  <ebb9@byu.net>
37255
37256         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
37257
37258 2009-03-01  Bruno Haible  <bruno@clisp.org>
37259
37260         Avoid a gcc warning.
37261         * tests/test-sched.c (b): Make global.
37262         Reported by Eric Blake.
37263
37264 2009-01-19  Martin Lambers  <marlam@marlam.de>
37265
37266         Provide POSIX semantics for socket timeout options on W32.
37267         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
37268         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
37269         * modules/setsockopt: Depend on sys_time module for struct timeval.
37270         * modules/getsockopt: Depend on sys_time module for struct timeval.
37271
37272 2009-03-01  Simon Josefsson  <simon@josefsson.org>
37273
37274         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
37275         __USE_GNU, for consistency with netdb.in.h.
37276         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37277
37278 2009-03-01  Bruno Haible  <bruno@clisp.org>
37279
37280         More support for FreeMiNT.
37281         * lib/fseeko.c (rpl_fseeko): Complete last commit.
37282         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37283
37284 2009-03-01  Bruno Haible  <bruno@clisp.org>
37285
37286         More support for FreeMiNT.
37287         * lib/fpurge.c (fpurge): Correct last commit.
37288         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37289
37290 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37291
37292         Fix unportable awk script in vc-list-files.
37293         * build-aux/vc-list-files: In the replacement awk script, use
37294         substr with a second argument of 1, not zero.
37295         Report by Simon Josefsson.
37296
37297 2009-02-28  Bruno Haible  <bruno@clisp.org>
37298
37299         More support for FreeMiNT.
37300         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
37301         to FreeMiNT today.
37302         * lib/fwriting.c (fwriting): Likewise.
37303         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
37304
37305 2009-02-28  Bruno Haible  <bruno@clisp.org>
37306
37307         * tests/test-freadseek.c (main): Disable test beyond end of file on
37308         FreeMiNT.
37309         * tests/test-ftello.c (main): Likewise.
37310         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37311
37312 2009-02-28  Bruno Haible  <bruno@clisp.org>
37313
37314         Add tentative support for FreeMiNT.
37315         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
37316         * lib/fpurge.c (fpurge): Likewise.
37317         * lib/freadable.c (freadable): Likewise.
37318         * lib/freading.c (freading): Likewise.
37319         * lib/freadptr.c (freadptr): Likewise.
37320         * lib/freadseek.c (freadptrinc): Likewise.
37321         * lib/fseeko.c (rpl_fseeko): Likewise.
37322         * lib/fseterr.c (fseterr): Likewise.
37323         * lib/fwritable.c (fwritable): Likewise.
37324         * lib/fwriting.c (fwriting): Likewise.
37325         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
37326         Hourihane.
37327         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37328
37329 2009-02-28  Bruno Haible  <bruno@clisp.org>
37330
37331         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
37332         SIGCHLD.
37333         Reported by Jim Meyering.
37334
37335 2009-02-28  Bruno Haible  <bruno@clisp.org>
37336
37337         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
37338         Mention the results of these tests on various platforms.
37339         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
37340         order.
37341         * doc/posix-functions/printf.texi: Likewise.
37342         * doc/posix-functions/snprintf.texi: Likewise.
37343         * doc/posix-functions/sprintf.texi: Likewise.
37344         * doc/posix-functions/vfprintf.texi: Likewise.
37345         * doc/posix-functions/vprintf.texi: Likewise.
37346         * doc/posix-functions/vsnprintf.texi: Likewise.
37347         * doc/posix-functions/vsprintf.texi: Likewise.
37348         * doc/glibc-functions/obstack_printf.texi: Likewise.
37349         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
37350
37351 2009-02-28  Bruno Haible  <bruno@clisp.org>
37352
37353         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
37354         Reported by Loïc Minier <lool@dooz.org>.
37355
37356 2009-02-27  Bruno Haible  <bruno@clisp.org>
37357
37358         * gnulib-tool (func_import): Make the sed expression used to create the
37359         sed script for updating the .gitignore file POSIX compliant.
37360         Reported by Eric Blake.
37361
37362 2009-02-27  Bruno Haible  <bruno@clisp.org>
37363
37364         * gnulib-tool (sed): Don't alias as "sed --posix".
37365         Reported by Eric Blake.
37366
37367 2009-02-27  Bruno Haible  <bruno@clisp.org>
37368
37369         Avoid test link errors.
37370         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
37371         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
37372         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
37373         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
37374         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37375
37376 2009-02-27  Bruno Haible  <bruno@clisp.org>
37377
37378         Avoid spurious "(cached)" in configure output.
37379         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
37380         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
37381         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
37382         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
37383         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
37384         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
37385         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
37386         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
37387         Reported by Eric Blake.
37388
37389 2009-02-27  Eric Blake  <ebb9@byu.net>
37390
37391         printf: fix regression in previous patch
37392         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
37393
37394 2009-02-27  Bruno Haible  <bruno@clisp.org>
37395
37396         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
37397         value.
37398         * lib/stdint.in.h: Likewise.
37399         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
37400
37401 2009-02-27  Eric Blake  <ebb9@byu.net>
37402
37403         doc: mention more functions added in cygwin 1.7.0
37404         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
37405         addition.
37406         * doc/posix-functions/open_wmemstream.texi: Likewise.
37407         * doc/posix-functions/wcsnlen.texi: Likewise.
37408         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37409         * doc/posix-functions/wcstod.texi: Likewise.
37410         * doc/posix-functions/wcstof.texi: Likewise.
37411         * doc/posix-functions/wcstoimax.texi: Likewise.
37412         * doc/posix-functions/wcstok.texi: Likewise.
37413         * doc/posix-functions/wcstoumax.texi: Likewise.
37414
37415         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
37416         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
37417         * doc/posix-functions/fprintf.texi: Update.
37418         * doc/posix-functions/printf.texi: Update.
37419         * doc/posix-functions/snprintf.texi: Update.
37420         * doc/posix-functions/sprintf.texi: Update.
37421         * doc/posix-functions/vfprintf.texi: Update.
37422         * doc/posix-functions/vprintf.texi: Update.
37423         * doc/posix-functions/vsnprintf.texi: Update.
37424         * doc/posix-functions/vsprintf.texi: Update.
37425         * doc/glibc-functions/obstack_printf.texi: Update.
37426         * doc/glibc-functions/obstack_vprintf.texi: Update.
37427
37428 2009-02-26  Eric Blake  <ebb9@byu.net>
37429
37430         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
37431         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
37432         compilation bug by using runtime conversion.
37433         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
37434         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
37435         * modules/ceill-tests (Files): Use nan.h.
37436         * modules/floorl-tests (Files): Likewise.
37437         * modules/frexpl-tests (Files): Likewise.
37438         * modules/isnanl-tests (Files): Likewise.
37439         * modules/ldexpl-tests (Files): Likewise.
37440         * modules/roundl-tests (Files): Likewise.
37441         * modules/truncl-tests (Files): Likewise.
37442         * tests/test-ceill.c (main): Use a working NaN.
37443         * tests/test-floorl.c (main): Likewise.
37444         * tests/test-frexpl.c (main): Likewise.
37445         * tests/test-isnan.c (test_long_double): Likewise.
37446         * tests/test-isnanl.h (main): Likewise.
37447         * tests/test-ldexpl.h (main): Likewise.
37448         * tests/test-roundl.h (main): Likewise.
37449         * tests/test-truncl.h (main): Likewise.
37450         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
37451
37452 2009-02-26  Eric Blake  <ebb9@byu.net>
37453             Bruno Haible  <bruno@clisp.org>
37454
37455         Work around a *printf bug with %ls on Solaris.
37456         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
37457         precision is specified, sprintf stops converting the wide string
37458         argument when the number of bytes that have been produced by this
37459         conversion equals or exceeds the precision.
37460         * doc/posix-functions/fprintf.texi: Update.
37461         * doc/posix-functions/printf.texi: Update.
37462         * doc/posix-functions/snprintf.texi: Update.
37463         * doc/posix-functions/sprintf.texi: Update.
37464         * doc/posix-functions/vfprintf.texi: Update.
37465         * doc/posix-functions/vprintf.texi: Update.
37466         * doc/posix-functions/vsnprintf.texi: Update.
37467         * doc/posix-functions/vsprintf.texi: Update.
37468         * doc/glibc-functions/obstack_printf.texi: Update.
37469         * doc/glibc-functions/obstack_vprintf.texi: Update.
37470
37471 2009-02-26  Eric Blake  <ebb9@byu.net>
37472
37473         stdlib: favor compiler check of random.h
37474         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
37475         to avoid an ObjC random.h installed by Swarm.
37476
37477 2009-02-26  Bruno Haible  <bruno@clisp.org>
37478
37479         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
37480         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
37481         Reported by Gary V. Vaughan <gary@gnu.org>.
37482
37483 2009-02-26  Bruno Haible  <bruno@clisp.org>
37484
37485         Fix *printf behaviour regarding the %ls directive.
37486         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
37487         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
37488         NEED_PRINTF_DIRECTIVE_LS.
37489         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
37490         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37491         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37492         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
37493         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
37494         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
37495         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
37496         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37497         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37498         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37499         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37500         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
37501         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37502         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37503         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37504         * doc/posix-functions/fprintf.texi: Update.
37505         * doc/posix-functions/printf.texi: Update.
37506         * doc/posix-functions/snprintf.texi: Update.
37507         * doc/posix-functions/sprintf.texi: Update.
37508         * doc/posix-functions/vfprintf.texi: Update.
37509         * doc/posix-functions/vprintf.texi: Update.
37510         * doc/posix-functions/vsnprintf.texi: Update.
37511         * doc/posix-functions/vsprintf.texi: Update.
37512         * doc/glibc-functions/obstack_printf.texi: Update.
37513         * doc/glibc-functions/obstack_vprintf.texi: Update.
37514         Reported by Eric Blake.
37515
37516 2009-02-25  Bruno Haible  <bruno@clisp.org>
37517
37518         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
37519         with known value.
37520         Reported by Gary V. Vaughan <gary@gnu.org>.
37521
37522 2009-02-25  Bruno Haible  <bruno@clisp.org>
37523
37524         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
37525         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
37526         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
37527         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
37528         Reported by Gary V. Vaughan <gary@gnu.org>.
37529
37530 2009-02-25  Bruno Haible  <bruno@clisp.org>
37531
37532         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
37533         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
37534         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
37535         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
37536         Reported by Gary V. Vaughan <gary@gnu.org>.
37537
37538 2009-02-25  Eric Blake  <ebb9@byu.net>
37539
37540         tests: skip fseek/ftell tests if ungetc is broken
37541         * m4/ungetc.m4: New file.
37542         * modules/fseek-tests: Split test, so ungetc dependency is
37543         separate from rest of test.
37544         * modules/fseeko-tests: Likewise.
37545         * modules/ftell-tests: Likewise.
37546         * modules/ftello-tests: Likewise.
37547         * tests/test-fseek.c (main): Isolate ungetc dependency.
37548         * tests/test-fseeko.c (main): Likewise.
37549         * tests/test-ftell.c (main): Likewise.
37550         * tests/test-ftello.c (main): Likewise.
37551         * tests/test-fseek2.sh: New file.
37552         * tests/test-fseeko2.sh: Likewise.
37553         * tests/test-ftell2.sh: Likewise.
37554         * tests/test-ftello2.sh: Likewise.
37555
37556 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
37557
37558         test-getaddrinfo: fix usage of skip return code 77
37559         * tests/test-gettaddrinfo.c: Return skip code 77 only
37560         for first occurance of skip (4x77 is not 77)
37561
37562 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
37563
37564         strtod: avoid C99 decl-after-statement
37565         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
37566
37567 2009-02-24  Eric Blake  <ebb9@byu.net>
37568
37569         strtod: detect HP-UX 11.31 bug
37570         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
37571         Reported by Gary V. Vaughan.
37572
37573 2009-02-23  Bruno Haible  <bruno@clisp.org>
37574
37575         Fix invalid read past end of memory block.
37576         * lib/vasnprintf.c (DCHAR_SET): Define.
37577         (local_wcslen): Define only when needed.
37578         (local_strnlen, local_wcsnlen): New functions.
37579         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
37580         directives that involve a conversion ourselves.
37581         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
37582         wcsnlen, mbrtowc, wcrtomb.
37583         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
37584         * tests/test-vasprintf-posix.c (test_function): Likewise.
37585         * tests/test-snprintf-posix.h (test_function): Likewise.
37586         * tests/test-sprintf-posix.h (test_function): Likewise.
37587         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37588
37589 2009-02-22  Bruno Haible  <bruno@clisp.org>
37590
37591         Implement new clarified decomposition of Hangul syllables.
37592         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
37593         of type LTV, return only a pairwise decomposition.
37594         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
37595         Likewise.
37596         * tests/uninorm/test-decomposition.c (main): Updated expected result.
37597         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
37598         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
37599
37600 2009-02-22  Bruno Haible  <bruno@clisp.org>
37601
37602         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
37603         zero-length results and shrink excess allocated memory.
37604         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
37605         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
37606         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
37607         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
37608         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
37609         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
37610         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
37611         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
37612         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
37613         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
37614         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
37615         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
37616
37617 2009-02-21  Bruno Haible  <bruno@clisp.org>
37618
37619         * doc/gnulib.texi: Include safe-alloc.texi earlier.
37620         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
37621         spaces after a period. Put a space between a macro name and its
37622         argument list. Trivial rewordings.
37623         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
37624         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
37625         (main): Return 0 explicitly.
37626
37627 2009-02-21  Bruno Haible  <bruno@clisp.org>
37628
37629         Tests for module 'uninorm/filter'.
37630         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
37631         * modules/uninorm/filter-tests: New file.
37632
37633         New module 'uninorm/filter'.
37634         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
37635         uninorm_filter_flush, uninorm_filter_free): New declarations.
37636         * lib/uninorm/uninorm-filter.c: New file.
37637         * modules/uninorm/filter: New file.
37638
37639 2009-02-21  Bruno Haible  <bruno@clisp.org>
37640
37641         Tests for module 'uninorm/nfkc'.
37642         * tests/uninorm/test-nfkc.c: New file.
37643         * tests/uninorm/test-u8-nfkc.c: New file.
37644         * tests/uninorm/test-u16-nfkc.c: New file.
37645         * tests/uninorm/test-u32-nfkc.c: New file.
37646         * tests/uninorm/test-u32-nfkc-big.sh: New file.
37647         * tests/uninorm/test-u32-nfkc-big.c: New file.
37648         * modules/uninorm/nfkc-tests: New file.
37649
37650         New module 'uninorm/nfkc'.
37651         * lib/uninorm/nfkc.c: New file.
37652         * modules/uninorm/nfkc: New file.
37653
37654         Tests for module 'uninorm/nfkd'.
37655         * tests/uninorm/test-nfkd.c: New file.
37656         * tests/uninorm/test-u8-nfkd.c: New file.
37657         * tests/uninorm/test-u16-nfkd.c: New file.
37658         * tests/uninorm/test-u32-nfkd.c: New file.
37659         * tests/uninorm/test-u32-nfkd-big.sh: New file.
37660         * tests/uninorm/test-u32-nfkd-big.c: New file.
37661         * modules/uninorm/nfkd-tests: New file.
37662
37663         New module 'uninorm/nfkd'.
37664         * lib/uninorm/nfkd.c: New file.
37665         * modules/uninorm/nfkd: New file.
37666
37667         Tests for module 'uninorm/nfc'.
37668         * tests/uninorm/test-nfc.c: New file.
37669         * tests/uninorm/test-u8-nfc.c: New file.
37670         * tests/uninorm/test-u16-nfc.c: New file.
37671         * tests/uninorm/test-u32-nfc.c: New file.
37672         * tests/uninorm/test-u32-nfc-big.sh: New file.
37673         * tests/uninorm/test-u32-nfc-big.c: New file.
37674         * modules/uninorm/nfc-tests: New file.
37675
37676         New module 'uninorm/nfc'.
37677         * lib/uninorm/nfc.c: New file.
37678         * modules/uninorm/nfc: New file.
37679
37680         Tests for module 'uninorm/nfd'.
37681         * tests/uninorm/test-nfd.c: New file.
37682         * tests/uninorm/test-u8-nfd.c: New file.
37683         * tests/uninorm/test-u16-nfd.c: New file.
37684         * tests/uninorm/test-u32-nfd.c: New file.
37685         * tests/uninorm/test-u32-nfd-big.sh: New file.
37686         * tests/uninorm/test-u32-nfd-big.c: New file.
37687         * tests/uninorm/test-u32-normalize-big.h: New file.
37688         * tests/uninorm/test-u32-normalize-big.c: New file.
37689         * tests/uninorm/NormalizationTest.txt: New file, created from
37690         Unicode 5.1.0 NormalizationTest.txt.
37691         * modules/uninorm/nfd-tests: New file.
37692
37693         New module 'uninorm/nfd'.
37694         * lib/uninorm/nfd.c: New file.
37695         * modules/uninorm/nfd: New file.
37696
37697         New module 'uninorm/u32-normalize'.
37698         * lib/uninorm/u32-normalize.c: New file.
37699         * modules/uninorm/u32-normalize: New file.
37700
37701         New module 'uninorm/u16-normalize'.
37702         * lib/uninorm/u16-normalize.c: New file.
37703         * modules/uninorm/u16-normalize: New file.
37704
37705         New module 'uninorm/u8-normalize'.
37706         * lib/uninorm/u8-normalize.c: New file.
37707         * lib/uninorm/normalize-internal.h: New file.
37708         * lib/uninorm/u-normalize-internal.h: New file.
37709         * modules/uninorm/u8-normalize: New file.
37710
37711         New module 'uninorm/decompose-internal'.
37712         * lib/uninorm/decompose-internal.c: New file.
37713         * modules/uninorm/decompose-internal: New file.
37714
37715         Tests for module 'uninorm/composition'.
37716         * tests/uninorm/test-composition.c: New file.
37717         * modules/uninorm/composition-tests: New file.
37718
37719         New module 'uninorm/composition'.
37720         * lib/uninorm/composition.c: New file.
37721         * lib/uninorm/composition-table.gperf: New file, generated by
37722         gen-uni-tables.
37723         * modules/uninorm/composition: New file.
37724
37725         Tests for module 'uninorm/compat-decomposition'.
37726         * tests/uninorm/test-compat-decomposition.c: New file.
37727         * modules/uninorm/compat-decomposition-tests: New file.
37728
37729         New module 'uninorm/compat-decomposition'.
37730         * lib/uninorm/decompose-internal.h: New file.
37731         * lib/uninorm/compat-decomposition.c: New file.
37732         * modules/uninorm/compat-decomposition: New file.
37733
37734         Tests for module 'uninorm/canonical-decomposition'.
37735         * tests/uninorm/test-canonical-decomposition.c: New file.
37736         * modules/uninorm/canonical-decomposition-tests: New file.
37737
37738         New module 'uninorm/canonical-decomposition'.
37739         * lib/uninorm/canonical-decomposition.c: New file.
37740         * modules/uninorm/canonical-decomposition: New file.
37741
37742         Tests for module 'uninorm/decomposition'.
37743         * tests/uninorm/test-decomposition.c: New file.
37744         * modules/uninorm/decomposition-tests: New file.
37745
37746         New module 'uninorm/decomposition'.
37747         * lib/uninorm/decomposition.c: New file.
37748         * modules/uninorm/decomposition: New file.
37749
37750         New module 'uninorm/decomposition-table'.
37751         * lib/uninorm/decomposition-table.h: New file.
37752         * lib/uninorm/decomposition-table.c: New file.
37753         * lib/uninorm/decomposition-table1.h: New file, generated by
37754         gen-uni-tables.
37755         * lib/uninorm/decomposition-table2.h: New file, generated by
37756         gen-uni-tables.
37757         * modules/uninorm/decomposition-table: New file.
37758
37759         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
37760         (UC_DECOMP_*): New enumeration items.
37761         (get_decomposition): New function.
37762         (struct decomp_table): New type.
37763         (output_decomposition, output_decomposition_tables): New functions.
37764         (unicode_composition_exclusions): New variable.
37765         (fill_composition_exclusions, debug_output_composition_tables): New
37766         functions.
37767         (main): Accept one more argument. Invoke fill_composition_exclusions.
37768         Output decomposition and composition tables.
37769
37770         New module 'uninorm/base'.
37771         * lib/uninorm.h: New file.
37772         * lib/unictype.h: Update comment.
37773         * modules/uninorm/base: New file.
37774
37775 2009-02-21  David Lutterkort  <lutter@redhat.com>
37776
37777         Tests for module 'safe-alloc'.
37778         * tests/test-safe-alloc.c: New file.
37779         * modules/safe-alloc-tests: New file.
37780
37781         New module 'safe-alloc'.
37782         * lib/safe-alloc.h: New file.
37783         * lib/safe-alloc.c: New file.
37784         * m4/safe-alloc.m4: New file.
37785         * modules/safe-alloc: New file.
37786         * doc/safe-alloc.texi: New file.
37787         * doc/gnulib.texi: Include it.
37788         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
37789         safe-alloc.
37790
37791 2009-02-18  Bruno Haible  <bruno@clisp.org>
37792
37793         Fix link error on non-glibc systems.
37794         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
37795         variable.
37796         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37797
37798 2009-02-18  Jim Meyering  <meyering@redhat.com>
37799
37800         fts: avoid used-uninitialized error due to recent change
37801         * lib/fts.c (fts_read): Guard uses of the new member,
37802         parent->fts_n_dirs_remaining, since it's not relevant for
37803         the parent of a directory specified on the command-line.
37804
37805 2009-02-17  James Youngman  <jay@gnu.org>
37806             Bruno Haible  <bruno@clisp.org>
37807
37808         * m4/include_next.m4: Reformulate comment.
37809
37810 2009-02-16  Jim Meyering  <meyering@redhat.com>
37811
37812         fts: add #if guards so that the fts_lgpl module still builds
37813         * lib/fts.c: Guard just-added hash-table-using parts with
37814         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
37815         Reported by Simon Josefsson.
37816
37817 2009-02-15  Bruno Haible  <bruno@clisp.org>
37818
37819         * modules/array-mergesort-tests: New file.
37820         * tests/test-array-mergesort.c: New file.
37821
37822         New module 'array-mergesort'.
37823         * modules/array-mergesort: New file.
37824         * lib/array-mergesort.h: New file.
37825
37826 2009-02-15  Bruno Haible  <bruno@clisp.org>
37827
37828         Fix 2009-02-07 commit.
37829         * lib/gen-uni-tables.c (output_predicate, output_category,
37830         output_combclass, output_bidi_category, output_decimal_digit,
37831         output_digit, output_numeric, output_mirror, output_scripts,
37832         output_ident_category, output_simple_mapping): Fix format directives.
37833         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
37834
37835 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
37836
37837         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
37838         fixes are available from IBM.
37839
37840 2009-02-13  Jim Meyering  <meyering@redhat.com>
37841
37842         fts: arrange not to stat non-directories in more cases
37843         This makes GNU find (when it doesn't need to stat each file)
37844         *much* more efficient at traversing reiserfs file systems.
37845         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
37846         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
37847         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
37848         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
37849         (leaf_optimization_applies): New function.
37850         (LCO_hash, LCO_compare): New helper functions.
37851         (link_count_optimize_ok): New function.
37852         (fts_stat): Initialize new member (if dir).
37853         (fts_read): Decrement parent's fts_n_dirs_remaining count if
37854         we've just stat'ed a directory.  Skip the stat call when possible.
37855         ---
37856         Note this AFS-related exchange:
37857         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
37858         and note find's pioctl call in find/fstype.c.
37859         But that is necessary only if you want to enable the
37860         optimization for AFS, and for now, I don't.
37861
37862         fts: move a function definition "up" (no semantic change)
37863         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
37864         "up" to precede upcoming use of a related function.
37865
37866 2009-02-11  Jim Meyering  <meyering@redhat.com>
37867
37868         fts: correct internal computation of nlinks (optimization-related)
37869         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
37870         whether the current entry is a directory, so don't test it.
37871
37872 2009-02-10  Bruno Haible  <bruno@clisp.org>
37873
37874         Tests for module 'uniwbrk/ulc-wordbreaks'.
37875         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
37876         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
37877         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
37878
37879         Tests for module 'uniwbrk/u32-wordbreaks'.
37880         * modules/uniwbrk/u32-wordbreaks-tests: New file.
37881         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
37882
37883         Tests for module 'uniwbrk/u16-wordbreaks'.
37884         * modules/uniwbrk/u16-wordbreaks-tests: New file.
37885         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
37886
37887         Tests for module 'uniwbrk/u8-wordbreaks'.
37888         * modules/uniwbrk/u8-wordbreaks-tests: New file.
37889         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
37890
37891 2009-02-10  Bruno Haible  <bruno@clisp.org>
37892
37893         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
37894         property.
37895         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
37896         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
37897         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
37898
37899 2009-02-10  Simon Josefsson  <simon@josefsson.org>
37900
37901         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
37902         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
37903
37904 2009-02-10  Bruno Haible  <bruno@clisp.org>
37905
37906         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
37907         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
37908         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
37909         * lib/unilbrk/u8-possible-linebreaks.c: Update.
37910         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
37911         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
37912
37913 2009-02-09  Simon Josefsson  <simon@josefsson.org>
37914
37915         * lib/sockets.h (gl_fd_to_handle): New function.
37916
37917         * tests/test-sockets.c: Call gl_fd_to_handle.
37918
37919 2009-02-09  Bruno Haible  <bruno@clisp.org>
37920
37921         * doc/havelib.texi: Document the conventions on bi-arch systems.
37922
37923 2009-02-08  Bruno Haible  <bruno@clisp.org>
37924
37925         Document the AC_LIB_LINKFLAGS macro.
37926         * doc/havelib.texi: New file, mostly written on 2005-05-24.
37927         * doc/gnulib.texi: Include it.
37928
37929 2009-02-08  Bruno Haible  <bruno@clisp.org>
37930
37931         Fix wrong order of sections, compared to TOC.
37932         * doc/gnulib.texi: Include relocatable-maint.texi after the
37933         "Regular expressions" node, not before.
37934
37935 2009-02-08  Bruno Haible  <bruno@clisp.org>
37936
37937         Tests for module 'unicase/totitle'.
37938         * modules/unicase/totitle-tests: New file.
37939
37940         Tests for module 'unicase/tolower'.
37941         * modules/unicase/tolower-tests: New file.
37942
37943         Tests for module 'unicase/toupper'.
37944         * modules/unicase/toupper-tests: New file.
37945         * tests/unicase/test-mapping-part1.h: New file.
37946         * tests/unicase/test-mapping-part2.h: New file.
37947
37948         New module 'unicase/totitle'.
37949         * modules/unicase/totitle: New file.
37950         * lib/unicase/totitle.c: New file.
37951
37952         New module 'unicase/tolower'.
37953         * modules/unicase/tolower: New file.
37954         * lib/unicase/tolower.c: New file.
37955
37956         New module 'unicase/toupper'.
37957         * modules/unicase/toupper: New file.
37958         * lib/unicase/toupper.c: New file.
37959         * lib/unicase/simple-mapping.h: New file.
37960
37961         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
37962         (mapping_table): New structure.
37963         (output_simple_mapping): New function.
37964         (main): Invoke output_simple_mapping_test and output_simple_mapping.
37965         * modules/gen-uni-tables (Description): Update.
37966         * lib/unicase/toupper.h: New file, automatically generated by
37967         gen-uni-tables.
37968         * lib/unicase/tolower.h: New file, automatically generated by
37969         gen-uni-tables.
37970         * lib/unicase/totitle.h: New file, automatically generated by
37971         gen-uni-tables.
37972         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
37973         gen-uni-tables.
37974         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
37975         gen-uni-tables.
37976         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
37977         gen-uni-tables.
37978
37979         New module 'unicase/base'.
37980         * modules/unicase/base: New file.
37981         * lib/unicase.h: New file.
37982
37983 2009-02-08  Bruno Haible  <bruno@clisp.org>
37984
37985         New module 'uniwbrk/ulc-wordbreaks'.
37986         * modules/uniwbrk/ulc-wordbreaks: New file.
37987         * lib/uniwbrk/ulc-wordbreaks.c: New file.
37988
37989         New module 'uniwbrk/u32-wordbreaks'.
37990         * modules/uniwbrk/u32-wordbreaks: New file.
37991         * lib/uniwbrk/u32-wordbreaks.c: New file.
37992
37993         New module 'uniwbrk/u16-wordbreaks'.
37994         * modules/uniwbrk/u16-wordbreaks: New file.
37995         * lib/uniwbrk/u16-wordbreaks.c: New file.
37996
37997         New module 'uniwbrk/u8-wordbreaks'.
37998         * modules/uniwbrk/u8-wordbreaks: New file.
37999         * lib/uniwbrk/u8-wordbreaks.c: New file.
38000         * lib/uniwbrk/u-wordbreaks.h: New file.
38001
38002         New module 'uniwbrk/table'.
38003         * modules/uniwbrk/table: New file.
38004         * lib/uniwbrk/wbrktable.h: New file.
38005         * lib/uniwbrk/wbrktable.c: New file.
38006
38007         New module 'uniwbrk/wordbreak-property'.
38008         * modules/uniwbrk/wordbreak-property: New file.
38009         * lib/uniwbrk/wordbreak-property.c: New file.
38010
38011         * lib/gen-uni-tables.c (WBP_*): New enum items.
38012         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
38013         (unicode_org_wbp): New variable.
38014         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
38015         New functions.
38016         (wbp_table): New structure.
38017         (output_wbp, output_wbrk_tables): New functions.
38018         (main): Accept additional argument. Invoke fill_org_wbp,
38019         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
38020         output_wbrk_tables.
38021         * modules/gen-uni-tables (Description): Update.
38022         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
38023         gen-uni-tables.
38024
38025         New module 'uniwbrk/base'.
38026         * modules/uniwbrk/base: New file.
38027         * lib/uniwbrk.h: New file.
38028
38029 2009-02-08  Bruno Haible  <bruno@clisp.org>
38030
38031         Update to Unicode 5.1.0.
38032         * lib/gen-uni-tables.c (is_property_alphabetic): Include
38033         U+2185..U+2188.
38034         (is_property_default_ignorable_code_point): Don't include characters
38035         of category Cc or Cs and not-a-characters.
38036         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
38037         U+0D79, U+109E, U+109F, U+A60C.
38038         * lib/unictype/bidi_of.h: Regenerated.
38039         * lib/unictype/blocks.h: Regenerated.
38040         * lib/unictype/categ_C.h: Regenerated.
38041         * lib/unictype/categ_Cf.h: Regenerated.
38042         * lib/unictype/categ_Cn.h: Regenerated.
38043         * lib/unictype/categ_L.h: Regenerated.
38044         * lib/unictype/categ_Ll.h: Regenerated.
38045         * lib/unictype/categ_Lm.h: Regenerated.
38046         * lib/unictype/categ_Lo.h: Regenerated.
38047         * lib/unictype/categ_Lu.h: Regenerated.
38048         * lib/unictype/categ_M.h: Regenerated.
38049         * lib/unictype/categ_Mc.h: Regenerated.
38050         * lib/unictype/categ_Me.h: Regenerated.
38051         * lib/unictype/categ_Mn.h: Regenerated.
38052         * lib/unictype/categ_N.h: Regenerated.
38053         * lib/unictype/categ_Nd.h: Regenerated.
38054         * lib/unictype/categ_Nl.h: Regenerated.
38055         * lib/unictype/categ_No.h: Regenerated.
38056         * lib/unictype/categ_P.h: Regenerated.
38057         * lib/unictype/categ_Pd.h: Regenerated.
38058         * lib/unictype/categ_Pe.h: Regenerated.
38059         * lib/unictype/categ_Pf.h: Regenerated.
38060         * lib/unictype/categ_Pi.h: Regenerated.
38061         * lib/unictype/categ_Po.h: Regenerated.
38062         * lib/unictype/categ_Ps.h: Regenerated.
38063         * lib/unictype/categ_S.h: Regenerated.
38064         * lib/unictype/categ_Sk.h: Regenerated.
38065         * lib/unictype/categ_Sm.h: Regenerated.
38066         * lib/unictype/categ_So.h: Regenerated.
38067         * lib/unictype/categ_of.h: Regenerated.
38068         * lib/unictype/combining.h: Regenerated.
38069         * lib/unictype/ctype_alnum.h: Regenerated.
38070         * lib/unictype/ctype_alpha.h: Regenerated.
38071         * lib/unictype/ctype_graph.h: Regenerated.
38072         * lib/unictype/ctype_lower.h: Regenerated.
38073         * lib/unictype/ctype_print.h: Regenerated.
38074         * lib/unictype/ctype_punct.h: Regenerated.
38075         * lib/unictype/ctype_upper.h: Regenerated.
38076         * lib/unictype/decdigit.h: Regenerated.
38077         * lib/unictype/digit.h: Regenerated.
38078         * lib/unictype/mirror.h: Regenerated.
38079         * lib/unictype/numeric.h: Regenerated.
38080         * lib/unictype/pr_alphabetic.h: Regenerated.
38081         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
38082         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
38083         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
38084         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
38085         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
38086         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
38087         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
38088         * lib/unictype/pr_combining.h: Regenerated.
38089         * lib/unictype/pr_dash.h: Regenerated.
38090         * lib/unictype/pr_decimal_digit.h: Regenerated.
38091         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
38092         * lib/unictype/pr_deprecated.h: Regenerated.
38093         * lib/unictype/pr_diacritic.h: Regenerated.
38094         * lib/unictype/pr_extender.h: Regenerated.
38095         * lib/unictype/pr_format_control.h: Regenerated.
38096         * lib/unictype/pr_grapheme_base.h: Regenerated.
38097         * lib/unictype/pr_grapheme_extend.h: Regenerated.
38098         * lib/unictype/pr_grapheme_link.h: Regenerated.
38099         * lib/unictype/pr_id_continue.h: Regenerated.
38100         * lib/unictype/pr_id_start.h: Regenerated.
38101         * lib/unictype/pr_ideographic.h: Regenerated.
38102         * lib/unictype/pr_ignorable_control.h: Regenerated.
38103         * lib/unictype/pr_lowercase.h: Regenerated.
38104         * lib/unictype/pr_math.h: Regenerated.
38105         * lib/unictype/pr_numeric.h: Regenerated.
38106         * lib/unictype/pr_other_alphabetic.h: Regenerated.
38107         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
38108         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
38109         * lib/unictype/pr_other_id_continue.h: Regenerated.
38110         * lib/unictype/pr_other_lowercase.h: Regenerated.
38111         * lib/unictype/pr_other_math.h: Regenerated.
38112         * lib/unictype/pr_punctuation.h: Regenerated.
38113         * lib/unictype/pr_sentence_terminal.h: Regenerated.
38114         * lib/unictype/pr_soft_dotted.h: Regenerated.
38115         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
38116         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
38117         * lib/unictype/pr_unified_ideograph.h: Regenerated.
38118         * lib/unictype/pr_uppercase.h: Regenerated.
38119         * lib/unictype/pr_xid_continue.h: Regenerated.
38120         * lib/unictype/pr_xid_start.h: Regenerated.
38121         * lib/unictype/pr_zero_width.h: Regenerated.
38122         * lib/unictype/scripts.h: Regenerated.
38123         * lib/unictype/scripts_byname.gperf: Regenerated.
38124         * lib/unictype/sy_java_ident.h: Regenerated.
38125         * lib/unilbrk/lbrkprop1.h: Regenerated.
38126         * lib/unilbrk/lbrkprop2.h: Regenerated.
38127         * tests/unictype/test-categ_C.c: Regenerated.
38128         * tests/unictype/test-categ_Cf.c: Regenerated.
38129         * tests/unictype/test-categ_Cn.c: Regenerated.
38130         * tests/unictype/test-categ_L.c: Regenerated.
38131         * tests/unictype/test-categ_Ll.c: Regenerated.
38132         * tests/unictype/test-categ_Lm.c: Regenerated.
38133         * tests/unictype/test-categ_Lo.c: Regenerated.
38134         * tests/unictype/test-categ_Lu.c: Regenerated.
38135         * tests/unictype/test-categ_M.c: Regenerated.
38136         * tests/unictype/test-categ_Mc.c: Regenerated.
38137         * tests/unictype/test-categ_Me.c: Regenerated.
38138         * tests/unictype/test-categ_Mn.c: Regenerated.
38139         * tests/unictype/test-categ_N.c: Regenerated.
38140         * tests/unictype/test-categ_Nd.c: Regenerated.
38141         * tests/unictype/test-categ_Nl.c: Regenerated.
38142         * tests/unictype/test-categ_No.c: Regenerated.
38143         * tests/unictype/test-categ_P.c: Regenerated.
38144         * tests/unictype/test-categ_Pd.c: Regenerated.
38145         * tests/unictype/test-categ_Pe.c: Regenerated.
38146         * tests/unictype/test-categ_Pf.c: Regenerated.
38147         * tests/unictype/test-categ_Pi.c: Regenerated.
38148         * tests/unictype/test-categ_Po.c: Regenerated.
38149         * tests/unictype/test-categ_Ps.c: Regenerated.
38150         * tests/unictype/test-categ_S.c: Regenerated.
38151         * tests/unictype/test-categ_Sk.c: Regenerated.
38152         * tests/unictype/test-categ_Sm.c: Regenerated.
38153         * tests/unictype/test-categ_So.c: Regenerated.
38154         * tests/unictype/test-ctype_alnum.c: Regenerated.
38155         * tests/unictype/test-ctype_alpha.c: Regenerated.
38156         * tests/unictype/test-ctype_graph.c: Regenerated.
38157         * tests/unictype/test-ctype_lower.c: Regenerated.
38158         * tests/unictype/test-ctype_print.c: Regenerated.
38159         * tests/unictype/test-ctype_punct.c: Regenerated.
38160         * tests/unictype/test-ctype_upper.c: Regenerated.
38161         * tests/unictype/test-decdigit.h: Regenerated.
38162         * tests/unictype/test-digit.h: Regenerated.
38163         * tests/unictype/test-numeric.h: Regenerated.
38164         * tests/unictype/test-pr_alphabetic.c: Regenerated.
38165         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
38166         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
38167         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
38168         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
38169         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
38170         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
38171         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
38172         * tests/unictype/test-pr_combining.c: Regenerated.
38173         * tests/unictype/test-pr_dash.c: Regenerated.
38174         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
38175         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
38176         * tests/unictype/test-pr_deprecated.c: Regenerated.
38177         * tests/unictype/test-pr_diacritic.c: Regenerated.
38178         * tests/unictype/test-pr_extender.c: Regenerated.
38179         * tests/unictype/test-pr_format_control.c: Regenerated.
38180         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
38181         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
38182         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
38183         * tests/unictype/test-pr_id_continue.c: Regenerated.
38184         * tests/unictype/test-pr_id_start.c: Regenerated.
38185         * tests/unictype/test-pr_ideographic.c: Regenerated.
38186         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
38187         * tests/unictype/test-pr_lowercase.c: Regenerated.
38188         * tests/unictype/test-pr_math.c: Regenerated.
38189         * tests/unictype/test-pr_numeric.c: Regenerated.
38190         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
38191         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
38192         Regenerated.
38193         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
38194         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
38195         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
38196         * tests/unictype/test-pr_other_math.c: Regenerated.
38197         * tests/unictype/test-pr_punctuation.c: Regenerated.
38198         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
38199         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
38200         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
38201         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
38202         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
38203         * tests/unictype/test-pr_uppercase.c: Regenerated.
38204         * tests/unictype/test-pr_xid_continue.c: Regenerated.
38205         * tests/unictype/test-pr_xid_start.c: Regenerated.
38206         * tests/unictype/test-pr_zero_width.c: Regenerated.
38207
38208         Update to Unicode 5.1.0.
38209         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
38210         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
38211         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
38212         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
38213         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
38214         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
38215         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
38216         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
38217         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
38218         (nonspacing_table_ind): Update.
38219         * tests/uniwidth/test-uc_width2.sh: Update expected result.
38220
38221         Update to Unicode 5.1.0.
38222         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
38223         code transform.
38224         * lib/uniname/uniname.c (unicode_character_name,
38225         unicode_name_character): Add the range 0x1Fxxx to the code transform.
38226         * lib/uniname/uninames.h: Regenerated.
38227         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
38228
38229 2009-02-07  Bruno Haible  <bruno@clisp.org>
38230
38231         Merge gen-ctype and gen-lbrk into a single program.
38232         * lib/gen-uni-tables.c: New file, incorporating
38233         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
38234         Add directory prefixes to the names of the generated files.
38235         * lib/unictype/gen-ctype.c: Remove file.
38236         * lib/unilbrk/gen-lbrk.c: Remove file.
38237         * modules/gen-uni-tables: New file.
38238         * modules/unictype/gen-ctype: Remove file.
38239         * modules/unilbrk/gen-lbrk: Remove file.
38240
38241 2009-02-07  Bruno Haible  <bruno@clisp.org>
38242
38243         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
38244
38245         New module 'unistr/u32-strcoll'.
38246         * modules/unistr/u32-strcoll: New file.
38247         * lib/unistr/u32-strcoll.c: New file.
38248
38249         New module 'unistr/u16-strcoll'.
38250         * modules/unistr/u16-strcoll: New file.
38251         * lib/unistr/u16-strcoll.c: New file.
38252
38253         New module 'unistr/u8-strcoll'.
38254         * modules/unistr/u8-strcoll: New file.
38255         * lib/unistr/u8-strcoll.c: New file.
38256         * lib/unistr/u-strcoll.h: New file.
38257
38258 2009-02-07  Bruno Haible  <bruno@clisp.org>
38259
38260         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
38261         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38262         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38263         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
38264         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
38265         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
38266
38267 2009-02-07  Bruno Haible  <bruno@clisp.org>
38268
38269         Make 64-bit clean.
38270         * lib/unictype/gen-ctype.c (output_predicate, output_category,
38271         output_combclass, output_bidi_category, output_decimal_digit,
38272         output_digit, output_numeric, output_mirror, output_scripts,
38273         output_ident_category): Use proper width specifier in format strings.
38274
38275 2009-02-07  Bruno Haible  <bruno@clisp.org>
38276
38277         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
38278         failure behaviour.
38279
38280 2009-02-07  Jim Meyering  <meyering@redhat.com>
38281
38282         regex: avoid compilation failure with upcoming gcc-4.4
38283         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
38284         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
38285         "... error: integer overflow in preprocessor expression".
38286
38287 2009-02-05  Ben Pfaff  <blp@gnu.org>
38288
38289         Fix link errors on Windows when close module is used.
38290         * modules/close: Add $(LIB_CLOSE) to Link section.
38291         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
38292         $(LIB_CLOSE) on Windows.
38293
38294 2009-02-05  Jim Meyering  <meyering@redhat.com>
38295
38296         still avoid unused-parameter warnings, but do it cleanly
38297         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
38298         (get_fs_usage): Cast to void instead.
38299         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
38300         (dev_from_mount_options, read_file_system_list): Cast to void.
38301         Prompted by Bruno Haible.
38302
38303 2009-02-04  Jim Meyering  <meyering@redhat.com>
38304
38305         fsusage.c: correct copyright year
38306         * lib/fsusage.c: Reflect year in which the change is pushed into
38307
38308         avoid misc. warnings
38309         * lib/fsusage.c (UNUSED_PARAM): Define.
38310         (get_fs_usage): Mark parameter "disk" as unused.
38311         * lib/getugroups.c (getgrent): Use "void" in prototype.
38312         * lib/mountlist.c: Mark unused parameters.
38313         (read_file_system_list): Declare a local with "const".
38314         * lib/nanosleep.c (getnow): Declare static.
38315         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
38316
38317         dirfd: set errno upon failure
38318         * lib/dirfd.c: Include <errno.h>.
38319         Set errno to ENOTSUP when returning -1.
38320         * modules/dirfd (Depends-on): Add errno.
38321         Suggested by John Kodis <kodis@comcast.net>.
38322
38323 2009-02-01  Bruno Haible  <bruno@clisp.org>
38324
38325         Don't assume sizeof (long) >= sizeof (void *).
38326         * lib/memcmp.c: Include stdint.h.
38327         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
38328         srcp2 to 'const byte *'.
38329         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
38330         types to uintptr_t.
38331         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
38332         * modules/memcmp (Depends-on): Add stdint.
38333         Reported by Ozkan Sezer <sezeroz@gmail.com>.
38334
38335 2009-01-30  Eric Blake  <ebb9@byu.net>
38336
38337         fix more require-before-expand issues
38338         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
38339         expand, AC_PROG_AWK.
38340         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
38341
38342 2009-01-28  Eric Blake  <ebb9@byu.net>
38343
38344         version-etc: use consistent URL formatting
38345         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
38346         Improve formatting.  Use fputs for string without %.
38347
38348 2009-01-28  Jim Meyering  <meyering@redhat.com>
38349
38350         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
38351         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
38352         "underquoted definition of NAME" from autoconf-2.59.
38353
38354 2009-01-28  Bruno Haible  <bruno@clisp.org>
38355
38356         * doc/gnulib.texi: Add "Obsolete modules" to index.
38357
38358 2009-01-28  Jim Meyering  <meyering@redhat.com>
38359
38360         useless-if-before-free: recognize more variants
38361         * build-aux/useless-if-before-free: Also recognize e.g.,
38362         if (NULL != p) free (p);
38363
38364 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
38365
38366         test-getaddrinfo: skip (don't fail) this test when there's no network
38367         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
38368         on the presumption that it means you lack network access.
38369
38370 2009-01-26  Jim Meyering  <meyering@redhat.com>
38371
38372         fflush: avoid warnings on modern systems
38373         * lib/fflush.c (rpl_fflush): Move declarations of locals,
38374         pos and result, into scopes where they're used.
38375
38376 2009-01-26  Eric Blake  <ebb9@byu.net>
38377
38378         Silence warning reintroduced by recent extensions patch.
38379         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
38380         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
38381         autoconf.
38382
38383         Backport improved autoconf semantics of AC_DEFUN_ONCE.
38384         * m4/00gnulib.m4: New file.
38385         * gnulib-tool (func_get_filelist): Always use it.
38386         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
38387         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
38388
38389 2009-01-25  Bruno Haible  <bruno@clisp.org>
38390
38391         Make test-quotearg work on MacOS X and AIX.
38392         * tests/test-quotearg.sh: New file.
38393         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
38394         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
38395         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
38396         include <libintl.h>.
38397         (fake_locale): Remove variable.
38398         (gettext, dgettext, dcgettext): Remove functions.
38399         (main): Instead of setting a fake locale, set a real locale. Call
38400         textdomain and bindtextdomain.
38401         * modules/quotearg-tests (Files): Add the new files.
38402         (Depends-on): Add gettext, setenv, unsetenv.
38403         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
38404         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
38405         Augment TESTS_ENVIRONMENT.
38406
38407 2009-01-25  Bruno Haible  <bruno@clisp.org>
38408
38409         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
38410         fr_FR.ISO8859-1 locale on MacOS X.
38411         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
38412         ja_JP.eucJP locale on MacOS X.
38413         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
38414         zh_CN.GB18030 locale on MacOS X.
38415
38416 2009-01-25  Bruno Haible  <bruno@clisp.org>
38417
38418         Avoid link errors on MacOS X 10.3.
38419         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
38420         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38421
38422 2009-01-25  Bruno Haible  <bruno@clisp.org>
38423
38424         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38425         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
38426         * modules/pipe (Files): Remove m4/posix_spawn.m4.
38427         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38428         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
38429         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38430         posix_spawnattr_init, posix_spawnattr_setsigmask,
38431         posix_spawnattr_setflags, posix_spawnattr_destroy.
38432
38433         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38434         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
38435         * modules/execute (Files): Remove m4/posix_spawn.m4.
38436         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38437         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38438         posix_spawnattr_init, posix_spawnattr_setsigmask,
38439         posix_spawnattr_setflags, posix_spawnattr_destroy.
38440
38441 2009-01-25  Bruno Haible  <bruno@clisp.org>
38442
38443         * lib/glthread/threadlib.c: Include <stdlib.h>.
38444
38445 2009-01-25  Bruno Haible  <bruno@clisp.org>
38446
38447         * lib/glthread/threadlib.c (dummy): New declaration.
38448
38449 2009-01-25  Bruno Haible  <bruno@clisp.org>
38450
38451         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
38452         multibyte characters also for the GB18030 encoding. Don't crash when
38453         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
38454
38455 2009-01-25  Bruno Haible  <bruno@clisp.org>
38456
38457         Avoid redefining 'struct random_data' on OSF/1 5.1.
38458         * lib/stdlib.in.h: Include <random.h> if it exists.
38459         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
38460         HAVE_RANDOM_H. Include <random.h> when testing whether
38461         'struct random_data' exists.
38462         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
38463
38464 2009-01-25  Bruno Haible  <bruno@clisp.org>
38465
38466         Don't install charset.alias on MacOS X >= 10.3.
38467         * lib/localcharset.c (DARWIN7): New macro.
38468         (get_charset_aliases): Hardcode the result for Darwin7.
38469         * modules/localcharset (install-exec-local): Don't install
38470         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
38471
38472 2009-01-25  Bruno Haible  <bruno@clisp.org>
38473
38474         Don't install charset.alias on mingw and Cygwin.
38475         * modules/localcharset (install-exec-local): Don't install
38476         charset.alias on mingw and Cygwin, if the file does not yet exist.
38477         The result for these platforms is hardcoded in localcharset.c.
38478
38479 2009-01-25  Bruno Haible  <bruno@clisp.org>
38480
38481         Make it possible again to use AC_GNU_SOURCE together with gnulib.
38482         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
38483         before requiring AC_USE_SYSTEM_EXTENSIONS.
38484
38485 2009-01-25  Jim Meyering  <meyering@redhat.com>
38486
38487         c-strtod: avoid warnings
38488         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
38489         "assignment discards qualifiers from pointer target type" warnings.
38490
38491 2009-01-24  Bruno Haible  <bruno@clisp.org>
38492
38493         Add support for non-UTF-8 locales on MacOS X.
38494         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
38495         canonical encodings. For Darwin 7 and newer, don't map traditional
38496         encodings to UTF-8.
38497         Reported by Vincent Lefevre <vincent@vinc17.org>
38498         at <http://savannah.gnu.org/bugs/?25235>.
38499
38500 2009-01-24  Bruno Haible  <bruno@clisp.org>
38501
38502         * doc/gnulib.texi (Obsolete modules): New section.
38503         Reported by Mike Frysinger <vapier@gentoo.org>.
38504
38505 2009-01-24  Bruno Haible  <bruno@clisp.org>
38506
38507         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
38508         (%.dvi): New rule.
38509
38510 2009-01-24  Bruno Haible  <bruno@clisp.org>
38511
38512         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
38513         Reported by Eric Blake.
38514
38515 2009-01-24  Bruno Haible  <bruno@clisp.org>
38516
38517         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
38518         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
38519         Reported by Gary V. Vaughan <gary@gnu.org>.
38520
38521 2009-01-24  Bruno Haible  <bruno@clisp.org>
38522
38523         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
38524
38525 2009-01-23  Bruno Haible  <bruno@clisp.org>
38526
38527         Make c-strtod, c-strtold usable in libraries.
38528         * lib/c-strtod.c: Include string.h instead of xalloc.h.
38529         (C_STRTOD): Call strdup instead of xstrdup.
38530         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
38531         * modules/c-strtold (Depends-on): Likewise.
38532         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
38533         * NEWS: Mention the change.
38534         Reported by Michael Gold <mgold@ncf.ca>.
38535
38536 2009-01-23  Jim Meyering  <meyering@redhat.com>
38537
38538         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
38539         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
38540         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
38541
38542 2009-01-23  Simon Josefsson  <simon@josefsson.org>
38543
38544         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
38545         GNU CoreUtils.
38546         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
38547         * modules/version-etc (Description): Update.
38548
38549 2009-01-22  Bruno Haible  <bruno@clisp.org>
38550
38551         Cache the C locale object.
38552         * lib/c-strtod.c (c_locale_cache): New variable.
38553         (c_locale): New function.
38554         (C_STRTOD): Use it, and don't call freelocale.
38555         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
38556         Suggested by Paolo Bonzini.
38557
38558 2009-01-21  Bruno Haible  <bruno@clisp.org>
38559
38560         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
38561         conditions other than overflow.
38562
38563 2009-01-21  Bruno Haible  <bruno@clisp.org>
38564
38565         * lib/c-strtod.c: Include errno.h.
38566         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
38567         value from STRTOD_L and STRTOD.
38568
38569 2009-01-21  Bruno Haible  <bruno@clisp.org>
38570         and Jim Meyering  <meyering@redhat.com>
38571
38572         nanosleep: skip configure test (fail it) for apple universal builds
38573         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
38574         universal builds, assume that nanosleep does not work.
38575         * modules/nanosleep (Depends-on): Add multiarch.
38576
38577         mktime: skip configure test (fail it) for apple universal builds
38578         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
38579         universal builds, assume that mktime does not work.
38580         * modules/mktime (Depends-on): Add multiarch.
38581
38582 2009-01-21  Eric Blake  <ebb9@byu.net>
38583
38584         multiarch: avoid expand-before-require warning
38585         * modules/multiarch (configure.ac): Require, rather than expand,
38586         gl_MULTIARCH.
38587         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
38588         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
38589         enforce that all clients require it.  Partial reversion of
38590         2008-12-29 patch.
38591
38592         error: avoid expand-before-require warning
38593         * modules/errno (configure.ac): Require, rather than expand,
38594         gl_HEADER_ERRNO_H.
38595         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
38596         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
38597         enforce that all clients require it.
38598
38599         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
38600         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
38601         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
38602         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
38603
38604 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
38605
38606         Revert:
38607         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38608
38609         regex: do not depend on obsolete modules.
38610         * modules/regex: Remove memcmp and memmove.
38611
38612 2009-01-20  Bruno Haible  <bruno@clisp.org>
38613
38614         Make the 'link' module link on Windows NT 4.
38615         * lib/link.c (_WIN32_WINNT): Don't define.
38616         (CreateHardLinkFuncType): New type.
38617         (CreateHardLinkFunc, initialized): New variables.
38618         (initialize): New function.
38619         (link): Invoke CreateHardLink indirectly through the function pointer.
38620
38621 2009-01-20  Bruno Haible  <bruno@clisp.org>
38622
38623         Fix compilation failure on mingw.
38624         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
38625
38626 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
38627
38628         * doc/c-strtod.texi: Mention a couple of restrictions.
38629
38630 2009-01-20  Jim Meyering  <meyering@redhat.com>
38631
38632         gettimeofday: move more declarations out of functions
38633         * lib/gettimeofday.c: Move extern declarations of tzset and
38634         gmtime out of containing functions.  Prompted by Bruno Haible.
38635
38636 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38637
38638         regex: do not depend on obsolete modules.
38639         * modules/regex: Remove memcmp and memmove.
38640
38641 2009-01-19  Bruno Haible  <bruno@clisp.org>
38642
38643         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38644         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
38645         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38646         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
38647         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
38648
38649 2009-01-19  Bruno Haible  <bruno@clisp.org>
38650
38651         * tests/test-link.c: Include <errno.h>.
38652         (main): Exit with code 77 when a hard link cannot be created due to
38653         the file system.
38654         * tests/test-link.sh: Skip test when a hard link cannot be created due
38655         to the file system.
38656         Suggested by Eric Blake.
38657
38658 2009-01-19  Martin Lambers  <marlam@marlam.de>
38659
38660         * modules/link-tests: New file.
38661         * tests/test-link.sh: New file.
38662         * tests/test-link.c: New file.
38663
38664 2009-01-19  Eric Blake  <ebb9@byu.net>
38665
38666         doc: mention another function added in cygwin 1.7.0
38667         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
38668         Another new function in cygwin 1.7.
38669
38670 2009-01-19  Bruno Haible  <bruno@clisp.org>
38671
38672         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38673         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
38674         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
38675         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38676         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38677         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
38678         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
38679         * m4/md4.m4 (gl_MD4): Likewise.
38680         * m4/md5.m4 (gl_MD5): Likewise.
38681         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
38682         * m4/sha1.m4 (gl_SHA1): Likewise.
38683         * m4/sha256.m4 (gl_SHA256): Likewise.
38684         * m4/sha512.m4 (gl_SHA512): Likewise.
38685
38686 2009-01-19  Bruno Haible  <bruno@clisp.org>
38687
38688         * modules/uniname/uniname-tests (Depends-on): Add progname.
38689         * tests/uniname/test-uninames.c: Include progname.h.
38690         (main): Call set_program_name.
38691
38692         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
38693         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
38694         (main): Call set_program_name.
38695
38696         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
38697         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
38698         (main): Call set_program_name.
38699
38700         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
38701         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
38702         (main): Call set_program_name.
38703
38704         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
38705         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
38706         (main): Call set_program_name.
38707
38708         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
38709         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
38710         (main): Call set_program_name.
38711
38712         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
38713         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
38714         (main): Call set_program_name.
38715
38716         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
38717         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
38718         (main): Call set_program_name.
38719
38720         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
38721         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
38722         (main): Call set_program_name.
38723
38724 2009-01-19  Eric Blake  <ebb9@byu.net>
38725
38726         test-unistd: test previous patch
38727         * tests/test-unistd.c: Test *_FILENO macros.
38728
38729         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
38730         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38731         Guarantee a definition.
38732         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
38733         * modules/unistd-safer (Depends-on): Add dependency on unistd.
38734         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
38735         * lib/dup-safer.c (STDERR_FILENO): Likewise.
38736         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38737         Likewise.
38738         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
38739         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
38740         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38741         Likewise.
38742         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
38743         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
38744         (STDERR_FILENO): Likewise.
38745         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
38746         (STDERR_FILENO): Likewise.
38747         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
38748         (STDERR_FILENO): Likewise.
38749         Reported by Elbert Pol.
38750
38751 2009-01-19  Eric Blake  <ebb9@byu.net>
38752
38753         doc: mention more functions added in cygwin 1.7.0
38754         * doc/posix-functions/abort.texi (abort): Update wording related
38755         to cygwin.
38756         * doc/posix-functions/daylight.texi (daylight): Likewise.
38757         * doc/posix-functions/optarg.texi (optarg): Likewise.
38758         * doc/posix-functions/optarg.texi (opterr): Likewise.
38759         * doc/posix-functions/optarg.texi (optind): Likewise.
38760         * doc/posix-functions/optarg.texi (optopt): Likewise.
38761         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
38762         worked in 1.5.x, and was withdrawn in 1.7.
38763         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38764         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
38765         cygwin versions.
38766         * doc/posix-functions/perror.texi (perror): Likewise.
38767         * doc/posix-functions/printf.texi (printf): Likewise.
38768         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
38769         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
38770         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38771         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38772         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
38773         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
38774         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38775         Likewise.
38776         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38777         Likewise.
38778         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
38779         this function.
38780         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
38781         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
38782         Likewise.
38783         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
38784         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
38785         * doc/posix-functions/confstr.texi (confstr): Likewise.
38786         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
38787         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
38788         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
38789         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
38790         * doc/posix-functions/fputws.texi (fputws): Likewise.
38791         * doc/posix-functions/fwide.texi (fwide): Likewise.
38792         * doc/posix-functions/getwc.texi (getwc): Likewise.
38793         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
38794         * doc/posix-functions/putwc.texi (putwc): Likewise.
38795         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38796         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
38797         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
38798         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38799         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
38800         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
38801         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
38802         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
38803         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
38804         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
38805         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
38806
38807 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38808
38809         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
38810         * lib/ioctl.c: Include <sys/ioctl.h>.
38811
38812 2009-01-19  Simon Josefsson  <simon@josefsson.org>
38813
38814         * modules/getdate-tests (Depends-on): Add progname.
38815         * tests/test-getdate.c: Use progname module, to avoid link errors
38816         on non-glibc systems.
38817
38818 2009-01-18  Simon Josefsson  <simon@josefsson.org>
38819
38820         * modules/filenamecat-tests (Depends-on): Add progname.
38821         * modules/fstrcmp-tests (Depends-on): Likewise.
38822
38823         * tests/test-filenamecat.c: Use progname module, to avoid link
38824         errors on non-glibc systems.
38825         * tests/test-fstrcmp.c: Likewise.
38826
38827 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38828
38829         gettimeofday: avoid warning: nested extern declaration of 'localtime'
38830         * lib/gettimeofday.c: Move extern declaration out of function.
38831
38832 2009-01-18  Bruno Haible  <bruno@clisp.org>
38833
38834         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
38835         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
38836         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
38837
38838 2009-01-18  Bruno Haible  <bruno@clisp.org>
38839
38840         * lib/strftime.c (MEMPCPY): Remove unused macro.
38841         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
38842
38843 2009-01-18  Martin Lambers  <marlam@marlam.de>
38844
38845         New module 'link'.
38846         * lib/unistd.in.h (link): New declaration.
38847         * lib/link.c: New file.
38848         * m4/link.m4: New file.
38849         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
38850         HAVE_LINK.
38851         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
38852         * modules/link: New file.
38853         * doc/posix-functions/link.texi: Mention the new module.
38854
38855 2009-01-18  Bruno Haible  <bruno@clisp.org>
38856
38857         * tests/test-avltree_list.c (main): Call set_program_name.
38858         * tests/test-avltree_oset.c (main): Likewise.
38859         * tests/test-obstack-printf.c: Include progname.h.
38860         (main): Call set_program_name.
38861         * tests/test-quotearg.c: Include progname.h.
38862         (main): Call set_program_name.
38863         * tests/test-xmemdup0.c: Include progname.h.
38864         (main): Call set_program_name.
38865
38866 2009-01-18  Bruno Haible  <bruno@clisp.org>
38867
38868         New module 'alphasort'.
38869         * lib/dirent.in.h (alphasort): New declaration.
38870         * lib/alphasort.c: New file, from glibc with modifications.
38871         * m4/alphasort.m4: New file.
38872         * modules/alphasort: New file.
38873         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
38874         HAVE_ALPHASORT.
38875         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
38876         HAVE_ALPHASORT.
38877         * doc/posix-functions/alphasort.texi: Mention the new module and the
38878         portability problems.
38879
38880 2009-01-18  Bruno Haible  <bruno@clisp.org>
38881
38882         New module 'scandir'.
38883         * lib/dirent.in.h (scandir): New declaration.
38884         * lib/scandir.c: New file, from glibc with modifications.
38885         * m4/scandir.m4: New file.
38886         * modules/scandir: New file.
38887         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
38888         HAVE_SCANDIR.
38889         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
38890         HAVE_SCANDIR.
38891         * doc/posix-functions/scandir.texi: Mention the new module and the
38892         portability problems.
38893
38894 2009-01-17  Bruno Haible  <bruno@clisp.org>
38895
38896         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
38897         Update documentation.
38898         (func_remove_suffix): Escape all dots in the suffix. Update
38899         documentation.
38900         (func_filter_filelist): Update documentation.
38901         Reported by Ralf Wildenhues.
38902
38903 2009-01-17  Bruno Haible  <bruno@clisp.org>
38904
38905         * modules/dprintf-posix-tests: New file.
38906         * tests/test-dprintf-posix.sh: New file.
38907         * tests/test-dprintf-posix.c: New file.
38908
38909         New modules 'dprintf', 'dprintf-posix'.
38910         * lib/stdio.in.h (dprintf): New declaration.
38911         * lib/dprintf.c: New file.
38912         * m4/dprintf.m4: New file.
38913         * m4/dprintf-posix.m4: New file.
38914         * modules/dprintf: New file.
38915         * modules/dprintf-posix: New file.
38916         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
38917         HAVE_DPRINTF, REPLACE_DPRINTF.
38918         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
38919         HAVE_DPRINTF, REPLACE_DPRINTF.
38920         * doc/posix-functions/dprintf.texi: Mention the new modules.
38921
38922 2009-01-17  Bruno Haible  <bruno@clisp.org>
38923
38924         * modules/vdprintf-posix-tests: New file.
38925         * tests/test-vdprintf-posix.sh: New file.
38926         * tests/test-vdprintf-posix.c: New file.
38927
38928         New modules 'vdprintf', 'vdprintf-posix'.
38929         * lib/stdio.in.h (vdprintf): New declaration.
38930         * lib/vdprintf.c: New file.
38931         * m4/vdprintf.m4: New file.
38932         * m4/vdprintf-posix.m4: New file.
38933         * modules/vdprintf: New file.
38934         * modules/vdprintf-posix: New file.
38935         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
38936         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38937         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
38938         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38939         * doc/posix-functions/vdprintf.texi: Mention the new modules.
38940
38941 2009-01-17  Bruno Haible  <bruno@clisp.org>
38942
38943         Fix replacement of fopen on mingw.
38944         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
38945         mingw.
38946
38947 2009-01-17  Bruno Haible  <bruno@clisp.org>
38948
38949         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
38950         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
38951
38952 2009-01-17  Bruno Haible  <bruno@clisp.org>
38953
38954         Avoid test-fflush2.sh failure on mingw.
38955         * tests/test-fflush2.c: Include binary-io.h.
38956         (main): Put standard input into binary mode.
38957         * modules/fflush-tests (Depends-on): Add binary-io.
38958
38959 2009-01-17  Bruno Haible  <bruno@clisp.org>
38960
38961         * lib/wchar.in.h: In another particular situation, include only the
38962         system's <wchar.h> file.
38963         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
38964         Reported by Albert Chin-A-Young <china@thewrittenword.com>
38965         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
38966
38967 2009-01-17  Bruno Haible  <bruno@clisp.org>
38968
38969         Support for stripping executables in --enable-relocatable.
38970         * build-aux/install-reloc: Expect one more argument, or an environment
38971         variable RELOC_STRIP_PROG. If set, strip the destination program and
38972         its wrapper.
38973         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
38974         RELOC_STRIP_PROG.
38975         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
38976         to set RELOCATABLE_STRIP.
38977         * NEWS: Mention the new Makefile requirement.
38978
38979 2009-01-17  Bruno Haible  <bruno@clisp.org>
38980
38981         * build-aux/install-reloc: Remove debugging information left over by
38982         C compiler on MacOS X.
38983
38984 2009-01-17  Bruno Haible  <bruno@clisp.org>
38985
38986         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
38987         * lib/progreloc.c (find_executable): Fix type of pointer passed to
38988         _NSGetExecutablePath.
38989
38990 2009-01-16  Jim Meyering  <meyering@redhat.com>
38991
38992         strerror: avoid warnings about discarding "const"
38993         * lib/strerror.c (rpl_strerror): Instead of returning a const
38994         string from each and every "case", use a variable, and add a single
38995         cast after the switch.
38996
38997 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
38998
38999         * lib/arpa_inet.in.h: Add extern "C" block for C++.
39000
39001 2009-01-16  Bruno Haible  <bruno@clisp.org>
39002
39003         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
39004         array initializer syntax that also works in C++ mode.
39005         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39006
39007 2009-01-16  Jim Meyering  <meyering@redhat.com>
39008
39009         poll: suppress a warning
39010         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
39011         to ignore "...unsigned expression < 0 is always false" warnings.
39012
39013 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
39014
39015         poll: remove declarations of unused variables
39016         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
39017         sockbuf and optlen.
39018
39019 2009-01-15  Bruno Haible  <bruno@clisp.org>
39020
39021         Make fflush-after-ungetc POSIX compliant on BSD systems.
39022         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
39023         (clear_ungetc_buffer): Implement also for other systems.
39024         (rpl_fflush): On glibc systems, invoke
39025         clear_ungetc_buffer_preserving_position. Otherwise, invoke
39026         clear_ungetc_buffer after fetching the stream's position, not before.
39027
39028 2009-01-15  Bruno Haible  <bruno@clisp.org>
39029
39030         Make fflush-after-ungetc POSIX compliant on glibc systems.
39031         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
39032         after ungetc.
39033         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
39034         (rpl_fflush): On glibc systems, simply call the system's fflush
39035         function after clearing the ungetc buffer.
39036         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
39037         Instead, lseek only to the end of file, then use the system's fseeko
39038         for the rest. On glibc systems, reset the EOF indicator bit.
39039
39040 2009-01-15  Jim Meyering  <meyering@redhat.com>
39041
39042         openmp.m4: revert quote-adding change, for portability to older autoconf
39043         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
39044         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
39045         Simon Josefsson noticed the problem when using autoconf-2.61.
39046
39047 2009-01-15  Bruno Haible  <bruno@clisp.org>
39048
39049         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
39050         * tests/test-fflush2.c (ASSERT): Always fail.
39051         (main): Add two tests for fflush() after ungetc(), taking into account
39052         the Austin Group's clarification.
39053         Suggested by Eric Blake.
39054
39055 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
39056
39057         mktime.m4: remove K&R-style function prototypes
39058         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
39059         for the Sun C++ compiler.
39060
39061 2009-01-14  Bruno Haible  <bruno@clisp.org>
39062
39063         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
39064         while including <wchar.h>.
39065         * lib/wchar.in.h: In two particular situations on HP-UX, include only
39066         the system's <wchar.h> file.
39067         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39068
39069 2009-01-14  Bruno Haible  <bruno@clisp.org>
39070
39071         * m4/csharp.m4: Don't mention gettext on the serial number line.
39072         * m4/csharpexec.m4: Likewise.
39073         * m4/eaccess.m4: Likewise.
39074         * m4/javaexec.m4: Likewise.
39075         * m4/sig_atomic_t.m4: Likewise.
39076         * m4/tmpdir.m4: Likewise.
39077         * m4/intldir.m4: Bump gettext version.
39078         * m4/lib-ld.m4: Likewise.
39079
39080 2009-01-14  Bruno Haible  <bruno@clisp.org>
39081
39082         * lib/progname.c (set_program_name): Add more comments.
39083         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39084
39085 2009-01-14  Simon Josefsson  <simon@josefsson.org>
39086
39087         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
39088         were sys/stat.h does not define it.
39089
39090 2009-01-14  Jim Meyering  <meyering@redhat.com>
39091
39092         many *.m4 files: improve m4 quoting
39093         99% of this change was performed by running the following commands:
39094         git ls-files | grep '\.m4$' | xargs perl -pi \
39095           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
39096           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
39097           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
39098           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
39099         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
39100         The remainder were to add Copyright dates, increment serial numbers,
39101         undo some changes in comments, exclude m4/intl.m4, and add quotes
39102         around the "1" in ",1" where the unusual spacing prohibited the
39103         above regexps from doing the job.  For more details, see
39104         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
39105         * m4/acl.m4: Modified.
39106         * m4/afs.m4: Likewise.
39107         * m4/alloca.m4: Likewise.
39108         * m4/argp.m4: Likewise.
39109         * m4/argz.m4: Likewise.
39110         * m4/atexit.m4: Likewise.
39111         * m4/bison-i18n.m4: Likewise.
39112         * m4/bison.m4: Likewise.
39113         * m4/byteswap.m4: Likewise.
39114         * m4/c-stack.m4: Likewise.
39115         * m4/c-strtod.m4: Likewise.
39116         * m4/calloc.m4: Likewise.
39117         * m4/canonicalize-lgpl.m4: Likewise.
39118         * m4/chown.m4: Likewise.
39119         * m4/clock_time.m4: Likewise.
39120         * m4/codeset.m4: Likewise.
39121         * m4/copy-file.m4: Likewise.
39122         * m4/csharp.m4: Likewise.
39123         * m4/csharpcomp.m4: Likewise.
39124         * m4/csharpexec.m4: Likewise.
39125         * m4/d-ino.m4: Likewise.
39126         * m4/d-type.m4: Likewise.
39127         * m4/dirfd.m4: Likewise.
39128         * m4/double-slash-root.m4: Likewise.
39129         * m4/eaccess.m4: Likewise.
39130         * m4/eealloc.m4: Likewise.
39131         * m4/environ.m4: Likewise.
39132         * m4/errno_h.m4: Likewise.
39133         * m4/euidaccess.m4: Likewise.
39134         * m4/execute.m4: Likewise.
39135         * m4/fatal-signal.m4: Likewise.
39136         * m4/fchdir.m4: Likewise.
39137         * m4/fcntl_h.m4: Likewise.
39138         * m4/fileblocks.m4: Likewise.
39139         * m4/filenamecat.m4: Likewise.
39140         * m4/findprog.m4: Likewise.
39141         * m4/flexmember.m4: Likewise.
39142         * m4/fnmatch.m4: Likewise.
39143         * m4/fopen.m4: Likewise.
39144         * m4/fpending.m4: Likewise.
39145         * m4/fprintf-posix.m4: Likewise.
39146         * m4/free.m4: Likewise.
39147         * m4/frexp.m4: Likewise.
39148         * m4/frexpl.m4: Likewise.
39149         * m4/fsusage.m4: Likewise.
39150         * m4/ftruncate.m4: Likewise.
39151         * m4/gc-camellia.m4: Likewise.
39152         * m4/gc-random.m4: Likewise.
39153         * m4/gc.m4: Likewise.
39154         * m4/getaddrinfo.m4: Likewise.
39155         * m4/getcwd-abort-bug.m4: Likewise.
39156         * m4/getcwd-path-max.m4: Likewise.
39157         * m4/getdate.m4: Likewise.
39158         * m4/getdomainname.m4: Likewise.
39159         * m4/getgroups.m4: Likewise.
39160         * m4/gethostname.m4: Likewise.
39161         * m4/gethrxtime.m4: Likewise.
39162         * m4/getline.m4: Likewise.
39163         * m4/getloadavg.m4: Likewise.
39164         * m4/getndelim2.m4: Likewise.
39165         * m4/getpass.m4: Likewise.
39166         * m4/gettext.m4: Likewise.
39167         * m4/gettime.m4: Likewise.
39168         * m4/gettimeofday.m4: Likewise.
39169         * m4/gnulib-common.m4: Likewise.
39170         * m4/group-member.m4: Likewise.
39171         * m4/host-os.m4: Likewise.
39172         * m4/iconv.m4: Likewise.
39173         * m4/iconv_open.m4: Likewise.
39174         * m4/inet_ntop.m4: Likewise.
39175         * m4/inet_pton.m4: Likewise.
39176         * m4/inline.m4: Likewise.
39177         * m4/intldir.m4: Likewise.
39178         * m4/intlmacosx.m4: Likewise.
39179         * m4/intmax.m4: Likewise.
39180         * m4/intmax_t.m4: Likewise.
39181         * m4/inttypes.m4: Likewise.
39182         * m4/inttypes_h.m4: Likewise.
39183         * m4/inttypes-pri.m4: Likewise.
39184         * m4/isapipe.m4: Likewise.
39185         * m4/isnand.m4: Likewise.
39186         * m4/isnanf.m4: Likewise.
39187         * m4/isnanl.m4: Likewise.
39188         * m4/javacomp.m4: Likewise.
39189         * m4/javaexec.m4: Likewise.
39190         * m4/jm-winsz1.m4: Likewise.
39191         * m4/jm-winsz2.m4: Likewise.
39192         * m4/lchown.m4: Likewise.
39193         * m4/lcmessage.m4: Likewise.
39194         * m4/ldexpl.m4: Likewise.
39195         * m4/lib-ld.m4: Likewise.
39196         * m4/lib-link.m4: Likewise.
39197         * m4/libsigsegv.m4: Likewise.
39198         * m4/link-follow.m4: Likewise.
39199         * m4/localcharset.m4: Likewise.
39200         * m4/locale-fr.m4: Likewise.
39201         * m4/locale-ja.m4: Likewise.
39202         * m4/locale-tr.m4: Likewise.
39203         * m4/locale-zh.m4: Likewise.
39204         * m4/lock.m4: Likewise.
39205         * m4/longlong.m4: Likewise.
39206         * m4/ls-mntd-fs.m4: Likewise.
39207         * m4/lstat.m4: Likewise.
39208         * m4/malloc.m4: Likewise.
39209         * m4/mathl.m4: Likewise.
39210         * m4/mbrtowc.m4: Likewise.
39211         * m4/mbstate_t.m4: Likewise.
39212         * m4/mbswidth.m4: Likewise.
39213         * m4/memchr.m4: Likewise.
39214         * m4/memcmp.m4: Likewise.
39215         * m4/memcpy.m4: Likewise.
39216         * m4/memmem.m4: Likewise.
39217         * m4/memmove.m4: Likewise.
39218         * m4/mempcpy.m4: Likewise.
39219         * m4/memrchr.m4: Likewise.
39220         * m4/memset.m4: Likewise.
39221         * m4/minmax.m4: Likewise.
39222         * m4/mkdir-slash.m4: Likewise.
39223         * m4/mkdtemp.m4: Likewise.
39224         * m4/mktime.m4: Likewise.
39225         * m4/mmap-anon.m4: Likewise.
39226         * m4/mountlist.m4: Likewise.
39227         * m4/nanosleep.m4: Likewise.
39228         * m4/nls.m4: Likewise.
39229         * m4/nocrash.m4: Likewise.
39230         * m4/open.m4: Likewise.
39231         * m4/openat.m4: Likewise.
39232         * m4/openmp.m4: Likewise.
39233         * m4/pathmax.m4: Likewise.
39234         * m4/perl.m4: Likewise.
39235         * m4/physmem.m4: Likewise.
39236         * m4/pipe.m4: Likewise.
39237         * m4/po.m4: Likewise.
39238         * m4/poll.m4: Likewise.
39239         * m4/posixtm.m4: Likewise.
39240         * m4/posixver.m4: Likewise.
39241         * m4/printf-frexp.m4: Likewise.
39242         * m4/printf-frexpl.m4: Likewise.
39243         * m4/printf-posix.m4: Likewise.
39244         * m4/printf-posix-rpl.m4: Likewise.
39245         * m4/printf.m4: Likewise.
39246         * m4/progtest.m4: Likewise.
39247         * m4/putenv.m4: Likewise.
39248         * m4/readline.m4: Likewise.
39249         * m4/readlink.m4: Likewise.
39250         * m4/readutmp.m4: Likewise.
39251         * m4/realloc.m4: Likewise.
39252         * m4/regex.m4: Likewise.
39253         * m4/relocatable.m4: Likewise.
39254         * m4/relocatable-lib.m4: Likewise.
39255         * m4/rename-dest-slash.m4: Likewise.
39256         * m4/rename.m4: Likewise.
39257         * m4/rmdir-errno.m4: Likewise.
39258         * m4/rmdir.m4: Likewise.
39259         * m4/roundf.m4: Likewise.
39260         * m4/roundl.m4: Likewise.
39261         * m4/rpmatch.m4: Likewise.
39262         * m4/save-cwd.m4: Likewise.
39263         * m4/selinux-selinux-h.m4: Likewise.
39264         * m4/setenv.m4: Likewise.
39265         * m4/settime.m4: Likewise.
39266         * m4/sig2str.m4: Likewise.
39267         * m4/sig_atomic_t.m4: Likewise.
39268         * m4/signalblocking.m4: Likewise.
39269         * m4/signbit.m4: Likewise.
39270         * m4/sigpipe.m4: Likewise.
39271         * m4/sockets.m4: Likewise.
39272         * m4/sockpfaf.m4: Likewise.
39273         * m4/st_dm_mode.m4: Likewise.
39274         * m4/stat-time.m4: Likewise.
39275         * m4/stdbool.m4: Likewise.
39276         * m4/stdint.m4: Likewise.
39277         * m4/stdint_h.m4: Likewise.
39278         * m4/stpcpy.m4: Likewise.
39279         * m4/stpncpy.m4: Likewise.
39280         * m4/strcase.m4: Likewise.
39281         * m4/strchrnul.m4: Likewise.
39282         * m4/strcspn.m4: Likewise.
39283         * m4/strdup.m4: Likewise.
39284         * m4/strftime.m4: Likewise.
39285         * m4/strndup.m4: Likewise.
39286         * m4/strnlen.m4: Likewise.
39287         * m4/strpbrk.m4: Likewise.
39288         * m4/strptime.m4: Likewise.
39289         * m4/strsep.m4: Likewise.
39290         * m4/strtod.m4: Likewise.
39291         * m4/strtoimax.m4: Likewise.
39292         * m4/strtok_r.m4: Likewise.
39293         * m4/strtol.m4: Likewise.
39294         * m4/strtoll.m4: Likewise.
39295         * m4/strtoul.m4: Likewise.
39296         * m4/strtoull.m4: Likewise.
39297         * m4/strtoumax.m4: Likewise.
39298         * m4/strverscmp.m4: Likewise.
39299         * m4/threadlib.m4: Likewise.
39300         * m4/timegm.m4: Likewise.
39301         * m4/tm_gmtoff.m4: Likewise.
39302         * m4/tmpdir.m4: Likewise.
39303         * m4/tmpfile.m4: Likewise.
39304         * m4/tzset.m4: Likewise.
39305         * m4/uintmax_t.m4: Likewise.
39306         * m4/unlinkdir.m4: Likewise.
39307         * m4/unlocked-io.m4: Likewise.
39308         * m4/uptime.m4: Likewise.
39309         * m4/userspec.m4: Likewise.
39310         * m4/utimbuf.m4: Likewise.
39311         * m4/utime.m4: Likewise.
39312         * m4/utimes-null.m4: Likewise.
39313         * m4/utimes.m4: Likewise.
39314         * m4/vararrays.m4: Likewise.
39315         * m4/vasnprintf.m4: Likewise.
39316         * m4/vfprintf-posix.m4: Likewise.
39317         * m4/vprintf-posix.m4: Likewise.
39318         * m4/wait-process.m4: Likewise.
39319         * m4/wchar_t.m4: Likewise.
39320         * m4/wint_t.m4: Likewise.
39321         * m4/write-any-file.m4: Likewise.
39322         * m4/yield.m4: Likewise.
39323
39324 2009-01-13  Bruno Haible  <bruno@clisp.org>
39325
39326         Avoid test-copy-file.sh failures when ACL support insufficient.
39327         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
39328         TESTS_ENVIRONMENT.
39329         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
39330         Reported by Jim Meyering.
39331
39332 2009-01-13  Bruno Haible  <bruno@clisp.org>
39333
39334         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
39335         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
39336         * modules/unistdio/u8-printf-parse (Files): Likewise.
39337         * modules/unistdio/u32-printf-parse (Files): Likewise.
39338         * modules/unistdio/ulc-printf-parse (Files): Likewise.
39339
39340 2009-01-13  Simon Josefsson  <simon@josefsson.org>
39341
39342         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
39343         and m4/inttypes_h.m4 too.
39344
39345 2009-01-12  Eric Blake  <ebb9@byu.net>
39346
39347         tests: IRIX 6.2 cc can't compile -0.0 into .data
39348         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
39349         rather than at compile-time.
39350         * tests/test-floorl.c (minus_zero): Likewise.
39351         * tests/test-frexpl.c (minus_zero): Likewise.
39352         * tests/test-isnan.c (minus_zerol): Likewise.
39353         * tests/test-isnanl.h (minus_zero): Likewise.
39354         * tests/test-ldexpl.c (minus_zero): Likewise.
39355         * tests/test-roundl.c (minus_zero): Likewise.
39356         * tests/test-signbit.c (minus_zerol): Likewise.
39357         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39358         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39359         * tests/test-truncl.c (minus_zero): Likewise.
39360         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39361         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39362         Reported by Tom G. Christensen and Nelson H. F. Beebe.
39363
39364 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39365
39366         regex: fix glibc bug 9697
39367         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
39368         handling.
39369
39370 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39371
39372         regex: fix glibc bug 697
39373         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
39374         being NULL also if there are no backreferences.
39375
39376 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39377
39378         regex: merge glibc changes
39379         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
39380         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
39381         re_string_skip_chars, re_string_reconstruct): Likewise.
39382         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
39383
39384 2009-01-07  Jim Meyering  <meyering@redhat.com>
39385
39386         poll: filter through cppi
39387         * lib/poll.c: Indent cpp directives to reflect nesting.
39388
39389 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
39390
39391         poll: don't return uninitialized
39392         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
39393
39394 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
39395
39396         avoid compile failure on AIX 6.1
39397         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
39398         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
39399
39400 2009-01-04  Jim Meyering  <meyering@redhat.com>
39401
39402         remove duplicate inclusion of <stdio.h>
39403         * tests/test-fprintf-posix.c: Likewise.
39404         * tests/test-printf-posix.c: Likewise.
39405         * tests/test-snprintf-posix.c: Likewise.
39406         * tests/test-sprintf-posix.c: Likewise.
39407         * tests/test-vasprintf-posix.c: Likewise.
39408         * tests/test-vfprintf-posix.c: Likewise.
39409         * tests/test-vprintf-posix.c: Likewise.
39410         * tests/test-vsnprintf-posix.c: Likewise.
39411         * tests/test-vsprintf-posix.c: Likewise.
39412
39413 2009-01-03  Jim Meyering  <meyering@redhat.com>
39414
39415         gnulib-tool: fix sed-based filtering
39416         * gnulib-tool (func_filter_filelist): Remove extra backslash
39417         in sed_fff_filter definition.
39418
39419 2009-01-02  Jim Meyering  <meyering@redhat.com>
39420
39421         strftime: avoid compilation failure on Solaris 2.6
39422         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
39423         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
39424         Don't #define mbrlen or mbsinit, since now they're guaranteed to
39425         be available.  Reported by Tom G. Christensen.  Details in
39426         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
39427
39428 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39429             Bruno Haible  <bruno@clisp.org>
39430
39431         Speed up gnulib-tool by doing more string processing through shell
39432         built-ins.
39433         * gnulib-tool (fast_func_append): New variable.
39434         (func_remove_prefix, func_remove_suffix): New functions.
39435         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
39436         (func_filter_filelist): New function.
39437         (func_get_dependencies): Use func_remove_suffix instead of sed.
39438         (func_get_automake_snippet): Use func_filter_filelist instead of a
39439         subshell and sed invocation.
39440
39441 2009-01-01  Bruno Haible  <bruno@clisp.org>
39442
39443         Fix a security bug.
39444         * gnulib-tool (func_import, import, update): Don't allow the characters
39445         '"', '$', '`', '\' in macro arguments that become part of commands that
39446         are evaluated.
39447
39448 2009-01-01  Bruno Haible  <bruno@clisp.org>
39449
39450         * gnulib-tool (func_reset_sigpipe): Add more comments.
39451
39452 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39453
39454         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
39455         func_emit_tests_Makefile_am, func_import): Abort loops early if we
39456         already know the answer.
39457
39458 2009-01-01  Jim Meyering  <meyering@redhat.com>
39459
39460         * lib/version-etc.c (version_etc_va): Update copyright year.
39461
39462 2008-12-30  Bruno Haible  <bruno@clisp.org>
39463
39464         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
39465         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
39466         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
39467
39468 2008-12-29  Eric Blake  <ebb9@byu.net>
39469
39470         multiarch: avoid autoconf AC_REQUIRE bug
39471         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
39472         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
39473         2.63 and older.
39474         Reported by Bruno Haible, and analyzed in
39475         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
39476
39477 2008-12-29  Bruno Haible  <bruno@clisp.org>
39478
39479         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
39480         files in subdirectories correctly.
39481         Reported by Ralf Wildenhues.
39482
39483 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39484
39485         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
39486         rather than 'join FILE -', for Solaris join.
39487
39488 2008-12-29  Bruno Haible  <bruno@clisp.org>
39489
39490         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
39491         quoting.
39492         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
39493         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
39494         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
39495         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
39496         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
39497         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
39498         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
39499         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
39500         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
39501         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
39502         * m4/nls.m4 (AM_NLS): Likewise.
39503         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
39504         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
39505         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
39506         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
39507         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
39508         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
39509         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
39510         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
39511         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
39512         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39513         * m4/xsize.m4 (gl_XSIZE): Likewise.
39514         Suggested by Jim Meyering.
39515
39516 2008-11-17  Bruce Korb  <bkorb@gnu.org>
39517
39518         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
39519         * lib/parse-duration.c: use a switch instead of cascading if's.
39520
39521 2008-12-29  Eric Blake  <ebb9@byu.net>
39522
39523         wchar.h: supply WEOF on Irix 5.3
39524         * lib/wchar.in.h (wint_t): Also supply WEOF.
39525         * lib/wctype.in.h (wint_t): Likewise.
39526         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
39527         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
39528         Reported by Tom G. Christensen.
39529
39530 2008-12-26  Bruno Haible  <bruno@clisp.org>
39531
39532         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
39533         i486, i586, i686.
39534
39535 2008-12-26  Bruno Haible  <bruno@clisp.org>
39536
39537         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
39538
39539 2008-12-26  Bruno Haible  <bruno@clisp.org>
39540
39541         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
39542         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
39543         not __STDC_CONSTANT_MACROS.
39544         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39545
39546 2008-12-25  Bruno Haible  <bruno@clisp.org>
39547
39548         Add support for universal builds to vasnprintf.
39549         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
39550         universal builds, guess no.
39551         * modules/vasnprintf-posix (Depends-on): Add multiarch.
39552         * modules/vasprintf-posix (Depends-on): Likewise.
39553         * modules/fprintf-posix (Depends-on): Likewise.
39554         * modules/vfprintf-posix (Depends-on): Likewise.
39555         * modules/snprintf-posix (Depends-on): Likewise.
39556         * modules/vsnprintf-posix (Depends-on): Likewise.
39557         * modules/sprintf-posix (Depends-on): Likewise.
39558         * modules/vsprintf-posix (Depends-on): Likewise.
39559         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39560         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39561         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39562         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39563         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39564         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39565         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39566
39567         Add support for universal builds to <inttypes.h>.
39568         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
39569         _SCNu64_PREFIX): In Apple
39570         universal builds, define directly, using _LP64.
39571         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
39572         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
39573         * modules/inttypes (Depends-on): Add multiarch.
39574         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39575
39576         Add support for universal builds to <stdint.h>.
39577         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
39578         universal builds, define directly, using _LP64.
39579         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
39580         Apple universal builds, don't test for the size and suffix of ptrdiff_t
39581         and size_t.
39582         * modules/stdint (Depends-on): Add multiarch.
39583         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39584
39585         New module 'multiarch'.
39586         * modules/multiarch: New file.
39587         * m4/multiarch.m4: New file.
39588
39589 2008-12-25  Bruno Haible  <bruno@clisp.org>
39590
39591         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
39592
39593 2008-12-25  Bruno Haible  <bruno@clisp.org>
39594
39595         * modules/btowc (License): Relicense under LGPLv2+.
39596         * modules/mbsinit (License): Likewise.
39597         * modules/mbrtowc (License): Likewise.
39598         * modules/wcrtomb (License): Likewise.
39599         * modules/streq (License): Likewise.
39600         Reported by David Lutterkort <lutter@redhat.com>.
39601
39602 2008-12-23  Bruno Haible  <bruno@clisp.org>
39603
39604         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
39605
39606 2008-12-23  Bruno Haible  <bruno@clisp.org>
39607
39608         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
39609         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
39610         GETADDRINFO_LIB, not in LIBS.
39611         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
39612         * modules/canon-host (Link): Likewise.
39613         * NEWS: Mention the change.
39614         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
39615         GETADDRINFO_LIB.
39616
39617 2008-12-22  Bruno Haible  <bruno@clisp.org>
39618
39619         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
39620         * doc/posix-functions/iswalpha_l.texi: Likewise.
39621         * doc/posix-functions/iswblank_l.texi: Likewise.
39622         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39623         * doc/posix-functions/iswctype_l.texi: Likewise.
39624         * doc/posix-functions/iswdigit_l.texi: Likewise.
39625         * doc/posix-functions/iswgraph_l.texi: Likewise.
39626         * doc/posix-functions/iswlower_l.texi: Likewise.
39627         * doc/posix-functions/iswprint_l.texi: Likewise.
39628         * doc/posix-functions/iswpunct_l.texi: Likewise.
39629         * doc/posix-functions/iswspace_l.texi: Likewise.
39630         * doc/posix-functions/iswupper_l.texi: Likewise.
39631         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39632         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
39633         * doc/posix-functions/open_wmemstream.texi: Likewise.
39634         * doc/posix-functions/swscanf.texi: Likewise.
39635         * doc/posix-functions/towctrans_l.texi: Likewise.
39636         * doc/posix-functions/towlower.texi: Likewise.
39637         * doc/posix-functions/towlower_l.texi: Likewise.
39638         * doc/posix-functions/towupper.texi: Likewise.
39639         * doc/posix-functions/towupper_l.texi: Likewise.
39640         * doc/posix-functions/vfwprintf.texi: Likewise.
39641         * doc/posix-functions/vfwscanf.texi: Likewise.
39642         * doc/posix-functions/vswscanf.texi: Likewise.
39643         * doc/posix-functions/vwprintf.texi: Likewise.
39644         * doc/posix-functions/vwscanf.texi: Likewise.
39645         * doc/posix-functions/wcpcpy.texi: Likewise.
39646         * doc/posix-functions/wcpncpy.texi: Likewise.
39647         * doc/posix-functions/wcscasecmp.texi: Likewise.
39648         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
39649         * doc/posix-functions/wcscoll_l.texi: Likewise.
39650         * doc/posix-functions/wcsdup.texi: Likewise.
39651         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39652         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
39653         * doc/posix-functions/wcsnlen.texi: Likewise.
39654         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39655         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39656         * doc/posix-functions/wctrans_l.texi: Likewise.
39657         * doc/posix-functions/wctype_l.texi: Likewise.
39658         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
39659         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
39660         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
39661         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
39662         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
39663         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
39664         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
39665         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
39666         * doc/glibc-functions/wcschrnul.texi: Likewise.
39667         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39668         * doc/glibc-functions/wcstod_l.texi: Likewise.
39669         * doc/glibc-functions/wcstof_l.texi: Likewise.
39670         * doc/glibc-functions/wcstol_l.texi: Likewise.
39671         * doc/glibc-functions/wcstold_l.texi: Likewise.
39672         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39673         * doc/glibc-functions/wcstoq.texi: Likewise.
39674         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39675         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39676         * doc/glibc-functions/wcstouq.texi: Likewise.
39677         * doc/glibc-functions/wmempcpy.texi: Likewise.
39678
39679 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
39680             Eric Blake  <ebb9@byu.net>
39681             Paolo Bonzini  <bonzini@gnu.org>
39682             Bruno Haible  <bruno@clisp.org>
39683
39684         Make c-stack work on Haiku.
39685         * lib/c-stack.c (SA_ONSTACK): Define fallback.
39686         (c_stack_action): Use SA_ONSTACK flag.
39687
39688 2008-12-22  Bruno Haible  <bruno@clisp.org>
39689
39690         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
39691
39692 2008-12-22  Bruno Haible  <bruno@clisp.org>
39693
39694         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
39695         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
39696         being overridden.
39697         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
39698         New macros.
39699         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
39700         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
39701         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
39702         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
39703
39704 2008-12-22  Bruno Haible  <bruno@clisp.org>
39705
39706         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
39707         from test code.
39708
39709 2008-12-22  Eric Blake  <ebb9@byu.net>
39710
39711         Avoid gcc warnings on cygwin.
39712         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
39713         Avoid unused variable.
39714         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
39715         Likewise.
39716
39717 2008-12-22  Bruno Haible  <bruno@clisp.org>
39718
39719         Remove HAVE_MBRTOWC conditionals.
39720         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
39721         (mbscasecmp): Assume mbrtowc function.
39722         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
39723         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
39724         * lib/mbschr.c: Include mbuiter.h unconditionally.
39725         (mbschr): Assume mbrtowc function.
39726         * lib/mbscspn.c: Include mbuiter.h unconditionally.
39727         (mbscspn): Assume mbrtowc function.
39728         * lib/mbslen.c: Include mbuiter.h unconditionally.
39729         (mbslen): Assume mbrtowc function.
39730         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
39731         (mbsncasecmp): Assume mbrtowc function.
39732         * lib/mbsnlen.c: Include mbiter.h unconditionally.
39733         (mbsnlen): Assume mbrtowc function.
39734         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
39735         (mbspbrk): Assume mbrtowc function.
39736         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
39737         (mbspcasecmp): Assume mbrtowc function.
39738         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
39739         (mbsrchr): Assume mbrtowc function.
39740         * lib/mbssep.c: Include mbuiter.h unconditionally.
39741         (mbssep): Assume mbrtowc function.
39742         * lib/mbsspn.c: Include mbuiter.h unconditionally.
39743         (mbsspn): Assume mbrtowc function.
39744         * lib/mbsstr.c: Include mbuiter.h unconditionally.
39745         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
39746         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
39747         (mbstok_r): Assume mbrtowc function.
39748         * lib/propername.c: Include mbuiter.h unconditionally.
39749         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
39750         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
39751         (trim2): Assume mbrtowc function.
39752         * lib/mbswidth.c (mbsinit): Remove fallback definition.
39753         (mbsnwidth): Assume mbrtowc function.
39754         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
39755         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
39756         fallback definitions.
39757         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
39758
39759 2008-12-22  Bruno Haible  <bruno@clisp.org>
39760
39761         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
39762
39763 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
39764
39765         * modules/regex: Request emulations for the mb*/wc* functions we need.
39766         * m4/regex.m4: Don't look for those functions here.
39767         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
39768
39769 2008-12-22  Bruno Haible  <bruno@clisp.org>
39770
39771         * modules/fnmatch (Depends-on): Remove duplicated dependency.
39772
39773 2008-12-21  Bruno Haible  <bruno@clisp.org>
39774
39775         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
39776         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
39777         (Include): Remove conditionalization.
39778         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
39779         (Include): Remove conditionalization.
39780         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
39781         (Include): Remove conditionalization.
39782         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
39783         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39784         * NEWS: Mention the change.
39785         Reported by Alan Hourihane <alanh@fairlite.co.uk>
39786         via Sergey Poznyakoff <gray@gnu.org.ua>.
39787
39788 2008-12-21  Bruno Haible  <bruno@clisp.org>
39789
39790         * MODULES.html.sh (Extended multibyte and wide character utilities
39791         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
39792         wcrtomb, wcsrtombs.
39793         (Support for systems lacking POSIX:2008): Add accept, bind, close,
39794         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
39795         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
39796         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
39797
39798 2008-12-21  Bruno Haible  <bruno@clisp.org>
39799
39800         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
39801
39802 2008-12-21  Bruno Haible  <bruno@clisp.org>
39803
39804         * modules/wcsnrtombs-tests: New file.
39805         * tests/test-wcsnrtombs1.sh: New file.
39806         * tests/test-wcsnrtombs2.sh: New file.
39807         * tests/test-wcsnrtombs3.sh: New file.
39808         * tests/test-wcsnrtombs4.sh: New file.
39809         * tests/test-wcsnrtombs.c: New file.
39810
39811         New module 'wcsnrtombs'.
39812         * lib/wchar.in.h (wcsnrtombs): New declaration.
39813         * lib/wcsnrtombs.c: New file.
39814         * lib/wcsrtombs-state.c: New file.
39815         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
39816         (internal_state): Remove variable.
39817         * m4/wcsnrtombs.m4: New file.
39818         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
39819         compilation units.
39820         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
39821         HAVE_WCSNRTOMBS.
39822         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
39823         HAVE_WCSNRTOMBS.
39824         * modules/wcsnrtombs: New file.
39825         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
39826         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
39827
39828 2008-12-21  Bruno Haible  <bruno@clisp.org>
39829
39830         * modules/wcsrtombs-tests: New file.
39831         * tests/test-wcsrtombs1.sh: New file.
39832         * tests/test-wcsrtombs2.sh: New file.
39833         * tests/test-wcsrtombs3.sh: New file.
39834         * tests/test-wcsrtombs4.sh: New file.
39835         * tests/test-wcsrtombs.c: New file.
39836
39837         New module 'wcsrtombs'.
39838         * lib/wchar.in.h (wcsrtombs): New declaration.
39839         * lib/wcsrtombs.c: New file.
39840         * m4/wcsrtombs.m4: New file.
39841         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
39842         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39843         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
39844         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39845         * modules/wcsrtombs: New file.
39846         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
39847         bugs.
39848
39849 2008-12-21  Bruno Haible  <bruno@clisp.org>
39850
39851         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
39852         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
39853         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
39854         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
39855         if not correct.
39856         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
39857         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
39858         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39859         m4/locale-zh.m4, m4/codeset.m4.
39860         * doc/posix-functions/wcrtomb.texi: Document the bug.
39861
39862 2008-12-21  Bruno Haible  <bruno@clisp.org>
39863
39864         Work around a btowc() bug on IRIX 6.5.
39865         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
39866         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
39867         REPLACE_WTOBC if not.
39868         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
39869         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
39870         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
39871
39872 2008-12-21  Bruno Haible  <bruno@clisp.org>
39873
39874         * modules/wcrtomb-tests: New file.
39875         * tests/test-wcrtomb.sh: New file.
39876         * tests/test-wcrtomb.c: New file.
39877
39878         New module 'wcrtomb'.
39879         * lib/wchar.in.h (wcrtomb): New declaration.
39880         * lib/wcrtomb.c: New file.
39881         * m4/wcrtomb.m4: New file.
39882         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
39883         HAVE_WCRTOMB.
39884         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
39885         HAVE_WCRTOMB.
39886         * modules/wcrtomb: New file.
39887         * doc/posix-functions/wcrtomb.texi: Mention the new module.
39888
39889 2008-12-21  Bruno Haible  <bruno@clisp.org>
39890
39891         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
39892         * modules/mbsrtowcs (Files): Likewise.
39893         * modules/wctob (Files): Likewise.
39894         * modules/c-strcase-tests (Files): Likewise.
39895         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39896         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39897         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39898         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39899         * modules/vasnprintf-posix-tests (Files): Likewise.
39900
39901 2008-12-21  William Pursell  <bill.pursell@gmail.com>
39902
39903         gitlog-to-changelog: pass all command-line arguments to git-log
39904         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
39905         it is sometimes convenient to filter the commits in various ways.
39906         gitlog-to-changelog only allows --since to specify a start date,
39907         but git-log itself supports many other filtering mechanisms.
39908         At the moment, I want to filter by branch name.  Rather than
39909         adding a --branch option to gitlog-to-changelog, it seems more
39910         flexible to simply pass all options directly to git-log and let
39911         git do the work.  Notice that this effectively makes --since a
39912         redundant option for gitlog-to-changelog, but removing it would
39913         require current usage to change since calls would then require
39914         an additional '--'.
39915
39916 2008-12-21  Bruno Haible  <bruno@clisp.org>
39917
39918         * modules/mbsnrtowcs-tests: New file.
39919         * tests/test-mbsnrtowcs1.sh: New file.
39920         * tests/test-mbsnrtowcs2.sh: New file.
39921         * tests/test-mbsnrtowcs3.sh: New file.
39922         * tests/test-mbsnrtowcs4.sh: New file.
39923         * tests/test-mbsnrtowcs.c: New file.
39924
39925         New module 'mbsnrtowcs'.
39926         * lib/wchar.in.h (mbsnrtowcs): New declaration.
39927         * lib/mbsnrtowcs.c: New file.
39928         * lib/mbsrtowcs-state.c: New file.
39929         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
39930         (internal_state): Remove variable.
39931         * m4/mbsnrtowcs.m4: New file.
39932         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
39933         compilation units.
39934         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
39935         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39936         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
39937         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39938         * modules/mbsnrtowcs: New file.
39939         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
39940         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
39941         portability problem.
39942
39943 2008-12-21  Bruno Haible  <bruno@clisp.org>
39944
39945         Work around mbsrtowcs bug.
39946         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
39947         (gl_FUNC_MBSRTOWCS): Invoke it.
39948         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39949         m4/locale-zh.m4.
39950         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
39951
39952 2008-12-21  Bruno Haible  <bruno@clisp.org>
39953
39954         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
39955
39956 2008-12-21  Bruno Haible  <bruno@clisp.org>
39957
39958         Update doc for AIX.
39959         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
39960         16-bit wchar_t type.
39961         * doc/posix-functions/btowc.texi: Likewise.
39962         * doc/posix-functions/fgetwc.texi: Likewise.
39963         * doc/posix-functions/fgetws.texi: Likewise.
39964         * doc/posix-functions/fputwc.texi: Likewise.
39965         * doc/posix-functions/fputws.texi: Likewise.
39966         * doc/posix-functions/fwide.texi: Likewise.
39967         * doc/posix-functions/fwprintf.texi: Likewise.
39968         * doc/posix-functions/fwscanf.texi: Likewise.
39969         * doc/posix-functions/getwchar.texi: Likewise.
39970         * doc/posix-functions/getwc.texi: Likewise.
39971         * doc/posix-functions/iswalnum.texi: Likewise.
39972         * doc/posix-functions/iswalpha.texi: Likewise.
39973         * doc/posix-functions/iswblank.texi: Likewise.
39974         * doc/posix-functions/iswcntrl.texi: Likewise.
39975         * doc/posix-functions/iswctype.texi: Likewise.
39976         * doc/posix-functions/iswdigit.texi: Likewise.
39977         * doc/posix-functions/iswgraph.texi: Likewise.
39978         * doc/posix-functions/iswlower.texi: Likewise.
39979         * doc/posix-functions/iswprint.texi: Likewise.
39980         * doc/posix-functions/iswpunct.texi: Likewise.
39981         * doc/posix-functions/iswspace.texi: Likewise.
39982         * doc/posix-functions/iswupper.texi: Likewise.
39983         * doc/posix-functions/iswxdigit.texi: Likewise.
39984         * doc/posix-functions/mbrtowc.texi: Likewise.
39985         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39986         * doc/posix-functions/mbstowcs.texi: Likewise.
39987         * doc/posix-functions/mbtowc.texi: Likewise.
39988         * doc/posix-functions/putwchar.texi: Likewise.
39989         * doc/posix-functions/putwc.texi: Likewise.
39990         * doc/posix-functions/swprintf.texi: Likewise.
39991         * doc/posix-functions/tolower.texi: Likewise.
39992         * doc/posix-functions/toupper.texi: Likewise.
39993         * doc/posix-functions/towctrans.texi: Likewise.
39994         * doc/posix-functions/ungetwc.texi: Likewise.
39995         * doc/posix-functions/vswprintf.texi: Likewise.
39996         * doc/posix-functions/wcrtomb.texi: Likewise.
39997         * doc/posix-functions/wcscat.texi: Likewise.
39998         * doc/posix-functions/wcschr.texi: Likewise.
39999         * doc/posix-functions/wcscmp.texi: Likewise.
40000         * doc/posix-functions/wcscoll.texi: Likewise.
40001         * doc/posix-functions/wcscpy.texi: Likewise.
40002         * doc/posix-functions/wcscspn.texi: Likewise.
40003         * doc/posix-functions/wcsftime.texi: Likewise.
40004         * doc/posix-functions/wcslen.texi: Likewise.
40005         * doc/posix-functions/wcsncat.texi: Likewise.
40006         * doc/posix-functions/wcsncmp.texi: Likewise.
40007         * doc/posix-functions/wcsncpy.texi: Likewise.
40008         * doc/posix-functions/wcspbrk.texi: Likewise.
40009         * doc/posix-functions/wcsrchr.texi: Likewise.
40010         * doc/posix-functions/wcsrtombs.texi: Likewise.
40011         * doc/posix-functions/wcsspn.texi: Likewise.
40012         * doc/posix-functions/wcsstr.texi: Likewise.
40013         * doc/posix-functions/wcstod.texi: Likewise.
40014         * doc/posix-functions/wcstof.texi: Likewise.
40015         * doc/posix-functions/wcstoimax.texi: Likewise.
40016         * doc/posix-functions/wcstok.texi: Likewise.
40017         * doc/posix-functions/wcstold.texi: Likewise.
40018         * doc/posix-functions/wcstoll.texi: Likewise.
40019         * doc/posix-functions/wcstol.texi: Likewise.
40020         * doc/posix-functions/wcstombs.texi: Likewise.
40021         * doc/posix-functions/wcstoull.texi: Likewise.
40022         * doc/posix-functions/wcstoul.texi: Likewise.
40023         * doc/posix-functions/wcstoumax.texi: Likewise.
40024         * doc/posix-functions/wcswidth.texi: Likewise.
40025         * doc/posix-functions/wcsxfrm.texi: Likewise.
40026         * doc/posix-functions/wctob.texi: Likewise.
40027         * doc/posix-functions/wctomb.texi: Likewise.
40028         * doc/posix-functions/wctrans.texi: Likewise.
40029         * doc/posix-functions/wctype.texi: Likewise.
40030         * doc/posix-functions/wcwidth.texi: Likewise.
40031         * doc/posix-functions/wmemchr.texi: Likewise.
40032         * doc/posix-functions/wmemcmp.texi: Likewise.
40033         * doc/posix-functions/wmemcpy.texi: Likewise.
40034         * doc/posix-functions/wmemmove.texi: Likewise.
40035         * doc/posix-functions/wmemset.texi: Likewise.
40036         * doc/posix-functions/wprintf.texi: Likewise.
40037         * doc/posix-functions/wscanf.texi: Likewise.
40038
40039 2008-12-21  Bruno Haible  <bruno@clisp.org>
40040
40041         Update doc for HP-UX 11.11.
40042         * doc/posix-functions/btowc.texi: Clarify that the function is missing
40043         in HP-UX version 11.00, not in all versions of HP-UX 11.
40044         * doc/posix-functions/fwide.texi: Likewise.
40045         * doc/posix-functions/fwprintf.texi: Likewise.
40046         * doc/posix-functions/fwscanf.texi: Likewise.
40047         * doc/posix-functions/inet_ntop.texi: Likewise.
40048         * doc/posix-functions/inet_pton.texi: Likewise.
40049         * doc/posix-functions/mbrlen.texi: Likewise.
40050         * doc/posix-functions/mbrtowc.texi: Likewise.
40051         * doc/posix-functions/mbsinit.texi: Likewise.
40052         * doc/posix-functions/mbsrtowcs.texi: Likewise.
40053         * doc/posix-functions/swprintf.texi: Likewise.
40054         * doc/posix-functions/swscanf.texi: Likewise.
40055         * doc/posix-functions/towctrans.texi: Likewise.
40056         * doc/posix-functions/vfwprintf.texi: Likewise.
40057         * doc/posix-functions/vswprintf.texi: Likewise.
40058         * doc/posix-functions/vwprintf.texi: Likewise.
40059         * doc/posix-functions/wcrtomb.texi: Likewise.
40060         * doc/posix-functions/wcsrtombs.texi: Likewise.
40061         * doc/posix-functions/wcsstr.texi: Likewise.
40062         * doc/posix-functions/wctob.texi: Likewise.
40063         * doc/posix-functions/wctrans.texi: Likewise.
40064         * doc/posix-functions/wmemchr.texi: Likewise.
40065         * doc/posix-functions/wmemcmp.texi: Likewise.
40066         * doc/posix-functions/wmemcpy.texi: Likewise.
40067         * doc/posix-functions/wmemmove.texi: Likewise.
40068         * doc/posix-functions/wmemset.texi: Likewise.
40069         * doc/posix-functions/wprintf.texi: Likewise.
40070         * doc/posix-functions/wscanf.texi: Likewise.
40071
40072 2008-12-21  Bruno Haible  <bruno@clisp.org>
40073
40074         Work around a portability problem.
40075         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
40076         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
40077
40078 2008-12-20  Bruno Haible  <bruno@clisp.org>
40079
40080         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
40081         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
40082         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
40083         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
40084         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
40085
40086         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
40087         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
40088         set.
40089         (GNULIB_defined_mbstate_t): New macro.
40090         (mbsinit): Redefine if REPLACE_MBSINIT is set.
40091         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
40092         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
40093         reuses the system's mbrtowc function but works around the bugs.
40094         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
40095         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
40096         macros.
40097         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
40098         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
40099         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
40100         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
40101         REPLACE_MBSINIT if mbsinit needs to be overridden.
40102         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
40103         REPLACE_MBSINIT, REPLACE_MBRTOWC.
40104         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
40105         REPLACE_MBSINIT, REPLACE_MBRTOWC.
40106         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40107         m4/locale-zh.m4.
40108         (Depends): Add mbsinit.
40109         * modules/mbsinit (Depends): Add mbrtowc.
40110         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
40111
40112 2008-12-20  Bruno Haible  <bruno@clisp.org>
40113
40114         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
40115         so that there are no conversion errors on AIX.
40116         * tests/test-mbsrtowcs.c (main): LIkewise.
40117
40118 2008-12-20  Bruno Haible  <bruno@clisp.org>
40119
40120         Work around wctob bug on Solaris <= 9.
40121         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
40122         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
40123         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
40124         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
40125         * modules/wctob (Files): Add m4/locale-fr.m4.
40126         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
40127
40128 2008-12-20  Bruno Haible  <bruno@clisp.org>
40129
40130         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
40131         /dev/null.
40132         * tests/test-select-in.sh: Likewise.
40133         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40134
40135 2008-12-20  Bruno Haible  <bruno@clisp.org>
40136
40137         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
40138         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
40139         Cygwin 1.5.x.
40140
40141 2008-12-20  Bruno Haible  <bruno@clisp.org>
40142
40143         Ensure mbstate_t is defined on HP-UX 11.11.
40144         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
40145         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
40146         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
40147         AC_USE_SYSTEM_EXTENSIONS.
40148         * modules/fnmatch (Depends-on): Add extensions.
40149         * modules/mbrlen (Depends-on): Likewise.
40150         * modules/mbrtowc (Depends-on): Likewise.
40151         * modules/mbsinit (Depends-on): Likewise.
40152         * modules/mbsrtowcs (Depends-on): Likewise.
40153         * modules/mbswidth (Depends-on): Likewise.
40154         * modules/quotearg (Depends-on): Likewise.
40155         * modules/strftime (Depends-on): Likewise.
40156
40157 2008-12-20  Bruno Haible  <bruno@clisp.org>
40158
40159         Ensure wctob is declared on IRIX 6.5.
40160         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
40161         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
40162         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
40163         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
40164         of HAVE_WCTOB.
40165         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
40166         HAVE_WCTOB.
40167         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
40168
40169 2008-12-19  Bruno Haible  <bruno@clisp.org>
40170
40171         * modules/mbsrtowcs-tests: New file.
40172         * tests/test-mbsrtowcs1.sh: New file.
40173         * tests/test-mbsrtowcs2.sh: New file.
40174         * tests/test-mbsrtowcs3.sh: New file.
40175         * tests/test-mbsrtowcs4.sh: New file.
40176         * tests/test-mbsrtowcs.c: New file.
40177
40178         New module 'mbsrtowcs'.
40179         * lib/wchar.in.h (mbsrtowcs): New declaration.
40180         * lib/mbsrtowcs.c: New file.
40181         * m4/mbsrtowcs.m4: New file.
40182         * modules/mbsrtowcs: New file.
40183         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
40184         HAVE_MBSRTOWCS.
40185         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
40186         HAVE_MBSRTOWCS.
40187         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
40188
40189 2008-12-19  Bruno Haible  <bruno@clisp.org>
40190
40191         New module 'mbrlen'.
40192         * lib/wchar.in.h (mbrlen): New declaration.
40193         * lib/mbrlen.c: New file.
40194         * m4/mbrlen.m4: New file.
40195         * modules/mbrlen: New file.
40196         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
40197         HAVE_MBRLEN.
40198         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
40199         HAVE_MBRLEN.
40200         * doc/posix-functions/mbrlen.texi: Document the new module.
40201
40202 2008-12-19  Bruno Haible  <bruno@clisp.org>
40203
40204         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
40205         * modules/mbrtowc (Depends-on): Add verify.
40206         Suggested by Paul Eggert.
40207
40208 2008-12-18  Bruno Haible  <bruno@clisp.org>
40209
40210         * modules/mbsinit-tests: New file.
40211         * tests/test-mbsinit.sh: New file.
40212         * tests/test-mbsinit.c: New file.
40213
40214 2008-12-18  Bruno Haible  <bruno@clisp.org>
40215
40216         * modules/mbrtowc-tests: New file.
40217         * tests/test-mbrtowc1.sh: New file.
40218         * tests/test-mbrtowc2.sh: New file.
40219         * tests/test-mbrtowc3.sh: New file.
40220         * tests/test-mbrtowc4.sh: New file.
40221         * tests/test-mbrtowc.c: New file.
40222
40223         New module 'mbrtowc'.
40224         * lib/wchar.in.h (mbstate_t): Override when the system does not have
40225         mbsinit and mbrtowc.
40226         (mbrtowc): New declaration.
40227         * lib/mbrtowc.c: New file.
40228         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
40229         * modules/mbrtowc: New file.
40230         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
40231         HAVE_MBRTOWC.
40232         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
40233         HAVE_MBRTOWC.
40234         * doc/posix-functions/mbrtowc.texi: Document the new module.
40235
40236 2008-12-18  Bruno Haible  <bruno@clisp.org>
40237
40238         New module 'wctob'.
40239         * lib/wchar.in.h (wctob): New declaration.
40240         * lib/wctob.c: New file.
40241         * m4/wctob.m4: New file.
40242         * modules/wctob: New file.
40243         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
40244         HAVE_WCTOB.
40245         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
40246         * doc/posix-functions/wctob.texi: Document the new module.
40247
40248 2008-12-18  Bruno Haible  <bruno@clisp.org>
40249
40250         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
40251         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
40252
40253 2008-12-18  Simon Josefsson  <simon@josefsson.org>
40254
40255         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
40256         G. Christensen" <tgc@jupiterrise.com>.
40257
40258         * lib/flock.c: Need to include errno.h.  Reported by "Tom
40259         G. Christensen" <tgc@jupiterrise.com>.
40260
40261         * lib/flock.c: Need to include string.h.  Reported by "Tom
40262         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
40263         <ebb9@byu.net>.
40264
40265 2008-12-18  Bruno Haible  <bruno@clisp.org>
40266
40267         * m4/locale-ja.m4: New file, from GNU gettext.
40268
40269 2008-12-17  Bruno Haible  <bruno@clisp.org>
40270
40271         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
40272         Suggested by Eric Blake.
40273
40274 2008-12-17  Bruno Haible  <bruno@clisp.org>
40275
40276         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
40277
40278 2008-12-17  Bruno Haible  <bruno@clisp.org>
40279
40280         * lib/mbsinit.c: Include verify.h. Verify an assumption.
40281         * modules/mbsinit (Depends-on): Add verify.
40282         Suggested by Paul Eggert.
40283
40284 2008-12-17  Bruno Haible  <bruno@clisp.org>
40285
40286         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
40287         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
40288         gl_FUNC_MBRTOWC.
40289         * m4/mbiter.m4 (gl_MBITER): LIkewise.
40290         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
40291         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
40292         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
40293         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
40294         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
40295         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
40296         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
40297         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
40298         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
40299         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
40300         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
40301         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
40302         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
40303         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
40304         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40305         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
40306         * modules/trim (configure.ac): Likewise.
40307
40308 2008-12-17  Bruno Haible  <bruno@clisp.org>
40309
40310         * modules/btowc-tests: New file.
40311         * tests/test-btowc1.sh: New file.
40312         * tests/test-btowc2.sh: New file.
40313         * tests/test-btowc.c: New file.
40314
40315         New module 'btowc'.
40316         * lib/wchar.in.h (btowc): New declaration.
40317         * lib/btowc.c: New file.
40318         * m4/btowc.m4: New file.
40319         * modules/btowc: New file.
40320         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
40321         HAVE_BTOWC.
40322         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
40323         * doc/posix-functions/btowc.texi: Document the new module.
40324
40325 2008-12-17  Bruno Haible  <bruno@clisp.org>
40326
40327         New module 'mbsinit'.
40328         * lib/wchar.in.h (mbsinit): New declaration.
40329         * lib/mbsinit.c: New file.
40330         * m4/mbsinit.m4: New file.
40331         * modules/mbsinit: New file.
40332         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
40333         HAVE_MBSINIT.
40334         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
40335         HAVE_MBSINIT.
40336         * doc/posix-functions/mbsinit.texi: Document the new module.
40337
40338 2008-12-16  Bruno Haible  <bruno@clisp.org>
40339
40340         * lib/unistd.in.h: Add comment.
40341         * tests/test-environ.c: Don't include <stdlib.h>.
40342
40343 2008-12-16  Bruno Haible  <bruno@clisp.org>
40344
40345         * lib/parse-duration.h (parse_duration): Document return value
40346         convention.
40347         * lib/parse-duration.c: Include specification header first. Add
40348         comments.
40349         (_): Remove macro.
40350         (parse_year_month_day, parse_hour_minute_second): Move side effects
40351         outside of strchr call.
40352         (parse_non_iso8601): Move side effects outside of isspace call.
40353         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
40354         call.
40355
40356 2008-12-16  Bruno Haible  <bruno@clisp.org>
40357
40358         * tests/test-parse-duration.sh: Produce no output when the test
40359         succeeds.
40360
40361 2008-12-16  Bruno Haible  <bruno@clisp.org>
40362
40363         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
40364         expressions.
40365
40366 2008-12-15  Bruno Haible  <bruno@clisp.org>
40367
40368         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
40369         * doc/glibc-functions/flistxattr.texi: Likewise.
40370         * doc/glibc-functions/fopencookie.texi: Likewise.
40371         * doc/glibc-functions/fremovexattr.texi: Likewise.
40372         * doc/glibc-functions/fsetxattr.texi: Likewise.
40373         * doc/glibc-functions/getxattr.texi: Likewise.
40374         * doc/glibc-functions/lgetxattr.texi: Likewise.
40375         * doc/glibc-functions/listxattr.texi: Likewise.
40376         * doc/glibc-functions/llistxattr.texi: Likewise.
40377         * doc/glibc-functions/lremovexattr.texi: Likewise.
40378         * doc/glibc-functions/lsetxattr.texi: Likewise.
40379         * doc/glibc-functions/removexattr.texi: Likewise.
40380         * doc/glibc-functions/setxattr.texi: Likewise.
40381         * doc/posix-functions/open_memstream.texi: Likewise.
40382
40383 2008-12-15  Eric Blake  <ebb9@byu.net>
40384
40385         Update doc for cygwin 1.7.
40386         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
40387         functions.
40388         * doc/posix-functions/fchmodat.texi: Likewise.
40389         * doc/posix-functions/fchownat.texi: Likewise.
40390         * doc/posix-functions/fdopendir.texi: Likewise.
40391         * doc/posix-functions/fmemopen.texi: Likewise.
40392         * doc/posix-functions/freeaddrinfo.texi: Likewise.
40393         * doc/posix-functions/fstatat.texi: Likewise.
40394         * doc/posix-functions/futimens.texi: Likewise.
40395         * doc/posix-functions/gai_strerror.texi: Likewise.
40396         * doc/posix-functions/getaddrinfo.texi: Likewise.
40397         * doc/posix-functions/getnameinfo.texi: Likewise.
40398         * doc/posix-functions/if_freenameindex.texi: Likewise.
40399         * doc/posix-functions/if_indextoname.texi: Likewise.
40400         * doc/posix-functions/if_nameindex.texi: Likewise.
40401         * doc/posix-functions/if_nametoindex.texi: Likewise.
40402         * doc/posix-functions/insque.texi: Likewise.
40403         * doc/posix-functions/linkat.texi: Likewise.
40404         * doc/posix-functions/llrint.texi: Likewise.
40405         * doc/posix-functions/llrintf.texi: Likewise.
40406         * doc/posix-functions/llrintl.texi: Likewise.
40407         * doc/posix-functions/lockf.texi: Likewise.
40408         * doc/posix-functions/lrintl.texi: Likewise.
40409         * doc/posix-functions/mkdirat.texi: Likewise.
40410         * doc/posix-functions/mkfifoat.texi: Likewise.
40411         * doc/posix-functions/mknodat.texi: Likewise.
40412         * doc/posix-functions/mq_close.texi: Likewise.
40413         * doc/posix-functions/mq_getattr.texi: Likewise.
40414         * doc/posix-functions/mq_notify.texi: Likewise.
40415         * doc/posix-functions/mq_open.texi: Likewise.
40416         * doc/posix-functions/mq_receive.texi: Likewise.
40417         * doc/posix-functions/mq_send.texi: Likewise.
40418         * doc/posix-functions/mq_setattr.texi: Likewise.
40419         * doc/posix-functions/mq_timedreceive.texi: Likewise.
40420         * doc/posix-functions/mq_timedsend.texi: Likewise.
40421         * doc/posix-functions/mq_unlink.texi: Likewise.
40422         * doc/posix-functions/open_memstream.texi: Likewise.
40423         * doc/posix-functions/openat.texi: Likewise.
40424         * doc/posix-functions/posix_fadvise.texi: Likewise.
40425         * doc/posix-functions/posix_fallocate.texi: Likewise.
40426         * doc/posix-functions/posix_madvise.texi: Likewise.
40427         * doc/posix-functions/posix_memalign.texi: Likewise.
40428         * doc/posix-functions/posix_openpt.texi: Likewise.
40429         * doc/posix-functions/readlinkat.texi: Likewise.
40430         * doc/posix-functions/remque.texi: Likewise.
40431         * doc/posix-functions/renameat.texi: Likewise.
40432         * doc/posix-functions/rintl.texi: Likewise.
40433         * doc/posix-functions/sem_unlink.texi: Likewise.
40434         * doc/posix-functions/shm_open.texi: Likewise.
40435         * doc/posix-functions/shm_unlink.texi: Likewise.
40436         * doc/posix-functions/signgam.texi: Likewise.
40437         * doc/posix-functions/sigset.texi: Likewise.
40438         * doc/posix-functions/stpcpy.texi: Likewise.
40439         * doc/posix-functions/stpncpy.texi: Likewise.
40440         * doc/posix-functions/strerror.texi: Likewise.
40441         * doc/posix-functions/strtod.texi: Likewise.
40442         * doc/posix-functions/symlinkat.texi: Likewise.
40443         * doc/posix-functions/unlinkat.texi: Likewise.
40444         * doc/posix-functions/utimensat.texi: Likewise.
40445         * doc/glibc-functions/bindresvport.texi: Likewise.
40446         * doc/glibc-functions/dn_expand.texi: Likewise.
40447         * doc/glibc-functions/exp10.texi: Likewise.
40448         * doc/glibc-functions/exp10f.texi: Likewise.
40449         * doc/glibc-functions/fgetxattr.texi: Likewise.
40450         * doc/glibc-functions/flistxattr.texi: Likewise.
40451         * doc/glibc-functions/fopencookie.texi: Likewise.
40452         * doc/glibc-functions/freeifaddrs.texi: Likewise.
40453         * doc/glibc-functions/fremovexattr.texi: Likewise.
40454         * doc/glibc-functions/fsetxattr.texi: Likewise.
40455         * doc/glibc-functions/getifaddrs.texi: Likewise.
40456         * doc/glibc-functions/getxattr.texi: Likewise.
40457         * doc/glibc-functions/lgetxattr.texi: Likewise.
40458         * doc/glibc-functions/listxattr.texi: Likewise.
40459         * doc/glibc-functions/llistxattr.texi: Likewise.
40460         * doc/glibc-functions/lremovexattr.texi: Likewise.
40461         * doc/glibc-functions/lsetxattr.texi: Likewise.
40462         * doc/glibc-functions/pow10.texi: Likewise.
40463         * doc/glibc-functions/pow10f.texi: Likewise.
40464         * doc/glibc-functions/rcmd_af.texi: Likewise.
40465         * doc/glibc-functions/removexattr.texi: Likewise.
40466         * doc/glibc-functions/res_init.texi: Likewise.
40467         * doc/glibc-functions/res_mkquery.texi: Likewise.
40468         * doc/glibc-functions/res_query.texi: Likewise.
40469         * doc/glibc-functions/res_querydomain.texi: Likewise.
40470         * doc/glibc-functions/res_send.texi: Likewise.
40471         * doc/glibc-functions/rresvport_af.texi: Likewise.
40472         * doc/glibc-functions/setxattr.texi: Likewise.
40473         * doc/glibc-functions/strcasestr.texi: Likewise.
40474
40475 2008-12-15  Bruno Haible  <bruno@clisp.org>
40476
40477         Fix compilation error on OSF/1 4.0.
40478         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
40479         <sys/time.h>, simply delegate to the system header.
40480         Reported by Daniel Richard G. <oss@teragram.com>.
40481
40482 2008-12-15  Bruno Haible  <bruno@clisp.org>
40483
40484         * doc/posix-functions/openat.texi: Mention the 'openat' module.
40485         * doc/posix-functions/fchmodat.texi: Likewise.
40486         * doc/posix-functions/fchownat.texi: Likewise.
40487         * doc/posix-functions/fdopendir.texi: Likewise.
40488         * doc/posix-functions/fstatat.texi: Likewise.
40489         * doc/posix-functions/mkdirat.texi: Likewise.
40490         * doc/posix-functions/unlinkat.texi: Likewise.
40491
40492 2008-12-14  Bruno Haible  <bruno@clisp.org>
40493
40494         Update doc for POSIX:2008.
40495         * doc/posix-functions/faccessat.texi: New file.
40496         * doc/posix-functions/fchmodat.texi: New file.
40497         * doc/posix-functions/fchownat.texi: New file.
40498         * doc/posix-functions/fdopendir.texi: New file.
40499         * doc/posix-functions/fstatat.texi: New file.
40500         * doc/posix-functions/futimens.texi: New file.
40501         * doc/posix-functions/linkat.texi: New file.
40502         * doc/posix-functions/mkdirat.texi: New file.
40503         * doc/posix-functions/mkfifoat.texi: New file.
40504         * doc/posix-functions/mknodat.texi: New file.
40505         * doc/posix-functions/open_wmemstream.texi: New file.
40506         * doc/posix-functions/openat.texi: New file.
40507         * doc/posix-functions/psiginfo.texi: New file.
40508         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
40509         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
40510         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
40511         * doc/posix-functions/readlinkat.texi: New file.
40512         * doc/posix-functions/renameat.texi: New file.
40513         * doc/posix-functions/strerror_l.texi: New file.
40514         * doc/posix-functions/symlinkat.texi: New file.
40515         * doc/posix-functions/unlinkat.texi: New file.
40516         * doc/posix-functions/utimensat.texi: New file.
40517         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40518
40519 2008-12-14  Bruno Haible  <bruno@clisp.org>
40520
40521         Update doc for POSIX:2008.
40522         * doc/posix-functions/alphasort.texi: Renamed from
40523         doc/glibc-functions/alphasort.texi.
40524         * doc/posix-functions/dirfd.texi: Renamed from
40525         doc/glibc-functions/dirfd.texi.
40526         * doc/posix-functions/dprintf.texi: Renamed from
40527         doc/glibc-functions/dprintf.texi.
40528         * doc/posix-functions/duplocale.texi: Renamed from
40529         doc/glibc-functions/duplocale.texi.
40530         * doc/posix-functions/fexecve.texi: Renamed from
40531         doc/glibc-functions/fexecve.texi.
40532         * doc/posix-functions/fmemopen.texi: Renamed from
40533         doc/glibc-functions/fmemopen.texi.
40534         * doc/posix-functions/freelocale.texi: Renamed from
40535         doc/glibc-functions/freelocale.texi.
40536         * doc/posix-functions/getdate_err.texi: Renamed from
40537         doc/glibc-functions/getdate_err.texi.
40538         * doc/posix-functions/isalnum_l.texi: Renamed from
40539         doc/glibc-functions/isalnum_l.texi.
40540         * doc/posix-functions/isalpha_l.texi: Renamed from
40541         doc/glibc-functions/isalpha_l.texi.
40542         * doc/posix-functions/isblank_l.texi: Renamed from
40543         doc/glibc-functions/isblank_l.texi.
40544         * doc/posix-functions/iscntrl_l.texi: Renamed from
40545         doc/glibc-functions/iscntrl_l.texi.
40546         * doc/posix-functions/isdigit_l.texi: Renamed from
40547         doc/glibc-functions/isdigit_l.texi.
40548         * doc/posix-functions/isgraph_l.texi: Renamed from
40549         doc/glibc-functions/isgraph_l.texi.
40550         * doc/posix-functions/islower_l.texi: Renamed from
40551         doc/glibc-functions/islower_l.texi.
40552         * doc/posix-functions/isprint_l.texi: Renamed from
40553         doc/glibc-functions/isprint_l.texi.
40554         * doc/posix-functions/ispunct_l.texi: Renamed from
40555         doc/glibc-functions/ispunct_l.texi.
40556         * doc/posix-functions/isspace_l.texi: Renamed from
40557         doc/glibc-functions/isspace_l.texi.
40558         * doc/posix-functions/isupper_l.texi: Renamed from
40559         doc/glibc-functions/isupper_l.texi.
40560         * doc/posix-functions/iswalnum_l.texi: Renamed from
40561         doc/glibc-functions/iswalnum_l.texi.
40562         * doc/posix-functions/iswalpha_l.texi: Renamed from
40563         doc/glibc-functions/iswalpha_l.texi.
40564         * doc/posix-functions/iswblank_l.texi: Renamed from
40565         doc/glibc-functions/iswblank_l.texi.
40566         * doc/posix-functions/iswcntrl_l.texi: Renamed from
40567         doc/glibc-functions/iswcntrl_l.texi.
40568         * doc/posix-functions/iswctype_l.texi: Renamed from
40569         doc/glibc-functions/iswctype_l.texi.
40570         * doc/posix-functions/iswdigit_l.texi: Renamed from
40571         doc/glibc-functions/iswdigit_l.texi.
40572         * doc/posix-functions/iswgraph_l.texi: Renamed from
40573         doc/glibc-functions/iswgraph_l.texi.
40574         * doc/posix-functions/iswlower_l.texi: Renamed from
40575         doc/glibc-functions/iswlower_l.texi.
40576         * doc/posix-functions/iswprint_l.texi: Renamed from
40577         doc/glibc-functions/iswprint_l.texi.
40578         * doc/posix-functions/iswpunct_l.texi: Renamed from
40579         doc/glibc-functions/iswpunct_l.texi.
40580         * doc/posix-functions/iswspace_l.texi: Renamed from
40581         doc/glibc-functions/iswspace_l.texi.
40582         * doc/posix-functions/iswupper_l.texi: Renamed from
40583         doc/glibc-functions/iswupper_l.texi.
40584         * doc/posix-functions/iswxdigit_l.texi: Renamed from
40585         doc/glibc-functions/iswxdigit_l.texi.
40586         * doc/posix-functions/isxdigit_l.texi: Renamed from
40587         doc/glibc-functions/isxdigit_l.texi.
40588         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
40589         doc/glibc-functions/mbsnrtowcs.texi.
40590         * doc/posix-functions/mkdtemp.texi: Renamed from
40591         doc/glibc-functions/mkdtemp.texi.
40592         * doc/posix-functions/newlocale.texi: Renamed from
40593         doc/glibc-functions/newlocale.texi.
40594         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
40595         doc/glibc-functions/nl_langinfo_l.texi.
40596         * doc/posix-functions/open_memstream.texi: Renamed from
40597         doc/glibc-functions/open_memstream.texi.
40598         * doc/posix-functions/opterr.texi: Renamed from
40599         doc/glibc-functions/opterr.texi.
40600         * doc/posix-functions/optind.texi: Renamed from
40601         doc/glibc-functions/optind.texi.
40602         * doc/posix-functions/optopt.texi: Renamed from
40603         doc/glibc-functions/optopt.texi.
40604         * doc/posix-functions/psignal.texi: Renamed from
40605         doc/glibc-functions/psignal.texi.
40606         * doc/posix-functions/scandir.texi: Renamed from
40607         doc/glibc-functions/scandir.texi.
40608         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
40609         doc/glibc-functions/sched_get_priority_min.texi.
40610         * doc/posix-functions/signgam.texi: Renamed from
40611         doc/glibc-functions/signgam.texi.
40612         * doc/posix-functions/stpcpy.texi: Renamed from
40613         doc/glibc-functions/stpcpy.texi.
40614         * doc/posix-functions/stpncpy.texi: Renamed from
40615         doc/glibc-functions/stpncpy.texi.
40616         * doc/posix-functions/strcasecmp_l.texi: Renamed from
40617         doc/glibc-functions/strcasecmp_l.texi.
40618         * doc/posix-functions/strcoll_l.texi: Renamed from
40619         doc/glibc-functions/strcoll_l.texi.
40620         * doc/posix-functions/strfmon_l.texi: Renamed from
40621         doc/glibc-functions/strfmon_l.texi.
40622         * doc/posix-functions/strftime_l.texi: Renamed from
40623         doc/glibc-functions/strftime_l.texi.
40624         * doc/posix-functions/strncasecmp_l.texi: Renamed from
40625         doc/glibc-functions/strncasecmp_l.texi.
40626         * doc/posix-functions/strndup.texi: Renamed from
40627         doc/glibc-functions/strndup.texi.
40628         * doc/posix-functions/strnlen.texi: Renamed from
40629         doc/glibc-functions/strnlen.texi.
40630         * doc/posix-functions/strsignal.texi: Renamed from
40631         doc/glibc-functions/strsignal.texi.
40632         * doc/posix-functions/strxfrm_l.texi: Renamed from
40633         doc/glibc-functions/strxfrm_l.texi.
40634         * doc/posix-functions/timer_gettime.texi: Renamed from
40635         doc/glibc-functions/timer_gettime.texi.
40636         * doc/posix-functions/tolower_l.texi: Renamed from
40637         doc/glibc-functions/tolower_l.texi.
40638         * doc/posix-functions/toupper_l.texi: Renamed from
40639         doc/glibc-functions/toupper_l.texi.
40640         * doc/posix-functions/towctrans_l.texi: Renamed from
40641         doc/glibc-functions/towctrans_l.texi.
40642         * doc/posix-functions/towlower_l.texi: Renamed from
40643         doc/glibc-functions/towlower_l.texi.
40644         * doc/posix-functions/towupper_l.texi: Renamed from
40645         doc/glibc-functions/towupper_l.texi.
40646         * doc/posix-functions/uselocale.texi: Renamed from
40647         doc/glibc-functions/uselocale.texi.
40648         * doc/posix-functions/vdprintf.texi: Renamed from
40649         doc/glibc-functions/vdprintf.texi.
40650         * doc/posix-functions/wcpcpy.texi:
40651         Renamed from doc/glibc-functions/wcpcpy.texi.
40652         * doc/posix-functions/wcpncpy.texi: Renamed from
40653         doc/glibc-functions/wcpncpy.texi.
40654         * doc/posix-functions/wcscasecmp.texi: Renamed from
40655         doc/glibc-functions/wcscasecmp.texi.
40656         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
40657         doc/glibc-functions/wcscasecmp_l.texi.
40658         * doc/posix-functions/wcscoll_l.texi: Renamed from
40659         doc/glibc-functions/wcscoll_l.texi.
40660         * doc/posix-functions/wcsdup.texi: Renamed from
40661         doc/glibc-functions/wcsdup.texi.
40662         * doc/posix-functions/wcsncasecmp.texi: Renamed from
40663         doc/glibc-functions/wcsncasecmp.texi.
40664         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
40665         doc/glibc-functions/wcsncasecmp_l.texi.
40666         * doc/posix-functions/wcsnlen.texi: Renamed from
40667         doc/glibc-functions/wcsnlen.texi.
40668         * doc/posix-functions/wcsnrtombs.texi: Renamed from
40669         doc/glibc-functions/wcsnrtombs.texi.
40670         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
40671         doc/glibc-functions/wcsxfrm_l.texi.
40672         * doc/posix-functions/wctrans_l.texi: Renamed from
40673         doc/glibc-functions/wctrans_l.texi.
40674         * doc/posix-functions/wctype_l.texi: Renamed from
40675         doc/glibc-functions/wctype_l.texi.
40676         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40677         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
40678         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
40679         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
40680         these subsections.
40681         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
40682         Remove sections.
40683
40684 2008-12-14  Bruno Haible  <bruno@clisp.org>
40685
40686         Update doc for POSIX:2008.
40687         * doc/posix-functions/*.texi: Update URL of POSIX specification.
40688
40689 2008-12-14  Bruno Haible  <bruno@clisp.org>
40690
40691         Update doc for POSIX:2008.
40692         * doc/pastposix-functions/bcmp.texi: Renamed from
40693         doc/posix-functions/bcmp.texi.
40694         * doc/pastposix-functions/bcopy.texi: Renamed from
40695         doc/posix-functions/bcopy.texi.
40696         * doc/pastposix-functions/bsd_signal.texi: Renamed from
40697         doc/posix-functions/bsd_signal.texi.
40698         * doc/pastposix-functions/bzero.texi: Renamed from
40699         doc/posix-functions/bzero.texi.
40700         * doc/pastposix-functions/ecvt.texi: Renamed from
40701         doc/posix-functions/ecvt.texi.
40702         * doc/pastposix-functions/fcvt.texi: Renamed from
40703         doc/posix-functions/fcvt.texi.
40704         * doc/pastposix-functions/ftime.texi: Renamed from
40705         doc/posix-functions/ftime.texi.
40706         * doc/pastposix-functions/gcvt.texi: Renamed from
40707         doc/posix-functions/gcvt.texi.
40708         * doc/pastposix-functions/getcontext.texi: Renamed from
40709         doc/posix-functions/getcontext.texi.
40710         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
40711         doc/posix-functions/gethostbyaddr.texi.
40712         * doc/pastposix-functions/gethostbyname.texi: Renamed from
40713         doc/posix-functions/gethostbyname.texi.
40714         * doc/pastposix-functions/getwd.texi: Renamed from
40715         doc/posix-functions/getwd.texi.
40716         * doc/pastposix-functions/h_errno.texi: Renamed from
40717         doc/posix-functions/h_errno.texi.
40718         * doc/pastposix-functions/index.texi: Renamed from
40719         doc/posix-functions/index.texi.
40720         * doc/pastposix-functions/makecontext.texi: Renamed from
40721         doc/posix-functions/makecontext.texi.
40722         * doc/pastposix-functions/mktemp.texi: Renamed from
40723         doc/posix-functions/mktemp.texi.
40724         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
40725         doc/posix-functions/pthread_attr_getstackaddr.texi.
40726         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
40727         doc/posix-functions/pthread_attr_setstackaddr.texi.
40728         * doc/pastposix-functions/rindex.texi: Renamed from
40729         doc/posix-functions/rindex.texi.
40730         * doc/pastposix-functions/scalb.texi: Renamed from
40731         doc/posix-functions/scalb.texi.
40732         * doc/pastposix-functions/setcontext.texi: Renamed from
40733         doc/posix-functions/setcontext.texi.
40734         * doc/pastposix-functions/swapcontext.texi: Renamed from
40735         doc/posix-functions/swapcontext.texi.
40736         * doc/pastposix-functions/ualarm.texi: Renamed from
40737         doc/posix-functions/ualarm.texi.
40738         * doc/pastposix-functions/usleep.texi: Renamed from
40739         doc/posix-functions/usleep.texi.
40740         * doc/pastposix-functions/vfork.texi: Renamed from
40741         doc/posix-functions/vfork.texi.
40742         * doc/pastposix-functions/wcswcs.texi: Renamed from
40743         doc/posix-functions/wcswcs.texi.
40744         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
40745         (Function Substitutes): Update.
40746
40747 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40748
40749         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
40750         m4/strerror.m4.
40751
40752 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40753             Bruno Haible  <bruno@clisp.org>
40754
40755         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
40756
40757 2008-12-13  Bruno Haible  <bruno@clisp.org>
40758
40759         * modules/strtoull (Depends-on): Remove unistd.
40760
40761 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40762
40763         * modules/strtoull (Depends-on): Add stdlib.
40764
40765 2008-12-11  Simon Josefsson  <simon@josefsson.org>
40766
40767         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
40768
40769 2008-12-10  Jim Meyering  <meyering@redhat.com>
40770
40771         gl_ASSERT: don't say assertions are disabled when they're not
40772         * m4/assert.m4 (gl_ASSERT): Do not make configure report
40773         "checking whether to enable assertions... no", when they are in
40774         fact enabled.  This is solely a bug in the output of configure.
40775         In spite of saying "no", NDEBUG was not defined in that case.
40776         Also, as noted by Eric Blake, leave assertions enabled upon
40777         --enable-assert=INVALID.
40778
40779 2008-12-10  Bruno Haible  <bruno@clisp.org>
40780
40781         Change MODULES.html to refer to POSIX:2008 where possible.
40782         * MODULES.html.sh (POSIX2008_URL): New variable.
40783         (posix_headers): Remove sys/timeb, ucontext.
40784         (posix2001_headers): New variable.
40785         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
40786         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
40787         index, makecontext, mktemp, pthread_attr_getstackaddr,
40788         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
40789         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
40790         (posix2001_functions): New variable.
40791         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
40792         otherwise.
40793
40794 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40795
40796         add missing include to parse-duration.c
40797         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
40798         * modules/parse-duration (Depends-on): Add xalloc.
40799
40800         fix sed script reading maint.mk
40801         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
40802         (syntax-check-rules): Use it.
40803
40804 2008-12-09  Bruno Haible  <bruno@clisp.org>
40805
40806         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
40807         MacOS X 10.4/PowerPC.
40808         Reported by Simon Josefsson.
40809
40810 2008-12-08  Jim Meyering  <meyering@redhat.com>
40811
40812         work around mingw's lack of some S_IF definitions
40813         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
40814         Reported by Simon Josefsson.
40815
40816 2008-12-08  Bruno Haible  <bruno@clisp.org>
40817
40818         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
40819         applied to variables. Needed on MacOS X 10.4/PowerPC.
40820         Reported by Simon Josefsson.
40821
40822 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
40823         and Eric Blake  <ebb9@byu.net>
40824
40825         assert: honor --enable-assert
40826         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
40827         order to honor --enable-assert, rather than treating it as a
40828         synonym for --disable-assert.
40829
40830 2008-12-08  Jim Meyering  <meyering@redhat.com>
40831
40832         * lib/posixtm.c: Remove now-useless declaration of mktime.
40833
40834         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
40835
40836 2008-12-07  Bruno Haible  <bruno@clisp.org>
40837
40838         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
40839         test_once): Mark functions as static.
40840         * tests/test-tls.c (test_tls): Likewise.
40841
40842 2008-12-07  Bruno Haible  <bruno@clisp.org>
40843
40844         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
40845         iconv_register_autodetect.
40846
40847 2008-12-07  Jim Meyering  <meyering@redhat.com>
40848
40849         posixtm.c: avoid a warning
40850         * lib/posixtm.c (posixtime): Don't initialize tm0.
40851         It's no longer needed to placate gcc4's -Wuninitialized,
40852         and the attempt to placate would elicit a new warning.
40853
40854         unicodeio.c: mark unused parameters
40855         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40856         (fallback_failure_callback): Likewise.
40857
40858 2008-12-07  Bruno Haible  <bruno@clisp.org>
40859
40860         * gnulib-tool (func_create_testdir): When building the tests
40861         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
40862         Reported by Simon Josefsson.
40863
40864 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40865
40866         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
40867
40868 2008-12-06  Bruno Haible  <bruno@clisp.org>
40869
40870         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
40871         Suggested by Eric Blake.
40872
40873 2008-12-06  Bruno Haible  <bruno@clisp.org>
40874
40875         Fix a c-stack test failure on MacOS X.
40876         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
40877         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
40878         handler for SIGBUS as well.
40879         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
40880         install a signal handler for SIGBUS as well.
40881         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
40882
40883 2008-12-06  Bruno Haible  <bruno@clisp.org>
40884
40885         Advocacy documentation.
40886         * doc/gnulib-intro.texi (Benefits): New section.
40887         * doc/gnulib.texi: Update.
40888
40889 2008-12-06  Bruno Haible  <bruno@clisp.org>
40890
40891         Document the 'manywarnings' module.
40892         * doc/manywarnings.texi: New file.
40893         * doc/gnulib.texi: Include it.
40894
40895 2008-12-05  Eric Blake  <ebb9@byu.net>
40896
40897         tests: silence some gcc warnings
40898         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
40899         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
40900         type mismatches.
40901
40902 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40903             Bruno Haible  <bruno@clisp.org>
40904
40905         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
40906
40907 2008-11-29  Jim Meyering  <meyering@redhat.com>
40908
40909         unicodeio.c: mark unused parameters
40910         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40911         (fallback_failure_callback): Likewise.
40912
40913         fts: fix a thinko
40914         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
40915         (set_stat_type): Return S_IF*-valued "type" directly.
40916         Prompted by James Youngman's spotting a related bug.
40917         Confirmed by further testing through find.
40918
40919         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
40920         * lib/fts.c (D_TYPE): Define.
40921         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
40922         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
40923         (s_ifmt_shift_bits): New function.
40924         (set_stat_type): New function.
40925         (fts_build): When not calling fts_stat, call set_stat_type
40926         to propagate dirent.d_type info to fts_read caller.
40927         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
40928         fts_statp->st_mode type information may be valid.
40929
40930 2008-11-28  Simon Josefsson  <simon@josefsson.org>
40931
40932         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
40933         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
40934         <sds@gnu.org>.
40935
40936 2008-11-20  Bruno Haible  <bruno@clisp.org>
40937
40938         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
40939         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
40940         INCLUDE_NEXT.
40941         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
40942         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
40943         * modules/math (Makefile.am): Substitute
40944         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
40945         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40946
40947 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
40948             Bruno Haible  <bruno@clisp.org>
40949
40950         * lib/stdint.in.h: Define all type macros so that their expansion is
40951         a single typedef'ed token. Fixes a compilation failure in Boost which
40952         does "using ::int8_t;".
40953
40954 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40955
40956         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
40957         gl_MANYWARN_ALL_GCC.
40958         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
40959         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
40960         * modules/manywarnings: New file.
40961         * MODULES.html.sh: Mention manywarnings module.
40962
40963 2008-11-18  Bruno Haible  <bruno@clisp.org>
40964
40965         * doc/gnulib-tool.texi (Unit tests): New section.
40966
40967 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40968
40969         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
40970         paths like 'lib/po/foo.po'.
40971
40972 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40973
40974         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
40975         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
40976
40977 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40978
40979         * m4/warnings.m4: Use CPPFLAGS to really check whether the
40980         parameter works.
40981
40982 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40983
40984         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
40985
40986 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40987
40988         * modules/parse-duration-tests: New file.
40989         * tests/test-parse-duration.sh: New file.
40990         * tests/test-parse-duration.c: New file.
40991
40992         New module 'parse-duration'.
40993         * lib/parse-duration.h: New file.
40994         * lib/parse-duration.c: New file.
40995         * modules/parse-duration: New file.
40996
40997 2008-11-17  Bruno Haible  <bruno@clisp.org>
40998
40999         * tests/test-select-out.sh: Comment out the first pipe test.
41000         Reported by Simon Josefsson.
41001
41002 2008-11-17  Bruno Haible  <bruno@clisp.org>
41003
41004         * modules/getaddrinfo (Depends-on): Add servent, hostent.
41005         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
41006         gl_HOSTENT.
41007
41008 2008-11-17  Bruno Haible  <bruno@clisp.org>
41009
41010         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
41011         -lnetwork and -lnet. Needed for Haiku and BeOS.
41012
41013 2008-11-16  Bruno Haible  <bruno@clisp.org>
41014
41015         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
41016
41017 2008-11-16  Bruno Haible  <bruno@clisp.org>
41018
41019         Avoid test failure on Haiku.
41020         * tests/test-fsync.c: Include <errno.h>.
41021         (main): Don't require that fsync (0) fails.
41022
41023 2008-11-15  Bruno Haible  <bruno@clisp.org>
41024
41025         New module 'hostent'.
41026         * modules/hostent: New file.
41027         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
41028
41029 2008-11-15  Bruno Haible  <bruno@clisp.org>
41030
41031         New module 'servent'.
41032         * modules/servent: New file.
41033         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
41034
41035 2008-11-15  Bruno Haible  <bruno@clisp.org>
41036
41037         Avoid generating same test program with two different rules.
41038         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
41039         test-frexp to test-frexp-nolibm.
41040         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
41041         test-frexpl to test-frexpl-nolibm.
41042
41043 2008-11-15  Bruno Haible  <bruno@clisp.org>
41044
41045         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
41046         $(FREXPL_LIBM).
41047
41048 2008-11-15  Bruno Haible  <bruno@clisp.org>
41049
41050         * lib/netdb.in.h: Activate the definitions also when the system's
41051         <netdb.h> has 'struct addrinfo'.
41052         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
41053         EAI_OVERFLOW or AI_NUMERICSERV.
41054         * doc/posix-headers/netdb.texi: Document the problem.
41055
41056 2008-11-15  Bruno Haible  <bruno@clisp.org>
41057
41058         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
41059
41060         Make the 'sched' module work on platforms where <sched.h> exists but
41061         is incomplete (such as Haiku).
41062         * lib/sched.in.h; Include the system's <sched.h> if it exists.
41063         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
41064         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
41065         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
41066         HAVE_STRUCT_SCHED_PARAM.
41067         * modules/sched (Depends-on): Add include_next.
41068         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
41069         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
41070         * doc/posix-headers/sched.texi: Document the issue.
41071
41072 2008-11-13  Jim Meyering  <meyering@redhat.com>
41073
41074         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
41075         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
41076         test would fail due to the difference in the Report bugs to ...
41077         line.  The expected address is empty, "<>", while the actual
41078         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
41079
41080 2008-11-12  Bruno Haible  <bruno@clisp.org>
41081
41082         lstat: don't compile lstat.c on systems lacking lstat
41083         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
41084         which don't have lstat; this is handled by lib/sys_stat.in.h already.
41085         Reported by Daniel P. Berrange via Jim Meyering.
41086
41087 2008-11-12  Jim Meyering  <meyering@redhat.com>
41088
41089         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
41090
41091 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41092
41093         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
41094         instead.
41095
41096 2008-11-12  Bruno Haible  <bruno@clisp.org>
41097
41098         * lib/unicodeio.c: Include unistr.h.
41099         (utf8_wctomb): Remove function.
41100         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
41101
41102 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41103
41104         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
41105         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
41106         <bruno@clisp.org>.
41107         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
41108
41109 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41110
41111         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
41112         * doc/gnulib.texi: Add section for warnings.
41113
41114 2008-11-11  Bruno Haible  <bruno@clisp.org>
41115
41116         * lib/sockets.h: Add a comment.
41117
41118 2008-11-11  Karl Berry  <karl@gnu.org>
41119
41120         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
41121
41122 2008-11-11  Eric Blake  <ebb9@byu.net>
41123
41124         fdl.texi: avoid git symlinks
41125         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
41126
41127 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41128
41129         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
41130
41131 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41132
41133         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
41134         (gl_WARN_ADD): Substitute $2 if literal.
41135
41136 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41137
41138         * m4/warning.m4: Remove.
41139
41140 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41141
41142         * m4/warnings.m4: Almost complete rewrite. :-)
41143
41144 2008-11-10  Simon Josefsson  <simon@josefsson.org>
41145
41146         * modules/warnings: New module.
41147         * m4/warnings.m4: New file.
41148         * MODULES.html.sh: Mention warnings module.
41149         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
41150         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41151
41152 2008-11-10  Eric Blake  <ebb9@byu.net>
41153
41154         fdl.texi: make a symlink to the latest version
41155         * doc/standards.texi: Revert today's earlier change.
41156         * doc/fdl-1.2.texi: Rename from old fdl.texi...
41157         * doc/fdl.texi: ...and replace this with a symlink to the newer
41158         fdl-1.3.texi.
41159
41160 2008-11-10  Bruno Haible  <bruno@clisp.org>
41161
41162         * tests/test-select-fd.c (main): Accept the result file name as fourth
41163         argument.
41164         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
41165         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
41166
41167 2008-11-10  Bruno Haible  <bruno@clisp.org>
41168
41169         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
41170         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
41171         as autoconf-substituted macros.
41172         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
41173         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
41174         gl_NETDB_H_DEFAULTS. Set these variables.
41175         * modules/netdb (Makefile.am): Substitute these variables.
41176
41177 2008-11-10  Eric Blake  <ebb9@byu.net>
41178
41179         standards.texi: include correct file for FDL 1.3
41180         * doc/standards.texi (GNU Free Documentation License): Change
41181         include file to pull in FDL 1.3, not 1.2.
41182
41183         fdl.texi: revert accidental change to license
41184         * doc/fdl.texi: This is FDL 1.2, not 1.3.
41185
41186 2008-11-10  Bruno Haible  <bruno@clisp.org>
41187
41188         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
41189         cross-compiling guesses also when the native compile gives no result.
41190
41191 2008-11-10  Bruno Haible  <bruno@clisp.org>
41192
41193         * lib/spawni.c (__spawni): Force variable into the stack.
41194
41195 2008-11-10  Bruno Haible  <bruno@clisp.org>
41196
41197         Add support for Haiku.
41198         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
41199         glibc and BeOS, but also on Haiku.
41200         * lib/fpurge.c (fpurge): Likewise.
41201         * lib/freadable.c (freadable): Likewise.
41202         * lib/freadahead.c (freadahead): Likewise.
41203         * lib/freading.c (freading): Likewise.
41204         * lib/freadptr.c (freadptr): Likewise.
41205         * lib/freadseek.c (freadptrinc): Likewise.
41206         * lib/fseeko.c (rpl_fseeko): Likewise.
41207         * lib/fseterr.c (fseterr): Likewise.
41208         * lib/fwritable.c (fwritable): Likewise.
41209         * lib/fwriting.c (fwriting): Likewise.
41210         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
41211
41212 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41213
41214         * lib/config.charset: Treat Haiku like BeOS.
41215
41216 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41217
41218         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
41219         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
41220
41221 2008-11-08  Bruno Haible  <bruno@clisp.org>
41222
41223         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
41224         AC_CACHE_CHECK.
41225
41226 2008-11-08  Bruno Haible  <bruno@clisp.org>
41227
41228         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
41229
41230 2008-11-08  Bruno Haible  <bruno@clisp.org>
41231
41232         * tests/test-select-fd.c: New file.
41233         * tests/test-select-in.sh: New file.
41234         * tests/test-select-out.sh: New file.
41235         * tests/test-select-stdin.c: New file.
41236         * modules/select-tests (Files): Add the new files.
41237         (Depends-on): Add gettimeofday.
41238         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
41239         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
41240         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
41241
41242 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
41243             Bruno Haible  <bruno@clisp.org>
41244
41245         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
41246
41247 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
41248
41249         * build-aux/pmccabe2html: Added support for C++ source files.
41250
41251 2008-11-05  Ben Pfaff  <blp@gnu.org>
41252
41253         Fix lib/close.c build on Windows.
41254         * modules/close (Files): Add lib/w32sock.h.
41255
41256 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
41257
41258         Accept Bison's NEWS format.
41259         * build-aux/announce-gen (print_news_deltas): Tweak
41260         $re_prefix.
41261
41262 2008-11-04  Bruno Haible  <bruno@clisp.org>
41263
41264         * modules/random_r (Maintainer): Add glibc.
41265
41266 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41267
41268         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
41269         by karl@freefriends.org (Karl Berry).
41270         * doc/alloca.texi: Likewise.
41271         * doc/c-ctype.texi: Likewise.
41272         * doc/c-strcase.texi: Likewise.
41273         * doc/c-strcaseeq.texi: Likewise.
41274         * doc/c-strcasestr.texi: Likewise.
41275         * doc/c-strstr.texi: Likewise.
41276         * doc/c-strtod.texi: Likewise.
41277         * doc/c-strtold.texi: Likewise.
41278         * doc/ctime.texi: Likewise.
41279         * doc/error.texi: Likewise.
41280         * doc/fdl.texi: Likewise.
41281         * doc/gcd.texi: Likewise.
41282         * doc/getdate.texi: Likewise.
41283         * doc/gnulib-intro.texi: Likewise.
41284         * doc/gnulib-tool.texi: Likewise.
41285         * doc/gnulib.texi: Likewise.
41286         * doc/inet_ntoa.texi: Likewise.
41287         * doc/maintain.texi: Likewise.
41288         * doc/make-stds.texi: Likewise.
41289         * doc/quote.texi: Likewise.
41290         * doc/regexprops-generic.texi: Likewise.
41291         * doc/standards.texi: Likewise.
41292         * doc/verify.texi: Likewise.
41293         * doc/visibility.texi: Likewise.
41294         * doc/gnulib.texi (GNU Free Documentation License): Include
41295         fdl-1.3.texi instead of fdl.texi.
41296
41297 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41298
41299         * doc/fdl-1.3.texi: New file, from
41300         <http://www.gnu.org/licenses/fdl-1.3.texi>.
41301         * modules/fdl-1.3: Add.
41302         * MODULES.html.sh: Add fdl-1.3.
41303
41304 2008-11-03  Bruno Haible  <bruno@clisp.org>
41305
41306         Make determination of absolute name of header file work with AIX xlc.
41307         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
41308         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
41309         preprocessing.
41310         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41311         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
41312
41313 2008-11-03  Simon Josefsson  <simon@josefsson.org>
41314
41315         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
41316         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
41317         <ludo@gnu.org>.
41318
41319 2008-11-02  Bruno Haible  <bruno@clisp.org>
41320
41321         Mark 'strpbrk' obsolete.
41322         * modules/strpbrk (Status, Notice): New sections.
41323         * modules/strtok_r (Depends-on): Add strpbrk.
41324
41325 2008-11-02  Bruno Haible  <bruno@clisp.org>
41326
41327         Mark 'strdup' obsolete.
41328         * modules/strdup (Status, Notice): New sections.
41329         * modules/findprog (Depends-on): Add strdup.
41330         * modules/getaddrinfo (Depends-on): Likewise.
41331         * modules/localename (Depends-on): Likewise.
41332         * modules/relocatable-lib (Depends-on): Likewise.
41333         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
41334         * modules/relocatable-prog (Depends-on): Likewise.
41335         * modules/trim (Depends-on): Likewise.
41336         * modules/unictype/gen-ctype (Depends-on): Likewise.
41337         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41338
41339 2008-11-02  Bruno Haible  <bruno@clisp.org>
41340
41341         Mark 'strcspn' obsolete.
41342         * modules/strcspn (Status, Notice): New sections.
41343
41344 2008-11-02  Bruno Haible  <bruno@clisp.org>
41345
41346         Mark 'rmdir' obsolete.
41347         * modules/rmdir (Status, Notice): New sections.
41348         * modules/clean-temp (Depends-on): Add rmdir.
41349         * modules/openat (Depends-on): Likewise.
41350
41351 2008-11-02  Bruno Haible  <bruno@clisp.org>
41352
41353         Mark 'raise' obsolete.
41354         * modules/raise (Status, Notice): New sections.
41355         (Include): Specify <signal.h>.
41356         * modules/stdio (Depends-on): Add raise.
41357         * modules/write (Depends-on): Likewise.
41358
41359 2008-11-02  Bruno Haible  <bruno@clisp.org>
41360
41361         Mark 'memset' obsolete.
41362         * modules/memset (Status, Notice): New sections.
41363
41364 2008-11-02  Bruno Haible  <bruno@clisp.org>
41365
41366         Mark 'memmove' obsolete.
41367         * modules/memmove (Status, Notice): New sections.
41368         * modules/argp (Depends-on): Add memmove.
41369         * modules/argz (Depends-on): Likewise.
41370         * modules/canonicalize (Depends-on): Likewise.
41371         * modules/canonicalize-lgpl (Depends-on): Likewise.
41372         * modules/fts (Depends-on): Likewise.
41373         * modules/getcwd (Depends-on): Likewise.
41374         * modules/human (Depends-on): Likewise.
41375         * modules/regex (Depends-on): Likewise.
41376         * modules/striconveh (Depends-on): Likewise.
41377         * modules/trim (Depends-on): Likewise.
41378         * modules/unistr/u8-move (Depends-on): Likewise.
41379         * modules/unistr/u16-move (Depends-on): Likewise.
41380         * modules/unistr/u32-move (Depends-on): Likewise.
41381
41382 2008-11-02  Bruno Haible  <bruno@clisp.org>
41383
41384         Mark 'memcpy' obsolete.
41385         * modules/memcpy (Status, Notice): New sections.
41386
41387 2008-11-02  Bruno Haible  <bruno@clisp.org>
41388
41389         Mark 'memcmp' obsolete.
41390         * modules/memcmp (Status, Notice): New sections.
41391         * modules/argmatch (Depends-on): Add memchr.
41392         * modules/backupfile (Depends-on): Likewise.
41393         * modules/c-strcasestr (Depends-on): Likewise.
41394         * modules/crypto/des (Depends-on): Likewise.
41395         * modules/csharpcomp (Depends-on): Likewise.
41396         * modules/fnmatch (Depends-on): Likewise.
41397         * modules/git-merge-changelog (Depends-on): Likewise.
41398         * modules/isnand (Depends-on): Likewise.
41399         * modules/isnand-nolibm (Depends-on): Likewise.
41400         * modules/isnanf (Depends-on): Likewise.
41401         * modules/isnanf-nolibm (Depends-on): Likewise.
41402         * modules/isnanl (Depends-on): Likewise.
41403         * modules/isnanl-nolibm (Depends-on): Likewise.
41404         * modules/mbchar (Depends-on): Likewise.
41405         * modules/memcoll (Depends-on): Likewise.
41406         * modules/quotearg (Depends-on): Likewise.
41407         * modules/regex (Depends-on): Likewise.
41408         * modules/relocatable-prog (Depends-on): Likewise.
41409         * modules/same (Depends-on): Likewise.
41410         * modules/signbit (Depends-on): Likewise.
41411         * modules/strcasestr-simple (Depends-on): Likewise.
41412         * modules/unictype/gen-ctype (Depends-on): Likewise.
41413         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41414         * modules/uniname/uniname (Depends-on): Likewise.
41415         * modules/unistr/u8-cmp (Depends-on): Likewise.
41416
41417 2008-11-02  Bruno Haible  <bruno@clisp.org>
41418
41419         Mark 'memchr' obsolete.
41420         * modules/memchr (Status, Notice): New sections.
41421         * modules/argp (Depends-on): Add memchr.
41422         * modules/base64 (Depends-on): Likewise.
41423         * modules/c-strcasestr (Depends-on): Likewise.
41424         * modules/chdir-long (Depends-on): Likewise.
41425         * modules/fnmatch (Depends-on): Likewise.
41426         * modules/getsubopt (Depends-on): Likewise.
41427         * modules/git-merge-changelog (Depends-on): Likewise.
41428         * modules/glob (Depends-on): Likewise.
41429         * modules/strcasestr-simple (Depends-on): Likewise.
41430         * modules/strnlen (Depends-on): Likewise.
41431
41432 2008-11-02  Bruno Haible  <bruno@clisp.org>
41433
41434         Mark 'atexit' obsolete.
41435         * modules/atexit (Status, Notice): New sections.
41436         * modules/chdir-long (Depends-on): Add atexit.
41437         * modules/wait-process (Depends-on): Likewise.
41438
41439 2008-11-02  Bruno Haible  <bruno@clisp.org>
41440
41441         * gnulib-tool: New option --with-obsolete.
41442         (func_usage): Document it.
41443         (func_modules_transitive_closure): Drop obsolete dependencies if
41444         incobsolete is not true.
41445         (func_import): Read and save the incobsolete variable to the cache.
41446
41447 2008-11-02  Bruno Haible  <bruno@clisp.org>
41448
41449         * modules/TEMPLATE-EXTENDED: New field 'Status'.
41450         * gnulib-tool: New option --extract-status.
41451         (func_usage): Document it.
41452         (sed_extract_prog): Recognize it.
41453         (func_get_status): New function.
41454
41455 2008-10-30  Simon Josefsson  <simon@josefsson.org>
41456
41457         * modules/sockets (License): Change from LGPL to LGPLv2+.
41458
41459 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41460
41461         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
41462
41463 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41464
41465         * MODULES.html.sh (Support for systems lacking POSIX:2001):
41466         Mention times and sys_times.
41467         * modules/sys_times, modules/sys_times-tests: New modules.
41468         * modules/times, modules/times-tests: Likewise
41469         * m4/sys_times_h.m4: New file.
41470         * lib/sys_times.in.h: Likewise
41471         * lib/times.c: Likewise.
41472         * tests/test-sys_times.c: Likewise.
41473         * tests/test-times.c: Likewise.
41474         * doc/posix-headers/sys_times.texi: Update.
41475         * doc/posix-functions/times.texi: Update.
41476
41477 2008-10-28  Jim Meyering  <meyering@redhat.com>
41478
41479         * modules/tempname (Depends-on): Add lstat.
41480
41481         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
41482
41483 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41484
41485         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
41486         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
41487         using idiom used elsewhere in gnulib.
41488
41489 2008-10-27  Jim Meyering  <meyering@redhat.com>
41490
41491         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
41492
41493 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41494
41495         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
41496         TESTS_ENVIRONMENT, for shell scripts that needs to call built
41497         programs.
41498         * tests/test-argp-2.sh: Use $EXEEXT when needed.
41499
41500 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41501
41502         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
41503
41504 2008-10-27  Bruno Haible  <bruno@clisp.org>
41505
41506         * tests/test-lstat.c: Include <stdio.h>.
41507
41508 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41509
41510         * modules/lstat-tests: New module.
41511         * tests/test-lstat.c: New file.
41512
41513 2008-10-26  Jim Meyering  <meyering@redhat.com>
41514
41515         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
41516
41517 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41518             Bruno Haible  <bruno@clisp.org>
41519
41520         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
41521         * modules/configmake (Include): Add a note that the include must come
41522         after all system headers.
41523         * lib/javaversion.c: Include configmake.h after all other includes.
41524
41525 2008-10-26  Bruno Haible  <bruno@clisp.org>
41526
41527         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
41528         HAVE_STRUCT_RANDOM_DATA to 1.
41529         (gl_STDLIB_H): Simplify.
41530
41531 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41532
41533         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
41534         substitute HAVE_STRUCT_RANDOM_DATA.
41535         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
41536         random_data.
41537         * modules/stdlib (Makefile.am): Substitute
41538         HAVE_STRUCT_RANDOM_DATA.
41539
41540 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41541
41542         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
41543         * doc/gnulib-intro.texi (Copyright): Likewise.
41544
41545 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41546
41547         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
41548         findings.
41549
41550 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
41551             Bruno Haible  <bruno@clisp.org>
41552
41553         * lib/unistd.in.h: Include <winsock2.h>.
41554         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
41555         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
41556         Provide dummy declarations.
41557         (gethostname): Override.
41558         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
41559         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
41560         gl_PREREQ_SYS_H_WINSOCK2.
41561         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
41562         * doc/posix-functions/gethostname.texi: More details.
41563
41564 2008-10-25  Bruno Haible  <bruno@clisp.org>
41565
41566         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41567         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
41568         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
41569
41570         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
41571         here ...
41572         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
41573         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
41574         gl_UNISTD_H_DEFAULTS.
41575
41576 2008-10-25  Eric Blake  <ebb9@byu.net>
41577
41578         signbit: avoid spurious compiler failure
41579         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
41580         declarations inside function.
41581
41582 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41583             Bruno Haible  <bruno@clisp.org>
41584
41585         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
41586         * modules/random_r (Depends-on): Add stdint.
41587
41588 2008-10-24  Bruno Haible  <bruno@clisp.org>
41589
41590         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
41591         Eggert.
41592         * modules/strerror (License): Likewise.
41593
41594 2008-10-24  Jim Meyering  <meyering@redhat.com>
41595
41596         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
41597         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
41598
41599 2008-10-24  Eric Blake  <ebb9@byu.net>
41600
41601         getgroups: fix compilation when getgroups is available
41602         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
41603         but with <config.h> override of getgroups disabled.
41604
41605 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41606
41607         * doc/gnulib.texi (Header files): Add note about C++ problems.
41608         Explained by Bruno Haible <bruno@clisp.org>.
41609
41610 2008-10-23  Bruno Haible  <bruno@clisp.org>
41611
41612         Define a dummy SA_NODEFER macro on Interix.
41613         * lib/signal.in.h (SA_NODEFER): Define fallback.
41614         Reported by Aleksey Cheusov <cheusov@tut.by> via
41615         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
41616
41617 2008-10-23  Bruno Haible  <bruno@clisp.org>
41618
41619         * modules/freadahead (License): Change to LGPLv2+.
41620         Suggested by Simon Josefsson.
41621
41622 2008-10-23  Jim Meyering  <meyering@redhat.com>
41623
41624         random_r: new module
41625         * modules/random_r: New file.
41626         * m4/random_r.m4: New file.
41627         * lib/random_r.c: New file, from glibc.
41628         * modules/random_r-tests: New file.
41629         * tests/test-random_r.c: New file.
41630         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
41631          Declare.
41632         (RAND_MAX): Define.
41633         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
41634         * modules/stdlib: Substitute them, too.
41635         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
41636         * doc/glibc-functions/initstate_r.texi: Mention the new module.
41637         * doc/glibc-functions/random_r.texi: Likewise.
41638         * doc/glibc-functions/setstate_r.texi: Likewise.
41639         * doc/glibc-functions/srandom_r.texi: Likewise.
41640         * config/srclist.txt: Mention it.
41641
41642 2008-10-23  David Lutterkort  <lutter@redhat.com>
41643
41644         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
41645         link requirement
41646
41647 2008-10-23  Jim Meyering  <meyering@redhat.com>
41648
41649         selinux-h: mark parameters of stub functions as intentionally unused
41650         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
41651         * lib/se-context.in.h: Likewise.
41652
41653 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41654
41655         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
41656
41657 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41658
41659         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
41660
41661 2008-10-22  Eric Blake  <ebb9@byu.net>
41662
41663         glthread/thread: avoid compiler warning
41664         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
41665         Add unreachable abort to silence compiler.
41666
41667 2008-10-22  Eric Blake  <ebb9@byu.net>
41668
41669         netdb: also supply struct addrinfo for cygwin 1.5.x
41670         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
41671         older cygwin.
41672         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
41673         cygwin.
41674         * doc/posix-headers/netdb.texi (netdb.h): Document this.
41675
41676 2008-10-22  Bruno Haible  <bruno@clisp.org>
41677
41678         * users.txt: Update entry about pspp.
41679
41680 2008-10-21  Bruno Haible  <bruno@clisp.org>
41681
41682         Simplification.
41683         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
41684         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
41685
41686         Simplification.
41687         * lib/ioctl.c (ioctl): Don't undefine.
41688         * lib/socket.c (socket): Don't undefine.
41689
41690         Remove unused module indicator macros.
41691         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
41692         GNULIB_$1 as a C macro.
41693
41694         * doc/posix-functions/close.texi: Undo last change.
41695         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
41696         Windows platforms.
41697
41698 2008-10-21  Bruno Haible  <bruno@clisp.org>
41699
41700         Add gethostname() declaration to <unistd.h>.
41701         * lib/unistd.in.h (gethostname): New declaration.
41702         * lib/gethostname.c: Include <unistd.h>.
41703         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
41704         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
41705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
41706         and HAVE_GETHOSTNAME.
41707         * modules/gethostname (Depends-on): Add unistd.
41708         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41709         (Include): Specify <unistd.h>.
41710         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
41711         HAVE_GETHOSTNAME.
41712         * tests/test-gethostname.c: Include <unistd.h> first.
41713
41714 2008-10-21  Bruno Haible  <bruno@clisp.org>
41715
41716         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
41717         * modules/select-tests (Depends-on): Likewise.
41718         Reported by Simon Josefsson.
41719
41720 2008-10-21  Simon Josefsson  <simon@josefsson.org>
41721
41722         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
41723         * lib/accept.c: New file, based on winsock.c.
41724         * lib/bind.c: New file, based on winsock.c.
41725         * lib/connect.c: New file, based on winsock.c.
41726         * lib/getpeername.c: New file, based on winsock.c.
41727         * lib/getsockname.c: New file, based on winsock.c.
41728         * lib/getsockopt.c: New file, based on winsock.c.
41729         * lib/ioctl.c: New file, based on winsock.c.
41730         * lib/listen.c: New file, based on winsock.c.
41731         * lib/recv.c: New file, based on winsock.c.
41732         * lib/recvfrom.c: New file, based on winsock.c.
41733         * lib/send.c: New file, based on winsock.c.
41734         * lib/sendto.c: New file, based on winsock.c.
41735         * lib/setsockopt.c: New file, based on winsock.c.
41736         * lib/shutdown.c: New file, based on winsock.c.
41737         * lib/socket.c: New file, based on winsock.c.
41738         * lib/w32sock.h: New file, based on winsock.c.
41739         * lib/winsock.c: Remove file.
41740         * modules/accept: Likewise.
41741         * modules/bind: Likewise.
41742         * modules/connect: Likewise.
41743         * modules/getpeername: Likewise.
41744         * modules/getsockname: Likewise.
41745         * modules/getsockopt: Likewise.
41746         * modules/ioctl: Likewise.
41747         * modules/listen: Likewise.
41748         * modules/recv: Likewise.
41749         * modules/recvfrom: Likewise.
41750         * modules/send: Likewise.
41751         * modules/sendto: Likewise.
41752         * modules/setsockopt: Likewise.
41753         * modules/shutdown: Likewise.
41754         * modules/socket: Use socket.c instead of winsock.c.
41755         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
41756         * doc/posix-functions/accept.texi: Doc fix.
41757         * doc/posix-functions/bind.texi: Doc fix.
41758         * doc/posix-functions/close.texi: Doc fix.
41759         * doc/posix-functions/connect.texi: Doc fix.
41760         * doc/posix-functions/getpeername.texi: Doc fix.
41761         * doc/posix-functions/getsockname.texi: Doc fix.
41762         * doc/posix-functions/getsockopt.texi: Doc fix.
41763         * doc/posix-functions/ioctl.texi: Doc fix.
41764         * doc/posix-functions/listen.texi: Doc fix.
41765         * doc/posix-functions/recv.texi: Doc fix.
41766         * doc/posix-functions/recvfrom.texi: Doc fix.
41767         * doc/posix-functions/send.texi: Doc fix.
41768         * doc/posix-functions/sendto.texi: Doc fix.
41769         * doc/posix-functions/setsockopt.texi: Doc fix.
41770         * doc/posix-functions/shutdown.texi: Doc fix.
41771         * doc/posix-functions/socket.texi: Doc fix.
41772
41773 2008-10-20  Bruno Haible  <bruno@clisp.org>
41774
41775         Take into account the role of SIGABRT_COMPAT on Windows 2008.
41776         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
41777         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
41778         as an alias for SIGABRT.
41779         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
41780         (sigaction): Map it to SIGABRT.
41781         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
41782
41783 2008-10-20  Bruno Haible  <bruno@clisp.org>
41784
41785         * lib/fts.c: Don't include lstat.h.
41786         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
41787
41788         Move the lstat() declaration to <sys/stat.h>.
41789         * lib/lstat.h: Remove file.
41790         * lib/sys_stat.in.h: Add special invocation convention.
41791         (lstat): New declaration.
41792         * lib/lstat.c (orig_lstat): New function.
41793         (rpl_lstat): Use orig_lstat instead of lstat.
41794         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
41795         AC_C_INLINE. Set REPLACE_LSTAT.
41796         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
41797         and REPLACE_LSTAT.
41798         * modules/lstat (Files): Remove lib/lstat.h.
41799         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41800         (Include): Specify <sys/stat.h> instead of lstat.h.
41801         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
41802         REPLACE_LSTAT.
41803         * NEWS: Mention the change.
41804
41805 2008-10-20  Bruno Haible  <bruno@clisp.org>
41806
41807         * modules/posix_spawn-tests: New file.
41808         * tests/test-posix_spawn3.c: New file.
41809
41810 2008-10-20  Bruno Haible  <bruno@clisp.org>
41811
41812         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
41813         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41814         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
41815         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41816         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
41817
41818 2008-10-20  Bruno Haible  <bruno@clisp.org>
41819
41820         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
41821         of posix_spawn on AIX 5.3.
41822
41823 2008-10-20  Bruno Haible  <bruno@clisp.org>
41824
41825         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
41826
41827 2008-10-20  Bruno Haible  <bruno@clisp.org>
41828
41829         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
41830         of AC_LANG_PROGRAM.
41831
41832 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41833
41834         * lib/netdb.in.h: Don't define GNU specific constants until they
41835         are supported or needed.  Reported by Bruno Haible
41836         <bruno@clisp.org>.
41837
41838 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41839
41840         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
41841
41842 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41843
41844         * lib/getaddrinfo.h: Remove file.
41845         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
41846         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
41847         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
41848         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
41849         * modules/netdb: Substitute GNULIB_GETADDRINFO.
41850         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
41851         * tests/test-getaddrinfo.c: Likewise.
41852         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
41853         * NEWS: Mention change.
41854
41855 2008-10-19  Bruno Haible  <bruno@clisp.org>
41856
41857         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
41858
41859 2008-10-19  Bruno Haible  <bruno@clisp.org>
41860
41861         * lib/wait-process.c: Include simply <sys/wait.h>.
41862         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
41863         WIFSTOPPED): Remove fallback definitions.
41864         * modules/wait-process (Depends-on): Add sys_wait.
41865
41866         New module 'sys_wait'.
41867         * modules/sys_wait: New file.
41868         * lib/sys_wait.in.h: New file, partially copied from
41869         lib/wait-process.c.
41870         * m4/sys_wait_h.m4: New file.
41871         * doc/posix-headers/sys_wait.texi: Mention the new module.
41872
41873 2008-10-19  Bruno Haible  <bruno@clisp.org>
41874
41875         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
41876
41877 2008-10-19  Bruno Haible  <bruno@clisp.org>
41878
41879         Assume that waitpid() fills an 'int' status, not a 'union wait'.
41880         * lib/wait-process.c (WAIT_T): Remove type.
41881         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
41882         (wait_subprocess): Update.
41883
41884 2008-10-19  Bruno Haible  <bruno@clisp.org>
41885
41886         New module 'atoll'.
41887         * modules/atoll: New file.
41888         * lib/stdlib.in.h (atoll): New declaration.
41889         * lib/atoll.c: New file, from glibc with modifications.
41890         * m4/atoll.m4: New file.
41891         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
41892         HAVE_ATOLL.
41893         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
41894         * doc/posix-functions/atoll.texi: Mention the new module.
41895
41896 2008-10-19  Bruno Haible  <bruno@clisp.org>
41897
41898         Add strtoull() declaration to <stdlib.h>.
41899         * lib/stdlib.in.h (strtoull): New declaration.
41900         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41901         Set HAVE_STRTOULL.
41902         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
41903         HAVE_STRTOULL.
41904         * modules/strtoull (Depends-on): Add stdlib.
41905         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41906         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
41907         HAVE_STRTOULL.
41908
41909 2008-10-19  Bruno Haible  <bruno@clisp.org>
41910
41911         Add strtoll() declaration to <stdlib.h>.
41912         * lib/stdlib.in.h (strtoll): New declaration.
41913         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41914         Set HAVE_STRTOLL.
41915         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
41916         HAVE_STRTOLL.
41917         * modules/strtoll (Depends-on): Add stdlib.
41918         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41919         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
41920
41921 2008-10-19  Bruno Haible  <bruno@clisp.org>
41922
41923         * modules/bcopy (Depends-on): Add strings.
41924         (Include): Specify <strings.h>.
41925
41926 2008-10-19  Bruno Haible  <bruno@clisp.org>
41927
41928         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
41929
41930 2008-10-19  Bruno Haible  <bruno@clisp.org>
41931
41932         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
41933         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
41934         mingw.
41935
41936 2008-10-19  Bruno Haible  <bruno@clisp.org>
41937
41938         * lib/atanl.c: Don't include isnanl.h.
41939         * lib/cosl.c: Likewise.
41940         * lib/ldexpl.c: Likewise.
41941         * lib/logl.c: Likewise.
41942         * lib/sinl.c: Likewise.
41943         * lib/sqrtl.c: Likewise.
41944         * lib/tanl.c: Likewise.
41945
41946         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
41947         * lib/isnanf.h: Remove file.
41948         * lib/isnand.h: Remove file.
41949         * lib/isnanl.h: Remove file.
41950         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
41951         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
41952         macros.
41953         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
41954         HAVE_ISNANF, don't define it as a C macro.
41955         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
41956         HAVE_ISNAND, don't define it as a C macro.
41957         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
41958         HAVE_ISNANL, don't define it as a C macro.
41959         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
41960         HAVE_ISNAN[FDL].
41961         * modules/isnanf (Files): Remove lib/isnanf.h.
41962         (Depends-on): Add math.
41963         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41964         (Include): Specify <math.h> instead of isnanf.h.
41965         * modules/isnand (Files): Remove lib/isnand.h.
41966         (Depends-on): Add math.
41967         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41968         (Include): Specify <math.h> instead of isnand.h.
41969         * modules/isnanl (Files): Remove lib/isnanl.h.
41970         (Depends-on): Add math.
41971         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41972         (Include): Specify <math.h> instead of isnanl.h.
41973         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
41974         HAVE_ISNAN[FDL].
41975         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
41976         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
41977         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
41978         * NEWS: Mention the change.
41979
41980 2008-10-18  Bruno Haible  <bruno@clisp.org>
41981
41982         Add getusershell(), setusershell(), endusershell() declarations to
41983         <unistd.h>.
41984         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
41985         declarations.
41986         * lib/getusershell.c: Include unistd.h.
41987         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
41988         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41989         HAVE_GETUSERSHELL.
41990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
41991         and HAVE_GETUSERSHELL.
41992         * modules/getusershell (Depends-on): Add unistd, extensions.
41993         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41994         (Include): Specify <unistd.h>.
41995         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
41996         HAVE_GETUSERSHELL.
41997
41998 2008-10-18  Bruno Haible  <bruno@clisp.org>
41999
42000         Add a getloadavg() declaration to <stdlib.h>.
42001         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
42002         getloadavg declaration.
42003         (getloadavg): New declaration.
42004         * lib/getloadavg.c: Include <stdlib.h> first.
42005         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
42006         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
42007         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
42008         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
42009         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
42010         * modules/getloadavg (Depends-on): Add stdlib, extensions.
42011         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42012         (Include): Specify <stdlib.h>.
42013         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
42014         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
42015
42016 2008-10-18  Bruno Haible  <bruno@clisp.org>
42017
42018         * lib/dirchownmod.c: Don't include lchmod.h.
42019
42020         Move the lchmod() declaration to <sys/stat.h>.
42021         * lib/lchmod.h: Remove file.
42022         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
42023         (lchmod): New declaration, moved here from lib/lchown.h.
42024         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
42025         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
42026         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
42027         and HAVE_LCHMOD.
42028         * modules/lchmod (Files): Remove lib/lchmod.h.
42029         (Depends-on): Add sys_stat, extensions.
42030         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
42031         (Include): Specify <sys/stat.h> instead of lchmod.h.
42032         * modules/sys_stat (Depends-on): Add link-warning.
42033         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
42034         definition of GL_LINK_WARNING.
42035         * NEWS: Mention the change.
42036
42037 2008-10-18  Bruno Haible  <bruno@clisp.org>
42038
42039         * lib/fchdir.c: Don't include dirfd.h.
42040         * lib/fts.c: Likewise.
42041         * lib/getcwd.c: Likewise.
42042         * lib/glob.c: Likewise.
42043
42044         Move the dirfd() declaration to <dirent.h>.
42045         * lib/dirfd.h: Remove file.
42046         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
42047         (dirfd): New declaration.
42048         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
42049         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
42050         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
42051         HAVE_DECL_DIRFD.
42052         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
42053         HAVE_DECL_DIRFD.
42054         * modules/dirfd (Files): Remove lib/dirfd.h.
42055         (Depends-on): Add dirent, extensions.
42056         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
42057         (Include): Specify <dirent.h> instead of dirfd.h.
42058         * modules/dirent (Depends-on): Add link-warning.
42059         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
42060         definition of GL_LINK_WARNING.
42061         * NEWS: Mention the change.
42062
42063 2008-10-18  Bruno Haible  <bruno@clisp.org>
42064
42065         Move the euidaccess() declaration to <unistd.h>.
42066         * lib/euidaccess.h: Remove file.
42067         * lib/unistd.in.h (euidaccess): New declaration.
42068         * lib/euidaccess.c: Don't include euidaccess.h.
42069         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
42070         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
42071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
42072         and HAVE_EUIDACCESS.
42073         * modules/euidaccess (Files): Remove lib/euidaccess.h.
42074         (Depends-on): Add unistd.
42075         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42076         (Include): Specify <unistd.h> instead of euidaccess.h.
42077         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
42078         HAVE_EUIDACCESS.
42079         * NEWS: Mention the change.
42080
42081 2008-10-18  Bruno Haible  <bruno@clisp.org>
42082
42083         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
42084
42085         Move the getdomainname() declaration to <unistd.h>.
42086         * lib/getdomainname.h: Remove file.
42087         * lib/unistd.in.h (getdomainname): New declaration.
42088         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
42089         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
42090         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
42091         HAVE_GETDOMAINNAME.
42092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42093         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
42094         * modules/getdomainname (Files): Remove lib/getdomainname.h.
42095         (Depends-on): Add unistd, extensions.
42096         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42097         (Includes): Specify <unistd.h> instead of getdomainname.h.
42098         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
42099         HAVE_GETDOMAINNAME.
42100         * NEWS: Mention the change.
42101
42102 2008-10-18  Bruno Haible  <bruno@clisp.org>
42103
42104         * modules/dirent: New file.
42105         * m4/dirent_h.m4: New file.
42106         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
42107         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
42108         * modules/fchdir (Files): Remove lib/dirent.in.h.
42109         (Depends-on): Add dirent.
42110         (Makefile.am): Move rules to modules/dirent.
42111         * doc/posix-headers/dirent.texi: Mention the new module.
42112
42113 2008-10-18  Bruno Haible  <bruno@clisp.org>
42114
42115         Avoid -Wunused-parameter warnings in public gnulib header files.
42116         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
42117         macro.
42118         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
42119
42120 2008-10-18  Bruno Haible  <bruno@clisp.org>
42121
42122         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
42123         * doc/glibc-functions/error.texi: Mention the module 'error'.
42124         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
42125         * doc/glibc-functions/getdomainname.texi: Mention the module
42126         'getdomainname'.
42127         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
42128         * doc/glibc-functions/getpagesize.texi: Mention the module
42129         'getpagesize'.
42130         * doc/glibc-functions/getusershell.texi: Mention the module
42131         'getusershell'.
42132         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
42133         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
42134         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
42135         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
42136         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
42137         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
42138         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
42139         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
42140         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
42141         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
42142         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
42143         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
42144         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
42145         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
42146
42147 2008-10-17  Bruno Haible  <bruno@clisp.org>
42148
42149         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
42150         HP-UX and IRIX, use -0.0L.
42151         * tests/test-ceill.c (minus_zero): Likewise.
42152         * tests/test-floorl.c (minus_zero): Likewise.
42153         * tests/test-frexpl.c (minus_zero): Likewise.
42154         * tests/test-isnan.c (minus_zerol): Likewise.
42155         * tests/test-isnanl.h (minus_zero): Likewise.
42156         * tests/test-ldexpl.c (minus_zero): Likewise.
42157         * tests/test-roundl.c (minus_zero): Likewise.
42158         * tests/test-signbit.c (minus_zerol): Likewise.
42159         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42160         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42161         * tests/test-truncl.c (minus_zero): Likewise.
42162         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42163         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42164         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
42165         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42166
42167 2008-10-17  Bruno Haible  <bruno@clisp.org>
42168
42169         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
42170         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
42171         that it gets activated only for gcc >= 3.0.
42172         * lib/dirent.in.h: Likewise.
42173         * lib/errno.in.h: Likewise.
42174         * lib/fcntl.in.h: Likewise.
42175         * lib/float.in.h: Likewise.
42176         * lib/iconv.in.h: Likewise.
42177         * lib/inttypes.in.h: Likewise.
42178         * lib/locale.in.h: Likewise.
42179         * lib/math.in.h: Likewise.
42180         * lib/netdb.in.h: Likewise.
42181         * lib/netinet_in.in.h: Likewise.
42182         * lib/search.in.h: Likewise.
42183         * lib/signal.in.h: Likewise.
42184         * lib/spawn.in.h: Likewise.
42185         * lib/stdarg.in.h: Likewise.
42186         * lib/stdint.in.h: Likewise.
42187         * lib/stdio.in.h: Likewise.
42188         * lib/stdlib.in.h: Likewise.
42189         * lib/string.in.h: Likewise.
42190         * lib/strings.in.h: Likewise.
42191         * lib/sys_file.in.h: Likewise.
42192         * lib/sys_ioctl.in.h: Likewise.
42193         * lib/sys_select.in.h: Likewise.
42194         * lib/sys_socket.in.h: Likewise.
42195         * lib/sys_stat.in.h: Likewise.
42196         * lib/sys_time.in.h: Likewise.
42197         * lib/sysexits.in.h: Likewise.
42198         * lib/time.in.h: Likewise.
42199         * lib/unistd.in.h: Likewise.
42200         * lib/wchar.in.h: Likewise.
42201         * lib/wctype.in.h: Likewise.
42202         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42203
42204 2008-10-17  Jim Meyering  <meyering@redhat.com>
42205
42206         ignore-value: don't depend on inline module
42207         * modules/ignore-value (Depends-on): Remove 'inline'.
42208         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
42209         Suggestion from Bruno Haible.
42210
42211 2008-10-17  Bruno Haible  <bruno@clisp.org>
42212
42213         New implementation of condition variables for Win32.
42214         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
42215         (gl_linked_waitqueue_t): New type.
42216         (gl_cond_t): Use it.
42217         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
42218         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
42219         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
42220         (glthread_cond_init_func, glthread_cond_wait_func,
42221         glthread_cond_timedwait_func, glthread_cond_signal_func,
42222         glthread_cond_broadcast_func, glthread_cond_destroy_func):
42223         Reimplemented on the basis of gl_linked_waitqueue_t.
42224         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
42225         gl_waitqueue_t.
42226         (gl_rwlock_t): Update.
42227         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
42228
42229 2008-10-17  Simon Josefsson  <simon@josefsson.org>
42230
42231         * modules/recvfrom (Depends-on): Add dependency on getpeername.
42232         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42233
42234 2008-10-17  Jim Meyering  <meyering@redhat.com>
42235
42236         ignore-value: new module
42237         * modules/ignore-value: New file.
42238         * lib/ignore-value.h: New file.
42239         * MODULES.html.sh (Compiler warning management): New section,
42240         just for this module.  More to come.
42241
42242 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42243
42244         open-safer.c: avoid 'signed and unsigned in conditional...' warning
42245         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
42246         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
42247
42248 2008-10-16  Jim Meyering  <meyering@redhat.com>
42249
42250         openat-die.c: avoid 'no previous prototype' warning
42251         * lib/openat-die.c: Include "openat.h".
42252         Reported by Reuben Thomas <rrt@sc3d.org>.
42253
42254 2008-10-16  Simon Josefsson  <simon@josefsson.org>
42255
42256         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
42257         * lib/netdb.in.h: Fix typo.
42258         Reported by Bruno Haible  <bruno@clisp.org>
42259
42260         * lib/netdb.in.h: Include sys/socket.h for platforms without
42261         netdb.h, to get structures like hostent on MinGW.
42262         * modules/netdb (Depends-on): Add sys_socket.
42263
42264 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42265
42266         * modules/netdb, modules/netdb-tests: New file.
42267         * m4/netdb_h.m4: New file.
42268         * lib/netdb.in.h: Add, currently just an empty file pending
42269         definitions.
42270         * tests/test-netdb.c: New file.
42271         * doc/posix-headers/netdb.texi: Mention that we replace it if
42272         needed.
42273         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42274         netdb.
42275
42276 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42277
42278         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
42279         with code.
42280
42281 2008-10-13  Bruno Haible  <bruno@clisp.org>
42282
42283         * lib/glthread/cond.c (glthread_cond_wait_func,
42284         glthread_cond_timedwait_func): Add a comment.
42285
42286 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42287
42288         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
42289         * tests/test-select.c: Likewise,
42290
42291 2008-10-13  Bruno Haible  <bruno@clisp.org>
42292
42293         * lib/glthread/cond.c (glthread_cond_wait_func,
42294         glthread_cond_timedwait_func): Fix variable name.
42295         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42296
42297 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
42298
42299         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
42300         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
42301         struct sockaddr.sa_len.
42302         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
42303
42304 2008-10-13  Simon Josefsson  <simon@josefsson.org>
42305
42306         * build-aux/pmccabe2html: Add css and css_url parameters.
42307
42308 2008-10-12  Bruno Haible  <bruno@clisp.org>
42309
42310         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
42311         calling aclx_get.
42312         Reported by Rainer Tammer <tammer@tammer.net>.
42313
42314 2008-10-12  Bruno Haible  <bruno@clisp.org>
42315
42316         Use msvcrt aware primitives for creation/termination of Win32 threads.
42317         * lib/glthread/thread.c: Include <process.h>.
42318         (glthread_create_func): Use _beginthreadex instead of CreateThread.
42319         (wrapper_func): Update signature.
42320         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
42321
42322 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42323             Bruno Haible  <bruno@clisp.org>
42324
42325         Provide a Win32 implementation of the 'cond' module.
42326         * lib/glthread/cond.h [USE_WIN32]: New implementation.
42327         * lib/glthread/cond.c (glthread_cond_init_func,
42328         glthread_cond_wait_func, glthread_cond_timedwait_func,
42329         glthread_cond_signal_func, glthread_cond_broadcast_func,
42330         glthread_cond_destroy_func) [USE_WIN32]: New functions.
42331         * modules/cond (Dependencies): Add gettimeofday.
42332
42333 2008-10-11  Bruno Haible  <bruno@clisp.org>
42334
42335         Make sleep work on older versions of mingw.
42336         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
42337         only whether it exists.
42338         * doc/posix-functions/sleep.texi: Mention the problem with older
42339         versions of mingw.
42340
42341 2008-10-11  Bruno Haible  <bruno@clisp.org>
42342
42343         New module 'shutdown'.
42344         * modules/shutdown: New file.
42345         * lib/sys_socket.in.h (shutdown): New declaration.
42346         * lib/winsock.c (shutdown): New function.
42347         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42348         GNULIB_SHUTDOWN.
42349         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
42350         * doc/posix-functions/shutdown.texi: Document the new module.
42351
42352 2008-10-11  Jim Meyering  <meyering@redhat.com>
42353
42354         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
42355
42356 2008-10-11  Bruno Haible  <bruno@clisp.org>
42357
42358         New module 'fclose'.
42359         * modules/fclose: New file.
42360         * lib/stdio.in.h (fclose): New declaration.
42361         * lib/fclose.c: New file.
42362         * m4/fclose.m4: New file.
42363         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
42364         REPLACE_FCLOSE.
42365         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
42366         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
42367         REPLACE_FCLOSE.
42368         * modules/close (Depends-on): fclose.
42369         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
42370
42371 2008-10-11  Bruno Haible  <bruno@clisp.org>
42372
42373         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
42374         set errno and don't call _close.
42375
42376 2008-10-10  Bruno Haible  <bruno@clisp.org>
42377
42378         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
42379         ACL, not afterwards. Fixes test failure on Cygwin.
42380
42381 2008-10-09  Ben Pfaff  <blp@gnu.org>
42382
42383         * build-aux/announce-gen: Fix gnulib version related part of usage
42384         message.  Die with a useful error message if no tarballs are
42385         found.
42386
42387 2008-10-10  Jim Meyering  <meyering@redhat.com>
42388
42389         bootstrap: use git's --depth=N option only if it's supported
42390         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
42391         recognize the --depth option.  Reported by Pádraig Brady.
42392
42393 2008-10-09  Bruno Haible  <bruno@clisp.org>
42394
42395         New module 'ioctl'.
42396         * modules/ioctl: New file.
42397         * lib/sys_socket.in.h (ioctl): Remove declaration.
42398         * lib/winsock.c: Include <sys/ioctl.h>.
42399         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
42400         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
42401         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
42402         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
42403         * doc/posix-functions/ioctl.texi: Mention the new module.
42404
42405 2008-10-09  Bruno Haible  <bruno@clisp.org>
42406
42407         New module 'sys_ioctl'.
42408         * lib/sys_ioctl.in.h: New file.
42409         * m4/sys_ioctl_h.m4: New file.
42410         * modules/sys_ioctl: New file.
42411         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
42412
42413 2008-10-09  Bruno Haible  <bruno@clisp.org>
42414
42415         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
42416         * lib/winsock.c: Include <stdarg.h>.
42417         (rpl_ioctl): Change to second argument 'int' and then varargs.
42418
42419 2008-10-09  Bruno Haible  <bruno@clisp.org>
42420
42421         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
42422         when the sys_socket module is present and the system has <winsock2.h>.
42423
42424 2008-10-09  Bruno Haible  <bruno@clisp.org>
42425
42426         * doc/posix-functions/close.texi: Mention module 'close' instead of
42427         module 'sys_socket'.
42428
42429 2008-10-09  Bruno Haible  <bruno@clisp.org>
42430
42431         * doc/glibc-headers/sys_ioctl.texi: New file.
42432         * doc/gnulib.texi: Include it.
42433
42434 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42435             Bruno Haible  <bruno@clisp.org>
42436
42437         Combine the two replacements of 'close'.
42438         * lib/sys_socket.in.h (close): Define to a reminder to include
42439         <unistd.h>.
42440         (_gl_close_fd_maybe_socket): New declaration.
42441         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
42442         * lib/winsock.c (close): Remove undefinition.
42443         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
42444         needed for the gnulib module 'close'.
42445         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
42446         define to an error symbol or to a warning, if suitable.
42447         * lib/close.c: Include <sys/socket.h>.
42448         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
42449         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
42450         UNISTD_H_HAVE_WINSOCK2_H.
42451         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
42452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42453         UNISTD_H_HAVE_WINSOCK2_H.
42454         * modules/sys_socket (Files): Add m4/unistd_h.m4.
42455         (configure.ac): Set a module indicator.
42456         (Makefile.am): Substitute GNULIB_CLOSE.
42457         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
42458         * modules/poll-tests (Depends-on): Add close.
42459         * modules/select-tests (Depends-on): Likewise.
42460
42461 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42462             Bruno Haible  <bruno@clisp.org>
42463
42464         New module 'close'.
42465         * modules/close: New file.
42466         * lib/unistd.in.h (close): Move declaration out of the
42467         FCHDIR_REPLACEMENT scope.
42468         (_gl_unregister_fd): New declaration.
42469         * lib/close.c: New file.
42470         * lib/fchdir.c (rpl_close): Remove function.
42471         * m4/close.m4: New file.
42472         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42473         close.
42474         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
42475         REPLACE_CLOSE.
42476         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
42477         REPLACE_CLOSE.
42478         * modules/fchdir (Depends-on): Add close.
42479
42480 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42481             Bruno Haible  <bruno@clisp.org>
42482
42483         * lib/fcntl.in.h (open): Simplify conditionals.
42484         (_gl_register_fd): New declaration.
42485         * lib/fchdir.c (rpl_open): Remove function.
42486         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
42487         also.
42488         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
42489         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42490         open.
42491
42492 2008-10-09  Jim Meyering  <meyering@redhat.com>
42493
42494         GNUmakefile: use the more name-space-friendly "_version"
42495         * top/GNUmakefile (_dummy): Update.
42496         (_version): Rename from "version".
42497
42498 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42499             Bruno Haible  <bruno@clisp.org>
42500
42501         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
42502         rpl_close.
42503         (_gl_register_fd): New function, extracted from rpl_open.
42504         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
42505         (rpl_open, rpl_opendir): Use _gl_register_fd.
42506
42507 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42508
42509         Fix organization of 'open' replacement.
42510         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
42511         (gl_FUNC_OPEN): Use it.
42512         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
42513
42514 2008-10-08  Bruno Haible  <bruno@clisp.org>
42515
42516         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
42517
42518 2008-10-08  Simon Josefsson  <simon@josefsson.org>
42519
42520         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
42521         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
42522         listen).
42523
42524 2008-10-08  Eric Blake  <ebb9@byu.net>
42525
42526         GNUmakefile: add 'make version' target
42527         * top/GNUmakefile (_curr-ver): Split version update rules...
42528         (version): ...into a target.
42529
42530 2008-10-07  Bruno Haible  <bruno@clisp.org>
42531
42532         Use a more portable replacement expression for -0.0L.
42533         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
42534         instead of -0.0L. Fix m4 quotation.
42535
42536         * tests/test-signbit.c: Include <float.h>.
42537         (minus_zero): New variable.
42538         (test_signbitl): Use minus_zero instead of -zero.
42539         * modules/signbit-tests (Depends-on): Add float.
42540
42541         * tests/test-ceill.c: Include <float.h>.
42542         (zero): Remove variable.
42543         (minus_zero): New variable.
42544         (main): Use minus_zero instead of -zero.
42545         * modules/ceill-tests (Depends-on): Add float.
42546
42547         * tests/test-floorl.c: Include <float.h>.
42548         (zero): Remove variable.
42549         (minus_zero): New variable.
42550         (main): Use minus_zero instead of -zero.
42551         * modules/floorl-tests (Depends-on): Add float.
42552
42553         * tests/test-roundl.c: Include <float.h>.
42554         (zero): Remove variable.
42555         (minus_zero): New variable.
42556         (main): Use minus_zero instead of -zero.
42557         * modules/roundl-tests (Depends-on): Add float.
42558
42559         * tests/test-truncl.c: Include <float.h>.
42560         (zero): Remove variable.
42561         (minus_zero): New variable.
42562         (main): Use minus_zero instead of -zero.
42563         * modules/truncl-tests (Depends-on): Add float.
42564
42565         * tests/test-frexpl.c (zero): Remove variable.
42566         (minus_zero): New variable.
42567         (main): Use minus_zero instead of -zero.
42568         * modules/frexpl-tests (Depends-on): Add float.
42569
42570         * tests/test-isnan.c (zerol): Remove variable.
42571         (minus_zerol): New variable.
42572         (test_long_double): Use minus_zerol instead of -zerol.
42573         * modules/isnan-tests (Depends-on): Add float.
42574
42575         * tests/test-isnanl.h (zero): Remove variable.
42576         (minus_zero): New variable.
42577         (main): Use minus_zero instead of -zero.
42578         * modules/isnanl-nolibm-tests (Depends-on): Add float.
42579         * modules/isnanl-tests (Depends-on): Add float.
42580
42581         * tests/test-ldexpl.c (zero): Remove variable.
42582         (minus_zero): New variable.
42583         (main): Use minus_zero instead of -zero.
42584         * modules/ldexpl-tests (Depends-on): Add float.
42585
42586         * tests/test-snprintf-posix.h (zerol): Remove variable.
42587         (minus_zerol): New variable.
42588         (test_function): Use minus_zerol instead of -zerol.
42589         * modules/snprintf-posix-tests (Depends-on): Add float.
42590         * modules/vsnprintf-posix-tests (Depends-on): Add float.
42591
42592         * tests/test-sprintf-posix.h (zerol): Remove variable.
42593         (minus_zerol): New variable.
42594         (test_function): Use minus_zerol instead of -zerol.
42595         * modules/sprintf-posix-tests (Depends-on): Add float.
42596         * modules/vsprintf-posix-tests (Depends-on): Add float.
42597
42598         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
42599         (minus_zerol): New variable.
42600         (test_function): Use minus_zerol instead of -zerol.
42601         * modules/vasnprintf-posix-tests (Depends-on): Add float.
42602
42603         * tests/test-vasprintf-posix.c (zerol): Remove variable.
42604         (minus_zerol): New variable.
42605         (test_function): Use minus_zerol instead of -zerol.
42606         * modules/vasprintf-posix-tests (Depends-on): Add float.
42607
42608 2008-10-07  Simon Josefsson  <simon@josefsson.org>
42609
42610         * MODULES.html.sh (Support for building documentation): Mention
42611         pmccabe2html.  Sort entries.
42612
42613         Add pmccabe2html module, from gnupdf.
42614         * build-aux/pmccabe.css: New file.
42615         * build-aux/pmccabe2html: New file.
42616         * m4/pmccabe2html.m4: New file.
42617         * modules/pmccabe2html: New file.
42618
42619 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
42620
42621         flock: new module
42622         * MODULES.html.sh: Add to list of modules.
42623         * lib/flock.c: flock implementation for Windows and Unix systems
42624         which have fcntl.
42625         * doc/glibc-functions/flock.texi: Update documentation.
42626         * lib/sys_file.in.h: <sys/file.h> header file.
42627         * m4/flock.m4: M4 macros.
42628         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
42629         * modules/flock: flock module.
42630         * modules/flock-tests: flock tests module.
42631         * modules/sys_file: sys/file.h module.
42632         * tests/test-flock.c: test suite for flock.
42633
42634 2008-10-06  Jim Meyering  <meyering@redhat.com>
42635
42636         bootstrap: check for LT_INIT more portably still ;-)
42637         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
42638         Spotted by Bruno Haible.
42639
42640 2008-10-06  Eric Blake  <ebb9@byu.net>
42641
42642         test-signbit: avoid tripping Irix cc bug on -0.0L
42643         * tests/test-signbit.c (minus_zerol): Delete, and replace with
42644         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
42645         entire testsuite consistent and avoids an Irix 6.2 bug.
42646
42647 2008-10-05  Bruno Haible  <bruno@clisp.org>
42648             Jim Meyering  <jim@meyering.net>
42649
42650         Add an option for ignoring EPIPE during close_stdout.
42651         * lib/closeout.h: Include <stdbool.h>.
42652         (close_stdout_set_ignore_EPIPE): New declaration.
42653         * lib/closeout.c: Include <stdbool.h>.
42654         (ignore_EPIPE): New variable.
42655         (close_stdout_set_ignore_EPIPE): New function.
42656         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
42657         * lib/close-stream.c (close_stream): Mention the possible EPIPE
42658         failure.
42659         * modules/closeout (Depends-on): Add stdbool.
42660
42661 2008-10-05  Bruno Haible  <bruno@clisp.org>
42662
42663         * modules/accept: New file.
42664         * modules/bind: New file.
42665         * modules/connect: New file.
42666         * modules/getpeername: New file.
42667         * modules/getsockname: New file.
42668         * modules/getsockopt: New file.
42669         * modules/listen: New file.
42670         * modules/recv: New file.
42671         * modules/recvfrom: New file.
42672         * modules/send: New file.
42673         * modules/sendto: New file.
42674         * modules/setsockopt: New file.
42675         * modules/socket: New file.
42676         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
42677         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
42678         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
42679         the particular module is requested. Add a link warning when the
42680         particular module is not requested.
42681         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
42682         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
42683         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
42684         the particular module is requested.
42685         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
42686         gl_SYS_SOCKET_H_DEFAULTS): New macros.
42687         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
42688         * modules/sys_socket (Depends-on): Add link-warning.
42689         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
42690         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
42691         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
42692         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
42693         GL_LINK_WARNING.
42694         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
42695         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
42696         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
42697         * doc/posix-functions/getpeername.texi: Mention the new module
42698         'getpeername'.
42699         * doc/posix-functions/getsockname.texi: Mention the new module
42700         'getsockname'.
42701         * doc/posix-functions/getsockopt.texi: Mention the new module
42702         'getsockopt'.
42703         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
42704         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
42705         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
42706         * doc/posix-functions/send.texi: Mention the new module 'send'.
42707         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
42708         * doc/posix-functions/setsockopt.texi: Mention the new module
42709         'setsockopt'.
42710         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
42711         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
42712         listen, connect, accept.
42713         * modules/select-tests (Depends-on): Likewise.
42714
42715 2008-10-05  Bruno Haible  <bruno@clisp.org>
42716
42717         * lib/winsock.c (strerror): Remove unused #undef.
42718         (rpl_close): Remove unused local variable.
42719
42720         * modules/sys_socket (Depends-on); Add errno.
42721
42722 2008-10-05  Bruno Haible  <bruno@clisp.org>
42723
42724         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
42725         (select): Add a link warning when the 'select' module is not used.
42726         * modules/sys_select (Depends-on): Add link-warning.
42727         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
42728         Suggested by Paolo Bonzini.
42729
42730 2008-10-05  Jim Meyering  <meyering@redhat.com>
42731
42732         bootstrap: check for LT_INIT more portably
42733         * build-aux/bootstrap: Avoid using grep -E, since it's not
42734         portable enough.  Suggestion from Bruno Haible.
42735
42736 2008-10-05  Bruno Haible  <bruno@clisp.org>
42737
42738         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
42739         as being fixed by gnulib.
42740
42741 2008-10-05  Bruno Haible  <bruno@clisp.org>
42742
42743         * modules/select-tests: New file, mostly copied from
42744         modules/sys_select-tests.
42745         * tests/test-select.c: New file, mostly copied from
42746         tests/test-sys_select.c.
42747         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
42748         * modules/sys_select-tests (Depends-on): Remove all dependencies.
42749         (Makefile.am): Remove test_sys_select_LDADD.
42750
42751         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
42752         to an undefined symbol, for an error message.
42753         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
42754         (gl_SYS_SELECT_H_DEFAULTS): New macro.
42755         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
42756         winsock-select.c here.
42757         * modules/sys_select (Files): Remove lib/winsock-select.c.
42758         (Depends-on): Remove alloca.
42759         (Makefile.am): Substitute GNULIB_SELECT.
42760         * modules/select: New file.
42761         * doc/posix-functions/select.texi: Update.
42762
42763 2008-10-05  Bruno Haible  <bruno@clisp.org>
42764
42765         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
42766         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
42767         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
42768         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
42769         getdtablesize.
42770         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
42771         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
42772
42773 2008-10-05  Bruno Haible  <bruno@clisp.org>
42774
42775         * modules/getdtablesize-tests: New file.
42776         * tests/test-getdtablesize.c: New file.
42777
42778         New module 'getdtablesize'.
42779         * lib/unistd.in.h (getdtablesize): New declaration.
42780         * lib/getdtablesize.c: New file.
42781         * m4/getdtablesize.m4: New file.
42782         * modules/getdtablesize: New file.
42783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42784         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
42785         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
42786         HAVE_GETDTABLESIZE.
42787         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
42788
42789 2008-10-05  Bruno Haible  <bruno@clisp.org>
42790
42791         * modules/sched (Makefile.am): Fix typo.
42792         Reported by Simon Josefsson.
42793
42794 2008-10-05  Jim Meyering  <meyering@redhat.com>
42795
42796         bootstrap: check for LT_INIT, too
42797         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
42798         are deprecated.  Suggestion from Ralf Wildenhues.
42799
42800 2008-10-05  Bruno Haible  <bruno@clisp.org>
42801
42802         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
42803         overriding them by ours.
42804         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
42805
42806 2008-10-05  Jim Meyering  <meyering@redhat.com>
42807
42808         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
42809         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
42810         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
42811
42812 2008-10-04  Bruno Haible  <bruno@clisp.org>
42813
42814         * modules/dup2 (License): Change to LGPLv2+.
42815         * modules/sleep (License): Likewise.
42816         * modules/perror (License): Likewise.
42817         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
42818         Blake.
42819         * modules/signal (License): Likewise.
42820         * modules/sigprocmask (License): Likewise.
42821         * modules/raise (License): Change to LGPLv2+, with approval by Jim
42822         Meyering.
42823
42824 2008-10-04  Bruno Haible  <bruno@clisp.org>
42825
42826         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
42827         Reported by Rainer Tammer <tammer@tammer.net>.
42828
42829 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
42830             Bruno Haible  <bruno@clisp.org>
42831
42832         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
42833         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
42834         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
42835
42836 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
42837
42838         filevercmp: new module
42839         * lib/filevercmp.h: New function filevercmp comparing version strings.
42840         * lib/filevercmp.c: Implementation of filevercmp function.
42841         * modules/filevercmp: Module metadata.
42842         * tests/test-filevercmp.c: Unit test for new module.
42843         * modules/filevercmp-tests: Unit test metadata.
42844         * MODULES.html.sh: Add filevercmp module.
42845
42846 2008-10-03  Bruno Haible  <bruno@clisp.org>
42847
42848         * lib/c-ctype.h: Add comment.
42849         Reported by Jim Meyering.
42850
42851 2008-10-02  Bruno Haible  <bruno@clisp.org>
42852
42853         * modules/posix_spawn-internal (Depends-on): Add 'open'.
42854
42855 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42856
42857         * build-aux/bootstrap: Allow renaming bootstrap, and change the
42858         name of bootstrap.conf accordingly.
42859
42860 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42861
42862         * build-aux/bootstrap: Install git-merge-changelog configuration
42863         items into .gitconfig if needed.
42864
42865 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42866
42867         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
42868         git repository, and initialize/update it accordingly.
42869
42870 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
42871
42872         * modules/fsync-tests: New file.
42873         * tests/test-fsync.c: New file.
42874
42875         New module 'fsync'.
42876         * lib/fsync.c: New file.
42877         * m4/fsync.m4: New file.
42878         * modules/fsync: New file.
42879         * lib/unistd.in.h (fsync): New declaration.
42880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
42881         GNULIB_FSYNC and HAVE_FSYNC.
42882         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
42883         * MODULES.html.sh (posix_functions): Add fsync.
42884         * doc/posix-functions/fsync.texi: Mention the new module.
42885
42886 2008-10-02  Jim Meyering  <meyering@redhat.com>
42887
42888         fts.c: sync with similar code from coreutils' remove.c
42889         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
42890         Guard also with "#if defined __linux__", since for now at least,
42891         this code is Linux-kernel-specific.
42892
42893 2008-10-02  Jim Meyering  <meyering@redhat.com>
42894
42895         fts: bug fixes
42896         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
42897         Include <sys/vfs.h>, not <sys/statfs.h>.
42898
42899         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
42900         Include <sys/vfs.h>, not <sys/statfs.h>.
42901
42902 2008-10-01  Bruno Haible  <bruno@clisp.org>
42903
42904         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
42905         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
42906         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
42907         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
42908         * doc/posix-functions/posix_spawnp.texi: Likewise.
42909         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
42910         whether posix_spawn actually works.
42911         * m4/pipe.m4 (gl_PIPE): Likewise.
42912         * modules/execute (Files): Add m4/posix_spawn.m4.
42913         * modules/pipe (Files): Add m4/posix_spawn.m4.
42914         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
42915
42916 2008-10-01  Jim Meyering  <meyering@redhat.com>
42917
42918         remove trailing spaces
42919         * NEWS: Likewise.
42920         * lib/poll.c (poll): Likewise.
42921         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
42922         * lib/winsock.c (rpl_close): Likewise.
42923         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
42924         * modules/yield: Likewise.
42925         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
42926         * tests/test-sys_select.c (connect_to_socket): Likewise.
42927
42928         fts.c: adjust a new interface to be more generally useful
42929         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
42930         (fts_build): Adjust caller.
42931
42932 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42933
42934         * modules/cond-tests: New file.
42935         * tests/test-cond.c: New file.
42936
42937 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42938             Bruno Haible  <bruno@clisp.org>
42939
42940         * modules/cond (Dependencies): Add errno, time.
42941         * lib/glthread/cond.h: Include <time.h>.
42942         (gl_cond_define, gl_cond_define_initialized): Use the same definition
42943         across platforms.
42944
42945 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42946             Bruno Haible  <bruno@clisp.org>
42947
42948         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
42949
42950 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42951             Bruno Haible  <bruno@clisp.org>
42952
42953         * modules/tls-tests (Depends-on): Add thread, yield.
42954         (configure.ac): Remove all checks.
42955         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
42956         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42957         gl_thread_self): Remove definitions. Include glthread/thread.h and
42958         glthread/yield.h instead.
42959         (test_tls): Pass an additional NULL argument to gl_thread_join.
42960
42961 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42962             Bruno Haible  <bruno@clisp.org>
42963
42964         * modules/lock-tests (Depends-on): Add thread, yield.
42965         (configure.ac): Remove all checks.
42966         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
42967         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42968         gl_thread_self): Remove definitions. Include glthread/thread.h and
42969         glthread/yield.h instead.
42970         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
42971         additional NULL argument to gl_thread_join.
42972
42973 2008-09-30  Bruno Haible  <bruno@clisp.org>
42974
42975         Fix the Win32 implementation of the 'thread' module.
42976         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
42977         pointer type.
42978         (gl_thread_self): Invoke gl_thread_self_func.
42979         (gl_thread_self_func): New declaration.
42980         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
42981         (do_init_self_key, init_self_key): New functions.
42982         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
42983         Remove some fields.
42984         (running_threads, running_lock): Remove variables.
42985         (get_current_thread_handle): New function.
42986         (gl_thread_self_func, wrapper_func, glthread_create_func,
42987         glthread_join_func, gl_thread_exit_func): Largely rewritten and
42988         simplified.
42989
42990 2008-09-30  Bruno Haible  <bruno@clisp.org>
42991
42992         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
42993         files.
42994
42995 2008-09-30  Jim Meyering  <meyering@redhat.com>
42996
42997         fts.m4: correct the test for statfs.f_type
42998         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
42999         when checking for statfs.f_type.
43000
43001 2008-09-15  Simon Josefsson  <simon@josefsson.org>
43002
43003         tests: avoid some compiler warnings
43004         * tests/test-memchr.c (main): Pass NULL indirectly.
43005         * tests/test-getdate.c (main): Remove unused variable 'ret'.
43006
43007 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
43008
43009         getdate.y: disallow countable dayshifts like "4 yesterday ago"
43010         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
43011         exactly specified dayshifts.
43012         (dayshift): New rule.
43013         (rel): Add dayshift.
43014         (relative_time_table) [tomorrow, yesterday, today, now]:
43015         Use tDAY_SHIFT in place of tDAY_UNIT.
43016         * tests/test-getdate.c: Add tests for now-disallowed countable
43017         dayshifts, e.g., "4 yesterday ago".
43018
43019 2008-09-29  Bruno Haible  <bruno@clisp.org>
43020
43021         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
43022         * tests/test-posix_spawn1.in.sh: Renamed from
43023         tests/test-posix_spawn.in.sh.
43024         * tests/test-posix_spawn2.c: New file.
43025         * tests/test-posix_spawn2.in.sh: New file.
43026         * modules/posix_spawnp-tests (Files): Update.
43027         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
43028
43029 2008-09-29  Bruno Haible  <bruno@clisp.org>
43030
43031         Propagate effects of putenv/setenv/unsetenv to child processes.
43032         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
43033         * lib/pipe.c (create_pipe): Likewise.
43034
43035 2008-09-29  Bruno Haible  <bruno@clisp.org>
43036
43037         Enable use of shell scripts as executables in mingw.
43038         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
43039         run the program as a shell script.
43040         * lib/pipe.c (create_pipe): Likewise.
43041         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
43042         resulting array.
43043
43044 2008-09-29  Eric Blake  <ebb9@byu.net>
43045
43046         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
43047
43048 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
43049
43050         * doc/posix-functions/accept.texi: Update mingw problems.
43051         * doc/posix-functions/bind.texi: Update mingw problems.
43052         * doc/posix-functions/close.texi: Update mingw problems.
43053         * doc/posix-functions/connect.texi: Update mingw problems.
43054         * doc/posix-functions/getpeername.texi: Update mingw problems.
43055         * doc/posix-functions/getsockname.texi: Update mingw problems.
43056         * doc/posix-functions/getsockopt.texi: Update mingw problems.
43057         * doc/posix-functions/ioctl.texi: Update mingw problems.
43058         * doc/posix-functions/listen.texi: Update mingw problems.
43059         * doc/posix-functions/recv.texi: Update mingw problems.
43060         * doc/posix-functions/recvfrom.texi: Update mingw problems.
43061         * doc/posix-functions/select.texi: Update mingw problems.
43062         * doc/posix-functions/send.texi: Update mingw problems.
43063         * doc/posix-functions/sendto.texi: Update mingw problems.
43064         * doc/posix-functions/setsockopt.texi: Update mingw problems.
43065         * doc/posix-functions/socket.texi: Update mingw problems.
43066
43067 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
43068             Bruno Haible  <bruno@clisp.org>
43069
43070         * lib/sys_select.in.h: Include sys/time.h.
43071         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
43072         * modules/sys_select: Depend on sys_time.
43073         * tests/test-sys_select.c: Test that sys/select.h defines struct
43074         timeval fully.
43075
43076 2008-09-29  Bruno Haible  <bruno@clisp.org>
43077
43078         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
43079         * lib/sys_select.in.h: Likewise.
43080
43081 2008-09-29  Bruno Haible  <bruno@clisp.org>
43082
43083         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
43084
43085 2008-09-29  Bruno Haible  <bruno@clisp.org>
43086
43087         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
43088         Set LIBSOCKET instead of augmenting LIBS.
43089         * modules/sockets (Link): New section.
43090         * modules/sockets-tests (test_sockets_LDADD): New variable.
43091         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
43092         * modules/poll-tests (test_poll_LDADD): New variable.
43093         * NEWS: Document the change.
43094
43095 2008-09-29  Bruno Haible  <bruno@clisp.org>
43096
43097         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
43098         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
43099         ARPA_INET_H directly.
43100         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43101
43102 2008-09-28  Bruno Haible  <bruno@clisp.org>
43103
43104         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
43105         from gl_HEADER_SYS_SOCKET.
43106         (gl_HEADER_SYS_SOCKET): Invoke it.
43107         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43108
43109 2008-09-28  Bruno Haible  <bruno@clisp.org>
43110
43111         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
43112         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
43113         Needed on OSF/1 4.0.
43114
43115 2008-09-28  Bruno Haible  <bruno@clisp.org>
43116
43117         Override open more carefully.
43118         * lib/open.c (orig_open): New function.
43119         (rpl_open): Use orig_open instead of open.
43120         * lib/fcntl.in.h: Add special invocation convention.
43121         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
43122         (gl_FUNC_OPEN): Invoke it.
43123
43124         Override freopen more carefully.
43125         * lib/freopen.c (orig_freopen): New function.
43126         (rpl_freopen): Use orig_freopen instead of freopen.
43127         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
43128         (gl_FUNC_FREOPEN): Invoke it.
43129
43130         Override fopen more carefully.
43131         * lib/fopen.c (orig_fopen): New function.
43132         (rpl_fopen): Use orig_fopen instead of fopen.
43133         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
43134         (gl_FUNC_FOPEN): Invoke it.
43135         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
43136
43137 2008-09-28  Bruno Haible  <bruno@clisp.org>
43138
43139         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
43140         SIGPIPE.
43141
43142 2008-09-28  Bruno Haible  <bruno@clisp.org>
43143
43144         * tests/test-sigaction.c (handler, main): Disable the check whether
43145         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
43146         glibc systems with LinuxThreads.
43147
43148 2008-09-28  Bruno Haible  <bruno@clisp.org>
43149
43150         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
43151
43152         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
43153         with AIX xlc.
43154         * lib/fcntl.in.h (open): Likewise.
43155         Reported by Rainer Tammer <tammer@tammer.net>.
43156
43157 2008-09-28  Bruno Haible  <bruno@clisp.org>
43158
43159         * modules/posix_spawnp-tests: New file.
43160         * tests/test-posix_spawn.c: New file.
43161         * tests/test-posix_spawn.in.sh: New file.
43162
43163         New module 'posix_spawnp'.
43164         * modules/posix_spawnp: New file.
43165         * lib/spawnp.c: New file, from GNU libc with modifications.
43166         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
43167
43168         New module 'posix_spawn'.
43169         * modules/posix_spawn: New file.
43170         * lib/spawn.c: New file, from GNU libc with modifications.
43171         * doc/posix-functions/posix_spawn.texi: Mention the new module.
43172
43173         New module 'posix_spawnattr_destroy'.
43174         * modules/posix_spawnattr_destroy: New file.
43175         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
43176         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
43177         module.
43178
43179         New module 'posix_spawnattr_setsigmask'.
43180         * modules/posix_spawnattr_setsigmask: New file.
43181         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
43182         modifications.
43183         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
43184         new module.
43185
43186         New module 'posix_spawnattr_getsigmask'.
43187         * modules/posix_spawnattr_getsigmask: New file.
43188         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
43189         modifications.
43190         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
43191         new module.
43192
43193         New module 'posix_spawnattr_setsigdefault'.
43194         * modules/posix_spawnattr_setsigdefault: New file.
43195         * lib/spawnattr_setdefault.c: New file, from GNU libc with
43196         modifications.
43197         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
43198         new module.
43199
43200         New module 'posix_spawnattr_getsigdefault'.
43201         * modules/posix_spawnattr_getsigdefault: New file.
43202         * lib/spawnattr_getdefault.c: New file, from GNU libc with
43203         modifications.
43204         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
43205         new module.
43206
43207         New module 'posix_spawnattr_setschedpolicy'.
43208         * modules/posix_spawnattr_setschedpolicy: New file.
43209         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
43210         modifications.
43211         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
43212         new module.
43213
43214         New module 'posix_spawnattr_getschedpolicy'.
43215         * modules/posix_spawnattr_getschedpolicy: New file.
43216         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
43217         modifications.
43218         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
43219         new module.
43220
43221         New module 'posix_spawnattr_setschedparam'.
43222         * modules/posix_spawnattr_setschedparam: New file.
43223         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
43224         modifications.
43225         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
43226         new module.
43227
43228         New module 'posix_spawnattr_getschedparam'.
43229         * modules/posix_spawnattr_getschedparam: New file.
43230         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
43231         modifications.
43232         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
43233         new module.
43234
43235         New module 'posix_spawnattr_setpgroup'.
43236         * modules/posix_spawnattr_setpgroup: New file.
43237         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
43238         modifications.
43239         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
43240         module.
43241
43242         New module 'posix_spawnattr_getpgroup'.
43243         * modules/posix_spawnattr_getpgroup: New file.
43244         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
43245         modifications.
43246         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
43247         module.
43248
43249         New module 'posix_spawnattr_setflags'.
43250         * modules/posix_spawnattr_setflags: New file.
43251         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
43252         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
43253         module.
43254
43255         New module 'posix_spawnattr_getflags'.
43256         * modules/posix_spawnattr_getflags: New file.
43257         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
43258         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
43259         module.
43260
43261         New module 'posix_spawnattr_init'.
43262         * modules/posix_spawnattr_init: New file.
43263         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
43264         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
43265         module.
43266
43267         New module 'posix_spawn_file_actions_destroy'.
43268         * modules/posix_spawn_file_actions_destroy: New file.
43269         * lib/spawn_faction_destroy.c: New file, from GNU libc with
43270         modifications.
43271         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
43272         the new module.
43273
43274         New module 'posix_spawn_file_actions_addopen'.
43275         * modules/posix_spawn_file_actions_addopen: New file.
43276         * lib/spawn_faction_addopen.c: New file, from GNU libc with
43277         modifications.
43278         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
43279         the new module.
43280
43281         New module 'posix_spawn_file_actions_adddup2'.
43282         * modules/posix_spawn_file_actions_adddup2: New file.
43283         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
43284         modifications.
43285         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
43286         the new module.
43287
43288         New module 'posix_spawn_file_actions_addclose'.
43289         * modules/posix_spawn_file_actions_addclose: New file.
43290         * lib/spawn_faction_addclose.c: New file, from GNU libc with
43291         modifications.
43292         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
43293         the new module.
43294
43295         New module 'posix_spawn_file_actions_init'.
43296         * modules/posix_spawn_file_actions_init: New file.
43297         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
43298         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
43299         new module.
43300
43301         New module 'posix_spawn-internal'.
43302         * modules/posix_spawn-internal: New file.
43303         * lib/spawn_int.h: New file, from GNU libc with modifications.
43304         * lib/spawni.c: New file, from GNU libc with modifications.
43305         * m4/posix_spawn.m4: New file.
43306
43307         New module 'spawn'.
43308         * modules/spawn: New file.
43309         * lib/spawn.in.h: New file, from GNU libc with modifications.
43310         * m4/spawn_h.m4: New file.
43311         * doc/posix-headers/spawn.texi: Mention the new module.
43312
43313 2008-09-28  Bruno Haible  <bruno@clisp.org>
43314
43315         * modules/sched-tests: New file.
43316         * tests/test-sched.c: New file.
43317
43318         New module 'sched'.
43319         * modules/sched: New file.
43320         * lib/sched.in.h: New file.
43321         * m4/sched_h.m4: New file.
43322         * doc/posix-headers/sched.texi: Mention the new module.
43323
43324 2008-09-27  Eric Blake  <ebb9@byu.net>
43325
43326         Fix previous patch, and tweak references to $0.
43327         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
43328         (func_version, func_gnulib_dir): Don't call this program
43329         gnulib-tool.
43330         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
43331         with using $0 in function.
43332         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
43333         (func_fatal_error): Reuse the name the user invoked us with.
43334
43335 2008-09-27  Bruno Haible  <bruno@clisp.org>
43336
43337         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
43338         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
43339         (gl_ICONV_H): Not here.
43340         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
43341         instead of assigning ICONV_H directly.
43342
43343         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
43344         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
43345         WCHAR_H directly.
43346
43347 2008-09-27  Bruno Haible  <bruno@clisp.org>
43348
43349         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
43350         * modules/arpa_inet (Depends-on): Add link-warning.
43351         (Makefile.am): Insert the definition of GL_LINK-WARNING.
43352         * modules/unistd (Makefile.am): Likewise.
43353
43354 2008-09-26  Bruno Haible  <bruno@clisp.org>
43355
43356         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
43357         variables.
43358         (func_version): Essentially copied from gnulib-tool.
43359         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
43360         func_readlink): Copied from gnulib-tool.
43361
43362 2008-09-26  Bruno Haible  <bruno@clisp.org>
43363
43364         * gnulib-tool (func_version): Change directory to $gnulib_dir before
43365         invoking git-version-gen.
43366
43367 2008-09-26  Bruno Haible  <bruno@clisp.org>
43368
43369         * posix-modules: Update to directory names changed on 2008-01-19.
43370         Remove commas in output before splitting into words. No more need to
43371         avoid 'ftruncate' since 2007-02-19.
43372
43373 2008-09-26  Bruno Haible  <bruno@clisp.org>
43374
43375         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
43376
43377 2008-09-26  Bruno Haible  <bruno@clisp.org>
43378
43379         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
43380         * modules/fwriteerror (Depends-on): Add errno.
43381
43382 2008-09-26  Bruno Haible  <bruno@clisp.org>
43383
43384         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
43385         * tests/test-vc-list-files-cvs.sh: Likewise.
43386
43387 2008-09-26  Bruno Haible  <bruno@clisp.org>
43388
43389         * doc/posix-headers/sys_resource.texi: Reorder items.
43390
43391 2008-09-26  Jim Meyering  <meyering@redhat.com>
43392
43393         fts: tweak inode comparison function
43394         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
43395         inode numbers, as documented.
43396
43397         fts: sort dirent entries on inode number before traversing
43398         This avoids a quadratic, seek-related performance penalty when
43399         operating on a directory containing many entries (measurable at 10k;
43400         3.5 hours at 2 million entries with a cold cache) on certain types
43401         of file systems, including ext3 and ext4, but not tmpfs.
43402         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
43403         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
43404         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
43405         (fs_handles_readdir_ordered_dirents_efficiently): New function.
43406         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
43407         (fts_build): Set the stat.st_ino member from D_INO.
43408         If it is likely to be useful, sort dirent entries on inode number.
43409
43410         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
43411         and the struct statfs.f_type member.
43412         * modules/fts (Depends-on): Add d-ino.
43413
43414 2008-09-26  Bruno Haible  <bruno@clisp.org>
43415
43416         * modules/sigpipe-die (Depends-on): Add sigpipe.
43417
43418         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
43419         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
43420         and GNULIB_STDIO_H_SIGPIPE are set.
43421         * lib/stdio-write.c: New file.
43422         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
43423         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43424         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43425         REPLACE_STDIO_WRITE_FUNCS.
43426         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
43427         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43428         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43429         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43430         * modules/stdio (Files): Add lib/stdio-write.c.
43431         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
43432         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43433         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43434         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43435         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
43436         REPLACE_FPRINTF_POSIX.
43437         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
43438         REPLACE_PRINTF_POSIX.
43439         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
43440         REPLACE_VFPRINTF_POSIX.
43441         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
43442         REPLACE_VPRINTF_POSIX.
43443         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
43444         SIGPIPE issue.
43445         * doc/posix-functions/fputc.texi: Likewise.
43446         * doc/posix-functions/fputs.texi: Likewise.
43447         * doc/posix-functions/fwrite.texi: Likewise.
43448         * doc/posix-functions/printf.texi: Likewise.
43449         * doc/posix-functions/putc.texi: Likewise.
43450         * doc/posix-functions/putchar.texi: Likewise.
43451         * doc/posix-functions/puts.texi: Likewise.
43452         * doc/posix-functions/vfprintf.texi: Likewise.
43453         * doc/posix-functions/vprintf.texi: Likewise.
43454
43455         * modules/safe-write (Depends-on): Add write.
43456
43457         * modules/sigpipe-tests: New file.
43458         * tests/test-sigpipe.c: New file.
43459         * tests/test-sigpipe.sh: New file.
43460
43461         * modules/write: New file.
43462         * lib/unistd.in.h: Include <sys/types.h>.
43463         (write): New declaration.
43464         * lib/write.c: New file.
43465         * m4/write.m4: New file.
43466         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43467         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
43468         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
43469         GNULIB_WRITE, REPLACE_WRITE.
43470         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
43471         and the SIGPIPE issue.
43472
43473         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
43474         (raise): New declaration.
43475         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
43476         (ext_signal): New function.
43477         (rpl_raise): New function.
43478         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
43479         GNULIB_SIGNAL_H_SIGPIPE.
43480         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
43481         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
43482
43483         * modules/sigpipe: New file.
43484         * m4/sigpipe.m4: New file.
43485
43486 2008-09-25  Derek Price  <derek@ximbiot.com>
43487             Bruno Haible  <bruno@clisp.org>
43488
43489         * gnulib-tool (func_import): Report all license incompatibilities, not
43490         just the first one.
43491
43492 2008-09-25  Bruno Haible  <bruno@clisp.org>
43493
43494         * gnulib-tool (func_import): When computing the edits, consider not
43495         only the Makefile.ams that exist but also those that will be generated.
43496
43497 2008-09-25  Simon Josefsson  <simon@josefsson.org>
43498
43499         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
43500         fixes gnulib-tool --test warning about duplicate dependency.
43501
43502 2008-09-25  Bruno Haible  <bruno@clisp.org>
43503
43504         * gnulib-tool: Don't ask the user to perform edits in the generated
43505         Makefile.ams.
43506         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
43507         apply to the Makefile.am being generated.
43508         (func_emit_tests_Makefile_am): Execute edits that apply to the
43509         Makefile.am being generated.
43510         (func_import): Setup list of Makefile.am edits before emitting the
43511         Makefile.ams, not at the end.
43512         (func_create_testdir): Update.
43513         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43514
43515 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43516
43517         * gnulib-tool (func_import): Store the --tests-base option in the
43518         comment in gnulib-cache.m4.
43519
43520 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
43521
43522         * NEWS: Document increased portability that sys_select now provides.
43523
43524         * lib/sys_select.in.h: Install select wrapper.
43525         * lib/sys_socket.in.h: Use more descriptive name when there is no
43526         select wrapper.
43527         * lib/winsock-select.c: New.
43528         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
43529         Require gl_HEADER_SYS_SOCKET.
43530         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
43531         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
43532         * tests/test-sys_select.c: Add functional tests.
43533
43534 2008-09-24  Eric Blake  <ebb9@byu.net>
43535
43536         open, fopen: close fd leak in last patch
43537         * lib/open.c (rpl_open): Close fd before returning error.
43538         * lib/fopen.c (rpl_fopen): Close fd before returning error.
43539         * doc/posix-functions/open.texi (open): Document that Irix also
43540         has the bug.
43541         * doc/posix-functions/fopen.texi (fopen): Likewise.
43542         Reported by Paolo Bonzini.
43543
43544 2008-09-24  Bruno Haible  <bruno@clisp.org>
43545
43546         Ensure that a filename ending in a slash cannot be used to access a
43547         non-directory.
43548         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
43549         to check whether it's really a directory.
43550         * lib/fopen.c: Include fcntl.h, unistd.h.
43551         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
43552         and fdopen().
43553         * modules/fopen (Depends-on): Add unistd.
43554         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
43555         * tests/test-fopen.c (main): Likewise.
43556         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
43557         * doc/posix-functions/fopen.texi: Likewise.
43558         Reported by Eric Blake.
43559
43560 2008-09-23  Eric Blake  <ebb9@byu.net>
43561
43562         c-stack: avoid compiler optimizations when provoking overflow
43563         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
43564         recursion harder to optimize, to ensure a stack overflow occurs.
43565         * tests/test-c-stack.c (recurse): Likewise.
43566         Borrowed from libsigsegv.
43567
43568         c-stack: work around Irix sigaltstack bug
43569         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
43570         whether sigaltstack uses wrong end of stack_t (copied in part from
43571         libsigsegv).
43572         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
43573         Irix bug, without requiring an over-allocation.
43574         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
43575         bug.
43576
43577         fopen: document mingw bug on directories
43578         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
43579         not allowing a stream visiting a directory, even though reading
43580         from such a stream is not portable.
43581
43582 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43583
43584         * lib/poll.c: Rewrite.
43585         * modules/poll: Depend on alloca.
43586
43587 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43588
43589         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
43590         instead define prototypes for a full set of wrappers.  Ensure
43591         that Cygwin does not use the compatibility code, which is only
43592         for MinGW.
43593         * lib/winsock.c: New.
43594         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
43595         * modules/sys_socket: Add lib/winsock.c.
43596
43597         * modules/poll-tests: Add errno and perror.
43598         * tests/test-poll.c: Use ioctl, not ioctlsocket.
43599
43600 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43601
43602         * tests/test-poll.c: Downgrade minimum needed Winsock version.
43603
43604 2008-09-23  Bruno Haible  <bruno@clisp.org>
43605
43606         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
43607         * doc/glibc-functions/*: Likewise.
43608
43609 2008-09-23  Simon Josefsson  <simon@josefsson.org>
43610
43611         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
43612         success.
43613
43614 2008-09-22  Eric Blake  <ebb9@byu.net>
43615             Bruno Haible  <bruno@clisp.org>
43616
43617         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
43618         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
43619         supply %A but mishandle pseudo-NaN.
43620         Reported by Simon Josefsson.
43621
43622 2008-09-21  Bruno Haible  <bruno@clisp.org>
43623
43624         * tests/test-lock.c (main): Tweak skip message.
43625         * tests/test-tls.c (main): Likewise.
43626
43627 2008-09-21  Bruno Haible  <bruno@clisp.org>
43628
43629         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
43630         whether 'struct sigaction' has sa_sigaction here...
43631         (gl_PREREQ_SIG_HANDLER_H): ... not here.
43632         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
43633
43634 2008-09-21  Bruno Haible  <bruno@clisp.org>
43635
43636         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
43637         section.
43638         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
43639         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
43640         the new section.
43641         (Support for obsolete systems lacking POSIX:2001): New section.
43642         (String handling <string.h>): Move strdup to the new section.
43643         Suggested by Simon Josefsson and Paolo Bonzini.
43644
43645 2008-09-21  Bruno Haible  <bruno@clisp.org>
43646
43647         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
43648         exponents in %e and %g results on 'long double'. Needed for mingw's
43649         improved *printf functions.
43650         * tests/test-vasprintf-posix.c (test_function): Likewise.
43651         * tests/test-snprintf-posix.h (test_function): Likewise.
43652         * tests/test-sprintf-posix.h (test_function): Likewise.
43653         Reported by Eric Blake.
43654
43655 2008-09-21  Bruno Haible  <bruno@clisp.org>
43656
43657         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
43658         * tests/test-sprintf-posix.h (test_function): Likewise.
43659
43660 2008-09-21  Bruno Haible  <bruno@clisp.org>
43661
43662         * modules/getpass (Depends-on): Add strdup-posix.
43663
43664         New module 'strdup-posix'.
43665         * modules/strdup-posix: New file.
43666         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
43667         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
43668         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43669         REPLACE_STRDUP.
43670         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
43671         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
43672         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43673         strdup-posix.
43674
43675         * modules/strdup (Depends-on): Remove malloc-posix.
43676
43677 2008-09-20  Bruno Haible  <bruno@clisp.org>
43678
43679         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
43680         Wildenhues.
43681
43682 2008-09-20  Bruno Haible  <bruno@clisp.org>
43683
43684         Ensure that wint_t gets defined on IRIX 5.3.
43685         * lib/wchar.in.h (wint_t): Define if not defined by the system.
43686         * lib/wctype.in.h (wint_t): Likewise.
43687         (__wctype_wint_t): Remove type.
43688         (isw*): Use wint_t instead of __wctype_wint_t.
43689         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
43690         * modules/wchar (Files): Add m4/wint_t.m4.
43691         (Makefile.am): Substitute HAVE_WINT_T.
43692         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
43693         * tests/test-wctype.c: Check that wint_t is defined.
43694         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
43695         * doc/posix-headers/wctype.texi: Likewise.
43696         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43697
43698 2008-09-18  Bruno Haible  <bruno@clisp.org>
43699
43700         * gnulib-tool (func_exit): Update comment.
43701
43702 2008-09-18  Simon Josefsson  <simon@josefsson.org>
43703
43704         * modules/getaddrinfo (Depends-on): Remove strdup, this module
43705         assumes strdup exists and does not depend on strdup to return
43706         ENOMEM on out of memory conditions.
43707
43708 2008-09-18  Bruno Haible  <bruno@clisp.org>
43709
43710         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
43711         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
43712         digits for the exponent.
43713
43714 2008-09-18  Jim Meyering  <meyering@redhat.com>
43715             Bruno Haible  <bruno@clisp.org>
43716
43717         * lib/vasnprintf.c (decimal_point_char): Define also if
43718         NEED_PRINTF_INFINITE_LONG_DOUBLE.
43719
43720 2008-09-16  Bruno Haible  <bruno@clisp.org>
43721         and Eric Blake  <ebb9@byu.net>
43722
43723         vasnprintf: support Irix 5.3
43724         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
43725         that mishandle long double infinity.
43726         Reported by Tom G. Christensen.
43727
43728 2008-09-16  Bruno Haible  <bruno@clisp.org>
43729
43730         * doc/glibc-functions/scandir.texi: Mention the function is missing on
43731         Solaris 9.
43732         * doc/glibc-functions/alphasort.texi: Likewise.
43733         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
43734
43735 2008-09-16  Jim Meyering  <meyering@redhat.com>
43736
43737         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
43738         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
43739         a umask modification leak out of a subshell.  Otherwise, the
43740         opensolaris /bin/sh would be accepted and thus cause unwarranted
43741         failures in the coreutils test suite.
43742
43743 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
43744
43745         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
43746         to succeed.
43747
43748 2008-09-16  Jim Meyering  <meyering@redhat.com>
43749
43750         avoid spurious test failure when library is built without ACL support
43751         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
43752         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
43753         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
43754         * tests/test-copy-acl.sh: Likewise.
43755
43756 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43757
43758         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
43759         based on character occurrence counts.
43760
43761 2008-09-15  Eric Blake  <ebb9@byu.net>
43762
43763         tests: avoid some compiler warnings
43764         * tests/test-memchr.c (main): Pass NULL indirectly.
43765         * tests/test-closein.c (main): Avoid unused variable.
43766
43767 2008-09-15  Bruno Haible  <bruno@clisp.org>
43768
43769         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
43770         are missing on OpenBSD 4.0 individually.
43771         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43772
43773 2008-09-15  Bruno Haible  <bruno@clisp.org>
43774
43775         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
43776         * doc/posix-functions/strerror.texi: Mention also Cygwin.
43777         * doc/posix-functions/perror.texi: Likewise.
43778         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
43779         is missing.
43780         Reported by Eric Blake.
43781
43782         * lib/errno.in.h: Use replacement values >= 2000.
43783         Reported by Eric Blake.
43784
43785 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43786
43787         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
43788         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
43789         limit.
43790         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
43791         compareseq was aborted.
43792
43793 2008-09-14  Bruno Haible  <bruno@clisp.org>
43794
43795         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
43796         yvec_edit_count.
43797         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
43798         (fstrcmp_bounded): Simplify result computation accordingly.
43799
43800 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43801
43802         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
43803         (fstrcmp): Define in terms of fstrcmp_bounded.
43804         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
43805         lower_bound argument.
43806         Return quickly if the result is certainly < lower_bound.
43807         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
43808
43809 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43810
43811         * lib/diffseq.h (EARLY_ABORT): New macro.
43812         (compareseq): Change return type to bool. Return true when EARLY_ABORT
43813         evaluates to true.
43814
43815 2008-09-14  Bruno Haible  <bruno@clisp.org>
43816
43817         * modules/perror-tests: New file.
43818         * tests/test-perror.sh: New file.
43819         * tests/test-perror.c: New file.
43820
43821         New module 'perror'.
43822         * lib/stdio.in.h (perror): New declaration.
43823         * lib/perror.c: New file.
43824         * m4/perror.m4: New file.
43825         * modules/perror: New file.
43826         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
43827         * doc/posix-functions/perror.texi: Mention the perror module.
43828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
43829         REPLACE_PERROR.
43830         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
43831         REPLACE_PERROR.
43832
43833 2008-09-14  Bruno Haible  <bruno@clisp.org>
43834
43835         * modules/stdio (Makefile.am): Reorder to match the order in
43836         lib/stdio.in.h.
43837         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43838
43839 2008-09-13  Bruno Haible  <bruno@clisp.org>
43840
43841         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
43842
43843 2008-09-13  Bruno Haible  <bruno@clisp.org>
43844
43845         Extend strerror to cover the added errno values.
43846         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
43847         (rpl_strerror): Provide error messages for the added errno values and
43848         for the WSA* values.
43849         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
43850         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
43851         strerror.
43852         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
43853         * modules/strerror (Depends-on): Add errno.
43854         * doc/posix-functions/strerror.texi: Document the change.
43855         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
43856         and EOVERFLOW.
43857
43858 2008-09-13  Bruno Haible  <bruno@clisp.org>
43859
43860         * modules/EOVERFLOW: Remove file.
43861         * m4/eoverflow.m4: Remove file.
43862         * modules/EOVERFLOW-tests: Remove file.
43863         * tests/test-EOVERFLOW.c: Remove file.
43864         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
43865         * modules/ftell (Depends-on): Likewise.
43866         * modules/getdelim (Depends-on): Likewise.
43867         * modules/getugroups (Depends-on): Likewise.
43868         * modules/poll (Depends-on): Likewise.
43869         * modules/snprintf (Depends-on): Likewise.
43870         * modules/sprintf-posix (Depends-on): Likewise.
43871         * modules/vasnprintf (Depends-on): Likewise.
43872         * modules/vasprintf (Depends-on): Likewise.
43873         * modules/vfprintf-posix (Depends-on): Likewise.
43874         * modules/vsnprintf (Depends-on): Likewise.
43875         * modules/vsprintf-posix (Depends-on): Likewise.
43876         * modules/xvasprintf (Depends-on): Likewise.
43877         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43878         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
43879         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
43880         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
43881         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43882         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
43883         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
43884         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
43885         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43886         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
43887         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
43888         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
43889         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43890         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
43891         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
43892         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
43893         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43894         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
43895         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
43896         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
43897         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43898         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
43899         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
43900         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
43901         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
43902         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43903         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
43904         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
43905         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
43906         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
43907         * MODULES.html.sh: Remove EOVERFLOW.
43908         * NEWS: Mention the change.
43909
43910 2008-09-13  Bruno Haible  <bruno@clisp.org>
43911
43912         * modules/errno-tests: New file.
43913         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
43914
43915         * lib/errno.in.h: New file.
43916         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
43917         * modules/errno: New file.
43918         * doc/posix-headers/errno.texi: Update documentation.
43919         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
43920
43921 2008-09-13  Bruno Haible  <bruno@clisp.org>
43922
43923         * tests/test-poll.c: Use #if for native Windows, rather than testing
43924         __MSVCRT__.
43925
43926 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43927             Bruno Haible  <bruno@clisp.org>
43928
43929         * lib/glob.c: Don't include <pwd.h> on native Windows.
43930         (WINDOWS32): New macro.
43931         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
43932
43933 2008-09-13  Bruno Haible  <bruno@clisp.org>
43934
43935         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
43936         (ETIMEDOUT): Remove macro.
43937         (glthread_cond_timedwait_multithreaded): New declaration.
43938         (glthread_cond_timedwait): Use it.
43939         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
43940         (glthread_cond_timedwait_multithreaded): New function.
43941
43942 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43943
43944         * modules/poll-tests: Do not check for io.h.
43945         * tests/test-poll.c: Check for __MSVCRT__ instead.
43946
43947 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43948
43949         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
43950         * modules/poll-tests: Add inet_pton, stdbool, sockets.
43951         * tests/test-poll.c: Use them.  Use _pipe on Windows.
43952
43953 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43954
43955         * modules/poll-tests: New.
43956         * tests/test-poll.c: New.
43957
43958 2008-09-12  Eric Blake  <ebb9@byu.net>
43959
43960         frexp: test for NetBSD failure on -0.0
43961         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
43962         not all, bugs from NetBSD 3.0 have been fixed.
43963         * doc/posix-functions/frexp.texi (frexp): Document bug.
43964         Reported by Thomas Klausner.
43965
43966         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
43967         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
43968         literal -0.0.
43969         Reported by Jonathan C. Patschke <jp@centtech.com>.
43970
43971 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43972
43973         * lib/glthread/cond.h: Use dummy implementation also if
43974         USE_WIN32_THREADS.
43975
43976 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43977
43978         * modules/fnmatch-posix (License): Change to LGPLv2+.
43979         * modules/fnmatch-gnu (License): Likewise.
43980
43981 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43982
43983         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
43984
43985 2008-09-11  Jim Meyering  <meyering@redhat.com>
43986
43987         * users.txt: Add gtk-vnc.
43988
43989 2008-09-08  Simon Josefsson  <simon@josefsson.org>
43990
43991         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
43992         rotate amounts.
43993
43994         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
43995         required for 16-bit and 8-bit rotates.
43996         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
43997         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
43998         UINT8_MAX instead of hard-coded constants.
43999         Suggested by Paul Eggert.
44000
44001 2008-09-07  Bruno Haible  <bruno@clisp.org>
44002
44003         * tests/test-striconveh.c (main): Check behaviour when converting from
44004         UTF-7.
44005
44006         Make striconveh work better with stateful encodings.
44007         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
44008         that iconv does not increment the inptr when returning -1/EINVAL.
44009
44010 2008-09-07  Bruno Haible  <bruno@clisp.org>
44011
44012         * build-aux/config.rpath: Update according to libtool-2.2.6.
44013         * build-aux/config.libpath: Likewise.
44014
44015 2008-09-06  Bruno Haible  <bruno@clisp.org>
44016
44017         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
44018         * lib/freadptr.c (freadptr): Likewise.
44019         * lib/freadseek.c (freadptrinc): Likewise.
44020         Reported by Simon Josefsson.
44021
44022 2008-09-06  Bruno Haible  <bruno@clisp.org>
44023
44024         * modules/freadptr (License): Change to LGPLv2+.
44025         * modules/freadseek (License): Likewise.
44026         Suggested by Eric Blake.
44027
44028         * modules/memchr2 (License): Change to LGPLv2+.
44029         Approved by Eric Blake.
44030
44031 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44032             Bruno Haible  <bruno@clisp.org>
44033
44034         Make gnulib-tool work with native 'sed' on AIX.
44035         * gnulib-tool (sed_noop): New variable.
44036         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
44037         func_add_or_update, func_create_testdir): Use it to initialize sed
44038         script variables.
44039         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44040
44041 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
44042             Bruno Haible  <bruno@clisp.org>
44043
44044         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
44045         also works after #include directives.
44046
44047 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
44048
44049         getdate.y: reject an out-of-range timezone value
44050         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
44051         the range [-24...+24].  When specified with only one or two digits,
44052         * tests/test-getdate.c: Tests for the fix.
44053         * doc/getdate.texi: Document this change.
44054
44055 2008-09-03  Bruno Haible  <bruno@clisp.org>
44056
44057         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
44058
44059 2008-09-02  Simon Josefsson  <simon@josefsson.org>
44060
44061         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
44062         <bruce.korb@gmail.com> with ideas from Ben Pfaff
44063         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
44064         Blake <ebb9@byu.net>.
44065
44066         * tests/test-bitrotate.c: Add more test vectors.
44067
44068 2008-09-02  Eric Blake  <ebb9@byu.net>
44069
44070         vasnprintf-posix: handle large precision via %.*d
44071         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
44072         when handling it ourselves.
44073         * tests/test-vasnprintf-posix.c (test_function): Add test.
44074         * tests/test-snprintf-posix.h (test_function): Likewise.
44075         * tests/test-sprintf-posix.h (test_function): Likewise.
44076         * tests/test-vasprintf-posix.c (test_function): Likewise.
44077         Reported by Alain Guibert.
44078
44079 2008-09-01  Eric Blake  <ebb9@byu.net>
44080
44081         c-stack: make configure-time check more robust
44082         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
44083         successful sigaction call.
44084         Reported by Tom G. Christensen.
44085
44086 2008-09-01  Bruno Haible  <bruno@clisp.org>
44087
44088         New module 'findprog-lgpl'.
44089         * modules/findprog-lgpl: New file.
44090         * lib/findprog-lgpl.c: New file.
44091         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
44092         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
44093         to decide whether to use strdup or xstrdup, concatenated_filename or
44094         xconcatenated_filename.
44095
44096 2008-09-01  Bruno Haible  <bruno@clisp.org>
44097
44098         Split module 'concat-filename' into 'concat-filename' (LGPL) and
44099         'xconcat-filename' (GPL).
44100         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
44101         (License): Change to LGPLv2+.
44102         * modules/xconcat-filename: New file.
44103         * lib/concat-filename.h (concatenated_filename): Change specification.
44104         (xconcatenated_filename): New declaration.
44105         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
44106         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
44107         memory situations.
44108         * lib/xconcat-filename.c: New file.
44109         * NEWS: Mention the change.
44110         * lib/findprog.c: Include concat-filename.h, not filename.h.
44111         (find_in_path): Use xconcatenated_filename instead of
44112         concatenated_filename.
44113         * lib/javacomp.c: Include concat-filename.h, not filename.h.
44114         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
44115         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
44116         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
44117         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
44118         instead of concatenated_filename.
44119         * lib/javaexec.c: Include concat-filename.h, not filename.h.
44120         (execute_java_class): Use xconcatenated_filename instead of
44121         concatenated_filename.
44122         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
44123         * modules/javacomp (Depends-on): Likewise.
44124         * modules/javaexec (Depends-on): Likewise.
44125
44126 2008-09-01  Bruno Haible  <bruno@clisp.org>
44127
44128         Split module 'filename' into 'filename' and 'concat-filename'.
44129         * modules/filename: Keep only lib/filename.h.
44130         (License): Change to LGPLv2+.
44131         * modules/concat-filename: New file, extracted from modules/filename.
44132         * lib/filename.h (concatenated_filename): Remove declaration.
44133         * lib/concat-filename.h: New file, extracted from lib/filename.h.
44134         * lib/concat-filename.c: Include concat-filename.h.
44135         * NEWS: Mention the change.
44136
44137 2008-09-01  Simon Josefsson  <simon@josefsson.org>
44138
44139         * lib/bitrotate.h (rotl8, rotr8): Add.
44140
44141         * modules/bitrotate (configure.ac): Need
44142         AC_REQUIRE([AC_C_INLINE]).
44143         (Description): Mention stdint.h.  Reported by Bruno Haible
44144         <bruno@clisp.org>.
44145
44146         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
44147         Paolo Bonzini <bonzini@gnu.org>.
44148
44149 2008-08-31  Bruno Haible  <bruno@clisp.org>
44150
44151         Assume Solaris specific bi-arch conventions on Solaris systems.
44152         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
44153         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
44154         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
44155         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
44156         like acl_libdirstem.
44157         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
44158         acl_libdirstem.
44159         * NEWS: Mention the change.
44160         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
44161
44162 2008-08-31  Jim Meyering  <meyering@redhat.com>
44163
44164         * lib/strftime.h: Add comments describing the two added arguments.
44165
44166         remove duplicate #include directives
44167         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
44168         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
44169
44170 2008-08-31  Bruno Haible  <bruno@clisp.org>
44171
44172         New module 'sigpipe-die'.
44173         * modules/sigpipe-die: New file.
44174         * lib/sigpipe-die.h: New file.
44175         * lib/sigpipe-die.c: New file.
44176         * MODULES.html.sh (Signal handling): Add sigpipe-die.
44177
44178 2008-08-31  Bruno Haible  <bruno@clisp.org>
44179
44180         Don't override previously installed signal handlers.
44181         * lib/fatal-signal.c (saved_sigactions): New variable.
44182         (uninstall_handlers): Reset the signal to the saved handler, not
44183         to SIG_DFL (except when ignored).
44184         (install_handlers): Save the previous handlers.
44185
44186 2008-08-30  Bruno Haible  <bruno@clisp.org>
44187
44188         * gnulib-tool (func_reset_sigpipe): New function.
44189         (func_get_automake_snippet, func_modules_transitive_closure,
44190         func_import): Invoke it before a join command that reads from stdin,
44191         to avoid "echo: write error: Broken pipe" error messages on stderr.
44192         Reported by Sam Steingold <sds@gnu.org>.
44193
44194 2008-08-30  Bruno Haible  <bruno@clisp.org>
44195
44196         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
44197         Code copied from m4/open.m4.
44198         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
44199         access and the filename ends in a slash. Code copied from lib/open.c.
44200         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
44201         * tests/test-fopen.c (main): Check against bug with trailing slash.
44202
44203 2008-08-29  Bruno Haible  <bruno@clisp.org>
44204
44205         Avoid some "gcc -pedantic" warnings.
44206         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
44207         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
44208         * lib/dirent.in.h: Likewise.
44209         * lib/fcntl.in.h: Likewise.
44210         * lib/float.in.h: Likewise.
44211         * lib/iconv.in.h: Likewise.
44212         * lib/inttypes.in.h: Likewise.
44213         * lib/locale.in.h: Likewise.
44214         * lib/math.in.h: Likewise.
44215         * lib/netinet_in.in.h: Likewise.
44216         * lib/search.in.h: Likewise.
44217         * lib/signal.in.h: Likewise.
44218         * lib/stdarg.in.h: Likewise.
44219         * lib/stdint.in.h: Likewise.
44220         * lib/stdio.in.h: Likewise.
44221         * lib/stdlib.in.h: Likewise.
44222         * lib/string.in.h: Likewise.
44223         * lib/strings.in.h: Likewise.
44224         * lib/sys_select.in.h: Likewise.
44225         * lib/sys_socket.in.h: Likewise.
44226         * lib/sys_stat.in.h: Likewise.
44227         * lib/sys_time.in.h: Likewise.
44228         * lib/sysexits.in.h: Likewise.
44229         * lib/time.in.h: Likewise.
44230         * lib/unistd.in.h: Likewise.
44231         * lib/wchar.in.h: Likewise.
44232         * lib/wctype.in.h: Likewise.
44233         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
44234         * modules/fchdir (Makefile.am): Likewise.
44235         * modules/fcntl (Makefile.am): Likewise.
44236         * modules/float (Makefile.am): Likewise.
44237         * modules/iconv_open (Makefile.am): Likewise.
44238         * modules/inttypes (Makefile.am): Likewise.
44239         * modules/locale (Makefile.am): Likewise.
44240         * modules/math (Makefile.am): Likewise.
44241         * modules/netinet_in (Makefile.am): Likewise.
44242         * modules/search (Makefile.am): Likewise.
44243         * modules/signal (Makefile.am): Likewise.
44244         * modules/stdarg (Makefile.am): Likewise.
44245         * modules/stdint (Makefile.am): Likewise.
44246         * modules/stdio (Makefile.am): Likewise.
44247         * modules/stdlib (Makefile.am): Likewise.
44248         * modules/string (Makefile.am): Likewise.
44249         * modules/strings (Makefile.am): Likewise.
44250         * modules/sys_select (Makefile.am): Likewise.
44251         * modules/sys_socket (Makefile.am): Likewise.
44252         * modules/sys_stat (Makefile.am): Likewise.
44253         * modules/sys_time (Makefile.am): Likewise.
44254         * modules/sysexits (Makefile.am): Likewise.
44255         * modules/time (Makefile.am): Likewise.
44256         * modules/unistd (Makefile.am): Likewise.
44257         * modules/wchar (Makefile.am): Likewise.
44258         * modules/wctype (Makefile.am): Likewise.
44259         Reported by Reuben Thomas <rrt@sc3d.org>.
44260
44261 2008-08-29  Bruno Haible  <bruno@clisp.org>
44262
44263         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
44264         any more.
44265
44266 2008-08-29  Simon Josefsson  <simon@josefsson.org>
44267
44268         * MODULES.html.sh (Misc): Add bitrotate.
44269
44270         * modules/bitrotate: New file.
44271
44272         * lib/bitrotate.h: New file.
44273
44274         * modules/bitrotate-tests: New file.
44275
44276         * tests/test-bitrotate.c: New file.
44277
44278         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
44279         on the bitrotate module.
44280
44281         * lib/arctwo.c: Use new bitrotate module.
44282
44283 2008-08-29  Jim Meyering  <meyering@redhat.com>
44284
44285         bootstrap: merge changes from coreutils
44286         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
44287         of copied files.  Remove a kludge, now that this is fixed.
44288         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
44289         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
44290         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
44291
44292 2008-08-29  Bruno Haible  <bruno@clisp.org>
44293
44294         * MODULES.html.sh: Remove --cvs-urls option.
44295
44296 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
44297
44298         maint.mk: adjust to file name change
44299         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
44300
44301 2008-08-28  Jim Meyering  <meyering@redhat.com>
44302
44303         * modules/getndelim2 (License): Relicense to LGPLv2+.
44304         Approved by Richard Stallman for the version of 1995, and by
44305         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
44306
44307 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
44308
44309         * lib/getdelim.c (flockfile, funlockfile): Make all of them
44310         dummy if one is not available.  Do not touch them if
44311         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
44312         (getc_maybe_unlocked): New.
44313         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
44314
44315 2008-08-26  Eric Blake  <ebb9@byu.net>
44316
44317         doc/INSTALL: resync from autoconf
44318         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
44319         (INSTALL_PRELUDE): Delete; this is done more efficiently by
44320         moving...
44321         * install.texi [!autoconf]: ...here.  Resync from autoconf.
44322         * INSTALL: Regenerate.
44323         * INSTALL.ISO: New file.
44324         * INSTALL.UTF-8: Likewise.
44325
44326 2008-08-26  Jim Meyering  <meyering@redhat.com>
44327
44328         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
44329         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
44330         these definitions conditional, so that they may be overridden, too.
44331
44332 2008-08-26  Bruno Haible  <bruno@clisp.org>
44333
44334         Generate INSTALL file variants with prettier quotes.
44335         * doc/Makefile (INSTALL_PRELUDE): New macro.
44336         (INSTALL): Use it.
44337         (INSTALL.ISO, INSTALL.UTF-8): New rules.
44338
44339 2008-08-26  Bruno Haible  <bruno@clisp.org>
44340
44341         Run makeinfo in an English locale.
44342         * doc/Makefile (MAKEINFO): New variable.
44343
44344 2008-08-26  Bruno Haible  <bruno@clisp.org>
44345
44346         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
44347         Suggested by Eric Blake.
44348
44349 2008-08-25  Bruno Haible  <bruno@clisp.org>
44350
44351         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
44352
44353 2008-08-25  Eric Blake  <ebb9@byu.net>
44354
44355         c-stack: test that stack overflow can be caught
44356         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
44357         that platform allows handling stack overflow; at least OS/2 EMX
44358         has sigaltstack, but crashes before transferring control to
44359         handler on stack overflow.
44360         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
44361         check for HAVE_STACK_OVERFLOW_HANDLING.
44362         Reported by Elbert Pol.
44363
44364 2008-08-25  Bruno Haible  <bruno@clisp.org>
44365
44366         * doc/posix-functions/strftime.texi: Fix description of strftime
44367         module.
44368
44369 2008-08-24  Bruno Haible  <bruno@clisp.org>
44370
44371         * tests/uniwidth/test-uc_width2.c: New file.
44372         * tests/uniwidth/test-uc_width2.sh: New file.
44373         * modules/uniwidth/width-tests (Files): Add the new files.
44374         (TESTS): Add uniwidth/test-uc_width2.sh.
44375         (TESTS_ENVIRONMENT): New variable.
44376         (check_PROGRAMS): Add test-uc_width2.
44377         (test_uc_width2_SOURCES): New variable.
44378
44379         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
44380         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
44381         not 0x00AB.
44382         Reported by Alexander V. Lukyanov <lav@netis.ru>.
44383
44384 2008-08-22  Eric Blake  <ebb9@byu.net>
44385
44386         test-lock, test-tls: mention why a test is skipped
44387         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
44388         skipped.
44389         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
44390
44391         count-one-bits: relax license
44392         * modules/count-one-bits (License): Relicense to LGPLv2+.
44393         Suggested by Ludovic Courtès, approved by Ben Pfaff.
44394
44395 2008-08-22  Andreas Schwab  <schwab@suse.de>
44396
44397         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
44398         Remove spurious space in assignment.
44399
44400 2008-08-21  Simon Josefsson  <simon@josefsson.org>
44401
44402         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
44403         Paul Eggert <eggert@CS.UCLA.EDU>.
44404
44405 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
44406
44407         * modules/gettext: Add m4/threadlib.m4.
44408
44409 2008-08-19  Eric Blake  <ebb9@byu.net>
44410
44411         test-c-stack: fix compilation failure on FreeBSD 5.0
44412         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
44413         headers before <sys/resource.h>.
44414         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
44415         the bug.
44416         Reported by Nelson H. F. Beebe.
44417
44418         strverscmp: migrate from "strverscmp.h" to <string.h>
44419         * modules/string (Makefile.am): Add new hooks.
44420         * modules/strverscmp (Files): Remove strverscmp.h.
44421         (Depends-on): Add string.
44422         (configure.ac): Add indicator.
44423         (Include): Mention new header.
44424         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
44425         defaults.
44426         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
44427         results.
44428         * lib/strverscmp.h: Delete.
44429         * lib/string.in.h (strverscmp): Provide declaration, when needed.
44430         * tests/test-strverscmp.c (includes): Adjust client.
44431         * lib/check-version.c (includes): Likewise.
44432         * NEWS: Document the change.
44433
44434         strverscmp: add unit test
44435         * modules/strverscmp-tests: New file.
44436         * tests/test-strverscmp.c: Likewise.
44437
44438 2008-08-19  Simon Josefsson  <simon@josefsson.org>
44439
44440         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
44441         regarding Windows crypto stuff, from Mono.
44442
44443 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
44444
44445         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
44446         if present, for intel RND.  Return error on failures.
44447
44448 2008-08-18  Ben Pfaff  <blp@gnu.org>
44449
44450         gitlog-to-changelog: give better diagnostic for failed pipe-open
44451         * build-aux/gitlog-to-changelog: Improve error message: suggest
44452         that the version of Git may be too old.
44453
44454 2008-08-18  Simon Josefsson  <simon@josefsson.org>
44455
44456         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
44457         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
44458
44459 2008-08-18  Bruno Haible  <bruno@clisp.org>
44460
44461         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
44462         pthread_in_use().
44463
44464 2008-08-18  Bruno Haible  <bruno@clisp.org>
44465
44466         * lib/glthread/threadlib.c: Include <pthread.h>.
44467
44468 2008-08-18  Bruno Haible  <bruno@clisp.org>
44469
44470         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
44471         glthread_recursive_lock_* macros.
44472         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
44473         Fix syntax error.
44474
44475 2008-08-18  Bruno Haible  <bruno@clisp.org>
44476
44477         * lib/glthread/thread.c: Avoid forcing a context switch right after
44478         thread creation.
44479
44480 2008-08-17  Bruno Haible  <bruno@clisp.org>
44481
44482         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
44483         * lib/glthread/thread.h: Provide Win32 specific implementation.
44484         * modules/thread (Files): Add lib/glthread/thread.c.
44485         (Depends-on): Add lock.
44486         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
44487
44488 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44489
44490         New module 'yield'.
44491         * modules/yield: New file.
44492         * lib/glthread/yield.h: New file.
44493         * m4/yield.m4: New file.
44494         * MODULES.html.sh (Multithreading): Add yield.
44495
44496 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44497
44498         New module 'thread'.
44499         * modules/thread: New file.
44500         * lib/glthread/thread.h: New file.
44501         * m4/thread.m4: New file.
44502         * MODULES.html.sh (Multithreading): Add thread.
44503
44504 2008-08-17  Bruno Haible  <bruno@clisp.org>
44505
44506         * lib/glthread/lock.h: Include <stdlib.h> always.
44507         * lib/glthread/tls.h: Likewise.
44508         * lib/glthread/cond.h: Likewise.
44509
44510 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44511
44512         New module 'cond'.
44513         * modules/cond: New file.
44514         * lib/glthread/cond.h: New file.
44515         * lib/glthread/cond.c: New file.
44516         * m4/cond.m4: New file.
44517         * MODULES.html.sh (Multithreading): Add cond.
44518
44519 2008-08-16  Eric Blake  <ebb9@byu.net>
44520
44521         c-stack: fix regression on Irix 5.3 from 2008-06-21
44522         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
44523         sa_sigaction...
44524         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
44525         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
44526         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
44527         * modules/signal (Makefile.am): Use the value.
44528         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
44529         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
44530         * doc/posix-headers/signal.texi (signal.h): Document this
44531         portability issue.
44532         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
44533         Reported by Tom G. Christensen.
44534
44535 2008-08-17  Bruno Haible  <bruno@clisp.org>
44536
44537         New module 'threadlib'.
44538         * modules/threadlib: New file.
44539         * lib/glthread/threadlib.c: New file, extracted from
44540         lib/glthread/lock.c.
44541         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
44542         functions.
44543         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
44544         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
44545         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
44546         macros.
44547         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
44548         (gl_DISABLE_THREADS): Remove macro.
44549         * modules/lock (Files): Remove build-aux/config.rpath.
44550         (Depends-on): Remove havelib. Add threadlib.
44551         (configure.ac-early): Remove section.
44552         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
44553         * modules/tls (Depends-on): Remove lock. Add threadlib.
44554         (Link): New section, copied from threadlib.
44555         * MODULES.html.sh (Multithreading): Add threadlib.
44556
44557 2008-08-14  Bruno Haible  <bruno@clisp.org>
44558
44559         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
44560         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
44561         glthread_rwlock_unlock, glthread_rwlock_destroy,
44562         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
44563         glthread_recursive_lock_destroy): Define as macros always.
44564         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
44565         glthread_lock_lock.
44566         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
44567         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
44568         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
44569         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
44570         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
44571         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
44572         (glthread_recursive_lock_lock_func): Renamed from
44573         glthread_recursive_lock_lock.
44574         (glthread_recursive_lock_unlock_func): Renamed from
44575         glthread_recursive_lock_unlock.
44576         (glthread_recursive_lock_destroy_func): Renamed from
44577         glthread_recursive_lock_destroy.
44578
44579 2008-08-14  Bruno Haible  <bruno@clisp.org>
44580
44581         * lib/glthread/lock.h: Renamed from lib/lock.h.
44582         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
44583         * lib/glthread/tls.h: Renamed from lib/tls.h.
44584         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
44585         * lib/fstrcmp.c: Update includes.
44586         * lib/strsignal.c: Update includes.
44587         * modules/lock (Files, Makefile.am): Update.
44588         (Include): Change to "glthread/lock.h".
44589         * modules/tls (Files, Makefile.am): Update.
44590         (Include): Change to "glthread/tls.h".
44591         * tests/test-lock.c: Update includes.
44592         * tests/test-tls.c: Update includes.
44593         * NEWS: Mention the renamed header files.
44594
44595 2008-08-11  Jim Meyering  <meyering@redhat.com>
44596
44597         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
44598
44599 2008-08-11  Eric Blake  <ebb9@byu.net>
44600
44601         test-c-stack: avoid C99-ism
44602         * tests/test-c-stack.c (main): Fix whitespace, move declaration
44603         before statement.
44604         Reported by Alain Guibert.
44605
44606 2008-08-10  Jim Meyering  <meyering@redhat.com>
44607
44608         ensure that return value of uinttostr et al are not ignored
44609         * lib/inttostr.h (__GNUC_PREREQ): Define.
44610         (__attribute_warn_unused_result__): Define.
44611         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
44612
44613 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
44614
44615         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
44616         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
44617
44618 2008-08-07  Jim Meyering  <meyering@redhat.com>
44619
44620         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
44621
44622         * modules/mkstemp (License): Relicense under LGPLv2+.
44623         * modules/tempname (License): Likewise.
44624
44625 2008-08-06  Bruno Haible  <bruno@clisp.org>
44626
44627         * lib/poll.c (poll): Further micro-optimization.
44628
44629 2008-08-06  Jim Meyering  <meyering@redhat.com>
44630
44631         inet_pton.c: use locale-independent tolower
44632         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
44633         (inet_pton6): Use c_tolower rather than tolower.
44634         * modules/inet_pton (Depends-on): Add c-ctype.
44635
44636 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
44637
44638         * lib/poll.c (poll): Avoid division when timeout is 0, cache
44639         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
44640
44641 2008-08-06  Jim Meyering  <meyering@redhat.com>
44642
44643         * modules/inet_pton (License): Relicense under LGPLv2+.
44644
44645 2008-08-03  Bruno Haible  <bruno@clisp.org>
44646
44647         Additional non-aborting API for lock and tls.
44648         * lib/lock.h: Include <errno.h>.
44649         (glthread_lock_init): New macro/function.
44650         (gl_lock_init): Define as wrapper around glthread_lock_init.
44651         (glthread_lock_lock): New macro/function.
44652         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
44653         (glthread_lock_unlock): New macro/function.
44654         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
44655         (glthread_lock_destroy): New macro/function.
44656         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
44657         (glthread_rwlock_init): New macro/function.
44658         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
44659         (glthread_rwlock_rdlock): New macro/function.
44660         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
44661         (glthread_rwlock_wrlock): New macro/function.
44662         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
44663         (glthread_rwlock_unlock): New macro/function.
44664         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
44665         (glthread_rwlock_destroy): New macro/function.
44666         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
44667         (glthread_recursive_lock_init): New macro/function.
44668         (gl_recursive_lock_init): Define as wrapper around
44669         glthread_recursive_lock_init.
44670         (glthread_recursive_lock_lock): New macro/function.
44671         (gl_recursive_lock_lock): Define as wrapper around
44672         glthread_recursive_lock_lock.
44673         (glthread_recursive_lock_unlock): New macro/function.
44674         (gl_recursive_lock_unlock): Define as wrapper around
44675         glthread_recursive_lock_unlock.
44676         (glthread_recursive_lock_destroy): New macro/function.
44677         (gl_recursive_lock_destroy): Define as wrapper around
44678         glthread_recursive_lock_destroy.
44679         (glthread_once): New macro/function.
44680         (gl_once): Define as wrapper around glthread_once.
44681         Update function declarations.
44682         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
44683         glthread_rwlock_init. Return error code.
44684         (glthread_rwlock_rdlock_multithreaded): Renamed from
44685         glthread_rwlock_rdlock. Return error code.
44686         (glthread_rwlock_wrlock_multithreaded): Renamed from
44687         glthread_rwlock_wrlock. Return error code.
44688         (glthread_rwlock_unlock_multithreaded): Renamed from
44689         glthread_rwlock_unlock. Return error code.
44690         (glthread_rwlock_destroy_multithreaded): Renamed from
44691         glthread_rwlock_destroy. Return error code.
44692         (glthread_recursive_lock_init_multithreaded): Renamed from
44693         glthread_recursive_lock_init. Return error code.
44694         (glthread_recursive_lock_lock_multithreaded): Renamed from
44695         glthread_recursive_lock_lock. Return error code.
44696         (glthread_recursive_lock_unlock_multithreaded): Renamed from
44697         glthread_recursive_lock_unlock. Return error code.
44698         (glthread_recursive_lock_destroy_multithreaded): Renamed from
44699         glthread_recursive_lock_destroy. Return error code.
44700         (glthread_once_call): Make static.
44701         (glthread_once_multithreaded): Renamed from glthread_once.
44702         * lib/tls.h: Include <errno.h>.
44703         (glthread_tls_key_init): New macro/function.
44704         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
44705         (glthread_tls_set): New macro/function.
44706         (gl_tls_set): Define as wrapper around glthread_tls_set.
44707         (glthread_tls_key_destroy): New macro/function.
44708         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
44709         Update function declarations.
44710         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
44711         glthread_tls_get.
44712         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44713
44714 2008-08-04  Eric Blake  <ebb9@byu.net>
44715
44716         gnumakefile: use space, not TAB, outside of targets
44717         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
44718
44719 2008-08-02  Jim Meyering  <meyering@redhat.com>
44720
44721         getdate.y: avoid locale-dependent date parsing failure
44722         In Turkish locales, getdate would fail to recognize keywords
44723         containing a lowercase "i".  The solution is not to rely on
44724         locale-sensitive case-conversion.
44725         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
44726         (lookup_word): Use c_toupper in place of toupper.
44727         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
44728         Reported by Vefa Bicakci <bicave@superonline.com> in
44729         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
44730         * modules/getdate (Depends-on): Add c-ctype.
44731
44732 2008-08-02  Bruno Haible  <bruno@clisp.org>
44733
44734         * gnulib-tool (func_import): When updating or creating a .gitignore
44735         file, prepend each added line with a slash, and ignore leading slashes
44736         from the existing lines.
44737         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44738
44739 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44740
44741         Portability fix for GNU make 3.79.1.
44742         * top/GNUmakefile: Avoid 'else COND', which older GNU make
44743         versions do not understand.
44744
44745 2008-08-01  Bruno Haible  <bruno@clisp.org>
44746
44747         Work around bug of HP-UX 10.20 cc with -0.0 literal.
44748         * tests/test-isnanf.h (zero): New variable.
44749         (main): Avoid literal -0.0f.
44750         * tests/test-isnand.h (zero): New variable.
44751         (main): Avoid literal -0.0.
44752         * tests/test-isnanl.h (zero): New variable.
44753         (main): Avoid literal -0.0L.
44754         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
44755         (test_float, test_double, test_long_double): Avoid literals -0.0f,
44756         -0.0, -0.0L.
44757         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
44758         (test_signbitd): Avoid literal -0.0.
44759         (test_signbitl): Avoid literal -0.0L.
44760         * tests/test-ceilf1.c (zero): New variable.
44761         (main): Avoid literal -0.0f.
44762         * tests/test-ceill.c (zero): New variable.
44763         (main): Avoid literal -0.0L.
44764         * tests/test-floorf1.c (zero): New variable.
44765         (main): Avoid literal -0.0f.
44766         * tests/test-floorl.c (zero): New variable.
44767         (main): Avoid literal -0.0L.
44768         * tests/test-roundf1.c (zero): New variable.
44769         (main): Avoid literal -0.0f.
44770         * tests/test-round1.c (zero): New variable.
44771         (main): Avoid literal -0.0.
44772         * tests/test-roundl.c (zero): New variable.
44773         (main): Avoid literal -0.0L.
44774         * tests/test-truncf1.c (zero): New variable.
44775         (main): Avoid literal -0.0f.
44776         * tests/test-trunc1.c (zero): New variable.
44777         (main): Avoid literal -0.0.
44778         * tests/test-truncl.c (zero): New variable.
44779         (main): Avoid literal -0.0L.
44780         * tests/test-frexp.c (zero): New variable.
44781         (main): Avoid literal -0.0.
44782         * tests/test-frexpl.c (zero): New variable.
44783         (main): Avoid literal -0.0L.
44784         * tests/test-ldexpl.c (zero): New variable.
44785         (main): Avoid literal -0.0L.
44786         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44787         (zerod, zerol): New variables.
44788         (test_function): Avoid literals -0.0, -0.0L.
44789         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44790         (zerod, zerol): New variables.
44791         (test_function): Avoid literals -0.0, -0.0L.
44792         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44793         (zerod, zerol): New variables.
44794         (test_function): Avoid literals -0.0, -0.0L.
44795         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44796         (zerod, zerol): New variables.
44797         (test_function): Avoid literals -0.0, -0.0L.
44798         * tests/test-strtod.c (zero): New variable.
44799         (main): Avoid literal -0.0.
44800         Reported by Jonathan C. Patschke <jp@centtech.com>.
44801
44802 2008-07-31  Jim Meyering  <meyering@redhat.com>
44803
44804         sha256.h: correct definition of SHA224_DIGEST_SIZE
44805         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
44806         Reported by Paulie Pena IV <paulie4@gmail.com>.
44807         Define as 224 / 8, rather than as a literal.
44808         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
44809         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
44810         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
44811
44812 2008-07-31  Bruno Haible  <bruno@clisp.org>
44813
44814         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
44815         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
44816         Reported by Jonathan Patschke <jp@centtech.com>.
44817
44818 2008-07-31  Bruno Haible  <bruno@clisp.org>
44819
44820         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
44821         Reported by Paolo Bonzini <bonzini@gnu.org>.
44822
44823 2008-07-30  Eric Blake  <ebb9@byu.net>
44824
44825         test-strtod: allow compilation without -lm
44826         * tests/test-strtod.c (main): Avoid link dependence on fabs.
44827         Reported by Dennis Clarke <blastwave@gmail.com>.
44828
44829 2008-07-28  Jim Meyering  <meyering@redhat.com>
44830
44831         bootstrap: work also when there are no .po files in po/
44832         * build-aux/bootstrap (update_po_files): Complete the change
44833         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
44834
44835 2008-07-27  Jim Meyering  <meyering@redhat.com>
44836
44837         * users.txt: Add zile.
44838
44839 2008-07-26  Ben Pfaff  <blp@gnu.org>
44840
44841         Add missing dependencies on new m4/exponent[fdl].m4 files.
44842         * modules/isnanf-nolibm: Add m4/exponentf.m4.
44843         * modules/isnand-nolibm: Add m4/exponentd.m4.
44844         * modules/isnanl-nolibm: Add m4/exponentl.m4.
44845         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
44846         m4/isnan[fdl].m4, because the macros actually used moved.
44847         Reported by Jim Meyering.
44848
44849 2008-07-14  Ben Pfaff  <blp@gnu.org>
44850
44851         Add isinf module.
44852         * lib/isinf.c: New file.
44853         * lib/math.in.h: Define isinf macro if we have decided to replace
44854         it.
44855         * m4/isinf.m4: New file.
44856         * m4/math_h.m4: Initialize and substitute variables for isinf
44857         module.
44858         * modules/isinf: New file.
44859         * modules/isinf-tests: New file.
44860         * modules/math: Add substitutions for new module.
44861         * tests/test-isinf.c: New file.
44862         * doc/posix-functions/isinf.texi: Mention new module.
44863         * MODULES.html.sh: Mention new module.
44864
44865 2008-07-14  Ben Pfaff  <blp@gnu.org>
44866
44867         Factor out some macros for use by additional modules.
44868         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
44869         exponentf.m4.
44870         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
44871         exponentd.m4.
44872         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
44873         file exponentl.m4.
44874         * m4/exponentf.m4: New file.
44875         * m4/exponentd.m4: New file.
44876         * m4/exponentl.m4: New file.
44877         * modules/isnanf: Use new file m4/exponentf.m4.
44878         * modules/isnand: Use new file m4/exponentd.m4.
44879         * modules/isnanl: Use new file m4/exponentl.m4.
44880
44881 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
44882
44883         mktime.c: normalize tp->tm_isdst value to -1/0/1.
44884         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
44885         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
44886         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
44887
44888         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
44889         readlink on platforms without PATH_MAX.
44890
44891 2008-07-21  Eric Blake  <ebb9@byu.net>
44892
44893         Warn, not fail, on stale version.
44894         * top/GNUmakefile (_curr-ver): Tone down previous patch.
44895
44896         Don't allow installation with stale devel version number.
44897         * top/GNUmakefile (_is-install-target): New macro.
44898         (_curr-ver): Forbid installation with stale version number.
44899
44900 2008-07-20  Bruno Haible  <bruno@clisp.org>
44901
44902         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
44903         TESTS_ENVIRONMENT.
44904         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
44905
44906 2008-07-20  Bruno Haible  <bruno@clisp.org>
44907
44908         * lib/c-stack.h (c_stack_action): Add documentation.
44909         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
44910
44911 2008-07-20  Bruno Haible  <bruno@clisp.org>
44912
44913         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
44914         * modules/readlink (License): Likewise.
44915
44916 2008-07-17  Eric Blake  <ebb9@byu.net>
44917
44918         * modules/c-stack (Link): Fix typo.
44919
44920         Make c-stack use libsigsegv, when available.
44921         * modules/c-stack (Depends-on): Add libsigsegv.
44922         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
44923         needed.
44924         * lib/c-stack.c (SIGSTKSZ): Define fallback.
44925         (segv_handler, overflow_handler, c_stack_action)
44926         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
44927         implementation when libsigsegv is available, but only when using
44928         the library is necessary.
44929         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
44930         comment, explaining why XSI check fails on Linux.
44931         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
44932         * tests/test-c-stack2.sh: Tweak skip message.
44933         * NEWS: Document new link-time requirements.
44934
44935 2008-07-16  Eric Blake  <ebb9@byu.net>
44936
44937         c-stack: Expose false positives when not using libsigsegv.
44938         * modules/c-stack-tests (Files): Expand test.
44939         * tests/test-c-stack.c (main): Add means to conditionally trigger
44940         non-overflow SIGSEGV.
44941         * tests/test-c-stack2.sh: New file.
44942
44943 2008-07-14  Bruno Haible  <bruno@clisp.org>
44944
44945         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
44946         Reported by Eric Blake.
44947
44948 2008-07-14  Sam Steingold  <sds@gnu.org>
44949             Bruno Haible  <bruno@clisp.org>
44950
44951         New module libsigsegv.
44952         * modules/libsigsegv: New file.
44953         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
44954         modifications.
44955         * MODULES.html.sh (Signal handling): New section.
44956
44957 2008-07-14  Bruno Haible  <bruno@clisp.org>
44958
44959         * modules/unictype/ctype-* (Description): Add the word "function".
44960         Improves the resulting doc in MODULES.html.
44961
44962 2008-07-12  Ben Pfaff  <blp@gnu.org>
44963
44964         Add longlong module.
44965         * modules/longlong: New file.
44966
44967 2008-07-12  Bruno Haible  <bruno@clisp.org>
44968
44969         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
44970         to empty.
44971
44972 2008-07-10  Ben Pfaff  <blp@gnu.org>
44973
44974         Add isnan module.
44975         * doc/posix-functions/isnan.texi: Mention new module.
44976         * lib/math.in.h: Define isnan macro if we have decided to replace
44977         it.
44978         * m4/isnan.m4: New file.
44979         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
44980         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
44981         also.
44982         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
44983         redundancy.
44984         * m4/math_h.m4: Initialize and substitute variables for isnan
44985         module.
44986         * modules/isnan: New file.
44987         * modules/isnan-tests: New file.
44988         * modules/math: Add substitutions for new module.
44989         * tests/test-isnan.c: New file.
44990         * MODULES.html.sh: Mention new module.
44991
44992 2008-07-10  Ben Pfaff  <blp@gnu.org>
44993
44994         Add isnanf module.
44995         * lib/isnanf.m4: New file.
44996         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
44997         (gl_HAVE_ISNANF_IN_LIBM): New macro.
44998         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
44999         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
45000         * modules/isnanf: New file.
45001         * modules/isnanf-tests: New file.
45002         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
45003         files.
45004         * tests/test-isnanf-nolibm.c: factored most of its contents into
45005         new file tests/test-isnanf.h.
45006         * tests/test-isnanf.h: New file.
45007         * tests/test-isnanf.c: New file.
45008         * MODULES.html.sh: Mention new module.
45009         * doc/glibc-functions/isnanf.texi: Mention new module.
45010
45011 2008-07-10  Ben Pfaff  <blp@gnu.org>
45012
45013         Add isnand module.
45014         * lib/isnand.h: New file.
45015         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
45016         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
45017         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
45018         functionality also.
45019         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
45020         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
45021         (gl_HAVE_ISNAND_IN_LIBM): New macro.
45022         * modules/isnand: New file.
45023         * modules/isnand-tests: New file.
45024         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
45025         files.
45026         * tests/test-isnand-nolibm.c: factored most of its contents into
45027         new file tests/test-isnand.h.
45028         * tests/test-isnand.h: New file.
45029         * tests/test-isnand.c: New file.
45030         * MODULES.html.sh: Mention new module.
45031
45032 2008-07-10  Ben Pfaff  <blp@gnu.org>
45033
45034         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
45035         * lib/isnand.h: Rename lib/isnand-nolibm.h.
45036         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
45037         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
45038         * modules/isnanf-nolibm: Update references to renamed files.
45039         * modules/isnand-nolibm: Likewise.
45040         * modules/isnanf-nolibm-tests: Likewise.
45041         * modules/isnand-nolibm-tests: Likewise.
45042         * lib/frexp.c: Likewise.
45043         * lib/isfinite.c: Likewise.
45044         * lib/signbitd.c: Likewise.
45045         * lib/signbitf.c: Likewise.
45046         * lib/vasnprintf.c: Likewise.
45047         * tests/test-ceilf1.c: Likewise.
45048         * tests/test-ceilf2.c: Likewise.
45049         * tests/test-floorf1.c: Likewise.
45050         * tests/test-floorf2.c: Likewise.
45051         * tests/test-frexp.c: Likewise.
45052         * tests/test-round1.c: Likewise.
45053         * tests/test-round2.c: Likewise.
45054         * tests/test-roundf1.c: Likewise.
45055         * tests/test-strtod.c: Likewise.
45056         * tests/test-trunc1.c: Likewise.
45057         * tests/test-trunc2.c: Likewise.
45058         * tests/test-truncf1.c: Likewise.
45059         * tests/test-truncf2.c: Likewise.
45060         * NEWS: Mention the renamed header files.
45061
45062 2008-07-11  Jim Meyering  <meyering@redhat.com>
45063
45064         vc-list-files: make the last-resort awk code more portable
45065         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
45066         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
45067         does not support it.
45068
45069 2008-07-10  Eric Blake  <ebb9@byu.net>
45070
45071         Work with tar's bootstrap.
45072         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
45073         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
45074         an m4 comment.
45075
45076 2008-07-09  Jim Meyering  <meyering@redhat.com>
45077
45078         posix-shell.m4: fix typo that made this test malfunction
45079         * m4/posix-shell.m4: Remove capitalization in variable name.
45080
45081 2008-07-08  Bruno Haible  <bruno@clisp.org>
45082
45083         * m4/onceonly.m4: Update comments.
45084         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45085
45086 2008-07-04  Jim Meyering  <meyering@redhat.com>
45087
45088         * users.txt: Add vc-dwim.
45089         (bison, coreutils): Use the gitweb URL.
45090
45091 2008-07-03  Jim Meyering  <meyering@redhat.com>
45092
45093         * users.txt: Add libffcall.  From Sam Steingold.
45094
45095 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
45096
45097         getdate.y: do not ignore TZ with relative day, month or year offset
45098         * lib/getdate.y (get_date): Move the tz-handling block to follow the
45099         relative-date-handling, since otherwise, the latter would clobber the
45100         sole output (an updated Start value) of the tz-handling block.
45101         * tests/test-getdate.c: Tests for the fix
45102
45103 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45104
45105         Recognize 'foo_LIBRARIES += libgnu.a'.
45106         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
45107         makefile snippet has already specified an installation location,
45108         also using '+='.
45109
45110 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
45111
45112         getdate.y: factor out common actions
45113         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
45114         Use them in place of open-coded actions.
45115
45116 2008-07-01  Simon Josefsson  <simon@josefsson.org>
45117
45118         Add self-test for getdate module.
45119         * modules/getdate-tests: New file.
45120         * tests/test-getdate.c: New file.
45121
45122 2008-06-29  Bruno Haible  <bruno@clisp.org>
45123
45124         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
45125         .gitignore.
45126         Reported by Sylvain Beucler <beuc@beuc.net>.
45127
45128 2008-06-29  Bruno Haible  <bruno@clisp.org>
45129
45130         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
45131         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
45132
45133 2008-06-29  Bruno Haible  <bruno@clisp.org>
45134
45135         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
45136         EXTRA_DIST.
45137         Reported by Sylvain Beucler <beuc@beuc.net>.
45138
45139 2008-06-26  Jim Meyering  <meyering@redhat.com>
45140
45141         make several modules depend on the "open" module
45142         This provides slightly increased consistency when opening-for-write
45143         the name of a non-directory spelled with a trailing slash.
45144         * modules/chdir-safer: Likewise.
45145         * modules/chown: Likewise.
45146         * modules/clean-temp: Likewise.
45147         * modules/copy-file: Likewise.
45148         * modules/fchdir: Likewise.
45149         * modules/fcntl-safer: Likewise.
45150         * modules/pipe: Likewise.
45151         * modules/utime: Likewise.
45152         Prompted by Eric Blake and Bruno Haible.
45153
45154 2008-06-24  Andreas Schwab  <schwab@suse.de>
45155
45156         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
45157         literals can be used as initializers for global variables.
45158
45159 2008-06-23  Eric Blake  <ebb9@byu.net>
45160
45161         Make gnulib-cache.m4 easier to diff.
45162         * gnulib-tool (func_import): Allow newlines when reading cached
45163         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
45164
45165 2008-06-23  Bruno Haible  <bruno@clisp.org>
45166
45167         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
45168         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
45169         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
45170         m4/signalblocking.m4.
45171         (gl_PREREQ_SIGACTION): Don't invoke it.
45172         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
45173         gl_PREREQ_SIG_HANDLER_H.
45174         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45175         Don't check for sigaction here.
45176
45177 2008-06-23  Bruno Haible  <bruno@clisp.org>
45178
45179         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
45180         (install_handlers): Don't set the SA_RESETHAND flag.
45181
45182 2008-06-23  Bruno Haible  <bruno@clisp.org>
45183
45184         * m4/sigaction.m4: Comment fixes.
45185         * lib/signal.in.h: Likewise.
45186
45187 2008-06-23  Eric Blake  <ebb9@byu.net>
45188
45189         Fix typo.
45190         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
45191
45192         Avoid SA_ namespace.
45193         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
45194         Reported by Ralf Wildenhues.
45195
45196         Avoid test failure due to SA_RESTORER.
45197         * tests/test-sigaction.c (SA_MASK): New macro.
45198         (main): Avoid failing due to extension flags being set.
45199         Reported by Jim Meyering.
45200
45201         Revert use of sig-handler.h in sigprocmask.c.
45202         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
45203         it requires the existence of struct sigaction.
45204         * lib/sigprocmask.c (handler_t): Restore typedef.
45205         (rpl_signal, old_handlers): Use local type.
45206
45207 2008-06-22  Bruno Haible  <bruno@clisp.org>
45208
45209         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
45210         conditionally.
45211         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45212
45213 2008-06-22  Bruno Haible  <bruno@clisp.org>
45214
45215         * doc/posix-functions/siginterrupt.texi: Move note.
45216
45217         * lib/signal.in.h (SA_RESTART): New macro.
45218         * lib/sigaction.c: Update comment.
45219
45220         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
45221
45222         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
45223         (gl_PREREQ_SIGPROCMASK): Invoke it.
45224         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
45225
45226         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
45227
45228         * lib/sigprocmask.c: Update a comment.
45229
45230 2008-06-21  Eric Blake  <ebb9@byu.net>
45231
45232         Use sigaction module rather than signal().
45233         * modules/c-stack (Depends-on): Add sigaction.
45234         * modules/fatal-signal (Depends-on): Likewise.
45235         * modules/nanosleep (Depends-on): Likewise.
45236         * modules/sigprocmask (Files): Add sig-handler.h.
45237         * modules/sigaction (Files): Likewise.
45238         * lib/sig-handler.h (get_handler): New file, suggested by Paul
45239         Eggert.
45240         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
45241         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
45242         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
45243         (init_fatal_signals): Likewise.
45244         * lib/nanosleep.c (rpl_nanosleep): Likewise.
45245         (siginterrupt): Delete fallback.
45246         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
45247         instead.
45248         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
45249         siginterrupt.
45250
45251         New module sigaction, for mingw.
45252         * modules/sigaction: New module...
45253         * modules/sigaction-tests: ...and its test.
45254         * m4/sigaction.m4: New file.
45255         * lib/sigaction.c: Likewise.
45256         * tests/test-sigaction.c: Likewise.
45257         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
45258         * modules/signal (Makefile.am): Likewise.
45259         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
45260         needed.
45261         * doc/posix-headers/signal.texi (signal.h): Mention provided
45262         types.
45263         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
45264         that sigaction is preferable.
45265         * doc/posix-functions/sigaction.texi (sigaction): Mention new
45266         module.
45267         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45268         sigaction.
45269
45270         Improve robustness of sigprocmask by overriding signal.
45271         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
45272         is in use.
45273         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
45274         (SIGKILL, SIGSTOP): Provide fallbacks.
45275         (rpl_signal): Implement.
45276         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
45277         signal can be called inside handlers.
45278
45279         Fix nanosleep module on mingw.
45280         * modules/nanosleep (Depends-on): Add sys_select.
45281         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
45282
45283         Fix licensing of sigprocmask.
45284         * modules/raise (License): Relicense as LGPL.
45285
45286 2008-06-21  Bruno Haible  <bruno@clisp.org>
45287
45288         * lib/propername.c (proper_name_utf8): Don't use the transliterated
45289         result if it contains question marks.
45290         Reported by Michael Geng <linux@michaelgeng.de>.
45291
45292 2008-06-19  Bruno Haible  <bruno@clisp.org>
45293
45294         Fix CVS-ism.
45295         * doc/gnulib.texi: Include updated-stamp.texi.
45296         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
45297         (updated-stamp.texi): New rule.
45298         (gnulib.info): Depend on it.
45299         * doc/.gitignore: Add updated-stamp.texi.
45300         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
45301
45302 2008-06-19  Bruno Haible  <bruno@clisp.org>
45303
45304         * doc/Makefile (gnulib.info): Update and simplify dependencies.
45305         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45306
45307 2008-06-19  Eric Blake  <ebb9@byu.net>
45308
45309         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
45310         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
45311         Reported by Stepan Kasal.
45312
45313 2008-06-18  Bruno Haible  <bruno@clisp.org>
45314
45315         * lib/fatal-signal.c (init_fatal_signals): Add comment.
45316         Reported by Eric Blake.
45317
45318 2008-06-18  Eric Blake  <ebb9@byu.net>
45319
45320         Work around cygwin 1.5.25 strsignal bug.
45321         * tests/test-strsignal.c: Allow for const char *.
45322         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
45323
45324 2008-06-18  Simon Josefsson  <simon@josefsson.org>
45325
45326         * users.txt: Update URL to article and add author/date
45327         information.
45328
45329 2008-06-17  Bruno Haible  <bruno@clisp.org>
45330
45331         New macro gl_DISABLE_THREADS.
45332         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
45333         if the user did not pass --enable-threads or --disable-threads option.
45334         (gl_DISABLE_THREADS): New macro.
45335         Reported by Eric Blake <ebb9@byu.net>.
45336
45337 2008-06-17  Bruno Haible  <bruno@clisp.org>
45338
45339         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
45340         when the macro ignores it.
45341         Based on a patch by Eric Blake <ebb9@byu.net>.
45342
45343 2008-06-17  Bruno Haible  <bruno@clisp.org>
45344
45345         * modules/tls (License): Change to LGPLv2+.
45346         Reported by Eric Blake.
45347
45348 2008-06-17  Eric Blake  <ebb9@byu.net>
45349
45350         Simplify c-stack prerequisites.
45351         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
45352         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
45353         no longer requires <ucontext.h> to exist.  Optimize setrlimit
45354         check.
45355         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
45356         <sys/resource.h>.
45357
45358         Move c-stack test into testsuite.
45359         * modules/c-stack-tests: New file.
45360         * lib/c-stack.c [DEBUG]: Move test program...
45361         * tests/test-c-stack.c: ...into this new file.  Skip rather than
45362         fail test if sigaltstack is lacking.
45363         * tests/test-c-stack.sh: New driver file.
45364
45365 2008-06-16  Eric Blake  <ebb9@byu.net>
45366
45367         Use raise module consistently.
45368         * modules/fatal-signal (Depends-on): Add raise.
45369         * modules/sigprocmask (Depends-on): Likewise.
45370         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
45371         * lib/sigprocmask.c (sigprocmask): Likewise.
45372         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45373         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
45374
45375         Fix compliance bug in sigpending.
45376         * lib/sigprocmask.c (sigpending): Return pending array via
45377         parameter, not return value.
45378
45379 2008-06-14  Eric Blake  <ebb9@byu.net>
45380
45381         Improve obstack-printf test code.
45382         * tests/test-obstack-printf.c (test_function): Fix comment, and
45383         simplify usage of obstack_* in macros.  Add a test for coverage.
45384         Reported by Bruno Haible.
45385
45386 2008-06-14  Bruno Haible  <bruno@clisp.org>
45387
45388         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
45389         array size as a constant, not as a const variable.
45390         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
45391         AC_USE_SYSTEM_EXTENSIONS.
45392         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45393         Test whether the obstack_printf function actually exists.
45394         * modules/obstack-printf (Depends-on): Add extensions.
45395         (Include): Remove obstack.h.
45396         * modules/obstack-printf-posix (Depends-on): Add extensions.
45397         (Include): Remove obstack.h.
45398
45399 2008-06-13  Eric Blake  <ebb9@byu.net>
45400
45401         Add obstack-printf and obstack-printf-posix modules.
45402         * modules/obstack-printf: New file.
45403         * modules/obstack-printf-posix: Likewise.
45404         * MODULES.html.sh (Misc): Mention them.
45405         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
45406         Likewise.
45407         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
45408         Likewise.
45409         * modules/stdio (Makefile.am): Accomodate new modules.
45410         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45411         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
45412         Declare.
45413         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
45414         functions.
45415         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
45416         (gl_REPLACE_OBSTACK_PRINTF): New macros
45417         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
45418         * tests/test-obstack-printf.c: New file.
45419         * modules/obstack-printf-tests: Likewise.
45420         * modules/obstack-printf-posix-tests: Likewise.
45421
45422 2008-06-11  Bruno Haible  <bruno@clisp.org>
45423
45424         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
45425         * lib/open.c: Include errno.h.
45426         (open): Fail when attempting to write to a file that has a trailing
45427         slash.
45428         * tests/test-open.c (main): Test against trailing slash bug.
45429         * doc/posix-functions/open.texi: Mention the trailing slash bug.
45430
45431 2008-06-10  Bruno Haible  <bruno@clisp.org>
45432
45433         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
45434         for $? to work inside the trap command, with various /bin/sh-s.
45435         * tests/test-vc-list-files-cvs.sh: Likewise.
45436
45437 2008-06-10  Bruno Haible  <bruno@clisp.org>
45438
45439         * lib/acl-internal.h: Don't include gettext.h here.
45440         * lib/set-mode-acl.c: Include gettext.h here.
45441         * lib/copy-acl.c: Likewise.
45442
45443 2008-06-10  Bruno Haible  <bruno@clisp.org>
45444
45445         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
45446         * lib/wait-process.c (wait_subprocess): Likewise.
45447         * lib/execute.h (execute): Add termsigp argument.
45448         * lib/execute.c (execute): Likewise.
45449         * lib/csharpcomp.c (compile_csharp_using_pnet,
45450         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
45451         * lib/csharpexec.c (execute_csharp_using_pnet,
45452         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
45453         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
45454         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
45455         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
45456         is_jikes_present): Update.
45457         * lib/javaexec.c (execute_java_class): Update.
45458         * lib/javaversion.c (execute_and_read_line): Update.
45459         * NEWS: Document the changes.
45460         Reported by Eric Blake.
45461
45462 2008-06-10  Eric Blake  <ebb9@byu.net>
45463
45464         Add missing include.
45465         * tests/test-strstr.c (includes): Add <signal.h>.
45466         * tests/test-strcasestr.c (includes): Likewise.
45467         * tests/test-memmem.c (includes): Likewise.
45468
45469 2008-06-10  Bruno Haible  <bruno@clisp.org>
45470
45471         * lib/wait-process.c (wait_subprocess): Add an assertion.
45472
45473 2008-06-10  Bruno Haible  <bruno@clisp.org>
45474
45475         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
45476
45477 2008-06-10  Bruno Haible  <bruno@clisp.org>
45478
45479         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
45480         using alarm().
45481         * tests/test-strcasestr.c (main): Likewise.
45482         * tests/test-strstr.c (main): Likewise.
45483
45484 2008-06-09  Bruno Haible  <bruno@clisp.org>
45485
45486         Work around the Solaris 10 ACE ACLs ABI change.
45487         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
45488         declare if ACL_NO_TRIVIAL is present.
45489         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
45490         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
45491         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
45492         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
45493         define if ACL_NO_TRIVIAL is present.
45494         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
45495         and use the current ABI.
45496         (file_has_acl): Use same #if condition as elsewhere.
45497         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
45498         in use, and use the current ABI.
45499         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
45500         Reported by Jim Meyering.
45501
45502 2008-06-09  Eric Blake  <ebb9@byu.net>
45503
45504         Work around environments that (stupidly) ignore SIGALRM.
45505         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
45506         before using alarm().
45507         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45508         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45509         Reported by Ian Beckwith <ianb@erislabs.net>.
45510
45511         Produce autobuild blurb earlier in log.
45512         * modules/autobuild (configure.ac-early): Move AB_INIT here.
45513
45514 2008-06-09  Jim Meyering  <meyering@redhat.com>
45515         and OndÅ™ej Vašík  <ovasik@redhat.com>
45516
45517         utimens.c: correct kernel bug work-around
45518         OndÅ™ej Vašík found that the invalid return value of 280 indicates
45519         failure, not success, and the kernel bug we're trying to work
45520         around affects not just the utimensat call, but also the fallback
45521         futimens call.
45522         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
45523         not success.
45524         [HAVE_FUTIMENS]: Use the same work-around, here.
45525
45526 2008-06-09  Jim Meyering  <meyering@redhat.com>
45527
45528         add more guards around definition of ACE_-related code
45529         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
45530         ALLOW and ACE_OWNER are also defined.
45531
45532 2008-06-08  Bruno Haible  <bruno@clisp.org>
45533
45534         * lib/acl-internal.h: Add me as co-author.
45535         * lib/file-has-acl.c: Likewise.
45536         * lib/set-mode-acl.c: Likewise.
45537         * lib/copy-acl.c: Likewise.
45538
45539 2008-06-08  Bruno Haible  <bruno@clisp.org>
45540
45541         Add support for AIX ACLs.
45542         * lib/acl-internal.h (acl_nontrivial): New declaration.
45543         * lib/file-has-acl.c (acl_nontrivial): New function.
45544         (file_has_acl): Add implementation using AIX 4 ACL API.
45545         * lib/set-mode-acl.c (qset_acl): Likewise.
45546         * lib/copy-acl.c (qcopy_acl): Likewise.
45547
45548 2008-06-08  Bruno Haible  <bruno@clisp.org>
45549
45550         Add support for HP-UX ACLs.
45551         * lib/acl-internal.h (acl_nontrivial): New declaration.
45552         * lib/file-has-acl.c (acl_nontrivial): New function.
45553         (file_has_acl): Add implementation using HP-UX 11 ACL API.
45554         * lib/set-mode-acl.c (qset_acl): Likewise.
45555         * lib/copy-acl.c (qcopy_acl): Likewise.
45556
45557 2008-06-08  Bruno Haible  <bruno@clisp.org>
45558
45559         Add support for Cygwin ACLs.
45560         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
45561         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
45562         the chmod_or_fchmod call.
45563         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
45564
45565 2008-06-08  Bruno Haible  <bruno@clisp.org>
45566
45567         Fix bug with setuid modes in Solaris 10+ code.
45568         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
45569         succeeded, when the mode contains some special bits.
45570
45571 2008-06-08  Bruno Haible  <bruno@clisp.org>
45572
45573         Add support for Solaris 7..10 ACLs.
45574         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
45575         declarations.
45576         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
45577         functions.
45578         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
45579         * lib/set-mode-acl.c (qset_acl): Likewise.
45580         * lib/copy-acl.c (qcopy_acl): Likewise.
45581
45582 2008-06-08  Bruno Haible  <bruno@clisp.org>
45583
45584         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
45585         declaration.
45586         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
45587         (acl_access_nontrivial): Remove MacOS X case.
45588         (file_has_acl): Use acl_extended_nontrivial.
45589         * lib/copy-acl.c (qcopy_acl): Likewise.
45590
45591 2008-06-08  Bruno Haible  <bruno@clisp.org>
45592
45593         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
45594
45595 2008-06-08  Jim Meyering  <meyering@redhat.com>
45596
45597         * modules/acl (Maintainer): Add Bruno Haible.
45598
45599 2008-06-07  Bruno Haible  <bruno@clisp.org>
45600
45601         Improve support for Tru64 ACLs.
45602         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
45603         ACL on OSF/1.
45604
45605 2008-06-07  Bruno Haible  <bruno@clisp.org>
45606
45607         Add support for MacOS X ACLs.
45608         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
45609         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
45610         * lib/set-mode-acl.c (qset_acl): Likewise.
45611         * lib/copy-acl.c (qcopy_acl): Likewise.
45612
45613 2008-06-07  Bruno Haible  <bruno@clisp.org>
45614
45615         Fix memory leak introduced on 2008-05-22.
45616         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
45617         use.
45618
45619 2008-06-07  Bruno Haible  <bruno@clisp.org>
45620
45621         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
45622         to construct an empty ACL.
45623
45624 2008-06-07  Bruno Haible  <bruno@clisp.org>
45625
45626         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
45627         precisely.
45628         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
45629
45630 2008-06-07  Bruno Haible  <bruno@clisp.org>
45631
45632         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
45633         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
45634
45635 2008-06-07  Bruno Haible  <bruno@clisp.org>
45636
45637         * doc/posix-functions/_setjmp.texi: Explain the use of this function
45638         regardless of POSIX.
45639         * doc/posix-functions/_longjmp.texi: Likewise.
45640         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
45641         SystemV platform in this case.
45642
45643 2008-06-06  Eric Blake  <ebb9@byu.net>
45644
45645         Document abort() bugs.
45646         * doc/posix-functions/abort.texi (abort): Mention anomalies.
45647
45648         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
45649         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
45650         sigsetjmp.
45651         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
45652         siglongjmp, but only as a macro.
45653         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
45654         is obsolete.
45655         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
45656
45657         Tweak documentation to cover cygwin argz bugs.
45658         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
45659         argz bug fix; no code change needed since no cygwin releases
45660         occurred between the last fix and the bug being tested.
45661         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
45662         module and recently fixed cygwin bugs.
45663         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
45664         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
45665         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
45666         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
45667         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
45668         Likewise.
45669         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
45670         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
45671         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
45672         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
45673         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
45674         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
45675         Likewise.
45676
45677         Avoid gcc warning on cygwin.
45678         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
45679         !ACL_NO_TRIVIAL]: Avoid unused variable.
45680
45681 2008-06-05  Eric Blake  <ebb9@byu.net>
45682
45683         Be tolerant of UNKNOWN version in gnulib-tool test dir.
45684         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
45685         git-version-gen fails to come up with a version.
45686         Reported by Simon Josefsson.
45687
45688 2008-06-05  Jim Meyering  <meyering@redhat.com>
45689             Paul Eggert  <eggert@cs.ucla.edu>
45690
45691         utimens.c: work around a probable Linux kernel bug
45692         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
45693         appears to be a kernel bug that causes utimensat to return 280
45694         instead of 0, indicating success.
45695
45696 2008-06-04  Bruno Haible  <bruno@clisp.org>
45697
45698         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
45699         2008-06-01 commit.
45700
45701 2008-06-04  Bruno Haible  <bruno@clisp.org>
45702
45703         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
45704         * lib/file-has-acl.c (acl_access_nontrivial): New function.
45705         (file_has_acl): Use it. Save errno afterwards.
45706         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
45707
45708 2008-06-03  Bruno Haible  <bruno@clisp.org>
45709
45710         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
45711         draft code. Simplify #ifs.
45712         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
45713         Put Solaris code after POSIX-draft code. Fix comments regarding
45714         Solaris 10, HP-UX. Mention Cygwin.
45715         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
45716
45717 2008-06-03  Eric Blake  <ebb9@byu.net>
45718
45719         Provide fallback for older kernels.
45720         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
45721         Provide runtime fallback if kernel lacks support.
45722         Reported by Mike Frysinger.
45723
45724 2008-06-02  Bruno Haible  <bruno@clisp.org>
45725
45726         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
45727         it exists.
45728
45729 2008-06-02  Bruno Haible  <bruno@clisp.org>
45730
45731         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
45732         * lib/copy-acl.c (qcopy_acl): Update comment.
45733
45734 2008-06-02  Bruno Haible  <bruno@clisp.org>
45735
45736         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
45737         like ACL APIs.
45738
45739 2008-06-02  Bruno Haible  <bruno@clisp.org>
45740
45741         * tests/test-file-has-acl.sh: Use different code for Cygwin.
45742         * tests/test-set-mode-acl.sh: Likewise.
45743         * tests/test-copy-acl.sh: Likewise.
45744         * tests/test-copy-file.sh: Likewise.
45745
45746 2008-06-02  Bruno Haible  <bruno@clisp.org>
45747
45748         * tests/test-file-has-acl.sh: Remove unused code.
45749
45750 2008-06-01  Bruno Haible  <bruno@clisp.org>
45751
45752         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
45753         (copy_acl): Just a wrapper around qcopy_acl that emits the error
45754         messages.
45755         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
45756
45757 2008-06-01  Bruno Haible  <bruno@clisp.org>
45758
45759         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
45760         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
45761         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
45762         APIs.
45763         * modules/acl-tests (configure.ac): Remove tests now contained in
45764         m4/acl.m4.
45765
45766 2008-06-02  Jim Meyering  <meyering@redhat.com>
45767
45768         announce-gen: use a better key-server host name
45769         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
45770         it may be more consistently reliable.  Suggested by Werner Koch
45771         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
45772
45773 2008-06-01  Bruno Haible  <bruno@clisp.org>
45774
45775         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
45776         Reported by Voroskoi Andras <voroskoi@gmail.com>.
45777
45778 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
45779
45780         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
45781
45782 2008-06-01  Bruno Haible  <bruno@clisp.org>
45783
45784         New ACL tests.
45785         * tests/test-file-has-acl.sh: New file.
45786         * tests/test-file-has-acl.c: New file.
45787         * tests/test-set-mode-acl.sh: New file.
45788         * tests/test-set-mode-acl.c: New file.
45789         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
45790         * tests/test-copy-acl.c: New file.
45791         * modules/acl-tests: New file, based on modules/copy-file-tests.
45792         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
45793         (Depends-on): Add acl-tests.
45794         (configure.ac): Remove checks.
45795         (Makefile.am): Don't create test-sameacls program here any more.
45796
45797 2008-06-01  Bruno Haible  <bruno@clisp.org>
45798
45799         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
45800         * tests/test-sameacls.c: Include progname.h.
45801         (main): Invoke set_program_name. Portability fixes for MacOS X,
45802         Solaris, HP-UX.
45803
45804 2008-06-01  Bruno Haible  <bruno@clisp.org>
45805
45806         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
45807         function.
45808         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
45809
45810 2008-06-01  Bruno Haible  <bruno@clisp.org>
45811
45812         * modules/rpmatch (Depends-on): Add strdup.
45813
45814 2008-06-01  Bruno Haible  <bruno@clisp.org>
45815
45816         * lib/pipe.c: Include unistd-safer.h.
45817         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
45818         * modules/pipe (Depends-on): Add unistd-safer.
45819
45820 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45821
45822         * modules/autobuild (configure.ac): Call AB_INIT.
45823
45824 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45825
45826         * tests/test-getaddrinfo.c: Don't print debug messages by default.
45827         Suggested by Bruno Haible <bruno@clisp.org>.
45828
45829 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45830
45831         * tests/test-base64.c: Cast size_t to unsigned long when invoking
45832         printf.  Use %lu instead of %d.  Reported by Bruno Haible
45833         <bruno@clisp.org>.
45834
45835 2008-05-29  Eric Blake  <ebb9@byu.net>
45836
45837         Prefer new POSIX 200x interfaces over futimesat.
45838         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
45839         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
45840         when available.
45841         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
45842
45843 2008-05-28  Bruno Haible  <bruno@clisp.org>
45844
45845         * modules/stpcpy (License): Change to LGPLv2+.
45846         Requested by David Lutterkort <dlutter@redhat.com>.
45847
45848 2008-05-27  Bruno Haible  <bruno@clisp.org>
45849
45850         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
45851         current mingw.
45852         Reported by Jose E. Marchesi <jemarch@gnu.org>.
45853
45854 2008-05-27  Bruno Haible  <bruno@clisp.org>
45855
45856         * modules/iconv_open (Link): New section, from module 'iconv'.
45857         * modules/striconv (Link): Likewise.
45858         * modules/striconveh (Link): Likewise.
45859         * modules/xstriconv (Link): Likewise.
45860         * modules/unicodeio (Link): Likewise.
45861         * modules/propername (Link): Likewise.
45862         Reported by Jim Meyering.
45863
45864 2008-05-26  Jim Meyering  <meyering@redhat.com>
45865
45866         sha256: do not artificially restrict buffer length to be < 2^32
45867         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
45868         uint32_t to size_t.
45869         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
45870         to match.
45871
45872         avoid unaligned access errors, e.g., on sparc
45873         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
45874         direct access through a possibly-unaligned uint64* pointer.
45875         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
45876         direct access through a possibly-unaligned uint32* pointer.
45877         Prompted by this patch from Tom "spot" Callaway:
45878         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
45879
45880         sha512.c: fix typo in comment
45881         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
45882
45883 2008-05-25  Bruno Haible  <bruno@clisp.org>
45884
45885         * lib/set-mode-acl.c: Renamed from lib/acl.c.
45886         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
45887         (Makefile.am): Update lib_SOURCES.
45888
45889 2008-05-25  Bruno Haible  <bruno@clisp.org>
45890
45891         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
45892
45893 2008-05-25  Jim Meyering  <meyering@redhat.com>
45894
45895         useless-if-before-free: freed expr may have white-space differences
45896         * build-aux/useless-if-before-free: Recognize cases in which the
45897         freed expression differs from the tested one in embedded white
45898         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
45899         $1 was used, so we can't make any regexp shy.  Improved tests now
45900         detect this.
45901
45902         useless-if-before-free: accept white space in the expression.
45903         * build-aux/useless-if-before-free: For now, any white space
45904         in the expression must be identical in the free argument.
45905
45906         useless-if-before-free: efficiency tweak
45907         * build-aux/useless-if-before-free: Make the expression-matching
45908         regexp "shy".
45909         Make the *outer* regexp shy, not the expr-matching one.
45910
45911         update code-in-comment to accept cast of free arg
45912         * build-aux/useless-if-before-free: Update regexp.
45913
45914 2008-05-25  Bruno Haible  <bruno@clisp.org>
45915
45916         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
45917         * modules/copy-file-tests (Files, Makefile.am): Update.
45918         * tests/test-copy-file.c (func_test_copy): Update.
45919
45920 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
45921
45922         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
45923
45924 2008-05-23  Bruno Haible  <bruno@clisp.org>
45925
45926         Improve support for ACLs on OSF/1.
45927         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
45928         Remove fallback for unknown flavors of ACLs.
45929
45930 2008-05-22  Bruno Haible  <bruno@clisp.org>
45931
45932         Add support for ACLs on OSF/1.
45933         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
45934         replacements.
45935         (acl_free_text): New macro fallback.
45936         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
45937         acl_free.
45938         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
45939         acl_free_text function. Require AC_C_INLINE.
45940
45941 2008-05-22  Bruno Haible  <bruno@clisp.org>
45942
45943         Make copy_acl work on MacOS X 10.5.
45944         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
45945         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
45946         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
45947         If MODE_INSIDE_ACL, don't assume that every system has the same text
45948         representation for ACLs as FreeBSD.
45949         * lib/copy-acl.c (copy_acl): Add support for platforms with
45950         !MODE_INSIDE_ACL.
45951         * lib/file-has-acl.c (file_has_acl): Likewise.
45952         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
45953         FreeBSD, MacOS X, or IRIX, respectively.
45954
45955 2008-05-22  Bruno Haible  <bruno@clisp.org>
45956
45957         * lib/acl.h: Don't include <sys/acl.h>.
45958         (GETACLCNT): Move fallback to lib/acl-internal.h.
45959         * lib/acl-internal.h: Include <sys/acl.h> here.
45960         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
45961
45962 2008-05-22  Bruno Haible  <bruno@clisp.org>
45963
45964         Split off copy_acl function to separate file.
45965         * lib/copy-acl.c: New file, extracted from lib/acl.c.
45966         * lib/acl.c (copy_acl): Moved function to separate file.
45967         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
45968         * modules/acl (Files): Add lib/copy-acl.c.
45969         (Makefiles.am): Augment lib_SOURCES.
45970
45971 2008-05-22  Bruno Haible  <bruno@clisp.org>
45972
45973         * modules/copy-file-tests: New file.
45974         * tests/test-copy-file.sh: New file.
45975         * tests/test-copy-file.c: New file.
45976         * tests/test-copy-file-sameacls.c: New file.
45977
45978 2008-05-22  Eric Blake  <ebb9@byu.net>
45979
45980         Avoid gcc warning.
45981         * tests/test-memcmp.c (main): Pass NULL indirectly.
45982
45983 2008-05-21  Bruno Haible  <bruno@clisp.org>
45984
45985         Add reference doc about ACLs.
45986         * doc/acl-resources.txt: New file.
45987         * doc/acl-cygwin.txt: New file.
45988
45989 2008-05-21  Bruno Haible  <bruno@clisp.org>
45990
45991         Avoid one more warning from gcc.
45992         * lib/vasnprintf.c (IF_LINT): Update comments.
45993         (VASNPRINTF): Use it also for the 'prefix' array initializer.
45994
45995 2008-05-21  Jim Meyering  <meyering@redhat.com>
45996
45997         avoid a warning from gcc
45998         * lib/vasnprintf.c (IF_LINT): Define.
45999         (scale10_round_decimal_long_double):
46000         Use it to avoid a "may be used uninitialized" warning.
46001         (scale10_round_decimal_double): Likewise.
46002
46003 2008-05-21  Simon Josefsson  <simon@josefsson.org>
46004
46005         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
46006         declared.
46007
46008 2008-05-20  Bruno Haible  <bruno@clisp.org>
46009
46010         * tests/test-memcmp.c (main): Test also the sign of the result. Test
46011         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
46012
46013 2008-05-20  Simon Josefsson  <simon@josefsson.org>
46014
46015         * modules/memcmp-tests: New file.
46016         * tests/test-memcmp.c: New file.
46017
46018 2008-05-19  Bruno Haible  <bruno@clisp.org>
46019
46020         * modules/propername (Notice, configure.ac): Put quoted "..." into
46021         --keyword option.
46022         * lib/propername.h: Update comments accordingly.
46023         Reported by Eric Blake.
46024
46025 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
46026
46027         * modules/getpass-gnu (Depends-on): Add fseeko.
46028
46029 2008-05-19  Simon Josefsson  <simon@josefsson.org>
46030
46031         * modules/base64-tests: New file.
46032
46033 2008-05-19  Bo Borgerson <gigabo@gmail.com>
46034
46035         * lib/base64.c (base64_decode_ctx): If a decode context structure
46036         was passed in use it to ignore newlines.  If a context structure
46037         was _not_ passed in, continue to treat newlines as garbage (this
46038         is the historical behavior).  Formerly base64_decode.
46039         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
46040         takes a decode context structure.
46041         * lib/base64.h (base64_decode): Macro for four-argument calls.
46042         (base64_decode_alloc): Likewise.
46043         * lib/base64.c (base64_decode_ctx): If a decode context structure
46044         was passed in use it to ignore newlines.  If a context structure
46045         was _not_ passed in, continue to treat newlines as garbage (this
46046         is the historical behavior).  Formerly base64_decode.
46047         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
46048         takes a decode context structure.
46049         * lib/base64.h (base64_decode): Macro for four-argument calls.
46050         (base64_decode_alloc): Likewise.
46051
46052 2008-05-19  Jim Meyering  <meyering@redhat.com>
46053
46054         avoid a warning from gcc
46055         * lib/trim.c (IF_LINT): Define.
46056         (trim2): Use it to avoid a "may be used uninitialized" warning.
46057
46058         Fix doc typo.
46059         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
46060
46061 2008-05-19  Bruno Haible  <bruno@clisp.org>
46062
46063         * doc/glibc-functions/getpass.texi: Document limits of other
46064         implementations.
46065
46066 2008-05-19  Simon Josefsson  <simon@josefsson.org>
46067             Bruno Haible <bruno@clisp.org>
46068
46069         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
46070
46071 2008-05-18  Bruno Haible  <bruno@clisp.org>
46072
46073         * modules/propername: New file, from GNU gettext.
46074         * lib/propername.h: New file, from GNU gettext.
46075         * lib/propername.c: New file, from GNU gettext.
46076         * MODULES.html.sh (Internationalization functions): Add propername.
46077
46078 2008-05-16  Jim Meyering  <meyering@redhat.com>
46079             Bruno Haible  <bruno@clisp.org>
46080
46081         Avoid some warnings from "gcc -Wshadow".
46082         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
46083
46084 2008-05-15  Eric Blake  <ebb9@byu.net>
46085
46086         Extend previous patch to cygwin 1.7.0.
46087         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
46088         fast implementation in cygwin >= 1.7.0.
46089         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46090         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46091
46092 2008-05-15  Bruno Haible  <bruno@clisp.org>
46093
46094         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
46095         implementation in glibc >= 2.9.
46096         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46097         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46098
46099 2008-05-15  Bruno Haible  <bruno@clisp.org>
46100
46101         * MODULES.html.sh (Internationalization functions): Remove linebreak.
46102         (Unicode string functions): Add unilbrk/*.
46103         Reported by Karl Berry.
46104
46105 2008-05-15  Eric Blake  <ebb9@byu.net>
46106
46107         Fix violation of <stdbool.h> replacement in regex.
46108         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
46109         * lib/regexec.c (re_search_internal): Likewise.
46110         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
46111
46112 2008-05-15  Jim Meyering  <meyering@redhat.com>
46113
46114         avoid distracting test output when git or cvs is not found
46115         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
46116         * tests/test-vc-list-files-git.sh: Likewise.
46117
46118 2008-05-15  Eric Blake  <ebb9@byu.net>
46119
46120         Glibc finally accepted the memmem speedup code, bugzilla #5514.
46121         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
46122         glibc version.
46123         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46124         * doc/posix-functions/strstr.texi (strstr): Likewise.
46125         * lib/str-two-way.h (MAX): Sychronize with glibc.
46126
46127 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
46128
46129         * lib/regcomp.c (optimize_utf8): Add a note on why we test
46130         opr.ctx_type.
46131         (calc_first): Initialize constraint field.
46132         (duplicate_node_closure): Use it instead of special casing ANCHORS.
46133         Fix grammar.
46134         (duplicate_node): Merge constraint field for all node types.
46135         (calc_eclosure_iter): Look at constraint field for all node types.
46136         * lib/regex_internal.c (create_cd_newstate): Don't look at
46137         opr.ctx_type.
46138
46139 2008-05-14  Bruno Haible  <bruno@clisp.org>
46140
46141         Help GCC to do better code generation.
46142         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
46143         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
46144         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
46145         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
46146         Declare with attribute 'malloc' if supported.
46147
46148 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
46149
46150         use "echo STR|wc -c" rather than unportable "expr length STR"
46151         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
46152         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
46153
46154 2008-05-14  Jim Meyering  <meyering@redhat.com>
46155
46156         use dd ibs=$n count=1 ... rather than less-portable head -c$n
46157         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
46158         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
46159         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
46160         via Collin Lasse.
46161
46162 2008-05-14  Eric Blake  <ebb9@byu.net>
46163
46164         Avoid quadratic growth in gl_LIBSOURCES.
46165         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
46166         Suggested by Bruno Haible.
46167
46168         Test xmemdup0.
46169         * modules/xmemdup0-tests: New file.
46170         * tests/test-xmemdup0.c: Likewise.
46171
46172 2008-05-13  Eric Blake  <ebb9@byu.net>
46173
46174         Split xmemdup0 into its own module.
46175         * modules/xmemdup0: New file.
46176         * lib/xmemdup0.h: Likewise.
46177         * lib/xmemdup0.c: Likewise.
46178         * MODULES.html.sh (Memory management functions): Add xmemdup0.
46179         * lib/xalloc.h (xmemdup0): Remove.
46180         * lib/xmalloc.c (xmemdup0): Likewise.
46181
46182 2008-05-13  Eric Blake  <ebb9@byu.net>
46183             Bruno Haible  <bruno@clisp.org>
46184
46185         Reduce number of forks required during autoconf.
46186         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
46187         and gl_LIBSOURCES_DIR.
46188         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
46189         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
46190         m4_syscmd per file.
46191         <m4_foreach_w>: Move...
46192         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
46193
46194 2008-05-13  Eric Blake  <ebb9@byu.net>
46195
46196         * gnulib-tool: Fix various comment typos.
46197
46198 2008-05-12  Bruno Haible  <bruno@clisp.org>
46199
46200         Tailor the linebreaking algorithm.
46201         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
46202
46203 2008-05-12  Bruno Haible  <bruno@clisp.org>
46204
46205         Update to Unicode 5.0.0.
46206         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46207         LBP_JV, LBP_JT. Redistribute values.
46208         (unilbrk_table): Change size.
46209         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
46210         Unicode TR#14 rev. 22.
46211         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46212         LBP_JV, LBP_JT. Redistribute values.
46213         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
46214         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
46215         Update.
46216         * lib/unilbrk/lbrkprop1.h: Regenerated.
46217         * lib/unilbrk/lbrkprop2.h: Regenerated.
46218         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
46219         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
46220         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
46221         Likewise.
46222         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
46223         Likewise.
46224         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
46225         result.
46226         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
46227         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
46228         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
46229         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
46230         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
46231         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
46232
46233 2008-05-11  Bruno Haible  <bruno@clisp.org>
46234
46235         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
46236
46237 2008-05-11  Bruno Haible  <bruno@clisp.org>
46238
46239         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
46240         * modules/unilbrk/gen-lbrk: New file.
46241
46242 2008-05-11  Bruno Haible  <bruno@clisp.org>
46243
46244         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
46245         * m4/sha512.m4 (gl_SHA512): Likewise.
46246
46247 2008-05-11  Jim Meyering  <meyering@redhat.com>
46248
46249         New modules: crypto/sha256, crypto/sha512 (from coreutils)
46250         * modules/crypto/sha256: New file.
46251         * modules/crypto/sha512: Likewise.
46252         * lib/sha256.c: Likewise.
46253         * lib/sha256.h: Likewise.
46254         * lib/sha512.c: Likewise.
46255         * lib/sha512.h: Likewise.
46256         * lib/u64.h: Likewise.
46257         * m4/sha256.m4: Likewise.
46258         * m4/sha512.m4: Likewise.
46259         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
46260
46261 2008-05-10  Bruno Haible  <bruno@clisp.org>
46262
46263         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
46264         (Input/Output <stdio.h>): Add xprintf.
46265         (Signal handling <signal.h>): Add strsignal.
46266         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
46267         (Core language properties): Add func.
46268         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
46269         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
46270         strings.
46271         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
46272         (Input/output): New section.
46273         (File system functions): Add openat-die, stat-macros.
46274         (Networking functions): Add sockets.
46275         (Unicode string functions): Add unictype/*.
46276         (Support for building libraries and executables): Add gperf.
46277         (Support for building documentation): Add agpl-3.0.
46278         (Misc): Add nocrash.
46279
46280 2008-05-10  Bruno Haible  <bruno@clisp.org>
46281
46282         * modules/unictype/gen-ctype: New file.
46283
46284 2008-05-10  Jim Meyering  <meyering@redhat.com>
46285
46286         Make chdir-safer.c more efficient on a system with no symlinks.
46287         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
46288         also if ELOOP is zero.  Suggested by Bruno Haible.
46289
46290         Make chdir-safer.c slightly safer.
46291         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
46292         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
46293
46294         Avoid compile failure on systems without ELOOP (like mingw).
46295         * lib/chdir-safer.c (ELOOP): Define if not already defined.
46296         Reported by Bruno Haible.
46297
46298 2008-05-10  Bruno Haible  <bruno@clisp.org>
46299
46300         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
46301         (is_utf8_encoding): Use a case-insensitive comparison.
46302         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
46303         streq.
46304
46305 2008-05-10  Bruno Haible  <bruno@clisp.org>
46306
46307         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
46308         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
46309         * lib/unilbrk/ulc-common.h (iconv_string_length,
46310         iconv_string_keeping_offsets): Remove declarations.
46311         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
46312         Don't include <iconv.h>, streq.h, xsize.h.
46313         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
46314         conversion.
46315         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
46316         <iconv.h>, streq.h, xsize.h.
46317         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
46318         conversion.
46319         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
46320         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
46321         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
46322         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
46323
46324 2008-05-10  Bruno Haible  <bruno@clisp.org>
46325
46326         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
46327         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
46328
46329         * modules/unilbrk/u32-width-linebreaks-tests: New file.
46330         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
46331
46332         * modules/unilbrk/u16-width-linebreaks-tests: New file.
46333         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
46334
46335         * modules/unilbrk/u8-width-linebreaks-tests: New file.
46336         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
46337
46338         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
46339         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
46340
46341         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
46342         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
46343
46344         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
46345         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
46346
46347         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
46348         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
46349
46350 2008-05-10  Bruno Haible  <bruno@clisp.org>
46351
46352         Split up 'linebreak' module.
46353         * lib/unilbrk.h: New file, based on lib/linebreak.h.
46354         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
46355         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
46356         modifications.
46357         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
46358         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
46359         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
46360         lib/linebreak.c.
46361         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
46362         lib/linebreak.c.
46363         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
46364         lib/linebreak.c.
46365         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
46366         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
46367         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
46368         lib/linebreak.c.
46369         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
46370         lib/linebreak.c.
46371         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
46372         lib/linebreak.c.
46373         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
46374         lib/linebreak.c.
46375         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
46376         lib/linebreak.c.
46377         * modules/unilbrk/base: New file.
46378         * modules/unilbrk/tables: New file.
46379         * modules/unilbrk/u8-possible-linebreaks: New file.
46380         * modules/unilbrk/u16-possible-linebreaks: New file.
46381         * modules/unilbrk/u32-possible-linebreaks: New file.
46382         * modules/unilbrk/ulc-common: New file.
46383         * modules/unilbrk/ulc-possible-linebreaks: New file.
46384         * modules/unilbrk/u8-width-linebreaks: New file.
46385         * modules/unilbrk/u16-width-linebreaks: New file.
46386         * modules/unilbrk/u32-width-linebreaks: New file.
46387         * modules/unilbrk/ulc-width-linebreaks: New file.
46388         * lib/linebreak.h: Remove file.
46389         * lib/linebreak.c: Remove file.
46390         * m4/linebreak.m4: Remove file.
46391         * modules/linebreak: Remove file.
46392         * NEWS: Mention the changes.
46393
46394 2008-05-09  Eric Blake  <ebb9@byu.net>
46395
46396         Add xmemdup0.
46397         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
46398         implementation.
46399         * lib/xmalloc.c (xmemdup0): New C implementation.
46400
46401 2008-05-08  Bruno Haible  <bruno@clisp.org>
46402
46403         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
46404
46405 2008-05-07  Eric Blake  <ebb9@byu.net>
46406
46407         Support cross-compilation of <wctype.h>.
46408         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
46409         AC_CACHE_CHECK.
46410
46411 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
46412
46413         * build-aux/vc-list-files: Add support for bzr.
46414
46415 2008-05-03  Jim Meyering  <meyering@redhat.com>
46416
46417         avoid failed assertion with tight malloc
46418         * tests/test-getndelim2.c: Correct an off-by-one assertion.
46419
46420 2008-05-03  Simon Josefsson  <simon@josefsson.org>
46421
46422         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
46423         are needed from arpa/inet.h.
46424         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
46425         Reported by Bruno Haible.
46426
46427 2008-05-02  Jim Meyering  <meyering@redhat.com>
46428
46429         avoid compilation error on FreeBSD 6
46430         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
46431
46432 2008-05-01  Jim Meyering  <meyering@redhat.com>
46433
46434         useless-if-before-free: correct --help's exit status description
46435         * build-aux/useless-if-before-free (usage): Like grep, exit 0
46436         for one or more matches, etc.  Reported by Bruno Haible.
46437
46438         vc-list-files: make the stand-alone gnulib test work
46439         * modules/vc-list-files-tests (configure.ac):
46440         Define and AC_SUBST abs_aux_dir.
46441         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
46442         $(abs_top_srcdir) to each script and having each of them
46443         duplicate the work of setting PATH, set PATH here, using
46444         the new variable, abs_aux_dir instead.
46445         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
46446         * tests/test-vc-list-files-git.sh: Likewise.
46447         Reported by Bruno Haible.
46448
46449 2008-05-01  Bruno Haible  <bruno@clisp.org>
46450
46451         * lib/getndelim2.c (getndelim2): Fix newsize computation during
46452         reallocation. Rename 'done' to 'found_delimiter'.
46453
46454 2008-05-01  Jim Meyering  <meyering@redhat.com>
46455
46456         vc-list-files: accommodate /bin/sh like the one from Solaris 10
46457         * build-aux/vc-list-files: Use `...`, not $(...).
46458
46459 2008-04-30  Jim Meyering  <meyering@redhat.com>
46460
46461         add tests for vc-list-files
46462         * modules/vc-list-files-tests: New module.
46463         * tests/test-vc-list-files-cvs.sh: New file.
46464         * tests/test-vc-list-files-git.sh: New file.
46465
46466         avoid a warning from gcc
46467         * lib/getndelim2.c (IF_LINT): Define.
46468         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
46469
46470         vc-list-files: work properly with build-aux/cvsu, too
46471         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
46472         to all cvs-based clauses.
46473
46474         vc-list-files: work properly in the CVS+awk case, too
46475         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
46476
46477         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
46478         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
46479         take more than one file argument, so .  Add quotes, just in case $dir
46480         ever contains a shell meta-character.  Prompted by Soren Hansen in
46481         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
46482
46483 2008-04-29  Eric Blake  <ebb9@byu.net>
46484
46485         Optimize getndelim2 to use block operations when possible.
46486         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
46487         freadseek, and memchr2.
46488         * lib/getndelim2.c (getndelim2): Use them for block reads.
46489
46490 2008-04-29  Bruno Haible  <bruno@clisp.org>
46491
46492         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
46493         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46494         * modules/inet_ntop (Depends-on): Add extensions.
46495         * modules/inet_pton (Depends-on): Likewise.
46496         Reported by Simon Josefsson.
46497
46498 2008-04-29  Jim Meyering  <meyering@redhat.com>
46499
46500         When the is more than one match in a block, match all of them.
46501         * build-aux/useless-if-before-free: Iterate through each block
46502         until there are no more matches.
46503
46504         Fix broken useless-if-before-free script.
46505         * build-aux/useless-if-before-free: Fix typo: missing "?" after
46506         the expression to match cast of argument to free-like function.
46507
46508 2008-04-29  Eric Blake  <ebb9@byu.net>
46509
46510         Use new header.
46511         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
46512
46513 2008-04-29  Jim Meyering  <meyering@redhat.com>
46514
46515         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
46516         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
46517         by gnulib to exist and to declare e.g., inet_ntop.
46518         Don't include "inet_ntop.h", now removed.
46519
46520         * m4/arpa_inet_h.m4: Remove trailing blanks.
46521
46522 2008-04-29  Eric Blake  <ebb9@byu.net>
46523
46524         Silence valgrind on safe reads beyond potential array bounds.
46525         * lib/rawmemchr.valgrind: New file.
46526         * lib/strchrnul.valgrind: Likewise.
46527         * modules/rawmemchr (Files): Distribute new file.
46528         * modules/strchrnul (Files): Likewise.
46529         Suggested by Bruno Haible.
46530
46531 2008-04-29  Bruno Haible  <bruno@clisp.org>
46532
46533         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
46534         (inet_ntop, inet_pton): Change portability warning's wording.
46535         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
46536         Invoke gl_CHECK_NEXT_HEADERS.
46537         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
46538         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
46539         set ARPA_INET_H.
46540         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46541         * modules/arpa_inet (Description): No longer only for systems that
46542         lack it.
46543         (Depends-on): Add include_next.
46544         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
46545         HAVE_ARPA_INET_H.
46546
46547 2008-04-29  Jim Meyering  <meyering@redhat.com>
46548
46549         * modules/mkdir (License): Re-license as LGPLv2+.
46550
46551 2008-04-29  Bruno Haible  <bruno@clisp.org>
46552
46553         * modules/rawmemchr (Maintainer): Set to Eric.
46554         * modules/strchrnul (Maintainer): Likewise.
46555
46556 2008-04-29  Simon Josefsson  <simon@josefsson.org>
46557
46558         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
46559         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
46560
46561         * modules/arpa_inet (arpa/inet.h): Use them.
46562
46563 2008-04-28  Eric Blake  <ebb9@byu.net>
46564
46565         Test getndelim2.
46566         * modules/getndelim2-tests: New file.
46567         * tests/test-getndelim2.c: Likewise.
46568         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
46569         stream.
46570         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
46571
46572         * MODULES.html.sh: Document new module.
46573
46574 2008-04-20  Bruno Haible  <bruno@clisp.org>
46575
46576         * lib/c-stack.c (die): Use raise.
46577         * modules/c-stack (Depends-on): Add raise.
46578
46579 2008-04-28  Bruno Haible  <bruno@clisp.org>
46580
46581         Expect rpmatch to be declared.
46582         * lib/yesno.c (rpmatch): Remove declaration.
46583
46584         Declare rpmatch.
46585         * lib/stdlib.in.h (rpmatch): New declaration.
46586         * lib/rpmatch.c: Include <stdlib.h> first.
46587         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
46588         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
46589         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
46590         HAVE_RPMATCH.
46591         * modules/rpmatch (Depends-on): Add stdlib, extensions.
46592         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46593         (Include): Set to <stdlib.h>.
46594         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
46595         HAVE_RPMATCH.
46596         * NEWS: Document the change.
46597
46598 2008-04-28  Bruno Haible  <bruno@clisp.org>
46599
46600         Change rpmatch to use nl_langinfo when appropriate.
46601         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
46602         (N_): New macro.
46603         (localized_pattern): New function/macro.
46604         (try): Remove match, nomatch arguments. Copy the pattern into safe
46605         memory before caching it.
46606         (rpmatch): Use localized_pattern. Add translator comments.
46607         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
46608         Suggested by Eric Blake.
46609         * modules/rpmatch (Depends-on): Add stdbool.
46610
46611 2008-04-28  Eric Blake  <ebb9@byu.net>
46612
46613         Add rawmemchr module, matching glibc.
46614         * modules/string (Makefile.am): New indicator.
46615         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
46616         * lib/string.in.h (rawmemchr): Declare when appropriate.
46617         * modules/rawmemchr: New file.
46618         * m4/rawmemchr.m4: Likewise.
46619         * lib/rawmemchr.c: Likewise.
46620         * modules/rawmemchr-tests: Likewise.
46621         * tests/test-rawmemchr.c: Likewise.
46622         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
46623         module.
46624         * modules/strchrnul (Depends-on): Add rawmemchr.
46625         * lib/strchrnul.c (strchrnul): Optimize a corner case.
46626
46627         Whitespace cleanup.
46628         * tests/test-strchrnul.c: Reindent.
46629         * lib/strchrnul.c: Likewise.
46630
46631         Optimize and test strchrnul.
46632         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
46633         * modules/strchrnul-tests: New file.
46634         * tests/test-strchrnul.c: Likewise.
46635
46636         Remove intprops dependency.
46637         * modules/memchr (Depends-on): Remove intprops.
46638         * modules/memrchr (Depends-on): Likewise.
46639         * modules/memchr2 (Depends-on): Likewise.
46640         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
46641         * lib/memrchr.c (__memrchr): Likewise.
46642         * lib/memrchr2.c (memchr2): Likewise.
46643         Reported by Simon Josefsson.
46644
46645 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46646
46647         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
46648         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46649
46650 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46651
46652         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
46653
46654         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
46655
46656         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
46657
46658         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
46659         declarations.
46660         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
46661
46662         * m4/inet_pton.m4: Don't check for header files.
46663
46664         * m4/inet_ntop.m4: Don't check for header files.
46665
46666 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46667
46668         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
46669         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
46670         trigger for cygwin).
46671         Reported by Bruno Haible  <bruno@clisp.org>.
46672
46673 2008-04-28  Bruno Haible  <bruno@clisp.org>
46674
46675         * doc/posix-functions/strdup.texi: Mention mingw problem.
46676
46677 2008-04-27  Bruno Haible  <bruno@clisp.org>
46678
46679         * modules/stat-time-tests (Depends-on): Add sleep.
46680         * tests/test-stat-time.c (force_unlink): New function.
46681         (cleanup): Use it.
46682         (test_mtime): Remove the ctime related tests.
46683         (test_ctime): New function, containing the ctime related tests.
46684         (main): Call test_ctime, except on native Windows platforms.
46685
46686 2008-04-27  Bruno Haible  <bruno@clisp.org>
46687
46688         * lib/rpmatch.c (rpmatch): Add some comments.
46689         Reported by James Youngman <jay@gnu.org>.
46690
46691 2008-04-27  Bruno Haible  <bruno@clisp.org>
46692
46693         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
46694         quiet NaNs.
46695
46696 2008-04-27  Bruno Haible  <bruno@clisp.org>
46697
46698         Make test-yesno.sh work on mingw.
46699         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
46700         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
46701         (main): Set stdin to binary mode.
46702         * modules/yesno-tests (Depends-on): Add binary-io.
46703
46704 2008-04-27  Bruno Haible  <bruno@clisp.org>
46705
46706         Fix 'isfinite' on x86, x86_64, ia64 platforms.
46707         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
46708         argument that lie outside the IEEE 854 domain.
46709         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
46710         (gl_ISFINITE): Use it.
46711         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
46712
46713 2008-04-27  Bruno Haible  <bruno@clisp.org>
46714
46715         Allow local renaming in config.h.
46716         * lib/memrchr.c (memrchr): Don't undefine outside libc.
46717
46718 2008-04-27  Bruno Haible  <bruno@clisp.org>
46719
46720         * lib/memchr.c (__memchr): Change type of 'i'.
46721         * lib/memchr2.c (memchr2): Likewise.
46722
46723 2008-04-26  Eric Blake  <ebb9@byu.net>
46724         and Bruno Haible  <bruno@clisp.org>
46725
46726         Optimize and test memrchr.
46727         * modules/memrchr (Depends-on): Add intprops.
46728         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
46729         * modules/memrchr-tests: New file.
46730         * tests/test-memrchr.c: New file.
46731
46732 2008-04-26  Bruno Haible  <bruno@clisp.org>
46733
46734         Add tentative support for DragonFly BSD.
46735         * lib/stdio-impl.h: Add macros for DragonFly BSD.
46736         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
46737         fp.
46738         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46739         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
46740         * lib/fpurge.c (fpurge): Likewise.
46741         * lib/freadable.c (freaadable): Likewise.
46742         * lib/freadahead.c (freadahead): Likewise.
46743         * lib/freading.c (freading): Likewise.
46744         * lib/freadptr.c (freadptr): Likewise.
46745         * lib/freadseek.c (freadptrinc): Likewise.
46746         * lib/fseeko.c (fseeko): Likewise.
46747         * lib/fseterr.c (fseterr): Likewise.
46748         * lib/fwritable.c (fwritable): Likewise.
46749         * lib/fwriting.c (fwriting): Likewise.
46750
46751 2008-04-26  Bruno Haible  <bruno@clisp.org>
46752
46753         * lib/stdio-impl.h: New file.
46754         * lib/fbufmode.c: Include stdio-impl.h.
46755         (fbufmode): Use fp_, remove redundant #defines.
46756         * lib/fflush.c: Include stdio-impl.h.
46757         (clear_ungetc_buffer): Remove redundant #defines.
46758         * lib/fpurge.c: Include stdio-impl.h.
46759         (fpurge): Remove redundant #defines.
46760         * lib/freadable.c: Include stdio-impl.h.
46761         (freadable): Remove redundant #defines.
46762         * lib/freadahead.c: Include stdio-impl.h.
46763         (freadahead): Remove redundant #defines.
46764         * lib/freading.c: Include stdio-impl.h.
46765         (freading): Remove redundant #defines.
46766         * lib/freadptr.c: Include stdio-impl.h.
46767         (freadptr): Remove redundant #defines.
46768         * lib/freadseek.c: Include stdio-impl.h.
46769         (freadptrinc): Remove redundant #defines.
46770         * lib/fseeko.c: Include stdio-impl.h.
46771         (rpl_fseeko): Remove redundant #defines.
46772         * lib/fseterr.c: Include stdio-impl.h.
46773         (fseterr): Remove redundant #defines.
46774         * lib/fwritable.c: Include stdio-impl.h.
46775         (fwritable: Remove redundant #defines.
46776         * lib/fwriting.c: Include stdio-impl.h.
46777         (fwriting): Remove redundant #defines.
46778         * modules/fbufmode (Files): Add lib/stdio-impl.h.
46779         * modules/fflush (Files): Likewise.
46780         * modules/fpurge (Files): Likewise.
46781         * modules/freadable (Files): Likewise.
46782         * modules/freadahead (Files): Likewise.
46783         * modules/freading (Files): Likewise.
46784         * modules/freadptr (Files): Likewise.
46785         * modules/freadseek (Files): Likewise.
46786         * modules/fseeko (Files): Likewise.
46787         * modules/fseterr (Files): Likewise.
46788         * modules/fwritable (Files): Likewise.
46789         * modules/fwriting (Files): Likewise.
46790
46791 2008-04-26  Bruno Haible  <bruno@clisp.org>
46792
46793         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46794         restore_seek_optimization, update_fpos_cache): New functions, extracted
46795         from rpl_fflush.
46796         (rpl_fflush): Use them.
46797         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
46798         (gl_REPLACE_FFLUSH): Use it.
46799
46800 2008-04-26  Bruno Haible  <bruno@clisp.org>
46801
46802         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
46803         on Solaris.
46804         * tests/test-xstrtoimax.sh: Likewise.
46805         * tests/test-xstrtoumax.sh: Likewise.
46806         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46807
46808 2008-04-26  Bruno Haible  <bruno@clisp.org>
46809
46810         * modules/memchr-tests: New file.
46811         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
46812
46813 2008-04-26  Eric Blake  <ebb9@byu.net>
46814             Bruno Haible  <bruno@clisp.org>
46815
46816         * lib/memchr.c: Include intprops.h.
46817         (__memchr): Optimize parallel detection of matching bytes. Rename local
46818         variables. Add explanatory comments.
46819
46820 2008-04-26  Bruno Haible  <bruno@clisp.org>
46821
46822         Fix module 'memchr', broken since 2000-10-28.
46823         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
46824
46825 2008-04-26  Bruno Haible  <bruno@clisp.org>
46826
46827         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
46828         comments.
46829
46830 2008-04-25  Eric Blake  <ebb9@byu.net>
46831
46832         Use native fstatat on cygwin 1.7.0.
46833         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
46834         first.
46835
46836 2008-04-23  Eric Blake  <ebb9@byu.net>
46837
46838         Improve memchr2 performance.
46839         * lib/memchr2.c (memchr2): Further optimize parallel detection of
46840         NUL bytes.
46841         * modules/memchr2 (Depends-on): Use intprops.h.
46842
46843 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46844
46845         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
46846         an inline function instead of a CPP macro.  Patch by Ben Pfaff
46847         <blp@cs.stanford.edu>.
46848
46849 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46850
46851         * lib/arpa_inet.in.h: New file.
46852
46853         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
46854         (Makefile.am): Sed in substitute header file.
46855
46856         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
46857         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
46858
46859         * modules/inet_ntop (configure.ac): Use
46860         gl_ARPA_INET_MODULE_INDICATOR.
46861
46862         * modules/inet_pton (configure.ac): Use
46863         gl_ARPA_INET_MODULE_INDICATOR.
46864
46865 2008-04-22  Jim Meyering  <meyering@redhat.com>
46866
46867         * modules/verify (License): Re-license as LGPLv2+.
46868
46869 2008-04-22  Simon Josefsson  <simon@josefsson.org>
46870
46871         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
46872         parameter to void* as per POSIX standard (MinGW uses char*).
46873
46874 2008-04-21  Bruno Haible  <bruno@clisp.org>
46875
46876         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
46877         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
46878         Define to replacements if REPLACE_ISWCNTRL is 1.
46879         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
46880         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
46881         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
46882         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
46883         what it fixes.
46884         * doc/posix-functions/iswalpha.texi: Likewise.
46885         * doc/posix-functions/iswblank.texi: Likewise.
46886         * doc/posix-functions/iswcntrl.texi: Likewise.
46887         * doc/posix-functions/iswdigit.texi: Likewise.
46888         * doc/posix-functions/iswgraph.texi: Likewise.
46889         * doc/posix-functions/iswlower.texi: Likewise.
46890         * doc/posix-functions/iswprint.texi: Likewise.
46891         * doc/posix-functions/iswpunct.texi: Likewise.
46892         * doc/posix-functions/iswspace.texi: Likewise.
46893         * doc/posix-functions/iswupper.texi: Likewise.
46894         * doc/posix-functions/iswxdigit.texi: Likewise.
46895         Reported by Alain Guibert.
46896
46897 2008-04-21  Bruno Haible  <bruno@clisp.org>
46898
46899         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
46900         Patch by Alain Guibert.
46901
46902 2008-04-21  Bruno Haible  <bruno@clisp.org>
46903
46904         Fix test failures on mingw.
46905         * tests/test-xstrtol.c (print_no_progname): New function.
46906         (main): Install it in error_print_progname hook.
46907         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
46908         * tests/test-xstrtoimax.sh: Likewise.
46909         * tests/test-xstrtoumax.sh: Likewise.
46910
46911 2008-04-21  Bruno Haible  <bruno@clisp.org>
46912
46913         Fix test failure on mingw.
46914         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
46915
46916 2008-04-21  Bruno Haible  <bruno@clisp.org>
46917
46918         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
46919         Actually assign a value.
46920
46921 2008-04-20  Bruno Haible  <bruno@clisp.org>
46922
46923         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
46924         take 2.
46925         * lib/canonicalize.c (canonicalize_file_name): Elide if the
46926         'canonicalize-lgpl' module is also used.
46927         * lib/canonicalize-lgpl.c: Undo last change.
46928         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
46929
46930 2008-04-20  Bruno Haible  <bruno@clisp.org>
46931
46932         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
46933         config.h. Provide _mkdir based fallback for mingw.
46934         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
46935         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
46936         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
46937         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
46938         rather than defining mkdir in config.h.
46939         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
46940         (gl_SYS_STAT_H_DEFAULTS): New macro.
46941         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
46942         HAVE_IO_H any more.
46943         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
46944         HAVE_DECL_MKDIR and HAVE_IO_H.
46945
46946 2008-04-20  Bruno Haible  <bruno@clisp.org>
46947
46948         * lib/isapipe.c: Port to native Windows platforms.
46949
46950 2008-04-20  Bruno Haible  <bruno@clisp.org>
46951
46952         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
46953
46954 2008-04-21  Eric Blake  <ebb9@byu.net>
46955
46956         Work around preprocessors that don't handle UINTMAX_MAX.
46957         * lib/memchr2.c (memchr2): Avoid embedded #if.
46958         Reported by Alain Guibert, fix suggested by Bruno Haible.
46959
46960 2008-04-21  Simon Josefsson  <simon@josefsson.org>
46961
46962         * doc/posix-functions/strftime.texi (strftime): Explain better
46963         Windows incompatibility.  Suggested by Micah Cowan
46964         <micah@cowan.name>.
46965
46966 2008-04-20  Bruno Haible  <bruno@clisp.org>
46967
46968         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
46969         unistr/u8-mblen.
46970
46971 2008-04-20  Bruno Haible  <bruno@clisp.org>
46972
46973         Fix test failure on platforms with non-GNU iconv.
46974         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
46975         (U_TO_U8): Use it, rather than u16_to_u8.
46976         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
46977         units at the end of the input string.
46978         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
46979
46980 2008-04-20  Bruno Haible  <bruno@clisp.org>
46981
46982         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
46983         when the resulting length is 0.
46984         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
46985
46986 2008-04-20  Bruno Haible  <bruno@clisp.org>
46987
46988         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
46989         works.
46990         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
46991
46992 2008-04-20  Bruno Haible  <bruno@clisp.org>
46993
46994         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
46995         * modules/tsearch-tests (configure.ac): Test for initstate function.
46996
46997 2008-04-20  Bruno Haible  <bruno@clisp.org>
46998
46999         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
47000         for nlink_t if missing.
47001         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
47002
47003 2008-04-19  Bruno Haible  <bruno@clisp.org>
47004
47005         Work around snprintf bug on Linux libc5.
47006         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
47007         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47008         gl_SNPRINTF_SIZE1.
47009         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47010         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
47011         that test failed.
47012         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
47013         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
47014         * modules/snprintf (Files): Add m4/printf.m4.
47015         * modules/vsnprintf (Files): Likewise.
47016         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
47017         * doc/posix-functions/vsnprintf.texi: Likewise.
47018
47019 2008-04-19  Bruno Haible  <bruno@clisp.org>
47020
47021         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
47022         from 0.0058 to less than 10^-7.
47023
47024 2008-04-19  Bruno Haible  <bruno@clisp.org>
47025
47026         Fix rounding when a precision is given.
47027         * lib/vasnprintf.c (is_borderline): New function.
47028         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
47029         9...9x.
47030         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
47031         %e, %g.
47032         * tests/test-vasprintf-posix.c (test_function): Likewise.
47033         * tests/test-snprintf-posix.h (test_function): Likewise.
47034         * tests/test-sprintf-posix.h (test_function): Likewise.
47035         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
47036         * tests/test-printf-posix.h (test_function): Likewise.
47037         * tests/test-printf-posix.output: Update.
47038         Reported by John Darrington <john@darrington.wattle.id.au> via
47039         Ben Pfaff <blp@cs.stanford.edu>.
47040
47041 2008-04-18  Simon Josefsson  <simon@josefsson.org>
47042
47043         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
47044         Suggested by Bruno Haible <bruno@clisp.org>.
47045
47046 2008-04-17  Bruno Haible  <bruno@clisp.org>
47047
47048         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
47049         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
47050         implementation.
47051         Patch by Bruce Merry <bmerry@gmail.com>.
47052
47053 2008-04-17  Simon Josefsson  <simon@josefsson.org>
47054
47055         * doc/posix-functions/strftime.texi (strftime): Mention that %e
47056         doesn't work under Windows.
47057
47058 2008-04-16  Bruno Haible  <bruno@clisp.org>
47059
47060         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
47061         New macros.
47062         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
47063         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
47064         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
47065         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
47066         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
47067         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
47068         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
47069         macros.
47070         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
47071         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
47072         Northern Sotho, Uighur.
47073
47074 2008-04-16  Bruno Haible  <bruno@clisp.org>
47075
47076         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
47077         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
47078         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
47079         Reported by Daniel Bergström <daniel@octocode.com>.
47080
47081 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
47082             Bruno Haible  <bruno@clisp.org>
47083
47084         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
47085         function.
47086         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
47087         New functions, mostly extracted from gl_locale_name_default.
47088         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
47089
47090 2008-04-16  Eric Blake  <ebb9@byu.net>
47091
47092         Adjust strtod detection to catch glibc 2.7 bug.
47093         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
47094         Reported by John Gatewood Ham.
47095
47096 2008-04-16  Bruno Haible  <bruno@clisp.org>
47097
47098         Add tentative support for Linux libc5.
47099         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
47100         * lib/fpurge.c (fpurge): Likewise.
47101         * lib/freadable.c (freadable): Likewise.
47102         * lib/freadahead.c (freadahead): Likewise.
47103         * lib/freading.c (freading): Likewise.
47104         * lib/freadptr.c (freadptr): Likewise.
47105         * lib/freadseek.c (freadptrinc): Likewise.
47106         * lib/fseeko.c (rpl_fseeko): Likewise.
47107         * lib/fseterr.c (fseterr): Likewise.
47108         * lib/fwritable.c (fwritable): Likewise.
47109         * lib/fwriting.c (fwriting): Likewise.
47110         Reported by Alain Guibert <alguibert+bts@free.fr>.
47111
47112 2008-04-15  Bruno Haible  <bruno@clisp.org>
47113
47114         * modules/mathl (configure.ac): Define module indicator.
47115
47116 2008-04-15  Bruno Haible  <bruno@clisp.org>
47117
47118         * lib/logl.c (logl): Remove unused variables.
47119
47120 2008-04-15  Bruno Haible  <bruno@clisp.org>
47121
47122         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
47123         fails.
47124
47125 2008-04-15  Bruno Haible  <bruno@clisp.org>
47126
47127         * lib/trim.c (trim2): Fix argument of isspace() macro.
47128
47129 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
47130
47131         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
47132         to 0.
47133         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
47134
47135 2008-04-14  Bruno Haible  <bruno@clisp.org>
47136
47137         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
47138         AC_LANG_PROGRAM argument.
47139         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
47140         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
47141         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
47142         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
47143         * m4/math_h.m4 (gl_MATH_H): Likewise.
47144         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
47145         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47146         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
47147         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
47148         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47149         * m4/regex.m4 (gl_REGEX): Likewise.
47150         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
47151         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
47152         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47153         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
47154         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47155         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47156         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47157         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47158
47159 2008-04-14  Jim Meyering  <meyering@redhat.com>
47160
47161         test-strtod: fix typos: s/abs/fabs/
47162         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
47163
47164 2008-04-13  Bruno Haible  <bruno@clisp.org>
47165
47166         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
47167         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
47168         module is also used and while not building the reloc-wrapper.
47169
47170 2008-04-13  Bruno Haible  <bruno@clisp.org>
47171
47172         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
47173
47174 2008-04-13  Bruno Haible  <bruno@clisp.org>
47175
47176         Fix AIX compilation failure introduced on 2008-04-02.
47177         * tests/test-frexp.c (exp): Undefine before redefining.
47178         * tests/test-frexpl.c (exp): Likewise.
47179
47180 2008-04-13  Bruno Haible  <bruno@clisp.org>
47181
47182         Work around a HP-UX stdio bug.
47183         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
47184         * tests/test-ftello.c (main): Likewise.
47185         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
47186         * doc/posix-functions/ftello.texi: Likewise.
47187
47188 2008-04-13  Bruno Haible  <bruno@clisp.org>
47189
47190         Make test-signbit pass on HP-UX/hppa.
47191         * tests/test-signbit.c (minus_zerol): New variable.
47192         (test_signbitl): Use it.
47193
47194 2008-04-13  Bruno Haible  <bruno@clisp.org>
47195
47196         Make truncl work on OSF/1 4.0.
47197         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
47198         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47199         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47200         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
47201         HAVE_DECL_TRUNCL.
47202         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
47203         HAVE_DECL_TRUNCL.
47204         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
47205
47206 2008-04-13  Bruno Haible  <bruno@clisp.org>
47207
47208         * lib/unictype.h: Remove trailing comma from enumeration definitions.
47209
47210 2008-04-13  Bruno Haible  <bruno@clisp.org>
47211
47212         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
47213         expression, so as to avoid HP-UX 11 cc compiler bug.
47214
47215 2008-04-13  Bruno Haible  <bruno@clisp.org>
47216
47217         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
47218
47219 2008-04-13  Bruno Haible  <bruno@clisp.org>
47220
47221         * lib/git-merge-changelog.c: Remove empty declaration outside of
47222         functions.
47223
47224 2008-04-13  Bruno Haible  <bruno@clisp.org>
47225
47226         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
47227
47228 2008-04-13  Bruno Haible  <bruno@clisp.org>
47229
47230         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
47231         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
47232         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
47233         also if it exists but lacks definitions of the SHUT_* macros.
47234         * modules/sys_socket (Description): Update.
47235         Reported by Elbert Pol <e.pol@chello.nl>.
47236
47237 2008-04-13  Bruno Haible  <bruno@clisp.org>
47238
47239         * lib/localcharset.c (OS2): Don't redefine if already defined.
47240         Reported by Elbert Pol <e.pol@chello.nl>.
47241
47242 2008-04-13  Bruno Haible  <bruno@clisp.org>
47243
47244         * lib/binary-io.h [__EMX__]: Include <io.h>.
47245         Reported by Elbert Pol <e.pol@chello.nl>.
47246
47247 2008-04-12  Bruno Haible  <bruno@clisp.org>
47248
47249         * lib/fpucw.h: Enable the definitions also for x86_64.
47250         Needed for NetBSD/x86_64.
47251         Reported by Thomas Klausner <tk@giga.or.at>.
47252
47253 2008-04-12  Bruno Haible  <bruno@clisp.org>
47254
47255         * tests/test-strtod.c: Include isnand.h.
47256         (main): Use isnand instead of isnan.
47257         Reported by Jim Meyering.
47258
47259 2008-04-12  Bruno Haible  <bruno@clisp.org>
47260
47261         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
47262         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
47263
47264 2008-04-12  Jim Meyering  <meyering@redhat.com>
47265
47266         * m4/math_h.m4 (gl_MATH_H): Fix typos.
47267
47268 2008-04-12  Bruno Haible  <bruno@clisp.org>
47269
47270         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
47271         Reported by Elbert Pol <e.pol@chello.nl>.
47272
47273 2008-04-12  Eric Blake  <ebb9@byu.net>
47274
47275         Work around Solaris 10 math.h bug.
47276         * m4/math_h.m4 (gl_MATH_H): Check for bug.
47277         (gl_MATH_H_DEFAULTS): Set up default.
47278         * modules/math (Makefile.am): Replace new indicators.
47279         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
47280         * tests/test-math.c (main): Test this.
47281         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
47282         * doc/posix-headers/math.texi (math.h): Mention bug.
47283         Reported by Nelson H. F. Beebe and Jim Meyering.
47284
47285 2008-04-11  Bruno Haible  <bruno@clisp.org>
47286
47287         Adapt to future versions of Apple GCC.
47288         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
47289         Reported by Peter O'Gorman <peter@pogma.com>.
47290
47291 2008-04-11  Bruno Haible  <bruno@clisp.org>
47292
47293         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
47294
47295 2008-04-11  Bruno Haible  <bruno@clisp.org>
47296
47297         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
47298
47299         * modules/getaddrinfo-tests (Makefile.am): Define
47300         test_getaddrinfo_LDADD.
47301
47302 2008-04-11  Bruno Haible  <bruno@clisp.org>
47303
47304         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
47305         (init): Fix syntax error.
47306         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
47307         is declared.
47308
47309 2008-04-11  Bruno Haible  <bruno@clisp.org>
47310
47311         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
47312         * modules/glob (Depends-on): Add stdbool.
47313
47314 2008-04-11  Bruno Haible  <bruno@clisp.org>
47315
47316         * lib/trim.c: Include <string.h>.
47317
47318 2008-04-11  Eric Blake  <ebb9@byu.net>
47319
47320         Avoid compile failure on OS/2.
47321         * lib/regex_internal.h (internal_function): Disable optimization
47322         on OS/2 (__EMX__), where it caused compiler error.
47323         Reported by Elbert Pol.
47324
47325 2008-04-11  Bruno Haible  <bruno@clisp.org>
47326
47327         Flush the standard error stream before aborting. Needed on mingw.
47328         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
47329         * tests/test-array_list.c (ASSERT): Likewise.
47330         * tests/test-array_oset.c (ASSERT): Likewise.
47331         * tests/test-avltree_list.c (ASSERT): Likewise.
47332         * tests/test-avltree_oset.c (ASSERT): Likewise.
47333         * tests/test-avltreehash_list.c (ASSERT): Likewise.
47334         * tests/test-binary-io.c (ASSERT): Likewise.
47335         * tests/test-byteswap.c (ASSERT): Likewise.
47336         * tests/test-c-ctype.c (ASSERT): Likewise.
47337         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
47338         * tests/test-c-strcasestr.c (ASSERT): Likewise.
47339         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
47340         * tests/test-c-strstr.c (ASSERT): Likewise.
47341         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
47342         * tests/test-canonicalize.c (ASSERT): Likewise.
47343         * tests/test-carray_list.c (ASSERT): Likewise.
47344         * tests/test-ceilf1.c (ASSERT): Likewise.
47345         * tests/test-ceilf2.c (ASSERT): Likewise.
47346         * tests/test-ceill.c (ASSERT): Likewise.
47347         * tests/test-count-one-bits.c (ASSERT): Likewise.
47348         * tests/test-fbufmode.c (ASSERT): Likewise.
47349         * tests/test-fflush2.c (ASSERT): Likewise.
47350         * tests/test-floorf1.c (ASSERT): Likewise.
47351         * tests/test-floorf2.c (ASSERT): Likewise.
47352         * tests/test-floorl.c (ASSERT): Likewise.
47353         * tests/test-fopen.c (ASSERT): Likewise.
47354         * tests/test-fpending.c (ASSERT): Likewise.
47355         * tests/test-fprintf-posix.c (ASSERT): Likewise.
47356         * tests/test-fpurge.c (ASSERT): Likewise.
47357         * tests/test-freadable.c (ASSERT): Likewise.
47358         * tests/test-freadahead.c (ASSERT): Likewise.
47359         * tests/test-freading.c (ASSERT): Likewise.
47360         * tests/test-freadptr.c (ASSERT): Likewise.
47361         * tests/test-freadptr2.c (ASSERT): Likewise.
47362         * tests/test-freadseek.c (ASSERT): Likewise.
47363         * tests/test-freopen.c (ASSERT): Likewise.
47364         * tests/test-frexp.c (ASSERT): Likewise.
47365         * tests/test-frexpl.c (ASSERT): Likewise.
47366         * tests/test-fseek.c (ASSERT): Likewise.
47367         * tests/test-fseeko.c (ASSERT): Likewise.
47368         * tests/test-fstrcmp.c (ASSERT): Likewise.
47369         * tests/test-ftell.c (ASSERT): Likewise.
47370         * tests/test-ftello.c (ASSERT): Likewise.
47371         * tests/test-func.c (ASSERT): Likewise.
47372         * tests/test-fwritable.c (ASSERT): Likewise.
47373         * tests/test-fwriting.c (ASSERT): Likewise.
47374         * tests/test-getdelim.c (ASSERT): Likewise.
47375         * tests/test-getline.c (ASSERT): Likewise.
47376         * tests/test-i-ring.c (ASSERT): Likewise.
47377         * tests/test-iconv-utf.c (ASSERT): Likewise.
47378         * tests/test-iconv.c (ASSERT): Likewise.
47379         * tests/test-isfinite.c (ASSERT): Likewise.
47380         * tests/test-isnand.c (ASSERT): Likewise.
47381         * tests/test-isnanf.c (ASSERT): Likewise.
47382         * tests/test-isnanl.h (ASSERT): Likewise.
47383         * tests/test-ldexpl.c (ASSERT): Likewise.
47384         * tests/test-linked_list.c (ASSERT): Likewise.
47385         * tests/test-linkedhash_list.c (ASSERT): Likewise.
47386         * tests/test-localename.c (ASSERT): Likewise.
47387         * tests/test-lseek.c (ASSERT): Likewise.
47388         * tests/test-mbscasecmp.c (ASSERT): Likewise.
47389         * tests/test-mbscasestr1.c (ASSERT): Likewise.
47390         * tests/test-mbscasestr2.c (ASSERT): Likewise.
47391         * tests/test-mbscasestr3.c (ASSERT): Likewise.
47392         * tests/test-mbscasestr4.c (ASSERT): Likewise.
47393         * tests/test-mbschr.c (ASSERT): Likewise.
47394         * tests/test-mbscspn.c (ASSERT): Likewise.
47395         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
47396         * tests/test-mbspbrk.c (ASSERT): Likewise.
47397         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
47398         * tests/test-mbsrchr.c (ASSERT): Likewise.
47399         * tests/test-mbsspn.c (ASSERT): Likewise.
47400         * tests/test-mbsstr1.c (ASSERT): Likewise.
47401         * tests/test-mbsstr2.c (ASSERT): Likewise.
47402         * tests/test-mbsstr3.c (ASSERT): Likewise.
47403         * tests/test-memchr2.c (ASSERT): Likewise.
47404         * tests/test-memmem.c (ASSERT): Likewise.
47405         * tests/test-open.c (ASSERT): Likewise.
47406         * tests/test-printf-frexp.c (ASSERT): Likewise.
47407         * tests/test-printf-frexpl.c (ASSERT): Likewise.
47408         * tests/test-printf-posix.c (ASSERT): Likewise.
47409         * tests/test-quotearg.c (ASSERT): Likewise.
47410         * tests/test-rbtree_list.c (ASSERT): Likewise.
47411         * tests/test-rbtree_oset.c (ASSERT): Likewise.
47412         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
47413         * tests/test-round1.c (ASSERT): Likewise.
47414         * tests/test-roundf1.c (ASSERT): Likewise.
47415         * tests/test-roundl.c (ASSERT): Likewise.
47416         * tests/test-signbit.c (ASSERT): Likewise.
47417         * tests/test-sleep.c (ASSERT): Likewise.
47418         * tests/test-snprintf-posix.c (ASSERT): Likewise.
47419         * tests/test-snprintf.c (ASSERT): Likewise.
47420         * tests/test-sprintf-posix.c (ASSERT): Likewise.
47421         * tests/test-stat-time.c (ASSERT): Likewise.
47422         * tests/test-strcasestr.c (ASSERT): Likewise.
47423         * tests/test-strerror.c (ASSERT): Likewise.
47424         * tests/test-striconv.c (ASSERT): Likewise.
47425         * tests/test-striconveh.c (ASSERT): Likewise.
47426         * tests/test-striconveha.c (ASSERT): Likewise.
47427         * tests/test-strsignal.c (ASSERT): Likewise.
47428         * tests/test-strstr.c (ASSERT): Likewise.
47429         * tests/test-strtod.c (ASSERT): Likewise.
47430         * tests/test-trunc1.c (ASSERT): Likewise.
47431         * tests/test-trunc2.c (ASSERT): Likewise.
47432         * tests/test-truncf1.c (ASSERT): Likewise.
47433         * tests/test-truncf2.c (ASSERT): Likewise.
47434         * tests/test-truncl.c (ASSERT): Likewise.
47435         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
47436         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
47437         * tests/test-vasnprintf.c (ASSERT): Likewise.
47438         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
47439         * tests/test-vasprintf.c (ASSERT): Likewise.
47440         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
47441         * tests/test-vprintf-posix.c (ASSERT): Likewise.
47442         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
47443         * tests/test-vsnprintf.c (ASSERT): Likewise.
47444         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
47445         * tests/test-wcwidth.c (ASSERT): Likewise.
47446         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
47447         * tests/test-xprintf-posix.c (ASSERT): Likewise.
47448         * tests/test-xvasprintf.c (ASSERT): Likewise.
47449         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
47450         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
47451         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
47452         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
47453         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
47454         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
47455         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
47456         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
47457         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
47458         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
47459         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
47460         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
47461         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
47462         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
47463         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
47464         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
47465         * tests/unictype/test-block_list.c (ASSERT): Likewise.
47466         * tests/unictype/test-block_of.c (ASSERT): Likewise.
47467         * tests/unictype/test-block_test.c (ASSERT): Likewise.
47468         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
47469         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
47470         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
47471         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
47472         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
47473         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
47474         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
47475         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
47476         * tests/unictype/test-combining.c (ASSERT): Likewise.
47477         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
47478         * tests/unictype/test-digit.c (ASSERT): Likewise.
47479         * tests/unictype/test-mirror.c (ASSERT): Likewise.
47480         * tests/unictype/test-numeric.c (ASSERT): Likewise.
47481         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
47482         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
47483         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
47484         * tests/unictype/test-scripts.c (ASSERT): Likewise.
47485         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
47486         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
47487         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
47488         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
47489         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
47490         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
47491         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
47492         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
47493         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
47494         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
47495         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
47496         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
47497         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
47498         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
47499         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
47500         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
47501         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
47502         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
47503         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
47504         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
47505         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
47506         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
47507         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
47508         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
47509         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
47510         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
47511         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
47512         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
47513         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
47514         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
47515         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
47516         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
47517         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
47518         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
47519         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
47520         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
47521         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
47522         Reported by Eric Blake.
47523
47524 2008-04-11  Bruno Haible  <bruno@clisp.org>
47525
47526         * lib/wchar.in.h: Tweak comment.
47527
47528 2008-04-11  Bruno Haible  <bruno@clisp.org>
47529
47530         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
47531         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
47532         gl_COMMON.
47533         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
47534
47535 2008-04-11  Bruno Haible  <bruno@clisp.org>
47536
47537         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
47538
47539 2008-04-11  Simon Josefsson  <simon@josefsson.org>
47540
47541         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
47542         of attempting to use non-existing /dev/*random.  Based on patch
47543         from Adam Strzelecki <ono@java.pl> in
47544         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
47545
47546 2008-04-08  Bruno Haible  <bruno@clisp.org>
47547
47548         Add tentative support for emx+gcc.
47549         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
47550         * lib/fpurge.c (fpurge): Likewise.
47551         * lib/freadable.c (freadable): Likewise.
47552         * lib/freadahead.c (freadahead): Likewise.
47553         * lib/freading.c (freading): Likewise.
47554         * lib/freadptr.c (freadptr): Likewise.
47555         * lib/freadseek.c (freadptrinc): Likewise.
47556         * lib/fseeko.c (rpl_fseeko): Likewise.
47557         * lib/fseterr.c (fseterr): Likewise.
47558         * lib/fwritable.c (fwritable): Likewise.
47559         * lib/fwriting.c (fwriting): Likewise.
47560         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
47561
47562 2008-04-09  Eric Blake  <ebb9@byu.net>
47563
47564         Avoid some autoconf warnings.
47565         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
47566         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
47567         * m4/afs.m4 (gl_AFS): Likewise.
47568         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
47569         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
47570         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47571         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
47572         (gl_INTEGER_TYPE_SUFFIX): Likewise.
47573         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
47574         (AC_CHECK_DECLS_ONCE): Likewise.
47575         Rename file...
47576         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
47577         gnulib-tool requires autoconf 2.59 or better.
47578         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
47579
47580 2008-04-08  Eric Blake  <ebb9@byu.net>
47581
47582         Use 'git describe --match' if present (added in git 1.5.5).
47583         * build-aux/git-version-gen: Limit result to tags that match 'v*'
47584         if possible.
47585
47586 2008-04-08  Bruno Haible  <bruno@clisp.org>
47587
47588         Add tentative support for OpenServer.
47589         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
47590         _ptr, _cnt.
47591         * lib/fpurge.c (fpurge): Likewise.
47592         * lib/freadable.c (freadable): Likewise.
47593         * lib/freadahead.c (freadahead): Likewise.
47594         * lib/freading.c (freading): Likewise.
47595         * lib/freadptr.c (freadptr): Likewise.
47596         * lib/freadseek.c (freadptrinc): Likewise.
47597         * lib/fseeko.c (rpl_fseeko): Likewise.
47598         * lib/fseterr.c (fseterr): Likewise.
47599         * lib/fwritable.c (fwritable): Likewise.
47600         * lib/fwriting.c (fwriting): Likewise.
47601         Reported by Roger Cornelius <rac@tenzing.org> and
47602         Brian K. White <brian@aljex.com>.
47603
47604 2008-04-06  Jim Meyering  <meyering@redhat.com>
47605
47606         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
47607
47608 2008-04-06  Bruno Haible  <bruno@clisp.org>
47609
47610         Avoid possible error with non-ASCII bytes in UTF-8 locales.
47611         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
47612         * tests/test-printf-posix.sh: Likewise.
47613         * tests/test-vfprintf-posix.sh: Likewise.
47614         * tests/test-vprintf-posix.sh: Likewise.
47615         * tests/test-xprintf-posix.sh: Likewise.
47616
47617 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47618
47619         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
47620         hide error from 'ls', needed on OS/2.
47621         Report by Elbert Pol <elbert.pol@gmail.com>.
47622
47623 2008-04-04  Eric Blake  <ebb9@byu.net>
47624
47625         Make test-fseeko.c failures meaningful.
47626         * tests/test-fseeko.c: Print line number on failure.
47627         * tests/test-fseek.c: Likewise.
47628         Reported by Nelson H. F. Beebe.
47629
47630         Improve strtod bug detection check.
47631         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
47632         required for Solaris 10.
47633         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
47634
47635 2008-04-04  Bruno Haible  <bruno@clisp.org>
47636
47637         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
47638         by m4/setenv.m4.
47639
47640 2008-04-03  Eric Blake  <ebb9@byu.net>
47641
47642         Ensure sane .version contents.
47643         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
47644         version string.
47645         * build-aux/git-version-gen: Improve documentation.
47646
47647         Make GNU make output nicer.
47648         * top/GNUmakefile [!_have-Makefile]: Add dependency on
47649         MAKECMDGOALS to enforce message for all command line targets.  Set
47650         srcdir for use in maint.mk.
47651
47652         Another maintainer tweak.
47653         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
47654         a target that regenerates version.
47655
47656 2008-04-03  Jim Meyering  <meyering@redhat.com>
47657
47658         vc-list-files: don't cause coreutils "make po-check" failure
47659         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
47660
47661 2008-04-03  Eric Blake  <ebb9@byu.net>
47662
47663         Allow VPATH usage of vc-list-files.
47664         * build-aux/vc-list-files (scriptversion): Add timestamp.
47665         (options): Add --help, --version, -C.
47666         (CVS): Support installed cvsu.
47667
47668 2008-04-02  Bruno Haible  <bruno@clisp.org>
47669
47670         Avoid some "statement with no effect" warnings from gcc.
47671         * tests/test-wctype.c (main): Explicitly ignore unused values.
47672         Reported by Jim Meyering.
47673
47674 2008-04-02  Jim Meyering  <meyering@redhat.com>
47675
47676         Avoid some warnings from "gcc -Wshadow".
47677         * tests/test-frexp.c (exp): Define to a different identifier.
47678         * tests/test-frexpl.c (exp): Likewise.
47679
47680 2008-04-03  Jim Meyering  <meyering@redhat.com>
47681
47682         bootstrap: remove dangling *.[ch] symlinks from lib
47683         * build-aux/bootstrap [dangling symlink removal]: Move find's
47684         -depth option to precede all others, to avoid a warning.
47685         Remove *.[ch] files too, and from "$source_base" (usually lib/).
47686
47687 2008-04-02  Bruno Haible  <bruno@clisp.org>
47688
47689         Avoid some warnings from "gcc -Wshadow".
47690         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
47691         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
47692         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
47693         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
47694         Reported by Jim Meyering.
47695
47696 2008-04-01  Bruno Haible  <bruno@clisp.org>
47697
47698         Fix test to work on IRIX 6.5 with cc.
47699         * tests/test-math.c (numeric_equal): New function.
47700         (main): Use it.
47701
47702 2008-04-01  Bruno Haible  <bruno@clisp.org>
47703
47704         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
47705
47706 2008-04-01  Bruno Haible  <bruno@clisp.org>
47707
47708         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
47709         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47710         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
47711         (Depends-on): Remove math.
47712
47713         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
47714         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47715         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
47716         (Depends-on): Remove math.
47717
47718         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
47719         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47720         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
47721         (Depends-on): Remove math.
47722         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
47723         (Depends-on): Remove math.
47724
47725         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
47726         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47727         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
47728         (Depends-on): Remove math.
47729         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
47730         (Depends-on): Remove math.
47731
47732         * tests/test-round1.c: Include nan.h.
47733         (main): Use NaNd instead of NAN.
47734         * modules/round-tests (Files): Add tests/nan.h.
47735
47736         * tests/test-trunc1.c: Include nan.h.
47737         (main): Use NaNd instead of NAN.
47738         * modules/trunc-tests (Files): Add tests/nan.h.
47739
47740         * tests/test-roundf1.c: Include nan.h.
47741         (main): Use NaNf instead of NAN.
47742         * modules/roundf-tests (Files): Add tests/nan.h.
47743
47744         * tests/test-truncf1.c: Include nan.h.
47745         (main): Use NaNf instead of NAN.
47746         * modules/truncf-tests (Files): Add tests/nan.h.
47747
47748         * tests/test-ceilf1.c: Include nan.h.
47749         (main): Use NaNf instead of NAN.
47750         * modules/ceilf-tests (Files): Add tests/nan.h.
47751
47752         * tests/test-floorf1.c: Include nan.h.
47753         (main): Use NaNf instead of NAN.
47754         * modules/floorf-tests (Files): Add tests/nan.h.
47755
47756         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
47757         (main): Use NaNf instead of NAN.
47758         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
47759
47760         * tests/test-isnand.c: Include nan.h instead of <math.h>.
47761         (main): Use NaNd instead of NAN.
47762         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
47763
47764         * tests/test-frexp.c: Include nan.h.
47765         (main): Use NaNd instead of NAN.
47766         * modules/frexp-tests (Files): Add tests/nan.h.
47767
47768         * lib/isnan.c: Don't include <math.h>.
47769         (FUNC): Don't use NAN macro.
47770         * modules/isnand-nolibm (Depends-on): Remove math.
47771         * modules/isnanf-nolibm (Depends-on): Remove math.
47772         * modules/isnanl (Depends-on): Remove math.
47773         * modules/isnanl-nolibm (Depends-on): Remove math.
47774
47775         * tests/nan.h: New file.
47776
47777 2008-04-01  Eric Blake  <ebb9@byu.net>
47778
47779         Fix typos.
47780         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
47781         values to be the right type.
47782
47783         For now, cater to gnulib strtod inaccuracies.
47784         * tests/test-strtod.c (main): Allow 1-ulp error on expected
47785         fractional results.  While not as nice from a QoI perspective, it
47786         is a quicker patch than correctly implementing decimal to binary
47787         rounding.
47788
47789 2008-03-31  Eric Blake  <ebb9@byu.net>
47790
47791         Guarantee a definition of NAN.
47792         * lib/math.in.h (NAN): Define if missing.
47793         * tests/test-math.c (main): Test it.
47794         * doc/posix-headers/math.texi (math.h): Document this.
47795         * lib/isnan.c (rpl_isnand): Use it.
47796         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
47797         * tests/test-floorf1.c (NaN): Likewise.
47798         * tests/test-frexp.c (NaN): Likewise.
47799         * tests/test-isnand.c (NaN): Likewise.
47800         * tests/test-isnanf.c (NaN): Likewise.
47801         * tests/test-round1.c (NaN): Likewise.
47802         * tests/test-roundf1.c (NaN): Likewise.
47803         * tests/test-snprintf-posix.h (NaN): Likewise.
47804         * tests/test-sprintf-posix.h (NaN): Likewise.
47805         * tests/test-trunc1.c (NaN): Likewise.
47806         * tests/test-truncf1.c (NaN): Likewise.
47807         * tests/test-vasnprintf-posix.c (NaN): Likewise.
47808         * tests/test-vasprintf-posix.c (NaN): Likewise.
47809         * modules/isnand-nolibm (Depends-on): Add math.
47810         * modules/isnanf-nolibm (Depends-on): Likewise.
47811         * modules/isnanl (Depends-on): Likewise.
47812         * modules/isnanl-nolibm (Depends-on): Likewise.
47813         * modules/snprintf-posix-tests (Depends-on): Likewise.
47814         * modules/sprintf-posix-tests (Depends-on): Likewise.
47815         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
47816         * modules/vsprintf-posix-tests (Depends-on): Likewise.
47817         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
47818         * modules/vasprintf-posix-tests (Depends-on): Likewise.
47819
47820 2008-03-31  Bruno Haible  <bruno@clisp.org>
47821
47822         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
47823         * doc/posix-functions/strtod.texi: Likewise.
47824
47825 2008-03-31  Bruno Haible  <bruno@clisp.org>
47826
47827         * tests/test-strtod.c (main): Don't use C99 syntax.
47828
47829 2008-03-31  Bruno Haible  <bruno@clisp.org>
47830
47831         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
47832         Reported by Eric Blake.
47833
47834 2008-03-31  Jim Meyering  <meyering@redhat.com>
47835
47836         Don't compare actual signbit return values.
47837         * tests/test-strtod.c (main): Rather, compare only their
47838         zero/non-zero nature.
47839
47840 2008-03-31  Eric Blake  <ebb9@byu.net>
47841
47842         More strtod documentation.
47843         * doc/posix-functions/strtod.texi (strtod): Interpret more test
47844         failures as distinct bugs.
47845
47846 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
47847
47848         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
47849         Problem reported by Erik Benada in
47850         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
47851
47852 2008-03-30  Bruno Haible  <bruno@clisp.org>
47853
47854         * tests/test-strtod.c: Add comments about which assertion fails on which
47855         platform.
47856         * doc/posix-functions/strtod.texi: Add info about many more platforms.
47857
47858 2008-03-30  Eric Blake  <ebb9@byu.net>
47859
47860         Test signbit behavior on zeros.
47861         * tests/test-signbit.c (test_signbitf): Add tests for zero.
47862         (test_signbitd, test_signbitl): Likewise.
47863
47864         More strtod touchups.
47865         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
47866         sign of negative underflow, for now.  Use .5, not .1.
47867         * doc/posix-functions/strtod.texi (strtod): Mention these
47868         limitations.
47869         Reported by Jim Meyering.
47870
47871 2008-03-30  Bruno Haible  <bruno@clisp.org>
47872
47873         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
47874         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
47875
47876 2008-03-30  Bruno Haible  <bruno@clisp.org>
47877
47878         Avoid failure when attempting to return empty iconv results on some
47879         platforms.
47880         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
47881         allocation, don't report ENOMEM when the resulting string is empty.
47882
47883 2008-03-30  Bruno Haible  <bruno@clisp.org>
47884
47885         Fix buffer overrun.
47886         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
47887         Don't consider the width for tmp_length. Check count against tmp_length
47888         before doing the padding. Ensure enough allocation during padding.
47889
47890 2008-03-30  Eric Blake  <ebb9@byu.net>
47891
47892         strtod touchups.
47893         * lib/strtod.c (strtod): Avoid compiler warnings.
47894         Reported by Jim Meyering.
47895
47896 2008-03-30  Bruno Haible  <bruno@clisp.org>
47897
47898         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
47899         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
47900         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
47901         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
47902         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
47903         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
47904         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
47905         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
47906
47907         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
47908         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
47909         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
47910         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
47911         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
47912         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
47913         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
47914         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
47915
47916         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
47917         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
47918         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
47919         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
47920         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
47921         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
47922         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
47923         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
47924
47925         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
47926         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
47927
47928         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
47929         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
47930
47931         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
47932         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
47933
47934         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
47935         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
47936         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
47937
47938         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
47939         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
47940         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
47941
47942         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
47943         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
47944         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
47945
47946         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
47947         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
47948         * modules/vasprintf (Depends-on): Add EOVERFLOW.
47949
47950         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
47951         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
47952         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
47953         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
47954         (Depends-on): Add EOVERFLOW.
47955         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
47956         (Depends-on): Add EOVERFLOW.
47957         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47958         (Depends-on): Add EOVERFLOW.
47959         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47960         (Depends-on): Add EOVERFLOW.
47961         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47962         (Depends-on): Add EOVERFLOW.
47963         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47964         (Depends-on): Add EOVERFLOW.
47965         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47966         (Depends-on): Add EOVERFLOW.
47967         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47968         (Depends-on): Add EOVERFLOW.
47969
47970         * lib/sprintf.c (EOVERFLOW): Remove fallback.
47971         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
47972         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
47973
47974         * lib/snprintf.c (EOVERFLOW): Remove fallback.
47975         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
47976         * modules/snprintf (Depends-on): Add EOVERFLOW.
47977
47978         * lib/poll.c (EOVERFLOW): Remove fallback.
47979         * modules/poll (Depends-on): Add EOVERFLOW.
47980
47981         * lib/getugroups.c (EOVERFLOW): Remove fallback.
47982         * modules/getugroups (Depends-on): Add EOVERFLOW.
47983
47984         * lib/getdelim.c (EOVERFLOW): Remove fallback.
47985         * modules/getdelim (Depends-on): Add EOVERFLOW.
47986
47987         * lib/ftell.c (EOVERFLOW): Remove fallback.
47988         * modules/ftell (Depends-on): Add EOVERFLOW.
47989
47990         * lib/fprintf.c (EOVERFLOW): Remove fallback.
47991         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
47992         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
47993
47994         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
47995
47996         * modules/EOVERFLOW-tests: New file.
47997         * tests/test-EOVERFLOW.c: New file.
47998
47999         * modules/EOVERFLOW: New file.
48000         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
48001
48002 2008-03-30  Bruno Haible  <bruno@clisp.org>
48003
48004         Fix bug introduced on 2007-06-10.
48005         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
48006         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
48007
48008 2008-03-30  Bruno Haible  <bruno@clisp.org>
48009
48010         Improve freadseek's efficiency after ungetc.
48011         * lib/freadseek.c: Include freadahead.h.
48012         (freadptrinc): New function, extracted from freadseek.
48013         (freadseek): Use it in a loop. Use freadahead to determine the number
48014         of loop iterations.
48015         * modules/freadseek (Depends-on): Add freadahead.
48016         (configure.ac): Require AC_C_INLINE.
48017
48018 2008-03-30  Bruno Haible  <bruno@clisp.org>
48019
48020         * lib/freadseek.c (freadseek): Don't ignore the return value of
48021         freadptr.
48022
48023 2008-03-29  Eric Blake  <ebb9@byu.net>
48024
48025         Add hex float support.
48026         * modules/strtod (Depends-on): Add c-ctype.
48027         (Link): Mention POW_LIB.
48028         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
48029         whitespace between 'e' and exponent.
48030         * tests/test-strtod.c (main): Enable hex float tests.
48031         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
48032         now provides.
48033
48034         Document various strtod bugs, with some fixes.
48035         * doc/posix-functions/strtod.texi (strtod): Document bugs with
48036         "-0x", "inf", "nan", and hex constants.
48037         * doc/posix-functions/atof.texi (atof): Likewise.
48038         * modules/stdlib (Makefile.am): Support strtod.
48039         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
48040         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
48041         detect additional strtod bugs.
48042         * lib/stdlib.in.h (rpl_strtod): Add declarations.
48043         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
48044         bool where appropriate.  Parse 'inf' and 'nan'.
48045         * tests/test-strtod.c: New file.
48046         * modules/strtod (Depends-on): Add stdbool, stdlib.
48047         (configure.ac): Turn on module indicator.
48048         * modules/strtod-tests: New module.
48049
48050 2008-03-29  Eric Blake  <ebb9@byu.net>
48051
48052         Fix ftell on mingw.
48053         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
48054         * modules/ftell-tests (Depends-on): Add binary-io.
48055         * modules/ftello-tests (Depends-on): Likewise.
48056         * tests/test-ftell.c (main): Enhance test to cover behavior after
48057         ungetc.  Enforce binary mode.
48058         * tests/test-ftello.c (main): Likewise.
48059
48060         Pass test-freadseek on cygwin.
48061         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
48062         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
48063         ungetc buffer.
48064
48065         * tests/test-fflush2.c (main): Fix typo.
48066
48067 2008-03-29  Bruno Haible  <bruno@clisp.org>
48068
48069         * tests/test-fflush2.c (main): Temporarily disable the contents of
48070         this test.
48071         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
48072         Reported by Eric Blake.
48073
48074 2008-03-28  Simon Josefsson  <simon@josefsson.org>
48075
48076         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
48077         (GC_SHA224_DIGEST_SIZE): Add.
48078
48079         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
48080         (gc_hash_digest_length): Likewise.
48081         (gc_hash_buffer): Likewise.
48082
48083 2008-03-25  Bruno Haible  <bruno@clisp.org>
48084
48085         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
48086         detail which gettext release to use.
48087         Reported by Simon Josefsson.
48088
48089 2008-03-26  Jim Meyering  <meyering@redhat.com>
48090
48091         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
48092         * modules/gnumakefile (clean-GNUmakefile): Also, use
48093         test ... && ... || : syntax rather than if-then ... fi.
48094
48095         gnumakefile: Don't double-quote-expand $(VPATH) value.
48096         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
48097
48098 2008-03-24  Eric Blake  <ebb9@byu.net>
48099
48100         Alter GNUmakefile to install into top directory.
48101         * modules/maintainer-makefile: Split, and add dependency...
48102         * modules/gnumakefile: to this new module.
48103         * build-aux/GNUmakefile: Move...
48104         * top/GNUmakefile: ...here.
48105         * build-aux/maint.mk: Move...
48106         * top/maint.mk: ...here.
48107         * MODULES.html.sh (Support for maintaining...): Document new
48108         module.
48109
48110 2008-03-23  Bruno Haible  <bruno@clisp.org>
48111
48112         * gnulib-tool: New options --vc-files, --no-vc-files.
48113         (func_usage): Document them.
48114         (vc_files): New variable.
48115         (func_import): Consider vc_files.
48116         (func_create_testdir): Set vc_files to empty.
48117         Suggested by Jim Meyering and Karl Berry.
48118
48119 2008-03-23  Bruno Haible  <bruno@clisp.org>
48120
48121         Fix regex compilation error on HP-UX 11.
48122         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
48123         * modules/regex (Files): Add m4/mbstate_t.m4.
48124         Reported by Ton Voon <ton.voon@altinity.com>.
48125
48126 2008-03-23  Bruno Haible  <bruno@clisp.org>
48127
48128         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
48129
48130 2008-03-23  Eric Blake  <ebb9@byu.net>
48131             Bruno Haible  <bruno@clisp.org>
48132
48133         Install files from top/ in the destination directory.
48134         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
48135         augmentation also for the files from top/.
48136         (func_import, func_create_testdir): Rewrite file names:
48137         top/filename -> filename.
48138
48139 2008-03-23  Bruno Haible  <bruno@clisp.org>
48140
48141         Tweak "gnulib --version" output.
48142         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
48143
48144 2008-03-23  Bruno Haible  <bruno@clisp.org>
48145
48146         Tweak "gnulib --version" output.
48147         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
48148         rather than contents of ChangeLog, when possible.
48149
48150 2008-03-21  Eric Blake  <ebb9@byu.net>
48151
48152         More --version tweaks.
48153         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
48154         date of last ChangeLog entry.
48155
48156 2008-03-21  Jim Meyering  <meyering@redhat.com>
48157
48158         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
48159
48160 2008-03-20  Eric Blake  <ebb9@byu.net>
48161
48162         VPATH fix.
48163         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
48164
48165 2008-03-20  Simon Josefsson  <simon@josefsson.org>
48166
48167         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
48168         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
48169
48170 2008-03-20  Eric Blake  <ebb9@byu.net>
48171
48172         Sync GNUmakefile with coreutils.
48173         * build-aux/GNUmakefile (have-Makefile): Rename...
48174         (_have-Makefile): ...to this, for namespace consideration.
48175         (GNUmakefile.cfg): Include, if present.
48176         (_autoreconf): Define a default.
48177         (_is-dist-target): New rule for rebuilds to pick up intra-release
48178         version.
48179         (maint-cfg.mk): Rename...
48180         (cfg.mk): ...to this.
48181
48182 2008-03-18  Jim Meyering  <meyering@redhat.com>
48183
48184         New script and module: mktempd
48185         * MODULES.html.sh (maint+release support): Add mktempd.
48186         * build-aux/mktempd: New file.
48187         * modules/mktempd: New file.
48188
48189 2008-03-15  Jim Meyering  <meyering@redhat.com>
48190
48191         Undo last change.
48192         * lib/sha1.c, lib/md5.c: 63 != ~63.
48193         Reported by Andreas Schwab.
48194
48195         sha1.c, md5.c: Hoist a redundant expression.
48196         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
48197         "ctx->buflen" only once, before calling *_process_block.
48198         * lib/md5.c (md5_process_bytes): Likewise.
48199
48200 2008-03-14  Eric Blake  <ebb9@byu.net>
48201
48202         Bump copyright year in files generated by gnulib-tool.
48203         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
48204         gnulib-tool, rather than hard-coding it.
48205
48206         Fix 'gnulib-tool --version' output to work with git.
48207         * gnulib-tool (func_gnulib_dir): New function, extracted from...
48208         (startup): ...here.
48209         (func_version): Use it to invoke git-version-gen, rather than
48210         relying on CVS keyword expansion.  Modernize wording.
48211         (cvsdatestamp, last_checkin_date, version): Kill unused
48212         variables.
48213
48214 2008-03-12  Jim Meyering  <meyering@redhat.com>
48215
48216         Recognize optional cast of the argument to free.
48217         * build-aux/useless-if-before-free: Update regexps.
48218
48219         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
48220
48221 2008-03-11  Bruno Haible  <bruno@clisp.org>
48222
48223         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
48224         by a single package.
48225         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
48226         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
48227         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
48228         Reported by Sam Steingold <sds@gnu.org>.
48229
48230 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48231
48232         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
48233         repositories.
48234
48235 2008-03-11  Bruno Haible  <bruno@clisp.org>
48236
48237         Avoid conflicts between local macro definitions.
48238         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48239         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
48240
48241 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
48242             Bruno Haible  <bruno@clisp.org>
48243
48244         Make va_copy work with some version of xlc on AIX 5.1.
48245         * lib/stdarg.in.h: New file.
48246         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
48247         On AIX, use a <stdarg.h> file substitute.
48248         * modules/stdarg (Files): Add lib/stdarg.in.h.
48249         (Depends-on): Add include_next.
48250         (Makefile.am): Build a stdarg.h substitute if requested.
48251         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
48252
48253 2008-03-10  Bruno Haible  <bruno@clisp.org>
48254
48255         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
48256         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48257         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48258
48259 2008-03-10  Bruno Haible  <bruno@clisp.org>
48260
48261         * modules/stdlib (Depends-on): Add include_next, remove
48262         absolute-header.
48263
48264 2008-03-09  Bruno Haible  <bruno@clisp.org>
48265
48266         * lib/freadahead.h (freadahead): Document more precisely.
48267         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
48268         the sum of both buffer sizes.
48269         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
48270         * NEWS: Document the change.
48271
48272 2008-03-09  Bruno Haible  <bruno@clisp.org>
48273
48274         Extend freadptr to return also the buffer size.
48275         * lib/freadptr.h (freadptr): Add sizep argument.
48276         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
48277         (freadptr): Add sizep argument. Determine buffer size like freadahead
48278         does.
48279         * tests/test-freadptr.c: Don't include freadahead.h.
48280         (main): Adapt for new calling convention of freadptr.
48281         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
48282         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
48283         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
48284         tests/test-freadptr2.sh.
48285         (Depends): Remove freadahead.
48286         (TESTS): Add test-freadptr2.sh.
48287         (check_PROGRAMS): Add test-freadptr2.
48288
48289 2008-03-09  Bruno Haible  <bruno@clisp.org>
48290
48291         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
48292         Report and solution by Simon Josefsson.
48293
48294 2008-03-06  Bruno Haible  <bruno@clisp.org>
48295
48296         Make fflush after ungetc work on BSD platforms.
48297         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
48298         * tests/test-fflush2.c: New file.
48299         * tests/test-fflush2.sh: New file.
48300         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
48301         tests/test-fflush2.c.
48302         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
48303         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
48304
48305 2008-03-06  Eric Blake  <ebb9@byu.net>
48306
48307         Likewise for ftello.
48308         * modules/ftello (Dependencies): Add extensions.
48309         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
48310
48311 2008-03-06  Bruno Haible  <bruno@clisp.org>
48312
48313         * modules/fseeko (Dependencies): Add extensions.
48314         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
48315         Needed on glibc systems.
48316
48317 2008-03-06  Bruno Haible  <bruno@clisp.org>
48318
48319         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
48320         email address.
48321         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48322
48323 2008-03-06  Bruno Haible  <bruno@clisp.org>
48324
48325         * users.txt: Add libgnupdf.
48326
48327 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48328
48329         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
48330         (Header File Substitutes, Function Substitutes,
48331         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
48332         (Build robot for gnulib): Fix typo.
48333
48334 2008-03-06  Bruno Haible  <bruno@clisp.org>
48335
48336         * doc/gnulib-tool.texi (VCS Issues): Small updates.
48337         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48338
48339 2008-03-06  Bruno Haible  <bruno@clisp.org>
48340
48341         * doc/func.texi: New file, extracted from doc/gnulib.texi.
48342         * doc/gnulib.texi: Include it.
48343
48344 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48345
48346         * modules/func (License): Change license to unlimited; there was
48347         no LGPL parts in the module anyway.
48348
48349 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48350
48351         * modules/__func__: Renamed to modules/func.
48352         * modules/__func__-tests: Renamed to modules/func-tests.
48353         * tests/test-__func__.c: Renamed to tests/test-func.c.
48354         * m4/__func__.m4: Renamed to m4/func.m4.
48355         * doc/gnulib.texi (__func__): Section renamed to func.
48356         Suggested by Eric Blake <ebb9@byu.net>.
48357
48358 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48359
48360         * doc/gnulib.texi (__func__): Use C99 terminology when talking
48361         about __func__.  Make example self-contained.  Suggested by Eric
48362         Blake <ebb9@byu.net>.
48363
48364         * tests/test-__func__.c (main): Avoid extraneous () around __func.
48365         Suggested by Eric Blake <ebb9@byu.net>.
48366
48367 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48368
48369         * modules/__func__: New file.
48370         * modules/__func__-tests: New file.
48371         * tests/test-__func__.c: New file.
48372         * m4/__func__.m4: New file.
48373         * doc/gnulib.texi (__func__): Document __func__ module.
48374
48375 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48376
48377         * modules/byteswap (License): Re-license as LGPLv2+.
48378
48379 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48380
48381         * doc/Makefile: Add pdf target.
48382
48383 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48384
48385         * modules/inline (License): Use 'unlimited', since there are only
48386         *.m4 files in this module.
48387
48388 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48389             Bruno Haible  <bruno@clisp.org>
48390
48391         Add support for HP C 7.1 on OpenVMS 8.3.
48392         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
48393
48394 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48395
48396         Update VMS specifics.
48397         * lib/getopt.c [VMS]: Remove include of unixlib.h.
48398
48399 2008-03-02  Jim Meyering  <meyering@redhat.com>
48400
48401         Remove the last dependency on the "free" module.
48402         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
48403         Reported by Bob Proulx.
48404
48405         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
48406
48407         Remove useless "if" tests before free.  Deprecate "free" module.
48408         * doc/posix-functions/free.texi: Mention that this
48409         module is no longer useful.
48410         * modules/free (Notice): Say this module is obsolete.
48411         * modules/readutmp (Depends-on): Remove free.
48412         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
48413         * lib/putenv.c (putenv): Likewise.
48414         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
48415         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
48416         * tests/test-c-strcasestr.c (main): Likewise.
48417         * tests/test-c-strstr.c (main): Likewise.
48418         * tests/test-mbscasestr1.c (main): Likewise.
48419         * tests/test-mbscasestr2.c (main): Likewise.
48420         * tests/test-mbsstr1.c (main): Likewise.
48421         * tests/test-mbsstr2.c (main): Likewise.
48422         * tests/test-memmem.c (main): Likewise.
48423         * tests/test-strcasestr.c (main): Likewise.
48424         * tests/test-striconv.c (main): Likewise.
48425         * tests/test-striconveh.c (main): Likewise.
48426         * tests/test-striconveha.c (main): Likewise.
48427         * tests/test-strstr.c (main): Likewise.
48428
48429         * build-aux/git-version-gen: Adjust a comment and the Usage string.
48430
48431         bootstrap: sync from coreutils again
48432         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
48433
48434 2008-03-01  Jim Meyering  <meyering@redhat.com>
48435
48436         bootstrap: sync from coreutils
48437         * build-aux/bootstrap (update_po_files): Copy a .po file into place
48438         also when the target doesn't exist.
48439
48440 2008-03-01  Eric Blake  <ebb9@byu.net>
48441
48442         Fix bugs in last patch.
48443         * lib/memchr2.c (memchr2): Fix typo.
48444         * tests/test-memchr2.c: Test previous bug, and don't use GNU
48445         extension.
48446         Reported by Bruce Korb.
48447
48448         New module 'memchr2'.
48449         * modules/memchr2: New file.
48450         * modules/memchr2-tests: Likewise.
48451         * lib/memchr2.h: Likewise.
48452         * lib/memchr2.c: Likewise, based on memchr.c.
48453         * tests/test-memchr2.c: New test.
48454         * MODULES.html.sh (String handling): Add memchr2.
48455
48456 2008-02-29  Bruno Haible  <bruno@clisp.org>
48457
48458         * modules/freadseek-tests: New file.
48459         * tests/test-freadseek.sh: New file.
48460         * tests/test-freadseek.c: New file.
48461
48462         New module 'freadseek'.
48463         * modules/freadseek: New file.
48464         * lib/freadseek.h: New file.
48465         * lib/freadseek.c: New file.
48466         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
48467
48468 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
48469
48470         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
48471         wydawca.
48472
48473         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
48474         program_invocation_name and program_invocation_short_name are
48475         present.
48476
48477 2008-02-28  Bruno Haible  <bruno@clisp.org>
48478
48479         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
48480         * tests/test-freadptr.sh: Also test non-seekable stdin.
48481
48482 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
48483
48484         * build-aux/bootstrap (source_base, m4_base)
48485         (doc_base, tests_base): New variables.
48486         (gnulib_tool_options): Do not hardcode base directories, use
48487         the above variables instead.
48488
48489 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
48490
48491         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
48492
48493 2008-02-28  Bruno Haible  <bruno@clisp.org>
48494
48495         * modules/freadptr-tests: New file.
48496         * tests/test-freadptr.sh: New file.
48497         * tests/test-freadptr.c: New file.
48498
48499         New module 'freadptr'.
48500         * modules/freadptr: New file.
48501         * lib/freadptr.h: New file.
48502         * lib/freadptr.c: New file.
48503         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
48504
48505 2008-02-26  Karl Berry  <karl@freefriends.org>
48506
48507         Sync from Libtool:
48508         * libltdl/argz.c (argz_add, argz_count): New functions.
48509         * libltdl/argz.in.h: Declare them.
48510         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
48511
48512 2008-02-22  Bruno Haible  <bruno@clisp.org>
48513
48514         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
48515         is a pointer type.  Needed for HP-UX 10.
48516         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
48517         * doc/posix-functions/gmtime_r.texi: Likewise.
48518         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48519
48520 2008-02-24  Bruno Haible  <bruno@clisp.org>
48521
48522         * modules/environ-tests: New file.
48523         * tests/test-environ.c: New file.
48524
48525         New module 'environ'.
48526         * modules/environ: New file.
48527         * lib/unistd.in.h (environ): New declaration.
48528         * m4/environ.m4: New file.
48529         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
48530         after use.
48531         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
48532         HAVE_DECL_ENVIRON.
48533         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
48534         HAVE_DECL_ENVIRON.
48535         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
48536         wrong claim that 'environ' is missing on some systems.
48537         * modules/execute (Depends-on): Add environ.
48538         * lib/execute.c (environ): Remove fallback declaration.
48539         * modules/pipe (Depends-on): Add environ.
48540         * lib/pipe.c (environ): Remove fallback declaration.
48541         * modules/setenv (Depends-on): Add environ.
48542         * lib/setenv.c (environ): Remove fallback declaration.
48543         * modules/unsetenv (Depends-on): Add environ.
48544         * lib/unsetenv.c (environ): Remove fallback declaration.
48545         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
48546         m4/environ.m4.
48547         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
48548         (gl_PREREQ_UNSETENV): Likewise.
48549
48550 2008-02-24  Bruno Haible  <bruno@clisp.org>
48551
48552         * doc/posix-functions/environ.texi: Document the MacOS X problem.
48553
48554 2008-02-20  Bob Proulx  <bob@proulx.com>
48555
48556         Enable use of older two part flavor 'git describe'.
48557         * build-aux/git-version-gen: If using the older two part flavor of
48558         git version then recreate the third part now present in the
48559         newer three part flavor of git describe.
48560
48561 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
48562
48563         * lib/fts.c (fts_build): Typo correction to comment.
48564
48565 2008-02-17  Bruno Haible  <bruno@clisp.org>
48566
48567         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
48568         generating no-op conflicts.
48569
48570 2008-02-17  Bruno Haible  <bruno@clisp.org>
48571
48572         Speed up by 10%.
48573         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
48574         result_entries, rather than an index-based loop.
48575
48576 2008-02-17  Bruno Haible  <bruno@clisp.org>
48577
48578         Speed up by 25%.
48579         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
48580         'hashcode_cached'.
48581         (entry_create): New function.
48582         (entry_hashcode): Use the cached hashcode if possible.
48583         (read_changelog_file, try_split_merged_entry): Use entry_create.
48584
48585 2008-02-17  Bruno Haible  <bruno@clisp.org>
48586
48587         Speed up from O(n^2) to O(n) for long ChangeLog files.
48588         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
48589         (read_changelog_file): Change implementation of entries_reversed list
48590         to rbtreehash.
48591         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
48592
48593 2008-02-17  Bruno Haible  <bruno@clisp.org>
48594
48595         New option --split-merged-entry.
48596         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
48597         (find_paragraph_end, try_split_merged_entry): New functions.
48598         (long_options): Add option --split-merged-entry.
48599         (usage): Document option --split-merged-entry.
48600         (main): Implement option --split-merged-entry.
48601         Reported by Eric Blake.
48602
48603 2008-02-17  Bruno Haible  <bruno@clisp.org>
48604
48605         * lib/git-merge-changelog.c: Include c-strstr.h.
48606         (main): Support the "git pull --rebase" situation.
48607         * modules/git-merge-changelog (Depends-on): Add c-strstr.
48608         Reported by Eric Blake.
48609
48610 2008-02-16  Eric Blake  <ebb9@byu.net>
48611
48612         Avoid doubling \ in common case of "c-maybe" quoting style.
48613         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
48614         eliding outer quotes.
48615         * lib/quotearg.h: Document this.
48616         * tests/test-quotearg.c (result_strings, inputs, results_g)
48617         (flag_results, locale_results): Test it by adding a new string to
48618         each test group.
48619         (compare_strings): Test new string.
48620
48621 2008-02-13  Eric Blake  <ebb9@byu.net>
48622
48623         Avoid trigraph quoting in default output.
48624         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
48625         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
48626         unless explicitly requested.
48627         * tests/test-quotearg.c (flag_results, main): Add additional tests.
48628
48629 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
48630
48631         Don't rely on signed integer overflowing to negative value.
48632         * lib/getugroups.c (getugroups): Include <limits.h>.
48633         Instead, compare against INT_MAX, and increment only if the test passes.
48634
48635 2008-02-13  Jim Meyering  <meyering@redhat.com>
48636         and Eric Blake  <ebb9@byu.net>
48637
48638         Avoid shadowing warning and compile errors on Linux.
48639         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
48640         forwarding macros on Linux.
48641         (dcgettext): Define a stub, for Linux.
48642         (results_g, main): Avoid warnings.
48643
48644 2008-02-12  Eric Blake  <ebb9@byu.net>
48645
48646         Silence warning in last patch.
48647         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
48648
48649         Quotearg part 4: add tests, fix c-maybe colon quoting.
48650         * lib/quotearg.h: Improve documentation.
48651         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
48652         escapes when adding outer quotes.  When quoting trigraphs, use
48653         valid C notation.  When quoting NUL, omit extra characters if next
48654         character is not digit.  Alter prototype.
48655         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
48656         callers.
48657         * modules/quotearg-tests: New module.
48658         * tests/test-quotearg.c: New test.
48659
48660 2008-02-07  Eric Blake  <ebb9@byu.net>
48661
48662         Quotearg part 3: add flag to control outer quote elision.
48663         * lib/quotearg.h (c_maybe_quoting_style): New style.
48664         (enum quoting_flags): Better documentation of flags.
48665         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
48666         c-maybe style.
48667         (quotearg_buffer_restyled): Handle new flag to elide outer
48668         quotes.
48669
48670         Quotearg part 2: add flag that can control NUL elision.
48671         * lib/quotearg.h (set_quoting_flags): New prototype.
48672         * lib/quotearg.c (struct quoting_options): Add flag field.
48673         (set_quoting_flags): New function.
48674         (quotearg_buffer_restyled): Add flags parameter.
48675         (quotearg_alloc_mem): Set the flag if length cannot be returned.
48676         (quotearg_n_options): Set the flag, since length cannot be
48677         returned.
48678         (quoting_options_from_style): Default flags correctly.
48679
48680         Quotearg part 1: more wrappers, restore quotearg_char state.
48681         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
48682         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
48683         (quotearg_colon_mem): New wrappers.
48684         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
48685         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
48686         functions.
48687         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
48688         (quotearg_colon_mem): New functions.
48689
48690 2008-02-11  Bruno Haible  <bruno@clisp.org>
48691
48692         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
48693         library in the current directory: it does not work with parallel make.
48694         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48695
48696 2008-02-11  Bruno Haible  <bruno@clisp.org>
48697
48698         * .gitattributes: New file.
48699
48700 2008-02-11  Jim Meyering  <meyering@redhat.com>
48701
48702         useless-if-before-free: Fix reversed exit values.
48703         * build-aux/useless-if-before-free: Use correct values
48704         for EXIT_MATCH and EXIT_NO_MATCH.
48705
48706         * build-aux/useless-if-before-free: Close stdout carefully.
48707
48708 2008-02-10  Bruno Haible  <bruno@clisp.org>
48709
48710         New module 'git-merge-changelog'.
48711         * modules/git-merge-changelog: New file.
48712         * lib/git-merge-changelog.c: New file.
48713
48714 2008-02-10  Jim Meyering  <meyering@redhat.com>
48715
48716         useless-if-before-free: New option: --list (-l).
48717
48718         useless-if-before-free: Don't exit immediately upon open failure.
48719         * build-aux/useless-if-before-free: Exit 2 for errors.
48720         Upon failure to open a file, don't exit immediately.
48721         Rather, just warn and continue with any remaining files.
48722
48723 2008-02-10  Bruno Haible  <bruno@clisp.org>
48724
48725         New abstract list operation 'node_set_value'.
48726         * lib/gl_list.h (gl_list_node_set_value): New function.
48727         (struct gl_list_implementation): New field node_set_value.
48728         * lib/gl_list.c (gl_list_node_set_value): New function.
48729         * lib/gl_array_list.c (gl_array_node_set_value): New function.
48730         (gl_array_list_implementation): Update.
48731         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
48732         (gl_carray_list_implementation): Update.
48733         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
48734         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48735         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48736         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
48737         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48738         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48739         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48740         Update.
48741         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
48742         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
48743         (gl_sublist_list_implementation): Update.
48744
48745 2008-02-10  Bruno Haible  <bruno@clisp.org>
48746
48747         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
48748         Needed when ELEMENT is #defined to 'some_type *'.
48749
48750 2008-02-10  Jim Meyering  <meyering@redhat.com>
48751
48752         New script and module: useless-if-before-free
48753         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
48754         * build-aux/useless-if-before-free: New file.
48755         * modules/useless-if-before-free: New file.
48756
48757         * build-aux/gitlog-to-changelog: Use committer date, not author date.
48758
48759         xstrtol_error: Fix typo.
48760         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
48761         s/exit_failure/exit_status/.
48762
48763 2008-02-09  Jim Meyering  <meyering@redhat.com>
48764
48765         New script and module: gitlog-to-changelog
48766         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
48767         * modules/gitlog-to-changelog: New file.
48768         * build-aux/gitlog-to-changelog: New file.
48769
48770 2008-02-08  Jim Meyering  <meyering@redhat.com>
48771
48772         Avoid two "parameter unused" warnings.
48773         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
48774         Mark "st" as used.
48775
48776         Use "git COMMAND", not "git-COMMAND".
48777         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
48778         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
48779         * build-aux/git-version-gen: Use "git status", not "git-status".
48780
48781 2008-02-07  Bruno Haible  <bruno@clisp.org>
48782
48783         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
48784         Avoids a crash on Windows Vista.
48785         Reported by Adam Strzelecki <ono@java.pl> via
48786         Simon Josefsson <simon@josefsson.org>.
48787
48788 2008-02-06  Bruno Haible  <bruno@clisp.org>
48789
48790         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
48791         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
48792         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
48793         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
48794         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48795         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48796         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
48797         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
48798         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48799         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48800         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48801         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48802         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48803         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48804         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48805         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
48806         left-adjust flag.
48807         * tests/test-snprintf-posix.h (test_function): Likewise.
48808         * tests/test-sprintf-posix.h (test_function): Likewise.
48809         * tests/test-vasprintf-posix.c (test_function): Likewise.
48810         * doc/posix-functions/fprintf.texi: Update.
48811         * doc/posix-functions/printf.texi: Update.
48812         * doc/posix-functions/snprintf.texi: Update.
48813         * doc/posix-functions/sprintf.texi: Update.
48814         * doc/posix-functions/vfprintf.texi: Update.
48815         * doc/posix-functions/vprintf.texi: Update.
48816         * doc/posix-functions/vsnprintf.texi: Update.
48817         * doc/posix-functions/vsprintf.texi: Update.
48818         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48819
48820 2008-02-06  Bruno Haible  <bruno@clisp.org>
48821
48822         Fix bug introduced on 2008-01-26.
48823         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
48824
48825 2008-02-06  Bruno Haible  <bruno@clisp.org>
48826
48827         Fix bug introduced on 2007-06-10.
48828         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
48829         !NEED_PRINTF_FLAG_ZERO.
48830
48831 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
48832
48833         getloadavg: use libperfstat on AIX5
48834         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
48835
48836 2008-02-03  Bruno Haible  <bruno@clisp.org>
48837
48838         * lib/diffseq.h: Add comments about required #includes.
48839         Reported by Michael Biggs <gnulib@doubleplum.net>.
48840
48841 2008-02-01  Bruno Haible  <bruno@clisp.org>
48842
48843         * users.txt: Add gnuit.
48844
48845 2008-01-31  Bruno Haible  <bruno@clisp.org>
48846
48847         * lib/md4.c (set_uint32): Mark as inline.
48848         * lib/md5.c (set_uint32): Likewise.
48849         * lib/sha1.c (set_uint32): Likewise.
48850         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
48851         * m4/md5.m4 (gl_MD5): Likewise.
48852         * m4/sha1.m4 (gl_SHA1): Likewise.
48853
48854 2008-01-31  Jim Meyering  <meyering@redhat.com>
48855
48856         Use "sizeof VAR", rather than a literal "4".
48857         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
48858         * lib/md4.c (md4_read_ctx): Likewise.
48859         * lib/sha1.c (sha1_read_ctx): Likewise.
48860
48861 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48862
48863         * tests/test-sha1.c: New file, based on test-md5.c.
48864
48865         * modules/crypto/sha1-tests: New file.
48866
48867 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48868
48869         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
48870
48871 2008-01-31  Jim Meyering  <meyering@redhat.com>
48872
48873         Prefer "sizeof v" over the equivalent "4".
48874         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
48875         * lib/md5.c (set_uint32): Likewise.
48876         * lib/sha1.c (set_uint32): Likewise.
48877
48878 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48879
48880         * lib/sha1.c (set_uint32): Mark function as static.
48881
48882 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48883
48884         md2: clarify comments to say that alignment is not required.
48885         * lib/md2.h: Remove warning about alignment in comment.
48886         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
48887         never been required.
48888
48889 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48890
48891         md4: adapt alignment constraint fix from sha1.
48892         * lib/md4.c (set_uint32): New function, from sha1.c
48893         (md4_read_ctx): Use it.
48894         (md4_finish_ctx): Doc fix.
48895         * lib/md4.h: Doc fix.
48896
48897 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48898
48899         md5: adapt alignment constraint fix from sha1.
48900         * lib/md5.c (set_uint32): New function, from sha1.c
48901         (md5_read_ctx): Use it.
48902         (md5_finish_ctx): Doc fix.
48903         * lib/md5.h: Doc fix.
48904
48905 2008-01-30  Peter Palfrader  <weasel@debian.org>
48906
48907         sha1: remove the result buffer alignment constraint
48908         * lib/sha1.c (set_uint32): New function.
48909         (sha1_read_ctx): Rewrite to remove the result buffer alignment
48910         constraint.
48911         (sha1_finish_ctx): Remove comment warning about alignment constraint.
48912         * lib/sha1.h: Likewise.
48913
48914 2008-01-30  Andreas Schwab  <schwab@suse.de>
48915             Bruno Haible  <bruno@clisp.org>
48916
48917         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
48918         correct definition of LDBL_MIN_EXP.
48919
48920 2008-01-30  Karl Berry  <karl@gnu.org>
48921
48922         * config/srclist-update: try to preserve x bit on updates.
48923         * config/srclistvars.sh: update for karl.
48924
48925 2008-01-29  Jim Meyering  <meyering@redhat.com>
48926
48927         vasnprintf.c: Avoid warning about unused label
48928         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
48929         "overflow" label definition and associated code with the
48930         same cpp condition that guards the sole use of that label.
48931
48932 2008-01-26  Bruno Haible  <bruno@clisp.org>
48933
48934         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
48935         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
48936         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
48937         * lib/isnanl-nolibm.h (isnanl): Likewise.
48938         Reported by Paul Eggert <eggert@cs.ucla.edu>.
48939
48940 2008-01-26  Bruno Haible  <bruno@clisp.org>
48941
48942         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
48943         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
48944
48945 2008-01-26  Bruno Haible  <bruno@clisp.org>
48946
48947         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
48948         GCC >= 4.0 built-in.
48949         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
48950
48951 2008-01-26  Bruno Haible  <bruno@clisp.org>
48952
48953         Rename isnan, applicable to 'double' only, to isnand.
48954         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
48955         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
48956         (configure.ac): Update.
48957         (Include): Replace "isnan.h" with "isnand.h".
48958         * m4/isnand.m4: Renamed from m4/isnan.m4.
48959         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
48960         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
48961         instead of isnan.c.
48962         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
48963         instead of HAVE_ISNAN_IN_LIBC.
48964         (isnand): Renamed from isnan.
48965         * lib/isnand.c: New file.
48966         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
48967         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
48968         (Makefile.am): Update.
48969         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
48970         Include isnand.h instead of isnan.h.
48971         (main): Test isnand instead of isnan.
48972         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
48973         isnan-nolibm.
48974         * modules/frexp (Depends-on): Likewise.
48975         * modules/frexp-tests (Depends-on): Likewise.
48976         * modules/frexp-nolibm (Depends-on): Likewise.
48977         * modules/frexp-nolibm-tests (Depends-on): Likewise.
48978         * modules/isfinite (Depends-on): Likewise.
48979         * modules/round-tests (Depends-on): Likewise.
48980         * modules/signbit (Depends-on): Likewise.
48981         * modules/signbit-tests (Depends-on): Likewise.
48982         * modules/snprintf-posix (Depends-on): Likewise.
48983         * modules/sprintf-posix (Depends-on): Likewise.
48984         * modules/trunc-tests (Depends-on): Likewise.
48985         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48986         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48987         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48988         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48989         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48990         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48991         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48992         * modules/vasnprintf-posix (Depends-on): Likewise.
48993         * modules/vasprintf-posix (Depends-on): Likewise.
48994         * modules/vfprintf-posix (Depends-on): Likewise.
48995         * modules/vsnprintf-posix (Depends-on): Likewise.
48996         * modules/vsprintf-posix (Depends-on): Likewise.
48997         * lib/frexp.c: Include isnand.h instead of isnan.h.
48998         (ISNAN): Set to isnand instead of isnan.
48999         * lib/isfinite.c: Include isnand.h instead of isnan.h.
49000         (gl_isfinited): Use isnand instead of isnan.
49001         * lib/signbitd.c: Include isnand.h instead of isnan.h.
49002         (gl_signbitd): Use isnand instead of isnan.
49003         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
49004         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
49005         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
49006         (main): Use isnand instead of isnan.
49007         * tests/test-round1.c: Include isnand.h.
49008         (main): Use isnand instead of isnan.
49009         * tests/test-round2.c: Include isnand.h instead of isnan.h.
49010         (ISNAN): Set to isnand instead of isnan.
49011         * tests/test-trunc1.c: Include isnand.h.
49012         (main): Use isnand instead of isnan.
49013         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
49014         (equal): Use isnand instead of isnan.
49015         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
49016         isnand-nolibm.
49017         * NEWS: Mention the change.
49018
49019 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
49020             Bruno Haible  <bruno@clisp.org>
49021
49022         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
49023         the GCC builtins for signbits are present and set
49024         REPLACE_SIGNBIT_USING_GCC if so.
49025         * lib/math.in.h (signbit): Define using GCC builtins if
49026         REPLACE_SIGNBIT_USING_GCC is set.
49027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
49028         REPLACE_SIGNBIT_USING_GCC.
49029         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
49030
49031 2008-01-25  Jim Meyering  <meyering@redhat.com>
49032
49033         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
49034         * lib/poll.c: Include <config.h>, not "config.h".
49035         * tests/test-getaddrinfo.c: Likewise.
49036
49037 2008-01-25  Simon Josefsson  <simon@josefsson.org>
49038
49039         * modules/sockets-tests: New file.
49040
49041 2008-01-24  Simon Josefsson  <simon@josefsson.org>
49042
49043         * modules/sockets: New module, can be used to call WSA_Startup and
49044         WSA_Cleanup when needed.
49045
49046         * lib/sockets.h, lib/sockets.c: New files.
49047
49048         * m4/sockets.m4: New file.
49049
49050         * tests/test-sockets.c: New file.
49051
49052 2008-01-19  Bruno Haible  <bruno@clisp.org>
49053
49054         * doc/posix-headers: Renamed from doc/headers.
49055         * doc/posix-functions: Renamed from doc/functions.
49056         * doc/gnulib.texi: Update.
49057
49058 2008-01-19  Bruno Haible  <bruno@clisp.org>
49059
49060         * doc/glibc-functions/strcasestr.texi: Include contents of
49061         doc/functions/strcasestr.texi, fixing the list of platforms.
49062         * doc/functions/strcasestr.texi: Remove file.
49063
49064 2008-01-19  Bruno Haible  <bruno@clisp.org>
49065
49066         * doc/glibc-functions/memmem.texi: Include contents of
49067         doc/functions/memmem.texi.
49068         * doc/functions/memmem.texi: Remove file.
49069
49070 2008-01-18  Bruno Haible  <bruno@clisp.org>
49071
49072         * doc/glibc-functions/*.texi: New files.
49073         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
49074         to use the new files.
49075
49076 2008-01-17  Bruno Haible  <bruno@clisp.org>
49077
49078         * tests/test-gethostname.c (main): Fix printf statement.
49079
49080 2008-01-17  Simon Josefsson  <simon@josefsson.org>
49081
49082         * modules/gethostname-tests: New file.
49083
49084         * tests/test-gethostname.c: New file.
49085
49086 2008-01-17  Simon Josefsson  <simon@josefsson.org>
49087
49088         * lib/gethostname.c: Include string.h unconditionally, strncpy is
49089         used by the UNAME case.  Reported by Bruno Haible
49090         <bruno@clisp.org>.
49091
49092 2008-01-17  Eric Blake  <ebb9@byu.net>
49093
49094         Convert c-strcasestr to be more efficient.
49095         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
49096         (Depends-on): Add c-strcase, remove malloca, strnlen.
49097         * tests/test-c-strcasestr.c (main): Enhance test.
49098         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
49099
49100 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
49101
49102         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
49103         Use it in creating po/Makevars.
49104
49105 2008-01-15  Simon Josefsson  <simon@josefsson.org>
49106
49107         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
49108         Applications that requires it should initialize libgcrypt
49109         manually.
49110
49111 2008-01-16  Simon Josefsson  <simon@josefsson.org>
49112
49113         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
49114
49115 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
49116
49117         Fix problem with getdate on mingw32 reported by Simon Josefsson
49118         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
49119         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
49120         tzname", when deciding whether to declare tzname.
49121         * lib/strftime.c (tzname): Likewise.
49122
49123 2008-01-15  Bruno Haible  <bruno@clisp.org>
49124
49125         Work around a MacOS X 10.5 bug in frexpl().
49126         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
49127         * doc/functions/frexpl.texi: Document the bug.
49128         Reported by Elias Pipping <pipping@gentoo.org>.
49129
49130 2008-01-14  Eric Blake  <ebb9@byu.net>
49131
49132         Touch up previous patch.
49133         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
49134         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
49135
49136         Convert strcasestr module to use Two-Way algorithm.
49137         * modules/strcasestr-simple: New module, based on the old
49138         strcasestr, but with Two-Way rather than KMP.
49139         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
49140         * lib/string.in.h (rpl_strcasestr): Declare.
49141         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
49142         performance.
49143         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
49144         * modules/string (Makefile.am): Support strcasestr.
49145         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49146         * modules/strcasestr-tests (Depends-on): Check for alarm.
49147         * tests/test-strcasestr.c: Augment test.
49148         * lib/str-two-way.h: Clean up stray macro.
49149         * NEWS: Document new module.
49150         * MODULES.html.sh (string handling): Likewise.
49151         * doc/functions/strcasestr.texi: New file.
49152         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
49153         here, since it is not a POSIX function.
49154
49155 2008-01-14  Colin Watson  <cjwatson@debian.org>
49156             Bruno Haible  <bruno@clisp.org>
49157
49158         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
49159         works fine; if not, set REPLACE_STRSIGNAL.
49160         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
49161         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49162         REPLACE_STRSIGNAL.
49163         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
49164         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
49165         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
49166
49167 2008-01-14  Bruno Haible  <bruno@clisp.org>
49168
49169         * modules/strsignal (Include): Change to <string.h>.
49170
49171 2008-01-14  Colin Watson  <cjwatson@debian.org>
49172
49173         * modules/argp (Notice): Add a notice recommending to change
49174         XGETTEXT_OPTIONS.
49175         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
49176
49177 2008-01-13  Colin Watson  <cjwatson@debian.org>
49178
49179         * modules/strsignal-tests: New file.
49180         * tests/test-strsignal.c: New file.
49181
49182         * lib/strsignal.c: New file, from glibc with modifications.
49183         * lib/siglist.h: New file, from glibc with modifications.
49184         * lib/string.in.h (strsignal): New declaration.
49185         * m4/strsignal.m4: New file.
49186         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49187         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
49188         * modules/strsignal: New file.
49189         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
49190         HAVE_DECL_STRSIGNAL.
49191
49192 2008-01-13  Bruno Haible  <bruno@clisp.org>
49193
49194         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
49195         locale encoding is not ASCII. Needed for OpenBSD 4.0.
49196         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49197         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49198
49199 2008-01-13  Bruno Haible  <bruno@clisp.org>
49200
49201         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
49202         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
49203         * lib/argp.h (__attribute__): Likewise.
49204         * lib/c-stack.c (__attribute__): Likewise.
49205         * lib/error.h (__attribute__): Likewise.
49206         * lib/fts.c (__attribute__): Likewise.
49207         * lib/openat.h (__attribute__): Likewise.
49208         * lib/stdio.in.h (__attribute__): Likewise.
49209         * lib/string.in.h (__attribute__): Likewise.
49210         * lib/utimens.c (__attribute__): Likewise.
49211         * lib/vasnprintf.h (__attribute__): Likewise.
49212         * lib/xalloc.h (__attribute__): Likewise.
49213         * lib/xprintf.h (__attribute__): Likewise.
49214         * lib/xstrtol.h (__attribute__): Likewise.
49215         * lib/xvasprintf.h (__attribute__): Likewise.
49216
49217 2008-01-12  Bruno Haible  <bruno@clisp.org>
49218
49219         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
49220         * doc/glibc-headers/a.out.texi: New file.
49221         * doc/glibc-headers/aliases.texi: New file.
49222         * doc/glibc-headers/alloca.texi: New file.
49223         * doc/glibc-headers/ar.texi: New file.
49224         * doc/glibc-headers/argp.texi: New file.
49225         * doc/glibc-headers/argz.texi: New file.
49226         * doc/glibc-headers/byteswap.texi: New file.
49227         * doc/glibc-headers/crypt.texi: New file.
49228         * doc/glibc-headers/endian.texi: New file.
49229         * doc/glibc-headers/envz.texi: New file.
49230         * doc/glibc-headers/err.texi: New file.
49231         * doc/glibc-headers/error.texi: New file.
49232         * doc/glibc-headers/execinfo.texi: New file.
49233         * doc/glibc-headers/fpu_control.texi: New file.
49234         * doc/glibc-headers/fstab.texi: New file.
49235         * doc/glibc-headers/fts.texi: New file.
49236         * doc/glibc-headers/getopt.texi: New file.
49237         * doc/glibc-headers/ieee754.texi: New file.
49238         * doc/glibc-headers/ifaddrs.texi: New file.
49239         * doc/glibc-headers/libintl.texi: New file.
49240         * doc/glibc-headers/mcheck.texi: New file.
49241         * doc/glibc-headers/mntent.texi: New file.
49242         * doc/glibc-headers/obstack.texi: New file.
49243         * doc/glibc-headers/paths.texi: New file.
49244         * doc/glibc-headers/printf.texi: New file.
49245         * doc/glibc-headers/pty.texi: New file.
49246         * doc/glibc-headers/resolv.texi: New file.
49247         * doc/glibc-headers/shadow.texi: New file.
49248         * doc/glibc-headers/sysexits.texi: New file.
49249         * doc/glibc-headers/ttyent.texi: New file.
49250
49251 2008-01-12  Jim Meyering  <meyering@redhat.com>
49252
49253         announce-gen: emit Gnulib's git-based version string.
49254         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
49255         New option --gnulib-version=V, where V is expected to be
49256         the output of running git describe in the gnulib directory.
49257         (get_tool_versions): Request feedback on xdelta.  I suspect it's
49258         not useful, and plan to stop publishing an xdelta file with each
49259         coreutils release.
49260
49261         * build-aux/announce-gen: Also check for lzma-compressed files.
49262
49263 2008-01-11  Bruno Haible  <bruno@clisp.org>
49264
49265         * tests/test-memmem.c (main): Increase maximum allowed time.
49266         * tests/test-strstr.c (main): Likewise.
49267
49268 2008-01-11  Bruno Haible  <bruno@clisp.org>
49269
49270         * doc/functions/memmem.texi: Add more precisions about platforms.
49271         * doc/functions/strstr.texi: Likewise.
49272
49273 2008-01-10  Eric Blake  <ebb9@byu.net>
49274
49275         * m4/strstr.m4: Delete cruft from copy-n-paste.
49276         Reported by Bruno Haible.
49277
49278 2008-01-10  Bruno Haible  <bruno@clisp.org>
49279
49280         Make c-strstr rely on strstr.
49281         * lib/c-strstr.c: Don't include str-kmp.h.
49282         (c_strstr): Define in terms of strstr.
49283         * modules/c-strstr (Files): Remove lib/str-kmp.h.
49284         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
49285
49286 2008-01-10  Bruno Haible  <bruno@clisp.org>
49287
49288         * doc/gnulib.texi (String Functions in C Locale): New section.
49289         * doc/c-ctype.texi: New file.
49290         * doc/c-strcase.texi: New file.
49291         * doc/c-strcaseeq.texi: New file.
49292         * doc/c-strcasestr.texi: New file.
49293         * doc/c-strstr.texi: New file.
49294         * doc/c-strtod.texi: New file.
49295         * doc/c-strtold.texi: New file.
49296
49297 2008-01-10  Eric Blake  <ebb9@byu.net>
49298
49299         * lib/relocatable.h: Fix a comment.
49300
49301 2008-01-10  Eric Blake  <ebb9@byu.net>
49302
49303         Share two-way algorithm.
49304         * lib/str-two-way.h: New file, merged from...
49305         * lib/memmem.c: ...here...
49306         * lib/strstr.c: ...and here.
49307         * modules/memmem (Files): Use it.
49308         * modules/strstr (Files): Likewise.
49309
49310         Avoid quadratic strstr implementations.
49311         * lib/strstr.c: New file.
49312         * m4/strstr.m4: Likewise.
49313         * modules/strstr: Likewise.
49314         * modules/strstr-tests: Likewise.
49315         * tests/test-strstr.c: Likewise.
49316         * lib/string.in.h (rpl_strstr): Declare.
49317         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
49318         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
49319         * modules/string (Makefile.am): Likewise.
49320         * MODULES.html.sh (string handling): Mention new module.
49321         * doc/functions/strstr.texi (strstr): Document the bug.
49322
49323 2008-01-10  Bruno Haible  <bruno@clisp.org>
49324
49325         * lib/relocatable.h (relocate): State whether result is freshly
49326         allocated or not.
49327         * lib/relocatable.c (relocate): Return a freshly allocated string
49328         instead of a pointer to a privately held string.
49329         Reported by Sylvain Beucler <beuc@gnu.org>.
49330
49331 2008-01-10  Colin Watson  <cjwatson@debian.org>
49332
49333         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
49334         s/S_ISNLK/S_ISLNK/.
49335
49336 2008-01-09  Bruno Haible  <bruno@clisp.org>
49337
49338         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
49339         and other files.
49340         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
49341         if it's only a guess.
49342         * modules/memmem: Simplify by depending on memmem-simple.
49343
49344 2008-01-09  Bruno Haible  <bruno@clisp.org>
49345
49346         Work around OpenBSD 4.0 tdelete() bug.
49347         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
49348         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
49349         macros and don't redefine the enum values.
49350         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
49351         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
49352         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
49353
49354 2008-01-09  Bruno Haible  <bruno@clisp.org>
49355
49356         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
49357         (main): Don't perform the tests if setlocale did not install a UTF-8
49358         locale. Needed on OpenBSD 4.0.
49359         * modules/wcwidth-tests (Depends-on): Add localcharset.
49360
49361 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49362
49363         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
49364         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
49365         * NEWS: announce this.
49366         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
49367
49368 2008-01-09  Simon Josefsson  <simon@josefsson.org>
49369         and Eric Blake  <ebb9@byu.net>
49370
49371         Add memmem-simple module.
49372         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
49373         (gl_FUNC_MEMMEM): Separate performance from presence checks.
49374         * modules/memmem-simple: New file.
49375         * modules/memmem (Description): Tweak.
49376         * MODULES.html.sh (string handling): Mention new module.
49377         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
49378         addressed by memmem-simple.
49379         * NEWS: Document the difference.
49380
49381 2008-01-09  Eric Blake  <ebb9@byu.net>
49382
49383         Give gcc some memmem optimization hints.
49384         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
49385         (strcasestr): Declare as pure.
49386         * modules/memmem (Maintainer): Claim my implementation.
49387
49388 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49389
49390         Support AIX 6.1 and higher.
49391         * build-aux/config.libpath: Likewise.
49392         * build-aux/config.rpath: Likewise.
49393
49394 2008-01-08  Jim Meyering  <meyering@redhat.com>
49395             Bruno Haible  <bruno@clisp.org>
49396
49397         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
49398         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
49399         Reported by Peter Fales in
49400         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
49401
49402 2008-01-08  Bruno Haible  <bruno@clisp.org>
49403
49404         * modules/unictype/category-of (Depends-on): Add
49405         unictype/category-none.
49406         * modules/unictype/category-and-tests (Depends-on): Add
49407         unictype/category-{L,N,Lu,Nd}.
49408         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
49409         * modules/unictype/category-or-tests (Depends-on): Add
49410         unictype/category-{L,N}.
49411         * modules/unictype/category-name-tests (Depends-on): Add
49412         unictype/category-{Z,Nl}.
49413         Reported by Simon Josefsson.
49414
49415 2008-01-08  Bruno Haible  <bruno@clisp.org>
49416
49417         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
49418         convention better.
49419         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
49420         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
49421         Reported by Peter Miller <millerp@canb.auug.org.au>.
49422
49423 2008-01-08  Eric Blake  <ebb9@byu.net>
49424
49425         Rewrite memmem to guarantee linear complexity without malloc.
49426         * lib/memmem.c (memmem): Use Two-Way rather than
49427         Knuth-Morris-Pratt, to allow O(1) space usage.
49428         (critical_factorization, two_way_short_needle)
49429         (two_way_long_needle): New functions.
49430         (knuth_morris_pratt): Delete.
49431         * modules/memmem (Depends-on): No longer need malloca or stdbool.
49432         Add stdint.
49433         * tests/test-memmem.c (main): Add tests for periodic needle and
49434         sublinear performance.
49435         * doc/functions/memmem.texi (memmem): Document other deficiencies
49436         in cygwin and older glibc.
49437
49438 2008-01-08  Bruno Haible  <bruno@clisp.org>
49439
49440         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
49441         augmentation.
49442
49443 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
49444
49445         Add a configure time option: --disable-acl.
49446         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
49447         AC_ARG_ENABLE(acl).
49448
49449 2008-01-06  Simon Josefsson  <simon@josefsson.org>
49450
49451         * tests/test-localename.c: Don't include obsolete "setenv.h".
49452
49453         * modules/localename-tests (Depends-on): Need unsetenv.
49454
49455 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49456
49457         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
49458
49459 2008-01-06  Colin Watson  <cjwatson@debian.org>
49460
49461         * users.txt: Add man-db.
49462
49463 2008-01-07  Bruno Haible  <bruno@clisp.org>
49464
49465         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
49466         previous section name.
49467
49468 2008-01-07  Bruno Haible  <bruno@clisp.org>
49469
49470         * lib/progname.c (set_program_name): Don't strip off a leading
49471         "lt-" prefix outside a .libs directory.
49472         Suggested by Paul Eggert.
49473
49474 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
49475             Bruno Haible  <bruno@clisp.org>
49476
49477         Improve memory cleanup in 'relocatable' module.
49478         * lib/relocatable.h (compute_curr_prefix): Change return type to
49479         'char *'.
49480         * lib/relocatable.c (compute_curr_prefix): Change return type to
49481         'char *'. Free curr_installdir after use.
49482         (relocate): Free curr_prefix_better after use.
49483         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
49484
49485 2008-01-01  Bruno Haible  <bruno@clisp.org>
49486
49487         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
49488         failure on older glibc systems.
49489         Reported by Peter Fales <psfales@alcatel-lucent.com>.
49490
49491 2008-01-05  Eric Blake  <ebb9@byu.net>
49492
49493         Avoid quadratic system memmem.
49494         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
49495         Reported by Ralf Wildenhues.
49496
49497         Fix memmem test for mingw.
49498         * modules/memmem-tests (configure.ac): Check for alarm.
49499         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
49500         it.
49501         * doc/functions/memmem.texi: New file.
49502         * doc/gnulib.texi (Function Substitutes): Add memmem.
49503         Reported by Bruno Haible.
49504
49505 2008-01-04  Bruno Haible  <bruno@clisp.org>
49506
49507         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
49508         Require gl_HEADER_STRINGS_H_DEFAULTS, not
49509         gl_HEADER_STRING_H_DEFAULTS.
49510
49511 2008-01-04  Eric Blake  <ebb9@byu.net>
49512
49513         Shorten duration of memmem test.
49514         * tests/test-memmem.c (main): Use alarm to declare failure if test
49515         is taking too long.
49516         Reported by Ralf Wildenhues.
49517
49518 2007-12-21  Simon Josefsson  <simon@josefsson.org>
49519
49520         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
49521         string, needed by strerror.
49522
49523 2008-01-03  Colin Watson  <cjwatson@debian.org>
49524             Bruno Haible  <bruno@clisp.org>
49525
49526         * doc/gnulib-tool.texi (Localization): New section.
49527
49528 2008-01-02  Bruno Haible  <bruno@clisp.org>
49529
49530         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
49531         variables to 'unsigned char *' type.
49532         Reported by Paul Eggert.
49533
49534 2008-01-02  Jim Meyering  <jim@meyering.net>
49535
49536         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
49537
49538 2007-12-31  Jim Meyering  <jim@meyering.net>
49539
49540         Avoid use of private FTS type name.
49541         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
49542
49543 2007-12-30  Karl Berry  <karl@gnu.org>
49544
49545         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
49546         work around defect in Texinfo and/or the standalone Info browser.
49547
49548 2007-12-30  Bruno Haible  <bruno@clisp.org>
49549
49550         Unify 5 copies of the KMP code.
49551         * lib/str-kmp.h: New file.
49552         * lib/c-strcasestr.c: Include str-kmp.h.
49553         (knuth_morris_pratt): Remove function.
49554         (c_strcasestr): Update.
49555         * lib/c-strstr.c: Include str-kmp.h.
49556         (knuth_morris_pratt): Remove function.
49557         (c_strcasestr): Update.
49558         * lib/mbscasestr.c: Include str-kmp.h.
49559         (knuth_morris_pratt_unibyte): Remove function.
49560         * lib/mbsstr.c: Include str-kmp.h.
49561         (knuth_morris_pratt_unibyte): Remove function.
49562         * lib/strcasestr.c: Include str-kmp.h.
49563         (knuth_morris_pratt): Remove function.
49564         (strcasestr): Update.
49565         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
49566         * modules/c-strstr (Files): Likewise.
49567         * modules/mbscasestr (Files): Likewise.
49568         * modules/mbsstr (Files): Likewise.
49569         * modules/strcasestr (Files): Likewise.
49570         Suggested by Paul Eggert.
49571
49572 2007-12-30  Bruno Haible  <bruno@clisp.org>
49573
49574         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
49575         defined.
49576
49577 2007-12-30  Bruno Haible  <bruno@clisp.org>
49578
49579         * lib/xmalloca.h: Include xalloc.h.
49580         (xnmalloca): New macro.
49581
49582 2007-12-30  Bruno Haible  <bruno@clisp.org>
49583
49584         * lib/malloca.h (nmalloca): New macro.
49585         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
49586         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
49587         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
49588         knuth_morris_pratt_multibyte): Likewise.
49589         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
49590         knuth_morris_pratt_multibyte): Likewise.
49591         * lib/memmem.c (knuth_morris_pratt): Likewise.
49592         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
49593
49594 2007-12-25  Bruno Haible  <bruno@clisp.org>
49595
49596         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
49597         * lib/glob.c: Don't include openat.h.
49598         (link_exists2_p): Add back the code that deals with the
49599         !GLOB_ALTDIRFUNC case.
49600         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
49601         let it do the filename concatenation.
49602         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
49603         * modules/glob (Depends-on): Remove openat.
49604
49605 2007-12-31  Bruno Haible  <bruno@clisp.org>
49606
49607         * modules/dirfd (License): Change to LGPLv2+.
49608         Approved by Jim Meyering.
49609
49610 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
49611
49612         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
49613         when multiplying M by sizeof (size_t).
49614
49615 2007-12-10  Martin Lambers  <marlam@marlam.de>
49616
49617         Override getpagesize on mingw.
49618         * lib/getpagesize.c: New file.
49619         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
49620         * modules/getpagesize (Files): Add lib/getpagesize.c.
49621         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
49622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49623         REPLACE_GETPAGESIZE.
49624         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
49625
49626 2007-12-25  Bruno Haible  <bruno@clisp.org>
49627
49628         * modules/localcharset (Notice): New field.
49629         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
49630         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
49631
49632 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
49633             Bruno Haible  <bruno@clisp.org>
49634
49635         Avoid using the syntax symbol() in formatted documentation.
49636         * MODULES.html.sh (func_module): When replacing symbol() with a
49637         hyperlink, remove the parentheses. Show an error if some remain.
49638         Recognize and render the '...' syntax.
49639         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
49640         Rework. Add paragraph about GCC's inlining.
49641         * doc/alloca.texi: Likewise.
49642         * doc/error.texi: Remove parentheses from symbol reference.
49643         * doc/gnulib-intro.texi: Likewise.
49644         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
49645         * modules/fnmatch (Description): Reword to say "the ... function".
49646         * modules/full-read (Description): Likewise.
49647         * modules/full-write (Description): Likewise.
49648         * modules/safe-read (Description): Likewise.
49649         * modules/safe-write (Description): Likewise.
49650         * modules/strchrnul (Description): Likewise.
49651         * modules/trim (Description): Likewise.
49652         * modules/error (Description): Remove parentheses from symbol
49653         references.
49654         * modules/verror (Description): Likewise.
49655         Reported by Karl Berry.
49656
49657 2007-12-25  Bruno Haible  <bruno@clisp.org>
49658
49659         Fixup after 2007-10-16 commit.
49660         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
49661
49662 2007-12-24  Bruno Haible  <bruno@clisp.org>
49663
49664         Make --enable-relocatable work with DESTDIR.
49665         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
49666         to compute installdir from destprog.
49667         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
49668         also set the RELOC_DESTDIR variable.
49669         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49670
49671 2007-12-24  Bruno Haible  <bruno@clisp.org>
49672
49673         Fix link error due to xalloc_die().
49674         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
49675         of xreadlink.
49676         * lib/relocwrapper.c: Update comments.
49677         * build-aux/install-reloc: Remove xreadlink.c from file list.
49678         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
49679         xreadlink.c.
49680         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49681
49682 2007-12-24  Bruno Haible  <bruno@clisp.org>
49683
49684         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
49685         * lib/setenv.h: Remove file.
49686         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
49687         lib/setenv.h.
49688         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
49689         (Depends-on): Add stdlib.
49690         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
49691         gl_FUNC_UNSETENV.
49692         (Include): Replace setenv.h with <stdlib.h>.
49693         * modules/unsetenv: New file.
49694         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
49695         * lib/unsetenv.c: Include <stdlib.h> first.
49696         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
49697         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
49698         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
49699         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
49700         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
49701         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49702         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
49703         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49704         * doc/functions/unsetenv.texi: Update.
49705         * modules/xsetenv (Depends-on): Add unsetenv.
49706         * modules/getdate (Depends-on): Likewise.
49707         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
49708         * lib/xsetenv.c: Don't include setenv.h.
49709         * lib/getdate.y: Likewise.
49710         * lib/relocwrapper.c: Likewise.
49711         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
49712         (Depends-on): Add stdlib.
49713         * NEWS: Mention the changes.
49714         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49715
49716 2007-12-23  Bruno Haible  <bruno@clisp.org>
49717
49718         * lib/memmem.c (memmem): Use lowercase variable names. Tab
49719         indentation.
49720
49721 2007-12-23  Bruno Haible  <bruno@clisp.org>
49722
49723         * lib/c-strcasestr.c: Add more comments.
49724         * lib/c-strstr.c: Likewise.
49725         * lib/mbscasestr.c: Likewise.
49726         * lib/mbsstr.c: Likewise.
49727         * lib/strcasestr.c: Likewise.
49728         * lib/memmem.c: Likewise.
49729
49730 2007-12-23  Bruno Haible  <bruno@clisp.org>
49731
49732         * tests/test-memmem.c: Include <string.h> first.
49733
49734 2007-12-22  Bruno Haible  <bruno@clisp.org>
49735
49736         * gnulib-tool (func_create_testdir): Change $auxdir while generating
49737         the contents of $testsbase.
49738         Reported by Ralf Wildenhues.
49739
49740 2007-12-22  Bruno Haible  <bruno@clisp.org>
49741
49742         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
49743         two variables local_ldadd_before, local_ldadd_last.
49744
49745 2007-12-20  Eric Blake  <ebb9@byu.net>
49746
49747         Work around circular library issue when cross-compiling.
49748         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
49749         that progname.o does not need to pull in rpl_memcmp.
49750
49751 2007-12-19  Eric Blake  <ebb9@byu.net>
49752
49753         Fix memmem to avoid O(n^2) worst-case complexity.
49754         * lib/memmem.c (knuth_morris_pratt): New function.
49755         (memmem): Use it if first few naive iterations fail.
49756         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
49757         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
49758         * modules/memchr (License): Likewise.
49759         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
49760         malloca.
49761         * tests/test-memmem.c: Rewrite, borrowing ideas from
49762         test-mbsstr1.c; the old version wouldn't even compile!
49763         * modules/memmem-tests: New file.
49764         * lib/string.in.h (rpl_memmem): Add declaration.
49765         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
49766         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
49767         REPLACE_MEMMEM.
49768
49769 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
49770
49771         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
49772         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
49773         before any system include files, and undef after them all.  This
49774         should fix a problem on VMS reported by John E. Malmberg in
49775         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
49776
49777 2007-12-17  Eric Blake  <ebb9@byu.net>
49778
49779         Revert addition of verify, for BSD/OS.
49780         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
49781         can't handle large files, for the sake of obsolete platforms.
49782         * modules/fseeko (Depends-on): Remove verify.
49783         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
49784         * doc/functions/ftello.texi (ftello): Likewise.
49785         * doc/functions/fgetpos.texi (fgetpos): Likewise.
49786         Reported by Larry Jones.
49787
49788 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
49789
49790         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
49791         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
49792
49793 2007-12-17  Jim Meyering  <meyering@redhat.com>
49794
49795         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
49796         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
49797         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
49798         * modules/getcwd (Depends-on): Add openat.
49799         Reported by Petr Salinger.
49800
49801 2007-12-17  Bruno Haible  <bruno@clisp.org>
49802
49803         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
49804         avoid a segmentation fault of the configure test on x86_64 systems.
49805
49806 2007-12-15  Jim Meyering  <meyering@redhat.com>
49807
49808         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
49809
49810 2007-12-13  Eric Blake  <ebb9@byu.net>
49811
49812         Another fseek test.
49813         * tests/test-fseek.c (main): Also test ungetc handling.
49814         * tests/test-fseeko.c (main): Likewise.
49815         * modules/fseeko (Depends-on): Add verify.
49816         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
49817         large.
49818         Reported by Larry Jones.
49819
49820         Fix fseeko on mingw.
49821         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
49822         seek.
49823
49824         Beef up fseek tests.
49825         * tests/test-fseek.c (main): Also test eof handling.
49826         * tests/test-fseeko.c (main): Likewise.
49827         Reported by Larry Jones.
49828
49829 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
49830
49831         Fix fseeko on BSD-based platforms.
49832         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
49833         successful seek.
49834
49835 2007-12-12  Eric Blake  <ebb9@byu.net>
49836
49837         Allow circular dependency of separate libtests.a
49838         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
49839         when use_libtests.
49840
49841 2007-12-11  Eric Blake  <ebb9@byu.net>
49842
49843         Fix bug with -0.0L in previous patch.
49844         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
49845         * tests/test-isnan.c (main): Also test on zeroes.
49846         * tests/test-isnanf.c (main): Likewise.
49847         * tests/test-isnanl.h (main): Likewise.
49848
49849         Detect pseudo-denormals on x86 even when cross-compiling.
49850         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
49851         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
49852         invalid bit patterns that happen to satisfy ==.
49853
49854         Avoid link failures with separate libtests.a.
49855         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
49856         last, to satisfy circular dependencies.
49857
49858 2007-12-11  Eric Blake  <ebb9@byu.net>
49859         and Bruno Haible  <bruno@clisp.org>
49860
49861         Fix OpenBSD 4.0 <float.h> handling of long double.
49862         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
49863         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
49864         * doc/headers/float.texi (float.h): Document OpenBSD bug.
49865
49866 2007-12-11  Jim Meyering  <meyering@redhat.com>
49867
49868         * users.txt: Add libvirt.
49869
49870         Support versions of autoconf prior to 2.59c.
49871         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
49872         if it is not already defined.
49873
49874 2007-12-09  Bruno Haible  <bruno@clisp.org>
49875
49876         Let 'gnulib-tool --import' collect sources needed for the tests in
49877         tests/ rather than in lib/.
49878         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
49879         argument. If true, add rules to generate libtests.a, and put libtests.a
49880         into $(LDADD). Consider source files in subdirectories and set
49881         uses_subdirs.
49882         (func_emit_initmacro_start, func_emit_initmacro_end,
49883         func_emit_initmacro_done): Pass all arguments explicitly.
49884         (func_import): Determine two module lists main_modules,
49885         testsrelated_modules. Determine use_libtests. Determine two variables
49886         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
49887         instead of just sed_transform_lib_file. Determine two variables
49888         main_files and testsrelated_files. Compute 'files' as the union of
49889         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
49890         func_add_or_update. In the generated gnulib-comp.m4, collect the
49891         object files for tests/ in different variables than those for lib/.
49892         Substitute LIBTESTS_LIBDEPS.
49893         (func_create_testdir): Combine the uses_subdirs results from
49894         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
49895
49896 2007-12-09  Bruno Haible  <bruno@clisp.org>
49897
49898         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
49899         the build-aux directory.
49900
49901 2007-12-09  Bruno Haible  <bruno@clisp.org>
49902
49903         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
49904         introduced on 2006-09-09.
49905
49906 2007-12-07  Jim Meyering  <meyering@redhat.com>
49907
49908         Let these macros work also with autoconf-2.59.
49909         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
49910         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
49911         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49912
49913 2007-12-06  Jim Meyering  <meyering@redhat.com>
49914
49915         Avoid a configure-time syntax error in gl_FUNC_ACL.
49916         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
49917         function in each branch, before testing the cache variable.
49918
49919 2007-12-04  Eric Blake  <ebb9@byu.net>
49920
49921         Make scripts executable.
49922         * build-aux/config.guess: Add execute permissions.
49923         * build-aux/config.sub: Likewise.
49924         * build-aux/gendocs.sh: Likewise.
49925
49926         Fix frexp on mingw.
49927         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
49928         cross-compiling.
49929         * doc/functions/frexp.texi (frexp): Document the bug.
49930
49931         Make cygwin fseeko check more reliable.
49932         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
49933         version numbers, rather than unrelated feature check.
49934         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
49935         * doc/functions/ftello.texi (ftello): Likewise.
49936         Reported by Bruno Haible.
49937
49938         * m4/strerror.m4: Bump version number.
49939
49940 2007-12-03  Bruno Haible  <bruno@clisp.org>
49941
49942         * doc/functions/mprotect.texi: Mention the mingw problem.
49943
49944 2007-12-03  Eric Blake  <ebb9@byu.net>
49945
49946         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
49947         REPLACE_STRERROR is initialized before this macro.
49948
49949 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
49950
49951         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
49952         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
49953         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
49954         put -lsec in even for programs other than 'ls'.  This fixes a problem
49955         for gettext reported by Bruno Haible in
49956         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
49957         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
49958         Add support for Solaris 10.  This isn't efficient, but should get the
49959         job done for now.
49960
49961 2007-12-03  James Youngman  <jay@gnu.org>
49962
49963         * doc/regexprops-generic.texi: change "an close-group" to "a
49964         close-group" and "illegal" to "not allowed".
49965
49966 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49967
49968         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
49969         pr_byname.h. Needed for the rare case when the maintainer has done
49970         "make maintainer-clean" in the source directory and then attempts a
49971         build outside the source directory.
49972         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
49973         scripts_byname.h.
49974
49975 2007-12-02  Martin Lambers <marlam@marlam.de>
49976             Bruno Haible  <bruno@clisp.org>
49977
49978         * lib/getpagesize.h: Remove file.
49979         * lib/unistd.in.h: Include declaration of getpagesize here.
49980         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
49981         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
49982         HAVE_SYS_PARAM_H.
49983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
49984         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49985         * modules/getpagesize (Files): Remove lib/getpagesize.h.
49986         (Depends-on): Add unistd.
49987         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49988         (Include): Use <unistd.h> instead of getpagesize.h.
49989         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
49990         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49991         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
49992         gl_GETPAGESIZE invocation, already handled by module dependency.
49993         * lib/pagealign_alloc.c: Don't include getpagesize.h.
49994
49995 2007-12-02  Bruno Haible  <bruno@clisp.org>
49996
49997         * modules/strings-tests: New file.
49998         * tests/test-strings.c: New file.
49999
50000         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
50001         * lib/strings.in.h: New file.
50002         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
50003         * m4/strings_h.m4: New file.
50004         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
50005         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
50006         * modules/strings: New file.
50007         * modules/string (Makefile.am): Update.
50008         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
50009         Reported by Karl Berry.
50010
50011 2007-12-01  Eric Blake  <ebb9@byu.net>
50012
50013         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
50014         accomodate fix in cygwin 1.5.25.
50015
50016 2007-12-01  Jim Meyering  <meyering@redhat.com>
50017
50018         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
50019         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
50020         that would inhibit utf8-optimization of a regexp containing line-
50021         or buffer-anchors, e.g., `^', `$'.
50022
50023 2007-11-30  Bruno Haible  <bruno@clisp.org>
50024
50025         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
50026         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
50027         glthread_recursive_lock_init.
50028         * lib/lock.c (glthread_recursive_lock_init)
50029         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
50030         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50031
50032 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
50033
50034         New function qset_acl, like set_acl but with syscall semantics.
50035         * lib/acl.h (qset_acl): New decl.
50036         * lib/acl.c (qset_acl): New function.
50037         (set_acl): Use new function.  Use more-consistent diagnostics.
50038
50039 2007-11-28  Jim Meyering  <meyering@redhat.com>
50040
50041         * modules/physmem (License): Change from GPL to LGPLv2+.
50042
50043 2007-11-26  Bruno Haible  <bruno@clisp.org>
50044
50045         * lib/vasnprintf.c (decode_long_double): Don't abort if the
50046         'long double' type has excess precision.
50047         Reported by Jim Meyering in
50048         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
50049
50050 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50051
50052         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
50053         Sync from <http://gnu.org/licenses>.
50054         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
50055         with license text from same location.
50056         * doc/maintain.texi, doc/standards.texi:  Sync from
50057         <http://savannah.gnu.org/projects/gnustandards>.
50058
50059 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
50060         and Jim Meyering  <meyering@redhat.com>
50061
50062         Adjust getdate' grammar to accept a slightly more regular language.
50063         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
50064         Before, the former was rejected.
50065         * lib/getdate.y (digits_to_date_time): New function, factored
50066         out of ...
50067         (number): ...here.  Just call digits_to_date_time.
50068         (hybrid): New non-terminal to handle an <unsigned number,
50069         signed relative offset> sequence consistently.
50070
50071 2007-11-18  Jim Meyering  <meyering@redhat.com>
50072
50073         Pull my changes from coreutils:
50074         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
50075         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
50076         use of $gnulib_tool_option_extras, so that it's separated from the
50077         preceding argument.
50078
50079         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
50080         * build-aux/bootstrap (cp_mark_as_generated): Create any required
50081         parent destination directories before copying a file into place.
50082
50083 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
50084
50085         bootstrap: work also with 4-argument variant of AC_INIT
50086         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
50087
50088 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50089
50090         Port test-getaddrinfo to Solaris.
50091         Problem reported by Bruno Haible in
50092         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
50093         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
50094         explanation of setting 'hints'.
50095         Don't reject an implementation merely because it returns EAI_SERVICE.
50096         (EAI_SERVICE): Define to 0 if not defined.
50097
50098 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
50099
50100         The license of gnu-make and posix-shell is now "GPLed build tool".
50101         * modules/gnu-make (License): Likewise.
50102         * modules/posix-shell (License): Likewise.
50103
50104         New module posix-shell, for determining a POSIX shell
50105         or perhaps something that is close enough to a POSIX shell.
50106         * m4/posix-shell.m4: New file.
50107         * modules/posix-shell: New file.
50108
50109         * MODULES.html.sh: Mention new module.
50110
50111         New module gnu-make, for determining whether we're using GNU Make.
50112         * m4/gnu-make.m4: New file.
50113         * modules/gnu-make: New file.
50114         * MODULES.html.sh: Mention new module.
50115
50116 2007-11-14  Jim Meyering  <meyering@redhat.com>
50117
50118         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
50119         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
50120         use this macro to create a function _definition_.
50121         Remove useless "#undef ARGMATCH_DIE".
50122
50123 2007-11-14  Bruno Haible  <bruno@clisp.org>
50124
50125         * lib/config.charset: Update for OpenBSD 4.1.
50126         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
50127
50128 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
50129
50130         Document 64-bit #if problems in stdint.texi.
50131         * doc/headers/stdint.texi (stdint.h): Mention problems with
50132         64-bit-#if, and how to work around them.
50133
50134         Don't insist on 'long long int' support in the preprocessor.  It
50135         breaks too many things.  For example, PRIdMAX still uses a 'long
50136         long int' format with the latest Sun compiler, even though
50137         HAVE_LONG_LONG_INT isn't defined due to that compiler's
50138         preprocessor problem.  This causes the latest coreutils to dump
50139         core on Solaris 10 sparc with the Sun C compiler.
50140         Instead, fix the 2007-10-16 problem in a different way, by evaluating
50141         the troublesome expressions at configure-time, not at #if-time.
50142         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
50143         preprocessor.
50144         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
50145         compile-time C checks, done at 'configure'-time.
50146         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
50147         * modules/inttypes (Makefile): Substitute the new symbols that
50148         gl_INTTYPES_H now generates.
50149         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
50150
50151 2007-11-12  Bruno Haible  <bruno@clisp.org>
50152
50153         Tests for Unicode character classification functions.
50154
50155         * modules/unictype/bidicategory-byname-tests: New file.
50156         * modules/unictype/bidicategory-name-tests: New file.
50157         * modules/unictype/bidicategory-of-tests: New file.
50158         * modules/unictype/bidicategory-test-tests: New file.
50159         * modules/unictype/block-list-tests: New file.
50160         * modules/unictype/block-of-tests: New file.
50161         * modules/unictype/block-test-tests: New file.
50162         * modules/unictype/category-C-tests: New file.
50163         * modules/unictype/category-Cc-tests: New file.
50164         * modules/unictype/category-Cf-tests: New file.
50165         * modules/unictype/category-Cn-tests: New file.
50166         * modules/unictype/category-Co-tests: New file.
50167         * modules/unictype/category-Cs-tests: New file.
50168         * modules/unictype/category-L-tests: New file.
50169         * modules/unictype/category-Ll-tests: New file.
50170         * modules/unictype/category-Lm-tests: New file.
50171         * modules/unictype/category-Lo-tests: New file.
50172         * modules/unictype/category-Lt-tests: New file.
50173         * modules/unictype/category-Lu-tests: New file.
50174         * modules/unictype/category-M-tests: New file.
50175         * modules/unictype/category-Mc-tests: New file.
50176         * modules/unictype/category-Me-tests: New file.
50177         * modules/unictype/category-Mn-tests: New file.
50178         * modules/unictype/category-N-tests: New file.
50179         * modules/unictype/category-Nd-tests: New file.
50180         * modules/unictype/category-Nl-tests: New file.
50181         * modules/unictype/category-No-tests: New file.
50182         * modules/unictype/category-P-tests: New file.
50183         * modules/unictype/category-Pc-tests: New file.
50184         * modules/unictype/category-Pd-tests: New file.
50185         * modules/unictype/category-Pe-tests: New file.
50186         * modules/unictype/category-Pf-tests: New file.
50187         * modules/unictype/category-Pi-tests: New file.
50188         * modules/unictype/category-Po-tests: New file.
50189         * modules/unictype/category-Ps-tests: New file.
50190         * modules/unictype/category-S-tests: New file.
50191         * modules/unictype/category-Sc-tests: New file.
50192         * modules/unictype/category-Sk-tests: New file.
50193         * modules/unictype/category-Sm-tests: New file.
50194         * modules/unictype/category-So-tests: New file.
50195         * modules/unictype/category-Z-tests: New file.
50196         * modules/unictype/category-Zl-tests: New file.
50197         * modules/unictype/category-Zp-tests: New file.
50198         * modules/unictype/category-Zs-tests: New file.
50199         * modules/unictype/category-and-not-tests: New file.
50200         * modules/unictype/category-and-tests: New file.
50201         * modules/unictype/category-byname-tests: New file.
50202         * modules/unictype/category-name-tests: New file.
50203         * modules/unictype/category-none-tests: New file.
50204         * modules/unictype/category-of-tests: New file.
50205         * modules/unictype/category-or-tests: New file.
50206         * modules/unictype/category-test-withtable-tests: New file.
50207         * modules/unictype/combining-class-tests: New file.
50208         * modules/unictype/ctype-alnum-tests: New file.
50209         * modules/unictype/ctype-alpha-tests: New file.
50210         * modules/unictype/ctype-blank-tests: New file.
50211         * modules/unictype/ctype-cntrl-tests: New file.
50212         * modules/unictype/ctype-digit-tests: New file.
50213         * modules/unictype/ctype-graph-tests: New file.
50214         * modules/unictype/ctype-lower-tests: New file.
50215         * modules/unictype/ctype-print-tests: New file.
50216         * modules/unictype/ctype-punct-tests: New file.
50217         * modules/unictype/ctype-space-tests: New file.
50218         * modules/unictype/ctype-upper-tests: New file.
50219         * modules/unictype/ctype-xdigit-tests: New file.
50220         * modules/unictype/decimal-digit-tests: New file.
50221         * modules/unictype/digit-tests: New file.
50222         * modules/unictype/mirror-tests: New file.
50223         * modules/unictype/numeric-tests: New file.
50224         * modules/unictype/property-alphabetic-tests: New file.
50225         * modules/unictype/property-ascii-hex-digit-tests: New file.
50226         * modules/unictype/property-bidi-arabic-digit-tests: New file.
50227         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
50228         * modules/unictype/property-bidi-block-separator-tests: New file.
50229         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
50230         * modules/unictype/property-bidi-common-separator-tests: New file.
50231         * modules/unictype/property-bidi-control-tests: New file.
50232         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
50233         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
50234         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
50235         * modules/unictype/property-bidi-european-digit-tests: New file.
50236         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
50237         * modules/unictype/property-bidi-left-to-right-tests: New file.
50238         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
50239         * modules/unictype/property-bidi-other-neutral-tests: New file.
50240         * modules/unictype/property-bidi-pdf-tests: New file.
50241         * modules/unictype/property-bidi-segment-separator-tests: New file.
50242         * modules/unictype/property-bidi-whitespace-tests: New file.
50243         * modules/unictype/property-byname-tests: New file.
50244         * modules/unictype/property-combining-tests: New file.
50245         * modules/unictype/property-composite-tests: New file.
50246         * modules/unictype/property-currency-symbol-tests: New file.
50247         * modules/unictype/property-dash-tests: New file.
50248         * modules/unictype/property-decimal-digit-tests: New file.
50249         * modules/unictype/property-default-ignorable-code-point-tests: New file.
50250         * modules/unictype/property-deprecated-tests: New file.
50251         * modules/unictype/property-diacritic-tests: New file.
50252         * modules/unictype/property-extender-tests: New file.
50253         * modules/unictype/property-format-control-tests: New file.
50254         * modules/unictype/property-grapheme-base-tests: New file.
50255         * modules/unictype/property-grapheme-extend-tests: New file.
50256         * modules/unictype/property-grapheme-link-tests: New file.
50257         * modules/unictype/property-hex-digit-tests: New file.
50258         * modules/unictype/property-hyphen-tests: New file.
50259         * modules/unictype/property-id-continue-tests: New file.
50260         * modules/unictype/property-id-start-tests: New file.
50261         * modules/unictype/property-ideographic-tests: New file.
50262         * modules/unictype/property-ids-binary-operator-tests: New file.
50263         * modules/unictype/property-ids-trinary-operator-tests: New file.
50264         * modules/unictype/property-ignorable-control-tests: New file.
50265         * modules/unictype/property-iso-control-tests: New file.
50266         * modules/unictype/property-join-control-tests: New file.
50267         * modules/unictype/property-left-of-pair-tests: New file.
50268         * modules/unictype/property-line-separator-tests: New file.
50269         * modules/unictype/property-logical-order-exception-tests: New file.
50270         * modules/unictype/property-lowercase-tests: New file.
50271         * modules/unictype/property-math-tests: New file.
50272         * modules/unictype/property-non-break-tests: New file.
50273         * modules/unictype/property-not-a-character-tests: New file.
50274         * modules/unictype/property-numeric-tests: New file.
50275         * modules/unictype/property-other-alphabetic-tests: New file.
50276         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
50277         * modules/unictype/property-other-grapheme-extend-tests: New file.
50278         * modules/unictype/property-other-id-continue-tests: New file.
50279         * modules/unictype/property-other-id-start-tests: New file.
50280         * modules/unictype/property-other-lowercase-tests: New file.
50281         * modules/unictype/property-other-math-tests: New file.
50282         * modules/unictype/property-other-uppercase-tests: New file.
50283         * modules/unictype/property-paired-punctuation-tests: New file.
50284         * modules/unictype/property-paragraph-separator-tests: New file.
50285         * modules/unictype/property-pattern-syntax-tests: New file.
50286         * modules/unictype/property-pattern-white-space-tests: New file.
50287         * modules/unictype/property-private-use-tests: New file.
50288         * modules/unictype/property-punctuation-tests: New file.
50289         * modules/unictype/property-quotation-mark-tests: New file.
50290         * modules/unictype/property-radical-tests: New file.
50291         * modules/unictype/property-sentence-terminal-tests: New file.
50292         * modules/unictype/property-soft-dotted-tests: New file.
50293         * modules/unictype/property-space-tests: New file.
50294         * modules/unictype/property-terminal-punctuation-tests: New file.
50295         * modules/unictype/property-test-tests: New file.
50296         * modules/unictype/property-titlecase-tests: New file.
50297         * modules/unictype/property-unassigned-code-value-tests: New file.
50298         * modules/unictype/property-unified-ideograph-tests: New file.
50299         * modules/unictype/property-uppercase-tests: New file.
50300         * modules/unictype/property-variation-selector-tests: New file.
50301         * modules/unictype/property-white-space-tests: New file.
50302         * modules/unictype/property-xid-continue-tests: New file.
50303         * modules/unictype/property-xid-start-tests: New file.
50304         * modules/unictype/property-zero-width-tests: New file.
50305         * modules/unictype/scripts-tests: New file.
50306         * modules/unictype/syntax-c-ident-tests: New file.
50307         * modules/unictype/syntax-c-whitespace-tests: New file.
50308         * modules/unictype/syntax-java-ident-tests: New file.
50309         * modules/unictype/syntax-java-whitespace-tests: New file.
50310         * tests/unictype/test-bidi_byname.c: New file.
50311         * tests/unictype/test-bidi_name.c: New file.
50312         * tests/unictype/test-bidi_of.c: New file.
50313         * tests/unictype/test-bidi_test.c: New file.
50314         * tests/unictype/test-block_list.c: New file.
50315         * tests/unictype/test-block_of.c: New file.
50316         * tests/unictype/test-block_test.c: New file.
50317         * tests/unictype/test-categ_and.c: New file.
50318         * tests/unictype/test-categ_and_not.c: New file.
50319         * tests/unictype/test-categ_byname.c: New file.
50320         * tests/unictype/test-categ_name.c: New file.
50321         * tests/unictype/test-categ_none.c: New file.
50322         * tests/unictype/test-categ_of.c: New file.
50323         * tests/unictype/test-categ_or.c: New file.
50324         * tests/unictype/test-categ_test_withtable.c: New file.
50325         * tests/unictype/test-combining.c: New file.
50326         * tests/unictype/test-decdigit.c: New file.
50327         * tests/unictype/test-digit.c: New file.
50328         * tests/unictype/test-mirror.c: New file.
50329         * tests/unictype/test-numeric.c: New file.
50330         * tests/unictype/test-pr_byname.c: New file.
50331         * tests/unictype/test-pr_test.c: New file.
50332         * tests/unictype/test-predicate-part1.h: New file.
50333         * tests/unictype/test-predicate-part2.h: New file.
50334         * tests/unictype/test-scripts.c: New file.
50335         * tests/unictype/test-sy_c_ident.c: New file.
50336         * tests/unictype/test-sy_java_ident.c: New file.
50337
50338         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
50339         for Unicode 5.0.0.
50340         * tests/unictype/test-categ_Cc.c: Likewise.
50341         * tests/unictype/test-categ_Cf.c: Likewise.
50342         * tests/unictype/test-categ_Cn.c: Likewise.
50343         * tests/unictype/test-categ_Co.c: Likewise.
50344         * tests/unictype/test-categ_Cs.c: Likewise.
50345         * tests/unictype/test-categ_L.c: Likewise.
50346         * tests/unictype/test-categ_Ll.c: Likewise.
50347         * tests/unictype/test-categ_Lm.c: Likewise.
50348         * tests/unictype/test-categ_Lo.c: Likewise.
50349         * tests/unictype/test-categ_Lt.c: Likewise.
50350         * tests/unictype/test-categ_Lu.c: Likewise.
50351         * tests/unictype/test-categ_M.c: Likewise.
50352         * tests/unictype/test-categ_Mc.c: Likewise.
50353         * tests/unictype/test-categ_Me.c: Likewise.
50354         * tests/unictype/test-categ_Mn.c: Likewise.
50355         * tests/unictype/test-categ_N.c: Likewise.
50356         * tests/unictype/test-categ_Nd.c: Likewise.
50357         * tests/unictype/test-categ_Nl.c: Likewise.
50358         * tests/unictype/test-categ_No.c: Likewise.
50359         * tests/unictype/test-categ_P.c: Likewise.
50360         * tests/unictype/test-categ_Pc.c: Likewise.
50361         * tests/unictype/test-categ_Pd.c: Likewise.
50362         * tests/unictype/test-categ_Pe.c: Likewise.
50363         * tests/unictype/test-categ_Pf.c: Likewise.
50364         * tests/unictype/test-categ_Pi.c: Likewise.
50365         * tests/unictype/test-categ_Po.c: Likewise.
50366         * tests/unictype/test-categ_Ps.c: Likewise.
50367         * tests/unictype/test-categ_S.c: Likewise.
50368         * tests/unictype/test-categ_Sc.c: Likewise.
50369         * tests/unictype/test-categ_Sk.c: Likewise.
50370         * tests/unictype/test-categ_Sm.c: Likewise.
50371         * tests/unictype/test-categ_So.c: Likewise.
50372         * tests/unictype/test-categ_Z.c: Likewise.
50373         * tests/unictype/test-categ_Zl.c: Likewise.
50374         * tests/unictype/test-categ_Zp.c: Likewise.
50375         * tests/unictype/test-categ_Zs.c: Likewise.
50376         * tests/unictype/test-ctype_alnum.c: Likewise.
50377         * tests/unictype/test-ctype_alpha.c: Likewise.
50378         * tests/unictype/test-ctype_blank.c: Likewise.
50379         * tests/unictype/test-ctype_cntrl.c: Likewise.
50380         * tests/unictype/test-ctype_digit.c: Likewise.
50381         * tests/unictype/test-ctype_graph.c: Likewise.
50382         * tests/unictype/test-ctype_lower.c: Likewise.
50383         * tests/unictype/test-ctype_print.c: Likewise.
50384         * tests/unictype/test-ctype_punct.c: Likewise.
50385         * tests/unictype/test-ctype_space.c: Likewise.
50386         * tests/unictype/test-ctype_upper.c: Likewise.
50387         * tests/unictype/test-ctype_xdigit.c: Likewise.
50388         * tests/unictype/test-decdigit.h: Likewise.
50389         * tests/unictype/test-digit.h: Likewise.
50390         * tests/unictype/test-numeric.h: Likewise.
50391         * tests/unictype/test-pr_alphabetic.c: Likewise.
50392         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
50393         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
50394         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
50395         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
50396         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
50397         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
50398         * tests/unictype/test-pr_bidi_control.c: Likewise.
50399         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
50400         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
50401         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
50402         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
50403         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
50404         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
50405         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
50406         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
50407         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
50408         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
50409         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
50410         * tests/unictype/test-pr_combining.c: Likewise.
50411         * tests/unictype/test-pr_composite.c: Likewise.
50412         * tests/unictype/test-pr_currency_symbol.c: Likewise.
50413         * tests/unictype/test-pr_dash.c: Likewise.
50414         * tests/unictype/test-pr_decimal_digit.c: Likewise.
50415         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
50416         * tests/unictype/test-pr_deprecated.c: Likewise.
50417         * tests/unictype/test-pr_diacritic.c: Likewise.
50418         * tests/unictype/test-pr_extender.c: Likewise.
50419         * tests/unictype/test-pr_format_control.c: Likewise.
50420         * tests/unictype/test-pr_grapheme_base.c: Likewise.
50421         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
50422         * tests/unictype/test-pr_grapheme_link.c: Likewise.
50423         * tests/unictype/test-pr_hex_digit.c: Likewise.
50424         * tests/unictype/test-pr_hyphen.c: Likewise.
50425         * tests/unictype/test-pr_id_continue.c: Likewise.
50426         * tests/unictype/test-pr_id_start.c: Likewise.
50427         * tests/unictype/test-pr_ideographic.c: Likewise.
50428         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
50429         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
50430         * tests/unictype/test-pr_ignorable_control.c: Likewise.
50431         * tests/unictype/test-pr_iso_control.c: Likewise.
50432         * tests/unictype/test-pr_join_control.c: Likewise.
50433         * tests/unictype/test-pr_left_of_pair.c: Likewise.
50434         * tests/unictype/test-pr_line_separator.c: Likewise.
50435         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
50436         * tests/unictype/test-pr_lowercase.c: Likewise.
50437         * tests/unictype/test-pr_math.c: Likewise.
50438         * tests/unictype/test-pr_non_break.c: Likewise.
50439         * tests/unictype/test-pr_not_a_character.c: Likewise.
50440         * tests/unictype/test-pr_numeric.c: Likewise.
50441         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
50442         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
50443         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
50444         * tests/unictype/test-pr_other_id_continue.c: Likewise.
50445         * tests/unictype/test-pr_other_id_start.c: Likewise.
50446         * tests/unictype/test-pr_other_lowercase.c: Likewise.
50447         * tests/unictype/test-pr_other_math.c: Likewise.
50448         * tests/unictype/test-pr_other_uppercase.c: Likewise.
50449         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
50450         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
50451         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
50452         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
50453         * tests/unictype/test-pr_private_use.c: Likewise.
50454         * tests/unictype/test-pr_punctuation.c: Likewise.
50455         * tests/unictype/test-pr_quotation_mark.c: Likewise.
50456         * tests/unictype/test-pr_radical.c: Likewise.
50457         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
50458         * tests/unictype/test-pr_soft_dotted.c: Likewise.
50459         * tests/unictype/test-pr_space.c: Likewise.
50460         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
50461         * tests/unictype/test-pr_titlecase.c: Likewise.
50462         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
50463         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
50464         * tests/unictype/test-pr_uppercase.c: Likewise.
50465         * tests/unictype/test-pr_variation_selector.c: Likewise.
50466         * tests/unictype/test-pr_white_space.c: Likewise.
50467         * tests/unictype/test-pr_xid_continue.c: Likewise.
50468         * tests/unictype/test-pr_xid_start.c: Likewise.
50469         * tests/unictype/test-pr_zero_width.c: Likewise.
50470         * tests/unictype/test-sy_c_whitespace.c: Likewise.
50471         * tests/unictype/test-sy_java_whitespace.c: Likewise.
50472
50473 2007-11-12  Bruno Haible  <bruno@clisp.org>
50474
50475         Unicode character classification functions.
50476         * lib/unictype.h: New file.
50477         * modules/unictype/base: New file.
50478         * modules/unictype/category-L: New file.
50479         * modules/unictype/category-Lu: New file.
50480         * modules/unictype/category-Ll: New file.
50481         * modules/unictype/category-Lt: New file.
50482         * modules/unictype/category-Lm: New file.
50483         * modules/unictype/category-Lo: New file.
50484         * modules/unictype/category-M: New file.
50485         * modules/unictype/category-Mn: New file.
50486         * modules/unictype/category-Mc: New file.
50487         * modules/unictype/category-Me: New file.
50488         * modules/unictype/category-N: New file.
50489         * modules/unictype/category-Nd: New file.
50490         * modules/unictype/category-Nl: New file.
50491         * modules/unictype/category-No: New file.
50492         * modules/unictype/category-P: New file.
50493         * modules/unictype/category-Pc: New file.
50494         * modules/unictype/category-Pd: New file.
50495         * modules/unictype/category-Ps: New file.
50496         * modules/unictype/category-Pe: New file.
50497         * modules/unictype/category-Pi: New file.
50498         * modules/unictype/category-Pf: New file.
50499         * modules/unictype/category-Po: New file.
50500         * modules/unictype/category-S: New file.
50501         * modules/unictype/category-Sm: New file.
50502         * modules/unictype/category-Sc: New file.
50503         * modules/unictype/category-Sk: New file.
50504         * modules/unictype/category-So: New file.
50505         * modules/unictype/category-Z: New file.
50506         * modules/unictype/category-Zs: New file.
50507         * modules/unictype/category-Zl: New file.
50508         * modules/unictype/category-Zp: New file.
50509         * modules/unictype/category-C: New file.
50510         * modules/unictype/category-Cc: New file.
50511         * modules/unictype/category-Cf: New file.
50512         * modules/unictype/category-Cs: New file.
50513         * modules/unictype/category-Co: New file.
50514         * modules/unictype/category-Cn: New file.
50515         * modules/unictype/category-or: New file.
50516         * modules/unictype/category-of: New file.
50517         * modules/unictype/category-test: New file.
50518         * modules/unictype/category-test-withtable: New file.
50519         * modules/unictype/category-byname: New file.
50520         * modules/unictype/category-none: New file.
50521         * modules/unictype/category-and: New file.
50522         * modules/unictype/category-and-not: New file.
50523         * modules/unictype/category-name: New file.
50524         * modules/unictype/combining-class: New file.
50525         * modules/unictype/category-all: New file.
50526         * modules/unictype/bidicategory-all: New file.
50527         * modules/unictype/bidicategory-byname: New file.
50528         * modules/unictype/bidicategory-name: New file.
50529         * modules/unictype/bidicategory-of: New file.
50530         * modules/unictype/bidicategory-test: New file.
50531         * modules/unictype/decimal-digit: New file.
50532         * modules/unictype/digit: New file.
50533         * modules/unictype/numeric: New file.
50534         * modules/unictype/mirror: New file.
50535         * modules/unictype/property-white-space: New file.
50536         * modules/unictype/property-alphabetic: New file.
50537         * modules/unictype/property-other-alphabetic: New file.
50538         * modules/unictype/property-not-a-character: New file.
50539         * modules/unictype/property-default-ignorable-code-point: New file.
50540         * modules/unictype/property-other-default-ignorable-code-point: New
50541         file.
50542         * modules/unictype/property-deprecated: New file.
50543         * modules/unictype/property-logical-order-exception: New file.
50544         * modules/unictype/property-variation-selector: New file.
50545         * modules/unictype/property-private-use: New file.
50546         * modules/unictype/property-unassigned-code-value: New file.
50547         * modules/unictype/property-uppercase: New file.
50548         * modules/unictype/property-other-uppercase: New file.
50549         * modules/unictype/property-lowercase: New file.
50550         * modules/unictype/property-other-lowercase: New file.
50551         * modules/unictype/property-titlecase: New file.
50552         * modules/unictype/property-soft-dotted: New file.
50553         * modules/unictype/property-id-start: New file.
50554         * modules/unictype/property-other-id-start: New file.
50555         * modules/unictype/property-id-continue: New file.
50556         * modules/unictype/property-other-id-continue: New file.
50557         * modules/unictype/property-xid-start: New file.
50558         * modules/unictype/property-xid-continue: New file.
50559         * modules/unictype/property-pattern-white-space: New file.
50560         * modules/unictype/property-pattern-syntax: New file.
50561         * modules/unictype/property-join-control: New file.
50562         * modules/unictype/property-grapheme-base: New file.
50563         * modules/unictype/property-grapheme-extend: New file.
50564         * modules/unictype/property-other-grapheme-extend: New file.
50565         * modules/unictype/property-grapheme-link: New file.
50566         * modules/unictype/property-bidi-control: New file.
50567         * modules/unictype/property-bidi-left-to-right: New file.
50568         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
50569         * modules/unictype/property-bidi-arabic-right-to-left: New file.
50570         * modules/unictype/property-bidi-european-digit: New file.
50571         * modules/unictype/property-bidi-eur-num-separator: New file.
50572         * modules/unictype/property-bidi-eur-num-terminator: New file.
50573         * modules/unictype/property-bidi-arabic-digit: New file.
50574         * modules/unictype/property-bidi-common-separator: New file.
50575         * modules/unictype/property-bidi-block-separator: New file.
50576         * modules/unictype/property-bidi-segment-separator: New file.
50577         * modules/unictype/property-bidi-whitespace: New file.
50578         * modules/unictype/property-bidi-non-spacing-mark: New file.
50579         * modules/unictype/property-bidi-boundary-neutral: New file.
50580         * modules/unictype/property-bidi-pdf: New file.
50581         * modules/unictype/property-bidi-embedding-or-override: New file.
50582         * modules/unictype/property-bidi-other-neutral: New file.
50583         * modules/unictype/property-hex-digit: New file.
50584         * modules/unictype/property-ascii-hex-digit: New file.
50585         * modules/unictype/property-ideographic: New file.
50586         * modules/unictype/property-unified-ideograph: New file.
50587         * modules/unictype/property-radical: New file.
50588         * modules/unictype/property-ids-binary-operator: New file.
50589         * modules/unictype/property-ids-trinary-operator: New file.
50590         * modules/unictype/property-zero-width: New file.
50591         * modules/unictype/property-space: New file.
50592         * modules/unictype/property-non-break: New file.
50593         * modules/unictype/property-iso-control: New file.
50594         * modules/unictype/property-format-control: New file.
50595         * modules/unictype/property-dash: New file.
50596         * modules/unictype/property-hyphen: New file.
50597         * modules/unictype/property-punctuation: New file.
50598         * modules/unictype/property-line-separator: New file.
50599         * modules/unictype/property-paragraph-separator: New file.
50600         * modules/unictype/property-quotation-mark: New file.
50601         * modules/unictype/property-sentence-terminal: New file.
50602         * modules/unictype/property-terminal-punctuation: New file.
50603         * modules/unictype/property-currency-symbol: New file.
50604         * modules/unictype/property-math: New file.
50605         * modules/unictype/property-other-math: New file.
50606         * modules/unictype/property-paired-punctuation: New file.
50607         * modules/unictype/property-left-of-pair: New file.
50608         * modules/unictype/property-combining: New file.
50609         * modules/unictype/property-composite: New file.
50610         * modules/unictype/property-decimal-digit: New file.
50611         * modules/unictype/property-numeric: New file.
50612         * modules/unictype/property-diacritic: New file.
50613         * modules/unictype/property-extender: New file.
50614         * modules/unictype/property-ignorable-control: New file.
50615         * modules/unictype/property-test: New file.
50616         * modules/unictype/property-byname: New file.
50617         * modules/unictype/property-all: New file.
50618         * modules/unictype/scripts: New file.
50619         * modules/unictype/scripts-all: New file.
50620         * modules/unictype/block-of: New file.
50621         * modules/unictype/block-test: New file.
50622         * modules/unictype/block-list: New file.
50623         * modules/unictype/block-all: New file.
50624         * modules/unictype/syntax-c-whitespace: New file.
50625         * modules/unictype/syntax-java-whitespace: New file.
50626         * modules/unictype/syntax-c-ident: New file.
50627         * modules/unictype/syntax-java-ident: New file.
50628         * modules/unictype/ctype-alnum: New file.
50629         * modules/unictype/ctype-alpha: New file.
50630         * modules/unictype/ctype-cntrl: New file.
50631         * modules/unictype/ctype-digit: New file.
50632         * modules/unictype/ctype-graph: New file.
50633         * modules/unictype/ctype-lower: New file.
50634         * modules/unictype/ctype-print: New file.
50635         * modules/unictype/ctype-punct: New file.
50636         * modules/unictype/ctype-space: New file.
50637         * modules/unictype/ctype-upper: New file.
50638         * modules/unictype/ctype-xdigit: New file.
50639         * modules/unictype/ctype-blank: New file.
50640         * lib/unictype/bidi_byname.c: New file.
50641         * lib/unictype/bidi_name.c: New file.
50642         * lib/unictype/bidi_of.c: New file.
50643         * lib/unictype/bidi_test.c: New file.
50644         * lib/unictype/bitmap.h: New file.
50645         * lib/unictype/block_test.c: New file.
50646         * lib/unictype/blocks.c: New file.
50647         * lib/unictype/categ_C.c: New file.
50648         * lib/unictype/categ_Cc.c: New file.
50649         * lib/unictype/categ_Cf.c: New file.
50650         * lib/unictype/categ_Cn.c: New file.
50651         * lib/unictype/categ_Co.c: New file.
50652         * lib/unictype/categ_Cs.c: New file.
50653         * lib/unictype/categ_L.c: New file.
50654         * lib/unictype/categ_Ll.c: New file.
50655         * lib/unictype/categ_Lm.c: New file.
50656         * lib/unictype/categ_Lo.c: New file.
50657         * lib/unictype/categ_Lt.c: New file.
50658         * lib/unictype/categ_Lu.c: New file.
50659         * lib/unictype/categ_M.c: New file.
50660         * lib/unictype/categ_Mc.c: New file.
50661         * lib/unictype/categ_Me.c: New file.
50662         * lib/unictype/categ_Mn.c: New file.
50663         * lib/unictype/categ_N.c: New file.
50664         * lib/unictype/categ_Nd.c: New file.
50665         * lib/unictype/categ_Nl.c: New file.
50666         * lib/unictype/categ_No.c: New file.
50667         * lib/unictype/categ_P.c: New file.
50668         * lib/unictype/categ_Pc.c: New file.
50669         * lib/unictype/categ_Pd.c: New file.
50670         * lib/unictype/categ_Pe.c: New file.
50671         * lib/unictype/categ_Pf.c: New file.
50672         * lib/unictype/categ_Pi.c: New file.
50673         * lib/unictype/categ_Po.c: New file.
50674         * lib/unictype/categ_Ps.c: New file.
50675         * lib/unictype/categ_S.c: New file.
50676         * lib/unictype/categ_Sc.c: New file.
50677         * lib/unictype/categ_Sk.c: New file.
50678         * lib/unictype/categ_Sm.c: New file.
50679         * lib/unictype/categ_So.c: New file.
50680         * lib/unictype/categ_Z.c: New file.
50681         * lib/unictype/categ_Zl.c: New file.
50682         * lib/unictype/categ_Zp.c: New file.
50683         * lib/unictype/categ_Zs.c: New file.
50684         * lib/unictype/categ_and.c: New file.
50685         * lib/unictype/categ_and_not.c: New file.
50686         * lib/unictype/categ_byname.c: New file.
50687         * lib/unictype/categ_name.c: New file.
50688         * lib/unictype/categ_none.c: New file.
50689         * lib/unictype/categ_of.c: New file.
50690         * lib/unictype/categ_or.c: New file.
50691         * lib/unictype/categ_test.c: New file.
50692         * lib/unictype/combining.c: New file.
50693         * lib/unictype/ctype_alnum.c: New file.
50694         * lib/unictype/ctype_alpha.c: New file.
50695         * lib/unictype/ctype_blank.c: New file.
50696         * lib/unictype/ctype_cntrl.c: New file.
50697         * lib/unictype/ctype_digit.c: New file.
50698         * lib/unictype/ctype_graph.c: New file.
50699         * lib/unictype/ctype_lower.c: New file.
50700         * lib/unictype/ctype_print.c: New file.
50701         * lib/unictype/ctype_punct.c: New file.
50702         * lib/unictype/ctype_space.c: New file.
50703         * lib/unictype/ctype_upper.c: New file.
50704         * lib/unictype/ctype_xdigit.c: New file.
50705         * lib/unictype/decdigit.c: New file.
50706         * lib/unictype/digit.c: New file.
50707         * lib/unictype/identsyntaxmap.h: New file.
50708         * lib/unictype/mirror.c: New file.
50709         * lib/unictype/numeric.c: New file.
50710         * lib/unictype/pr_alphabetic.c: New file.
50711         * lib/unictype/pr_ascii_hex_digit.c: New file.
50712         * lib/unictype/pr_bidi_arabic_digit.c: New file.
50713         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
50714         * lib/unictype/pr_bidi_block_separator.c: New file.
50715         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
50716         * lib/unictype/pr_bidi_common_separator.c: New file.
50717         * lib/unictype/pr_bidi_control.c: New file.
50718         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
50719         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
50720         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
50721         * lib/unictype/pr_bidi_european_digit.c: New file.
50722         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
50723         * lib/unictype/pr_bidi_left_to_right.c: New file.
50724         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
50725         * lib/unictype/pr_bidi_other_neutral.c: New file.
50726         * lib/unictype/pr_bidi_pdf.c: New file.
50727         * lib/unictype/pr_bidi_segment_separator.c: New file.
50728         * lib/unictype/pr_bidi_whitespace.c: New file.
50729         * lib/unictype/pr_byname.c: New file.
50730         * lib/unictype/pr_byname.gperf: New file.
50731         * lib/unictype/pr_combining.c: New file.
50732         * lib/unictype/pr_composite.c: New file.
50733         * lib/unictype/pr_currency_symbol.c: New file.
50734         * lib/unictype/pr_dash.c: New file.
50735         * lib/unictype/pr_decimal_digit.c: New file.
50736         * lib/unictype/pr_default_ignorable_code_point.c: New file.
50737         * lib/unictype/pr_deprecated.c: New file.
50738         * lib/unictype/pr_diacritic.c: New file.
50739         * lib/unictype/pr_extender.c: New file.
50740         * lib/unictype/pr_format_control.c: New file.
50741         * lib/unictype/pr_grapheme_base.c: New file.
50742         * lib/unictype/pr_grapheme_extend.c: New file.
50743         * lib/unictype/pr_grapheme_link.c: New file.
50744         * lib/unictype/pr_hex_digit.c: New file.
50745         * lib/unictype/pr_hyphen.c: New file.
50746         * lib/unictype/pr_id_continue.c: New file.
50747         * lib/unictype/pr_id_start.c: New file.
50748         * lib/unictype/pr_ideographic.c: New file.
50749         * lib/unictype/pr_ids_binary_operator.c: New file.
50750         * lib/unictype/pr_ids_trinary_operator.c: New file.
50751         * lib/unictype/pr_ignorable_control.c: New file.
50752         * lib/unictype/pr_iso_control.c: New file.
50753         * lib/unictype/pr_join_control.c: New file.
50754         * lib/unictype/pr_left_of_pair.c: New file.
50755         * lib/unictype/pr_line_separator.c: New file.
50756         * lib/unictype/pr_logical_order_exception.c: New file.
50757         * lib/unictype/pr_lowercase.c: New file.
50758         * lib/unictype/pr_math.c: New file.
50759         * lib/unictype/pr_non_break.c: New file.
50760         * lib/unictype/pr_not_a_character.c: New file.
50761         * lib/unictype/pr_numeric.c: New file.
50762         * lib/unictype/pr_other_alphabetic.c: New file.
50763         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
50764         * lib/unictype/pr_other_grapheme_extend.c: New file.
50765         * lib/unictype/pr_other_id_continue.c: New file.
50766         * lib/unictype/pr_other_id_start.c: New file.
50767         * lib/unictype/pr_other_lowercase.c: New file.
50768         * lib/unictype/pr_other_math.c: New file.
50769         * lib/unictype/pr_other_uppercase.c: New file.
50770         * lib/unictype/pr_paired_punctuation.c: New file.
50771         * lib/unictype/pr_paragraph_separator.c: New file.
50772         * lib/unictype/pr_pattern_syntax.c: New file.
50773         * lib/unictype/pr_pattern_white_space.c: New file.
50774         * lib/unictype/pr_private_use.c: New file.
50775         * lib/unictype/pr_punctuation.c: New file.
50776         * lib/unictype/pr_quotation_mark.c: New file.
50777         * lib/unictype/pr_radical.c: New file.
50778         * lib/unictype/pr_sentence_terminal.c: New file.
50779         * lib/unictype/pr_soft_dotted.c: New file.
50780         * lib/unictype/pr_space.c: New file.
50781         * lib/unictype/pr_terminal_punctuation.c: New file.
50782         * lib/unictype/pr_test.c: New file.
50783         * lib/unictype/pr_titlecase.c: New file.
50784         * lib/unictype/pr_unassigned_code_value.c: New file.
50785         * lib/unictype/pr_unified_ideograph.c: New file.
50786         * lib/unictype/pr_uppercase.c: New file.
50787         * lib/unictype/pr_variation_selector.c: New file.
50788         * lib/unictype/pr_white_space.c: New file.
50789         * lib/unictype/pr_xid_continue.c: New file.
50790         * lib/unictype/pr_xid_start.c: New file.
50791         * lib/unictype/pr_zero_width.c: New file.
50792         * lib/unictype/scripts.c: New file.
50793         * lib/unictype/sy_c_ident.c: New file.
50794         * lib/unictype/sy_c_whitespace.c: New file.
50795         * lib/unictype/sy_java_ident.c: New file.
50796         * lib/unictype/sy_java_whitespace.c: New file.
50797
50798         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
50799         Unicode 5.0.0.
50800         * lib/unictype/blocks.h: Likewise.
50801         * lib/unictype/categ_C.h: Likewise.
50802         * lib/unictype/categ_Cc.h: Likewise.
50803         * lib/unictype/categ_Cf.h: Likewise.
50804         * lib/unictype/categ_Cn.h: Likewise.
50805         * lib/unictype/categ_Co.h: Likewise.
50806         * lib/unictype/categ_Cs.h: Likewise.
50807         * lib/unictype/categ_L.h: Likewise.
50808         * lib/unictype/categ_Ll.h: Likewise.
50809         * lib/unictype/categ_Lm.h: Likewise.
50810         * lib/unictype/categ_Lo.h: Likewise.
50811         * lib/unictype/categ_Lt.h: Likewise.
50812         * lib/unictype/categ_Lu.h: Likewise.
50813         * lib/unictype/categ_M.h: Likewise.
50814         * lib/unictype/categ_Mc.h: Likewise.
50815         * lib/unictype/categ_Me.h: Likewise.
50816         * lib/unictype/categ_Mn.h: Likewise.
50817         * lib/unictype/categ_N.h: Likewise.
50818         * lib/unictype/categ_Nd.h: Likewise.
50819         * lib/unictype/categ_Nl.h: Likewise.
50820         * lib/unictype/categ_No.h: Likewise.
50821         * lib/unictype/categ_P.h: Likewise.
50822         * lib/unictype/categ_Pc.h: Likewise.
50823         * lib/unictype/categ_Pd.h: Likewise.
50824         * lib/unictype/categ_Pe.h: Likewise.
50825         * lib/unictype/categ_Pf.h: Likewise.
50826         * lib/unictype/categ_Pi.h: Likewise.
50827         * lib/unictype/categ_Po.h: Likewise.
50828         * lib/unictype/categ_Ps.h: Likewise.
50829         * lib/unictype/categ_S.h: Likewise.
50830         * lib/unictype/categ_Sc.h: Likewise.
50831         * lib/unictype/categ_Sk.h: Likewise.
50832         * lib/unictype/categ_Sm.h: Likewise.
50833         * lib/unictype/categ_So.h: Likewise.
50834         * lib/unictype/categ_Z.h: Likewise.
50835         * lib/unictype/categ_Zl.h: Likewise.
50836         * lib/unictype/categ_Zp.h: Likewise.
50837         * lib/unictype/categ_Zs.h: Likewise.
50838         * lib/unictype/categ_of.h: Likewise.
50839         * lib/unictype/combining.h: Likewise.
50840         * lib/unictype/ctype_alnum.h: Likewise.
50841         * lib/unictype/ctype_alpha.h: Likewise.
50842         * lib/unictype/ctype_blank.h: Likewise.
50843         * lib/unictype/ctype_cntrl.h: Likewise.
50844         * lib/unictype/ctype_digit.h: Likewise.
50845         * lib/unictype/ctype_graph.h: Likewise.
50846         * lib/unictype/ctype_lower.h: Likewise.
50847         * lib/unictype/ctype_print.h: Likewise.
50848         * lib/unictype/ctype_punct.h: Likewise.
50849         * lib/unictype/ctype_space.h: Likewise.
50850         * lib/unictype/ctype_upper.h: Likewise.
50851         * lib/unictype/ctype_xdigit.h: Likewise.
50852         * lib/unictype/decdigit.h: Likewise.
50853         * lib/unictype/digit.h: Likewise.
50854         * lib/unictype/mirror.h: Likewise.
50855         * lib/unictype/numeric.h: Likewise.
50856         * lib/unictype/pr_alphabetic.h: Likewise.
50857         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
50858         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
50859         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
50860         * lib/unictype/pr_bidi_block_separator.h: Likewise.
50861         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
50862         * lib/unictype/pr_bidi_common_separator.h: Likewise.
50863         * lib/unictype/pr_bidi_control.h: Likewise.
50864         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
50865         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
50866         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
50867         * lib/unictype/pr_bidi_european_digit.h: Likewise.
50868         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
50869         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
50870         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
50871         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
50872         * lib/unictype/pr_bidi_pdf.h: Likewise.
50873         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
50874         * lib/unictype/pr_bidi_whitespace.h: Likewise.
50875         * lib/unictype/pr_combining.h: Likewise.
50876         * lib/unictype/pr_composite.h: Likewise.
50877         * lib/unictype/pr_currency_symbol.h: Likewise.
50878         * lib/unictype/pr_dash.h: Likewise.
50879         * lib/unictype/pr_decimal_digit.h: Likewise.
50880         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
50881         * lib/unictype/pr_deprecated.h: Likewise.
50882         * lib/unictype/pr_diacritic.h: Likewise.
50883         * lib/unictype/pr_extender.h: Likewise.
50884         * lib/unictype/pr_format_control.h: Likewise.
50885         * lib/unictype/pr_grapheme_base.h: Likewise.
50886         * lib/unictype/pr_grapheme_extend.h: Likewise.
50887         * lib/unictype/pr_grapheme_link.h: Likewise.
50888         * lib/unictype/pr_hex_digit.h: Likewise.
50889         * lib/unictype/pr_hyphen.h: Likewise.
50890         * lib/unictype/pr_id_continue.h: Likewise.
50891         * lib/unictype/pr_id_start.h: Likewise.
50892         * lib/unictype/pr_ideographic.h: Likewise.
50893         * lib/unictype/pr_ids_binary_operator.h: Likewise.
50894         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
50895         * lib/unictype/pr_ignorable_control.h: Likewise.
50896         * lib/unictype/pr_iso_control.h: Likewise.
50897         * lib/unictype/pr_join_control.h: Likewise.
50898         * lib/unictype/pr_left_of_pair.h: Likewise.
50899         * lib/unictype/pr_line_separator.h: Likewise.
50900         * lib/unictype/pr_logical_order_exception.h: Likewise.
50901         * lib/unictype/pr_lowercase.h: Likewise.
50902         * lib/unictype/pr_math.h: Likewise.
50903         * lib/unictype/pr_non_break.h: Likewise.
50904         * lib/unictype/pr_not_a_character.h: Likewise.
50905         * lib/unictype/pr_numeric.h: Likewise.
50906         * lib/unictype/pr_other_alphabetic.h: Likewise.
50907         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
50908         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
50909         * lib/unictype/pr_other_id_continue.h: Likewise.
50910         * lib/unictype/pr_other_id_start.h: Likewise.
50911         * lib/unictype/pr_other_lowercase.h: Likewise.
50912         * lib/unictype/pr_other_math.h: Likewise.
50913         * lib/unictype/pr_other_uppercase.h: Likewise.
50914         * lib/unictype/pr_paired_punctuation.h: Likewise.
50915         * lib/unictype/pr_paragraph_separator.h: Likewise.
50916         * lib/unictype/pr_pattern_syntax.h: Likewise.
50917         * lib/unictype/pr_pattern_white_space.h: Likewise.
50918         * lib/unictype/pr_private_use.h: Likewise.
50919         * lib/unictype/pr_punctuation.h: Likewise.
50920         * lib/unictype/pr_quotation_mark.h: Likewise.
50921         * lib/unictype/pr_radical.h: Likewise.
50922         * lib/unictype/pr_sentence_terminal.h: Likewise.
50923         * lib/unictype/pr_soft_dotted.h: Likewise.
50924         * lib/unictype/pr_space.h: Likewise.
50925         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50926         * lib/unictype/pr_titlecase.h: Likewise.
50927         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50928         * lib/unictype/pr_unified_ideograph.h: Likewise.
50929         * lib/unictype/pr_uppercase.h: Likewise.
50930         * lib/unictype/pr_variation_selector.h: Likewise.
50931         * lib/unictype/pr_white_space.h: Likewise.
50932         * lib/unictype/pr_xid_continue.h: Likewise.
50933         * lib/unictype/pr_xid_start.h: Likewise.
50934         * lib/unictype/pr_zero_width.h: Likewise.
50935         * lib/unictype/scripts.h: Likewise.
50936         * lib/unictype/scripts_byname.gperf: Likewise.
50937         * lib/unictype/sy_c_ident.h: Likewise.
50938         * lib/unictype/sy_c_whitespace.h: Likewise.
50939         * lib/unictype/sy_java_ident.h: Likewise.
50940         * lib/unictype/sy_java_whitespace.h: Likewise.
50941
50942         * lib/unictype/Makefile: New file.
50943         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
50944         glibc.
50945         * lib/unictype/3level.h: New file, copied from glibc.
50946         * lib/unictype/3levelbit.h: New file.
50947
50948 2007-11-11  Bruno Haible  <bruno@clisp.org>
50949
50950         * modules/gperf: New file.
50951         * modules/iconv_open (Depends-on): Add it.
50952         (Makefile.am): Remove the GPERF definition.
50953
50954 2007-11-11  Bruno Haible  <bruno@clisp.org>
50955
50956         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
50957         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
50958
50959 2007-11-11  Bruno Haible  <bruno@clisp.org>
50960
50961         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
50962         (usage): Remove function.
50963
50964 2007-11-11  Bruno Haible  <bruno@clisp.org>
50965
50966         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
50967         gl_FUNC_CEILF_LIBS.
50968         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
50969         gl_FUNC_CEIL_LIBS.
50970         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
50971         gl_FUNC_CEILL_LIBS.
50972         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
50973         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
50974         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
50975
50976 2007-11-11  Bruno Haible  <bruno@clisp.org>
50977
50978         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
50979         roundf were declared but do not exist on functions.
50980         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
50981         roundl were declared but do not exist on functions.
50982         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
50983         HAVE_FLOORL_AND_CEILL, respectively.
50984         Needed for Sun C on Solaris 10.
50985
50986 2007-11-11  Bruno Haible  <bruno@clisp.org>
50987
50988         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
50989         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
50990         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
50991         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
50992         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
50993         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
50994         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
50995         HAVE_DECL_ROUNDF.
50996         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
50997         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
50998         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
50999         of HAVE_DECL_ROUND*.
51000         * modules/math (Makefile.am): Update.
51001
51002 2007-11-10  Bruno Haible  <bruno@clisp.org>
51003
51004         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
51005         ptrdiff_t as m4/intl.m4.
51006
51007 2007-11-10  Jim Meyering  <meyering@redhat.com>
51008
51009         Avoid link failure for the argmatch test.
51010         * tests/test-argmatch.c (usage): Define function to avoid a link
51011         failure: argmatch_die requires a usage function.
51012
51013 2007-11-09  Bruno Haible  <bruno@clisp.org>
51014
51015         * doc/functions/snprintf.texi: Mention BeOS deficiency.
51016         * doc/functions/vsnprintf.texi: Likewise.
51017         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
51018         with a size argument < 2.
51019
51020 2007-11-09  Bruno Haible  <bruno@clisp.org>
51021
51022         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
51023         buffer. Fixes an inefficiency introduced on 2007-11-03.
51024
51025 2007-11-09  Bruno Haible  <bruno@clisp.org>
51026
51027         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
51028         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
51029
51030 2007-11-08  Jim Meyering  <meyering@redhat.com>
51031
51032         Change cache variable name prefix "jm_" to "gl_" everywhere.
51033         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
51034         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
51035         * m4/uptime.m4: s/gl_/jm_/
51036
51037 2007-11-07  Bruno Haible  <bruno@clisp.org>
51038
51039         Update to GNU gettext 0.17.
51040         * m4/intl.m4: Update to GNU gettext 0.17.
51041         * m4/po.m4: Likewise.
51042         * modules/gettext (Files): Remove m4/ulonglong.m4.
51043         (configure.ac): Require gettext infrastructure from version 0.17.
51044
51045 2007-11-06  Bruno Haible  <bruno@clisp.org>
51046
51047         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
51048         symbolic values are not defined in a public header.
51049         * lib/freadable.c (freadable) [QNX]: Likewise.
51050         * lib/freadahead.c (freadahead) [QNX]: Likewise.
51051         * lib/freading.c (freading) [QNX]: Likewise.
51052         * lib/fseterr.c (fseterr) [QNX]: Likewise.
51053         * lib/fwritable.c (fwritable) [QNX]: Likewise.
51054         * lib/fwriting.c (fwriting) [QNX]: Likewise.
51055         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
51056         Reported by Alain Magloire.
51057
51058         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
51059
51060 2007-11-05  Bruno Haible  <bruno@clisp.org>
51061
51062         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
51063         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
51064         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
51065         Reported by Eric Blake.
51066
51067 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51068             Bruno Haible  <bruno@clisp.org>
51069
51070         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
51071         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
51072         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
51073         (malloc): Undefine also before including <stdlib.h>.
51074         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
51075         Needed on OSF/1 4.0.
51076
51077 2007-11-05  Jim Meyering  <meyering@redhat.com>
51078
51079         git-version-gen: sync from coreutils.
51080         * build-aux/git-version-gen: Add comments.
51081         Change the first '-' to '.' in the snapshot version string,
51082         e.g., 6.9-377-08144 -> 6.9.377-08144
51083         Remove first parameter.
51084         Don't declare a version "-dirty" merely because a time
51085         stamp has changed.
51086
51087 2007-11-04  Bruno Haible  <bruno@clisp.org>
51088
51089         * lib/lock.h: Protect all macro definitions containing an 'if'
51090         statement through a "do { ... } while (0)".
51091         * lib/tls.h: Likewise.
51092
51093 2007-11-04  Bruno Haible  <bruno@clisp.org>
51094
51095         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
51096
51097 2007-11-04  Bruno Haible  <bruno@clisp.org>
51098
51099         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
51100         * modules/fprintf-posix (Depends-on): Add nocrash.
51101         * modules/snprintf-posix (Depends-on): Likewise.
51102         * modules/sprintf-posix (Depends-on): Likewise.
51103         * modules/vasnprintf-posix (Depends-on): Likewise.
51104         * modules/vasprintf-posix (Depends-on): Likewise.
51105         * modules/vfprintf-posix (Depends-on): Likewise.
51106         * modules/vsnprintf-posix (Depends-on): Likewise.
51107         * modules/vsprintf-posix (Depends-on): Likewise.
51108         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51109         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51110         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51111         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51112         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51113         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51114         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51115
51116 2007-11-04  Bruno Haible  <bruno@clisp.org>
51117
51118         * modules/nocrash: New file.
51119         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
51120         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
51121
51122 2007-11-04  Bruno Haible  <bruno@clisp.org>
51123
51124         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
51125         precision handling.
51126         * tests/test-vasprintf-posix.c (test_function): Likewise.
51127         * tests/test-snprintf-posix.h (test_function): Likewise.
51128         * tests/test-sprintf-posix.h (test_function): Likewise.
51129
51130         Fix *printf behaviour for large precisions on mingw and BeOS.
51131         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
51132         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
51133         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
51134         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51135         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51136         gl_PRINTF_PRECISION and test its result. Invoke
51137         gl_PREREQ_VASNPRINTF_PRECISION.
51138         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51139         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51140         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51141         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51142         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51143         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51144         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51145         * doc/functions/fprintf.texi: Update.
51146         * doc/functions/printf.texi: Update.
51147         * doc/functions/snprintf.texi: Update.
51148         * doc/functions/sprintf.texi: Update.
51149         * doc/functions/vfprintf.texi: Update.
51150         * doc/functions/vprintf.texi: Update.
51151         * doc/functions/vsnprintf.texi: Update.
51152         * doc/functions/vsprintf.texi: Update.
51153
51154 2007-11-04  Bruno Haible  <bruno@clisp.org>
51155
51156         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
51157
51158 2007-11-04  Bruno Haible  <bruno@clisp.org>
51159
51160         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
51161         Reported by Sylvain Beucler <beuc@gnu.org>.
51162
51163 2007-11-03  Bruno Haible  <bruno@clisp.org>
51164
51165         * tests/test-fprintf-posix2.sh: New file.
51166         * tests/test-fprintf-posix2.c: New file.
51167         * modules/fprintf-posix-tests (Files): Add them.
51168         (TESTS): Add test-fprintf-posix2.sh.
51169         (configure.ac): Check for getrlimit and setrlimit.
51170         (check_PROGRAMS): Add test-fprintf-posix2.
51171
51172         * tests/test-printf-posix2.sh: New file.
51173         * tests/test-printf-posix2.c: New file.
51174         * modules/printf-posix-tests (Files): Add them.
51175         (TESTS): Add test-printf-posix2.sh.
51176         (configure.ac): Check for getrlimit and setrlimit.
51177         (check_PROGRAMS): Add test-printf-posix2.
51178
51179         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
51180         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
51181         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
51182         (decode_double): New function, copied from decode_long_double.
51183         (scale10_round_decimal_decoded): New function, extracted from
51184         scale10_round_decimal_long_double.
51185         (scale10_round_decimal_long_double): Use it.
51186         (scale10_round_decimal_double): New function.
51187         (floorlog10): New function.
51188         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
51189         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
51190         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51191         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51192         gl_PRINTF_ENOMEM and test its result. Invoke
51193         gl_PREREQ_VASNPRINTF_ENOMEM.
51194         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51195         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51196         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51197         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51198         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51199         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51200         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51201         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
51202         * modules/snprintf-posix (Depends-on): Likewise.
51203         * modules/sprintf-posix (Depends-on): Likewise.
51204         * modules/vasnprintf-posix (Depends-on): Likewise.
51205         * modules/vasprintf-posix (Depends-on): Likewise.
51206         * modules/vfprintf-posix (Depends-on): Likewise.
51207         * modules/vsnprintf-posix (Depends-on): Likewise.
51208         * modules/vsprintf-posix (Depends-on): Likewise.
51209         * doc/functions/fprintf.texi: Update.
51210         * doc/functions/printf.texi: Update.
51211         * doc/functions/snprintf.texi: Update.
51212         * doc/functions/sprintf.texi: Update.
51213         * doc/functions/vfprintf.texi: Update.
51214         * doc/functions/vprintf.texi: Update.
51215         * doc/functions/vsnprintf.texi: Update.
51216         * doc/functions/vsprintf.texi: Update.
51217
51218 2007-11-03  Bruno Haible  <bruno@clisp.org>
51219
51220         * modules/frexp-nolibm-tests: New file.
51221
51222         * modules/frexp-nolibm: New file.
51223         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
51224
51225 2007-11-03  Bruno Haible  <bruno@clisp.org>
51226
51227         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
51228         value is C99 compliant.
51229         Needed for OSF/1 5.1.
51230
51231 2007-11-03  Bruno Haible  <bruno@clisp.org>
51232
51233         Fix out-of-memory handling of vasnprintf.
51234         * lib/printf-parse.c: Include <errno.h>.
51235         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
51236         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
51237         is already set.
51238
51239 2007-11-02  Eric Blake  <ebb9@byu.net>
51240
51241         Fix tests on cygwin.
51242         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
51243
51244 2007-11-01  Bruno Haible  <bruno@clisp.org>
51245
51246         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
51247         warning.
51248         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
51249         needed for POSIX compatibility.
51250
51251 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
51252
51253         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
51254         for compatibility with GNU.
51255
51256 2007-11-01  Bruno Haible  <bruno@clisp.org>
51257
51258         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
51259         (putenv): Renamed from rpl_putenv. Change argument type from
51260         'const char *' to 'char *'.
51261         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
51262         of defining putenv in config.h, just set REPLACE_PUTENV.
51263         * modules/putenv (Depends-on): Add stdlib.
51264         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51265         (Include): Use <stdlib.h>.
51266         * lib/stdlib.in.h (putenv): New declaration.
51267         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
51268         REPLACE_PUTENV.
51269         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
51270         REPLACE_PUTENV.
51271         Needed for MacOS X 10.5.0.
51272         Reported by Peter O'Gorman <peter@pogma.com>.
51273
51274 2007-11-01  Jim Meyering  <meyering@redhat.com>
51275
51276         Treat an empty date string exactly like "0".
51277         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
51278         if the remaining date string (to be parsed) is empty, use "0".
51279         Reported by Mischa Molhoek and discussed in this thread:
51280         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
51281
51282 2007-10-31  Bruno Haible  <bruno@clisp.org>
51283
51284         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
51285         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
51286         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
51287         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
51288         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
51289         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
51290
51291 2007-10-31  Bruno Haible  <bruno@clisp.org>
51292
51293         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
51294         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
51295         (AC_TYPE_LONG_LONG_INT): Use it.
51296         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
51297         it as well.
51298         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
51299         to m4/longlong.m4.
51300         * modules/stdint (Files): Remove m4/ulonglong.m4.
51301         * modules/strtoull (Files): Use m4/longlong.m4 instead of
51302         m4/ulonglong.m4.
51303         * modules/strtoumax (Files): Likewise.
51304
51305 2007-10-30  Bruno Haible  <bruno@clisp.org>
51306
51307         * modules/xvasprintf-posix: New file.
51308         Suggested by Eric Blake.
51309
51310 2007-10-30  Bruno Haible  <bruno@clisp.org>
51311
51312         * modules/xprintf-posix-tests: New file.
51313         * tests/test-xprintf-posix.sh: New file.
51314         * tests/test-xprintf-posix.c: New file.
51315         * tests/test-xfprintf-posix.c: New file.
51316
51317         * modules/xprintf-posix: New file.
51318
51319 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51320
51321         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
51322         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
51323         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
51324
51325 2007-10-29  Bruno Haible  <bruno@clisp.org>
51326
51327         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
51328         contain the special marker '_cv_'.
51329         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51330         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51331         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51332         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
51333         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51334         Reported by Ralf Wildenhues.
51335
51336 2007-10-29  Bruno Haible  <bruno@clisp.org>
51337
51338         * gnulib-tool (func_import): When --lgpl is not specified, set
51339         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
51340         GPLv3.
51341         Reported by Simon Josefsson.
51342
51343 2007-10-28  Bruno Haible  <bruno@clisp.org>
51344
51345         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
51346         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
51347         HAVE_DECL_ISFINITE.
51348         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51349         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
51350         HAVE_DECL_ISFINITE.
51351
51352 2007-10-28  Bruno Haible  <bruno@clisp.org>
51353
51354         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
51355         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
51356
51357 2007-10-28  Bruno Haible  <bruno@clisp.org>
51358
51359         Fix link errors with Sun C 5.0 on Solaris 10.
51360         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
51361         function is declared but not present in the compiler's libm.
51362         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
51363         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
51364         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
51365         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
51366         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
51367         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
51368         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
51369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51370         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
51371         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
51372         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
51373         HAVE_DECL_FLOORL.
51374
51375 2007-10-28  Bruno Haible  <bruno@clisp.org>
51376
51377         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
51378         gl_FUNC_FLOORL. Cache the result.
51379         (gl_FUNC_FLOORL): Use it.
51380         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
51381         gl_FUNC_CEILL. Cache the result.
51382         (gl_FUNC_CEILL): Use it.
51383
51384         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
51385         gl_FUNC_FLOOR. Cache the result.
51386         (gl_FUNC_FLOOR): Use it.
51387         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
51388         gl_FUNC_CEIL. Cache the result.
51389         (gl_FUNC_CEIL): Use it.
51390
51391         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
51392         gl_FUNC_FLOORF. Cache the result.
51393         (gl_FUNC_FLOORF): Use it.
51394         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
51395         gl_FUNC_CEILF. Cache the result.
51396         (gl_FUNC_CEILF): Use it.
51397
51398 2007-10-28  Bruno Haible  <bruno@clisp.org>
51399
51400         * gnulib-tool: Allow specifying the LGPL version number through
51401         --lgpl=2 or --lgpl=3.
51402         (func_usage): Document --lgpl with argument.
51403         Handle --lgpl=... arguments.
51404         (func_import): Recognize also gl_LGPL calls with an argument. When
51405         --lgpl=2 is used and the module's license is just LGPL, report an
51406         error. Set sed_transform_lib_file according to the lgpl variable. In
51407         the generated files, use --lgpl or gl_LGPL invocations with argument,
51408         if necessary.
51409         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
51410         an LGPv2+ license.
51411         * doc/gnulib-tool.texi (Modified imports): Update explanation of
51412         gl_LGPL macro.
51413
51414 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51415             Bruno Haible  <bruno@clisp.org>
51416
51417         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
51418         (u16_uctomb_aux): Likewise.
51419         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
51420         !HAVE_INLINE.
51421         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
51422
51423 2007-10-28  Bruno Haible  <bruno@clisp.org>
51424
51425         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
51426         Invoke AM_GETTEXT_OPTION if it exists.
51427         * modules/vasprintf: Likewise.
51428         * modules/verror: Likewise.
51429         * modules/xprintf: Likewise.
51430         * modules/xvasprintf: Likewise.
51431
51432 2007-10-27  Ben Pfaff  <blp@gnu.org>
51433
51434         * lib/math.in.h: Define isfinite macro and prototypes for
51435         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
51436         implementations.
51437         * m4/math_h.m4: New substitutions for isfinite module.
51438         * lib/isfinite.c: New file.
51439         * m4/isfinite.m4: New file.
51440         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
51441         * modules/isfinite: New file.
51442         * modules/isfinite-tests: New file.
51443         * tests/tests-isfinite.c: New file.
51444         * doc/functions/isfinite.texi: Mention isfinite module.
51445         * MODULES.html.sh: Mention new module.
51446
51447 2007-10-27  Ben Pfaff  <blp@gnu.org>
51448
51449         Ralf Wildenhues reported that Tru64 4.0D declares the round
51450         functions but does not have definitions.
51451         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
51452         cannot be found in any library, set the output variable to
51453         "missing" instead of "".
51454         * m4/round.m4: Also use our substitute if we cannot find round in
51455         any library, even if it is declared.
51456         * m4/roundf.m4: Likewise for roundf.
51457         * m4/roundl.m4: Likewise for roundl.
51458         * lib/math.in.h: Undefine roundf, round, roundl before defining
51459         their replacements, to allow for hypothetical systems where these
51460         may be defined as macros but not available in libraries.
51461
51462 2007-10-27  Bruno Haible  <bruno@clisp.org>
51463
51464         * doc/gnulib.texi: Invoke @firstparagraphindent.
51465         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
51466         changes in gnulib.
51467         (Source changes): New section.
51468
51469 2007-10-26  Bruno Haible  <bruno@clisp.org>
51470
51471         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
51472         borrowed from autoconf.
51473
51474 2007-10-26  Bruno Haible  <bruno@clisp.org>
51475
51476         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
51477         strerror returned the empty string. Needed on HP-UX 11.00.
51478
51479 2007-10-24  Micah Cowan  <micah@cowan.name>
51480
51481         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
51482         * build-aux/bootstrap: Remove support for now-unnecessary option,
51483         --cvs-user, and envvars CVS_USER, CVS_RSH.
51484
51485 2007-10-24  Jim Meyering  <meyering@redhat.com>
51486
51487         Avoid diagnostics from sha1sum when there is no cached checksum.
51488         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
51489         if the po.s1 file hasn't been created yet.
51490
51491         * build-aux/bootstrap: Sync from coreutils:
51492         2007-10-24  Jim Meyering  <meyering@redhat.com>
51493         Get gnulib from the git repository, not from an obsolete cvs one.
51494         * build-aux/bootstrap: Suggestion from Micah Cowan.
51495         2007-10-04  Jim Meyering  <jim@meyering.net>
51496         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
51497         (update_po_files): Work also when there are no .po files in po/.
51498
51499 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51500
51501         * README: Append ".git" to git and cg examples.
51502         Problem reported by Benoit Sigoure.
51503
51504 2007-10-23  Micah Cowan  <micah@cowan.name>
51505
51506         * users.txt: Add wget.
51507
51508 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51509
51510         Fix linking of some unistdio tests on FreeBSD.
51511         * modules/unistdio/u16-vsnprintf-tests
51512         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
51513         * modules/unistdio/u16-vsprintf-tests
51514         (test_u16_vsnprintf1_LDADD): Likewise.
51515         * modules/unistdio/u32-vsnprintf-tests
51516         (test_u32_vsnprintf1_LDADD): Likewise.
51517         * modules/unistdio/u32-vsprintf-tests
51518         (test_u32_vsprintf1_LDADD): Likewise.
51519         * modules/unistdio/u8-vsnprintf-tests
51520         (test_u8_vsnprintf1_LDADD): Likewise.
51521         * modules/unistdio/u8-vsprintf-tests
51522         (test_u8_vsprintf1_LDADD): Likewise.
51523         * modules/unistdio/ulc-vsnprintf-tests
51524         (test_ulc_vsnprintf1_LDADD): Likewise.
51525         * modules/unistdio/ulc-vsprintf-tests
51526         (test_ulc_vsprintf1_LDADD): Likewise.
51527
51528         Fix linking of some uniconv tests on FreeBSD.
51529         * modules/uniconv/u16-conv-from-enc-tests
51530         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
51531         * modules/uniconv/u16-conv-to-enc-tests
51532         (test_u16_conv_to_enc_LDADD): Likewise.
51533         * modules/uniconv/u16-strconv-from-enc-tests
51534         (test_u16_strconv_from_enc_LDADD): Likewise.
51535         * modules/uniconv/u16-strconv-to-enc-tests
51536         (test_u16_strconv_to_enc_LDADD): Likewise.
51537         * modules/uniconv/u32-conv-from-enc-tests
51538         (test_u32_conv_from_enc_LDADD): Likewise.
51539         * modules/uniconv/u32-conv-to-enc-tests
51540         (test_u32_conv_to_enc_LDADD): Likewise.
51541         * modules/uniconv/u32-strconv-from-enc-tests
51542         (test_u32_strconv_from_enc_LDADD): Likewise.
51543         * modules/uniconv/u32-strconv-to-enc-tests
51544         (test_u32_strconv_to_enc_LDADD): Likewise.
51545         * modules/uniconv/u8-conv-from-enc-tests
51546         (test_u8_conv_from_enc_LDADD): Likewise.
51547         * modules/uniconv/u8-conv-to-enc-tests
51548         (test_u8_conv_to_enc_LDADD): Likewise.
51549         * modules/uniconv/u8-strconv-from-enc-tests
51550         (test_u8_strconv_from_enc_LDADD): Likewise.
51551         * modules/uniconv/u8-strconv-to-enc-tests
51552         (test_u8_strconv_to_enc_LDADD): Likewise.
51553
51554 2007-10-22  Bruno Haible  <bruno@clisp.org>
51555
51556         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
51557         size.
51558
51559 2007-10-22  Eric Blake  <ebb9@byu.net>
51560
51561         Tweak x*printf documentation.
51562         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
51563         variable name and comments.
51564         Suggested by Bruno Haible.
51565
51566 2007-10-22  Bruno Haible  <bruno@clisp.org>
51567
51568         * lib/acl.c (copy_acl): Fix file name in comment.
51569
51570 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51571
51572         Fix Tru64 problem with stdbool.h.
51573         * lib/stdbool.in.h (false, true):
51574         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
51575         Don't declare as an enum in this situation; it runs afoul of Tru64.
51576         Problem reported by Steven M. Schweda in
51577         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
51578
51579 2007-10-22  Eric Blake  <ebb9@byu.net>
51580
51581         Also wrap vf?printf.
51582         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
51583         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
51584         (xvprintf, xvfprintf): New functions.
51585
51586 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51587
51588         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
51589         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
51590
51591         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
51592         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
51593
51594 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51595
51596         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
51597         by Bruno Haible.
51598
51599 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51600
51601         * lib/getloadavg.c
51602         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
51603         Undef `sys' after including sys/table.h, for Tru64 4.0D.
51604
51605         * tests/test-i-ring.c: Work for C89.
51606
51607 2007-10-22  Bruno Haible  <bruno@clisp.org>
51608
51609         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
51610         -1u, in preprocessor expression, so that we don't test for the bug
51611         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
51612         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
51613
51614 2007-10-22  Eric Blake  <ebb9@byu.net>
51615
51616         * tests/test-yesno.sh: Silence stderr during test.
51617
51618 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51619
51620         * modules/crypto/gc-camellia: New file.
51621
51622         * m4/gc-camellia.m4: New file.
51623
51624         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
51625
51626         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
51627
51628 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51629
51630         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
51631         --help to stdout.  Reported by sms@antinode.org (Steven
51632         M. Schweda).
51633
51634 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51635
51636         * users.txt: Fix link to libksba.
51637
51638 2007-10-21  Ben Pfaff  <blp@gnu.org>
51639
51640         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
51641         round.c roundf implementation that depends on floorf and ceilf to
51642         be tested unconditionally.
51643
51644 2007-10-21  Ben Pfaff  <blp@gnu.org>
51645
51646         * m4/check-libm-func.m4: Removed.
51647         * m4/check-math-lib.m4: New file.
51648         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
51649         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
51650         definition and lack of AC_LIBOBJ([roundf]).
51651         * m4/roundl.m4: Ditto, and similarly for roundl.
51652         * modules/round: Reference new m4 file.
51653         * modules/roundf: Ditto.
51654         * modules/roundl: Ditto.
51655         * tests/test-round2.c (main): Use ROUND instead of round.
51656         Bug report from Bruno Haible.
51657
51658 2007-10-21  Bruno Haible  <bruno@clisp.org>
51659
51660         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
51661         context.
51662
51663 2007-10-21  Bruno Haible  <bruno@clisp.org>
51664
51665         * tests/test-wcwidth.c (main): Allow negative result for some control
51666         characters.
51667
51668         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
51669         Needed on OSF/1 5.1.
51670
51671 2007-10-21  Bruno Haible  <bruno@clisp.org>
51672
51673         * tests/test-floorf1.c: Include isnanf.h.
51674         (main): Use isnanf() instead of isnan().
51675         * tests/test-ceilf1.c: Include isnanf.h.
51676         (main): Use isnanf() instead of isnan().
51677         * tests/test-truncf1.c: Include isnanf.h.
51678         (main): Use isnanf() instead of isnan().
51679         * tests/test-roundf1.c: Include isnanf.h.
51680         (main): Use isnanf() instead of isnan().
51681
51682 2007-10-21  Eric Blake  <ebb9@byu.net>
51683
51684         * users.txt: Update URL for m4.
51685
51686 2007-10-21  Bruno Haible  <bruno@clisp.org>
51687
51688         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
51689
51690 2007-10-21  Bruno Haible  <bruno@clisp.org>
51691
51692         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
51693         Git's management files if the CVS files are not present.
51694
51695 2007-10-20  Bruno Haible  <bruno@clisp.org>
51696
51697         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
51698         gcc-3.4.x.
51699
51700 2007-10-20  Ben Pfaff  <blp@gnu.org>
51701
51702         * lib/math.in.h: Declare round, roundf, roundl if we are providing
51703         implementations.
51704         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
51705         * lib/round.c: New file.
51706         * lib/roundf.c: New file.
51707         * lib/roundl.c: New file.
51708         * m4/round.m4: New file.
51709         * m4/roundf.m4: New file.
51710         * m4/roundl.m4: New file.
51711         * m4/check-libm-func-m4: New file.
51712         * modules/math: Replace round, roundf, roundl related @VARS@ in
51713         math.in.h.
51714         * modules/round: New file.
51715         * modules/round-tests: New file.
51716         * modules/roundf: New file.
51717         * modules/roundf-tests: New file.
51718         * modules/roundl: New file.
51719         * modules/roundl-tests: New file.
51720         * tests/test-round1.c: New file.
51721         * tests/test-round2.c: New file.
51722         * tests/test-roundf1.c: New file.
51723         * tests/test-roundf2.c: New file.
51724         * tests/test-roundl.c: New file.
51725         * doc/functions/round.texi: Mention round module.
51726         * doc/functions/roundf.texi: Mention roundf module.
51727         * doc/functions/roundl.texi: Mention roundl module.
51728         * MODULES.html.sh: Mention new modules.
51729         Thanks to Bruno Haible for suggestions.
51730
51731 2007-10-20  Jim Meyering  <meyering@redhat.com>
51732
51733         * lib/xprintf.c: Include <config.h> unconditionally.
51734
51735         Change xprintf's license to GPL.
51736         * modules/xprintf (License): s/LGPL/GPL/, since this module
51737         depends on modules (exit and exitfail) which are GPL.
51738         Suggestion from Bruno Haible.
51739
51740         xprintf fixes.
51741         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
51742         Use a clearer diagnostic.
51743         Patch from Bruno Haible.
51744
51745 2007-10-20  Bruno Haible  <bruno@clisp.org>
51746
51747         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
51748         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
51749         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51750
51751 2007-10-20  Bruno Haible  <bruno@clisp.org>
51752
51753         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
51754         precision in the comparison result > x - 1 or similar.
51755         * tests/test-ceilf2.c (correct_result_p): Likewise.
51756         * tests/test-truncf2.c (correct_result_p): Likewise.
51757         * tests/test-trunc2.c (correct_result_p): Likewise.
51758         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51759
51760 2007-10-20  Bruno Haible  <bruno@clisp.org>
51761
51762         * modules/ceil: New file.
51763         * m4/ceil.m4: New file.
51764         * doc/functions/ceil.texi: Mention the 'ceil' module.
51765
51766 2007-10-20  Bruno Haible  <bruno@clisp.org>
51767
51768         * modules/floor: New file.
51769         * m4/floor.m4: New file.
51770         * doc/functions/floor.texi: Mention the 'floor' module.
51771
51772 2007-10-20  Bruno Haible  <bruno@clisp.org>
51773
51774         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
51775         of %a.
51776         * modules/floorf-tests (Depends-on): Likewise.
51777         * modules/truncf-tests (Depends-on): Likewise.
51778         * modules/trunc-tests (Depends-on): Likewise.
51779         Reported by Ben Pfaff.
51780
51781 2007-10-19  Jim Meyering  <meyering@redhat.com>
51782
51783         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
51784         Don't bother testing specific errno values.  Just test ferror.
51785
51786         New module: xprintf
51787         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
51788
51789 2007-10-19  Bruno Haible  <bruno@clisp.org>
51790
51791         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
51792         syntax.
51793         * modules/javaexec (Makefile.am): Likewise.
51794         * modules/relocatable-prog (Makefile.am): Likewise.
51795         Suggested by Jim Meyering.
51796
51797 2007-10-18  Bruno Haible  <bruno@clisp.org>
51798
51799         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
51800         Reported by Jim Meyering.
51801
51802 2007-10-18  Eric Blake  <ebb9@byu.net>
51803
51804         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
51805
51806 2007-10-18  Bruno Haible  <bruno@clisp.org>
51807
51808         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
51809         the format string into writable memory. Needed in Fortify conditions.
51810
51811 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
51812             Bruno Haible  <bruno@clisp.org>
51813
51814         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
51815         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
51816         * modules/trim (Depends-on): Add mbchar.
51817         (configure.ac): Add gl_FUNC_MBRTOWC.
51818         (Makefile.am): Augment lib_SOURCES.
51819
51820 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51821
51822         Modify glob.c to use fstatat and dirfd, to simplify it.
51823         Suggested by Eric Blake.
51824         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
51825         Don't include <stdbool.h>; not used.
51826         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
51827         (link_exists_p): Simplify implementation, since we can now assume
51828         dirfd and fstatat.
51829         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
51830
51831 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51832
51833         * gnulib-tool (func_get_dependencies): Fix sed script to
51834         match only tests.
51835
51836 2007-10-17  Bruno Haible  <bruno@clisp.org>
51837
51838         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
51839         allow locale names without encoding suffix.
51840         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51841         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51842
51843 2007-10-16  Bruno Haible  <bruno@clisp.org>
51844
51845         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
51846         * lib/getgroups.c (getgroups): Likewise.
51847         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
51848
51849 2007-10-16  Bruno Haible  <bruno@clisp.org>
51850
51851         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
51852         * modules/malloc-posix (License): Likewise.
51853         * modules/realloc-posix (License): Likewise.
51854         * modules/calloc-posix (License): Likewise.
51855         * modules/intprops (License): Change from GPL to LGPL, with
51856         Paul Eggert's approval.
51857
51858 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51859
51860         Merge glibc changes into lib/glob.c.
51861
51862         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
51863         2007-10-15 04:59:03 UTC.  Here are the changes:
51864
51865         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
51866
51867         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
51868
51869         * lib/glob.c: Add some branch prediction throughout.
51870
51871         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
51872
51873         [BZ #5103]
51874         * lib/glob.c (glob): Recognize patterns starting \/.
51875
51876         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
51877
51878         [BZ #3996]
51879         * lib/glob.c (attribute_hidden): Define if not defined.
51880         (glob): Unescape dirname, filename or username when needed and not
51881         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
51882         is NULL.  Handle unescaped [ in pattern without closing ].
51883         Don't pass GLOB_CHECK down to recursive glob for directories.
51884         (__glob_pattern_type): New function.
51885         (__glob_pattern_p): Implement using __glob_pattern_type.
51886         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
51887         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
51888         Remove unreachable code.
51889
51890         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
51891
51892         * lib/glob.c (glob_in_dir): Add some comments and asserts to
51893         explain why there are no leaks.
51894
51895         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
51896
51897         [BZ #3253]
51898         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
51899         time, rather allocate increasingly bigger arrays of pointers, if
51900         possible with alloca, if too large with malloc.
51901
51902 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51903
51904         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
51905         Problem reported by H.Merijn Brand in
51906         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
51907         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
51908         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51909
51910 2007-10-15  Bruno Haible  <bruno@clisp.org>
51911
51912         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
51913         with explicit rpl_ prefix.
51914         * lib/fopen.c (fopen): Likewise.
51915         * lib/freopen.c (freopen): Likewise.
51916         * lib/iconv.c (iconv): Likewise.
51917         * lib/iconv_close.c (iconv_close): Likewise.
51918
51919 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51920
51921         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
51922
51923 2007-10-15  Bruno Haible  <bruno@clisp.org>
51924
51925         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
51926         <stddef.h> instead of <stdlib.h> since we only need NULL.
51927         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51928
51929 2007-10-15  Bruno Haible  <bruno@clisp.org>
51930
51931         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
51932         Replace paragraph talking about LIBOBJS.
51933         Reported by Colin Watson <cjwatson@debian.org>.
51934
51935 2007-10-15  Bruno Haible  <bruno@clisp.org>
51936
51937         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
51938         <stdlib.h> before using NULL.
51939
51940 2007-10-15  Simon Josefsson  <simon@josefsson.org>
51941
51942         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
51943         Reported by Albert Chin <china@thewrittenword.com>.
51944
51945 2007-10-14  Bruno Haible  <bruno@clisp.org>
51946
51947         * modules/iconv_open-utf-tests: New file.
51948         * tests/test-iconv-utf.c: New file.
51949
51950         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
51951         * modules/iconv_open-utf: New file.
51952         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
51953         (iconv, iconv_close): New declarations.
51954         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
51955         be defined.
51956         (iconv_open): Add special handling of conversion between UTF-8 and
51957         UTF-{16,32}{BE,LE}.
51958         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
51959         * lib/iconv_close.c: New file.
51960         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
51961         gl_FUNC_ICONV_OPEN.
51962         (gl_FUNC_ICONV_OPEN): Use it.
51963         (gl_FUNC_ICONV_OPEN_UTF): New macro.
51964         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
51965         and REPLACE_ICONV_UTF.
51966         * modules/iconv_open (Depends-on): Add c-strcase.
51967         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
51968         ICONV_CONST.
51969         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
51970
51971 2007-10-13  Albert Chin  <china@thewrittenword.com>
51972             Bruno Haible  <bruno@clisp.org>
51973
51974         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
51975         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
51976
51977 2007-10-13  Bruno Haible  <bruno@clisp.org>
51978
51979         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
51980         defined, use the ISO C99 inline semantics.
51981         * lib/argp.h (ARGP_EI): Likewise.
51982
51983 2007-10-13  Bruno Haible  <bruno@clisp.org>
51984
51985         Handle 'inline' change in gcc 4.3.0.
51986         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
51987         argp_fmtstream_write, argp_fmtstream_set_lmargin,
51988         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
51989         argp_fmtstream_point): Disable 'extern' declaration if the function
51990         definition is going to be provided inline.
51991         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
51992         semantics, not the ISO C99 inline semantics.
51993         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
51994         'extern' declaration if the function definition is going to be provided
51995         inline.
51996         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
51997         the GNU C inline semantics, not the ISO C99 inline semantics. With
51998         GCC 4.2, avoid a warning.
51999
52000 2007-10-13  Bruno Haible  <bruno@clisp.org>
52001
52002         * lib/freading.h (freading): Enable the use of __freading for
52003         glibc >= 2.7.
52004         * lib/freading.c (freading): Likewise.
52005
52006 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
52007
52008         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
52009         "warning: C99 inline functions are not supported; using GNU89".
52010
52011 2007-10-12  Bruno Haible  <bruno@clisp.org>
52012
52013         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
52014         of 2.
52015         * tests/test-ceilf2.c: New file.
52016         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
52017
52018         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
52019         * modules/ceilf-tests: Update.
52020
52021 2007-10-12  Bruno Haible  <bruno@clisp.org>
52022
52023         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
52024         of 2.
52025         * tests/test-floorf2.c: New file.
52026         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
52027
52028         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
52029         * modules/floorf-tests: Update.
52030
52031 2007-10-12  Bruno Haible  <bruno@clisp.org>
52032
52033         * tests/test-trunc2.c: New file.
52034         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
52035
52036         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
52037         * modules/trunc-tests: Update.
52038
52039 2007-10-12  Bruno Haible  <bruno@clisp.org>
52040
52041         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
52042         of 2.
52043         * tests/test-truncf2.c: New file.
52044         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
52045
52046         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
52047         * modules/truncf-tests: Update.
52048
52049 2007-10-11  Eric Blake  <ebb9@byu.net>
52050
52051         Don't claim strerror is broken on Interix.
52052         * doc/functions/strerror.texi (strerror): Known broken systems are
52053         now Solaris 8, and not Interix.
52054         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
52055         Interix on cross-compile.
52056         Reported by Martin Koeppe in
52057         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
52058
52059 2007-10-11  Bruno Haible  <bruno@clisp.org>
52060
52061         * modules/i-ring-tests: New file.
52062         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
52063         instead of assert.
52064
52065 2007-10-11  Bruno Haible  <bruno@clisp.org>
52066
52067         * modules/filenamecat-tests: New file.
52068         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
52069         * lib/filenamecat.c: Remove test code.
52070
52071 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52072
52073         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
52074
52075         * lib/strerror.c: Include <string.h> always, to test interface,
52076         and to remove the need for the dummy.
52077         Include intprops.h to compute width instead of doing it ourselves
52078         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
52079         (strerror): Define it to return NULL if there's no system strerror.
52080         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
52081         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
52082         ancient pre-strerror Unix systems well any more.  Saying "unknown
52083         system error" is enough.
52084         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
52085         simpler strerror.c implementation.
52086         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
52087         Simplify the tests to reflect the simpler strerror implementation.
52088         * modules/strerror (Depends-on): Add intprops.
52089
52090 2007-10-09  Eric Blake  <ebb9@byu.net>
52091
52092         Silence test-fpending.
52093         * modules/fpending-tests (Files): Add wrapper script.
52094         * tests/test-fpending.sh: New file.
52095
52096 2007-10-09  Bruno Haible  <bruno@clisp.org>
52097
52098         * MODULES.html.sh (func_module): Don't create a hyperlink for
52099         function names like 'printf_frexp'.
52100         (Misc): Add crc, memxor.
52101         (Characteristics of floating types): New section.
52102         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
52103         isnanf-nolibm, signbit, trunc, truncf, truncl.
52104         (Enhancements for ISO C 99 functions): New subsection Input/output.
52105         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
52106         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
52107         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
52108         (Compatibility checks for POSIX:2001 functions): Add clock-time.
52109         (Enhancements for POSIX:2001 functions): Add chdir-long.
52110         (File system functions): Add areadlink, chdir-safer, read-file.
52111         Remove cycle-check.
52112         (File system as inode set): New section.
52113         (Date and time): Add gethrxtime.
52114         (Multithreading): Add openmp.
52115         (Internationalization functions): Add localename.
52116         (Unicode string functions): Add unistr/u*-mbsnlen.
52117         (Support for maintaining and releasing projects): Add git-version-gen.
52118         (Lone files): Remove directories.
52119
52120 2007-10-08  Ben Pfaff  <blp@gnu.org>
52121
52122         * lib/xmalloca.h: Fix typo in comment.
52123
52124 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52125
52126         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
52127         when avoiding problems with integer overflow.  Use a portable test
52128         instead.
52129
52130 2007-10-08  Simon Josefsson  <simon@josefsson.org>
52131
52132         * modules/dummy (License): Change to LGPLv2+.
52133         * modules/float (License): Likewise
52134         * modules/realloc (License): Likewise
52135         * modules/stdlib (License): Likewise
52136
52137 2007-10-07  Bruno Haible  <bruno@clisp.org>
52138
52139         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
52140         * floor.c (TWO_MANT_DIG): Likewise.
52141         * ceil.c (TWO_MANT_DIG): Likewise.
52142         Reported by Ben Pfaff.
52143
52144 2007-10-07  Bruno Haible  <bruno@clisp.org>
52145
52146         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
52147         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
52148         * lib/frexp.c (FUNC): Likewise.
52149         * lib/printf-frexp.h (printf_frexp): Likewise.
52150         * lib/printf-frexpl.h (printf_frexpl): Likewise.
52151         * lib/printf-frexp.c (FUNC): Likewise.
52152         Suggested by Jim Meyering.
52153
52154 2007-10-07  Jim Meyering  <meyering@redhat.com>
52155
52156         Make xnanosleep's integer overflow test more robust.
52157         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
52158         so that gcc-4.3.0 doesn't optimize away this test for overflow.
52159
52160 2007-10-07  Bruno Haible  <bruno@clisp.org>
52161
52162         * NEWS: Mention the license change.
52163
52164         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
52165         abbreviations in the modules files.
52166
52167         Change copyright notice from GPLv2+ to GPLv3+.
52168         * README: Change copyright notice.
52169         * MODULES.html.sh: Likewise.
52170         * build-aux/bootstrap.conf: Likewise.
52171         * build-aux/config.libpath: Likewise.
52172         * build-aux/csharpcomp.sh.in: Likewise.
52173         * build-aux/csharpexec.sh.in: Likewise.
52174         * build-aux/install-reloc: Likewise.
52175         * build-aux/javacomp.sh.in: Likewise.
52176         * build-aux/javaexec.sh.in: Likewise.
52177         * build-aux/ldd.sh.in: Likewise.
52178         * build-aux/reloc-ldflags: Likewise.
52179         * build-aux/relocatable.sh.in: Likewise.
52180         * build-aux/x-to-1.in: Likewise.
52181         * check-module: Likewise.
52182         * config/srclistvars.sh: Likewise.
52183         * gnulib-tool: Likewise.
52184         * lib/acl-internal.h: Likewise.
52185         * lib/acl.c: Likewise.
52186         * lib/acl.h: Likewise.
52187         * lib/acl_entries.c: Likewise.
52188         * lib/areadlink-with-size.c: Likewise.
52189         * lib/areadlink.c: Likewise.
52190         * lib/areadlink.h: Likewise.
52191         * lib/argmatch.c: Likewise.
52192         * lib/argmatch.h: Likewise.
52193         * lib/argp-ba.c: Likewise.
52194         * lib/argp-eexst.c: Likewise.
52195         * lib/argp-fmtstream.c: Likewise.
52196         * lib/argp-fmtstream.h: Likewise.
52197         * lib/argp-fs-xinl.c: Likewise.
52198         * lib/argp-help.c: Likewise.
52199         * lib/argp-namefrob.h: Likewise.
52200         * lib/argp-parse.c: Likewise.
52201         * lib/argp-pin.c: Likewise.
52202         * lib/argp-pv.c: Likewise.
52203         * lib/argp-pvh.c: Likewise.
52204         * lib/argp-xinl.c: Likewise.
52205         * lib/argp.h: Likewise.
52206         * lib/at-func.c: Likewise.
52207         * lib/atanl.c: Likewise.
52208         * lib/backupfile.c: Likewise.
52209         * lib/backupfile.h: Likewise.
52210         * lib/basename.c: Likewise.
52211         * lib/binary-io.h: Likewise.
52212         * lib/byteswap.in.h: Likewise.
52213         * lib/c-stack.c: Likewise.
52214         * lib/c-stack.h: Likewise.
52215         * lib/c-strcasestr.c: Likewise.
52216         * lib/c-strcasestr.h: Likewise.
52217         * lib/c-strstr.c: Likewise.
52218         * lib/c-strstr.h: Likewise.
52219         * lib/c-strtod.c: Likewise.
52220         * lib/calloc.c: Likewise.
52221         * lib/canon-host.c: Likewise.
52222         * lib/canon-host.h: Likewise.
52223         * lib/canonicalize-lgpl.c: Likewise.
52224         * lib/canonicalize.c: Likewise.
52225         * lib/canonicalize.h: Likewise.
52226         * lib/ceil.c: Likewise.
52227         * lib/ceilf.c: Likewise.
52228         * lib/ceill.c: Likewise.
52229         * lib/chdir-long.c: Likewise.
52230         * lib/chdir-long.h: Likewise.
52231         * lib/chdir-safer.c: Likewise.
52232         * lib/chdir-safer.h: Likewise.
52233         * lib/chown.c: Likewise.
52234         * lib/classpath.c: Likewise.
52235         * lib/classpath.h: Likewise.
52236         * lib/clean-temp.c: Likewise.
52237         * lib/clean-temp.h: Likewise.
52238         * lib/cloexec.c: Likewise.
52239         * lib/close-stream.c: Likewise.
52240         * lib/closein.c: Likewise.
52241         * lib/closein.h: Likewise.
52242         * lib/closeout.c: Likewise.
52243         * lib/closeout.h: Likewise.
52244         * lib/concat-filename.c: Likewise.
52245         * lib/copy-file.c: Likewise.
52246         * lib/copy-file.h: Likewise.
52247         * lib/count-one-bits.h: Likewise.
52248         * lib/crc.c: Likewise.
52249         * lib/crc.h: Likewise.
52250         * lib/creat-safer.c: Likewise.
52251         * lib/csharpcomp.c: Likewise.
52252         * lib/csharpcomp.h: Likewise.
52253         * lib/csharpexec.c: Likewise.
52254         * lib/csharpexec.h: Likewise.
52255         * lib/cycle-check.c: Likewise.
52256         * lib/cycle-check.h: Likewise.
52257         * lib/diacrit.c: Likewise.
52258         * lib/diacrit.h: Likewise.
52259         * lib/diffseq.h: Likewise.
52260         * lib/dirchownmod.c: Likewise.
52261         * lib/dirent.in.h: Likewise.
52262         * lib/dirfd.c: Likewise.
52263         * lib/dirfd.h: Likewise.
52264         * lib/dirname.c: Likewise.
52265         * lib/dirname.h: Likewise.
52266         * lib/dummy.c: Likewise.
52267         * lib/dup-safer.c: Likewise.
52268         * lib/dup2.c: Likewise.
52269         * lib/eealloc.h: Likewise.
52270         * lib/error.c: Likewise.
52271         * lib/error.h: Likewise.
52272         * lib/euidaccess.c: Likewise.
52273         * lib/exclude.c: Likewise.
52274         * lib/exclude.h: Likewise.
52275         * lib/execute.c: Likewise.
52276         * lib/execute.h: Likewise.
52277         * lib/exitfail.c: Likewise.
52278         * lib/exitfail.h: Likewise.
52279         * lib/expl.c: Likewise.
52280         * lib/fatal-signal.c: Likewise.
52281         * lib/fatal-signal.h: Likewise.
52282         * lib/fbufmode.c: Likewise.
52283         * lib/fbufmode.h: Likewise.
52284         * lib/fchdir.c: Likewise.
52285         * lib/fchmodat.c: Likewise.
52286         * lib/fchownat.c: Likewise.
52287         * lib/fcntl--.h: Likewise.
52288         * lib/fcntl-safer.h: Likewise.
52289         * lib/fcntl.in.h: Likewise.
52290         * lib/fd-safer.c: Likewise.
52291         * lib/fflush.c: Likewise.
52292         * lib/file-has-acl.c: Likewise.
52293         * lib/file-set.c: Likewise.
52294         * lib/file-type.c: Likewise.
52295         * lib/file-type.h: Likewise.
52296         * lib/fileblocks.c: Likewise.
52297         * lib/filemode.c: Likewise.
52298         * lib/filemode.h: Likewise.
52299         * lib/filename.h: Likewise.
52300         * lib/filenamecat.c: Likewise.
52301         * lib/filenamecat.h: Likewise.
52302         * lib/findprog.c: Likewise.
52303         * lib/findprog.h: Likewise.
52304         * lib/float.in.h: Likewise.
52305         * lib/floor.c: Likewise.
52306         * lib/floorf.c: Likewise.
52307         * lib/floorl.c: Likewise.
52308         * lib/fopen-safer.c: Likewise.
52309         * lib/fopen.c: Likewise.
52310         * lib/fpending.c: Likewise.
52311         * lib/fpending.h: Likewise.
52312         * lib/fprintf.c: Likewise.
52313         * lib/fprintftime.h: Likewise.
52314         * lib/fpucw.h: Likewise.
52315         * lib/fpurge.c: Likewise.
52316         * lib/fpurge.h: Likewise.
52317         * lib/freadable.c: Likewise.
52318         * lib/freadable.h: Likewise.
52319         * lib/freadahead.c: Likewise.
52320         * lib/freadahead.h: Likewise.
52321         * lib/freading.c: Likewise.
52322         * lib/freading.h: Likewise.
52323         * lib/free.c: Likewise.
52324         * lib/freopen.c: Likewise.
52325         * lib/frexp.c: Likewise.
52326         * lib/frexpl.c: Likewise.
52327         * lib/fseek.c: Likewise.
52328         * lib/fseterr.c: Likewise.
52329         * lib/fseterr.h: Likewise.
52330         * lib/fstatat.c: Likewise.
52331         * lib/fstrcmp.c: Likewise.
52332         * lib/fstrcmp.h: Likewise.
52333         * lib/fsusage.c: Likewise.
52334         * lib/fsusage.h: Likewise.
52335         * lib/ftell.c: Likewise.
52336         * lib/ftello.c: Likewise.
52337         * lib/fts-cycle.c: Likewise.
52338         * lib/fts.c: Likewise.
52339         * lib/fts_.h: Likewise.
52340         * lib/full-read.c: Likewise.
52341         * lib/full-read.h: Likewise.
52342         * lib/full-write.c: Likewise.
52343         * lib/full-write.h: Likewise.
52344         * lib/fwritable.c: Likewise.
52345         * lib/fwritable.h: Likewise.
52346         * lib/fwriteerror.c: Likewise.
52347         * lib/fwriteerror.h: Likewise.
52348         * lib/fwriting.c: Likewise.
52349         * lib/fwriting.h: Likewise.
52350         * lib/gcd.c: Likewise.
52351         * lib/gcd.h: Likewise.
52352         * lib/getcwd.c: Likewise.
52353         * lib/getdate.h: Likewise.
52354         * lib/getdate.y: Likewise.
52355         * lib/getdomainname.c: Likewise.
52356         * lib/getdomainname.h: Likewise.
52357         * lib/getgroups.c: Likewise.
52358         * lib/gethostname.c: Likewise.
52359         * lib/gethrxtime.c: Likewise.
52360         * lib/gethrxtime.h: Likewise.
52361         * lib/getloadavg.c: Likewise.
52362         * lib/getndelim2.c: Likewise.
52363         * lib/getndelim2.h: Likewise.
52364         * lib/getnline.c: Likewise.
52365         * lib/getnline.h: Likewise.
52366         * lib/getopt.c: Likewise.
52367         * lib/getopt.in.h: Likewise.
52368         * lib/getopt1.c: Likewise.
52369         * lib/getopt_int.h: Likewise.
52370         * lib/getpagesize.h: Likewise.
52371         * lib/getsubopt.c: Likewise.
52372         * lib/gettime.c: Likewise.
52373         * lib/getugroups.c: Likewise.
52374         * lib/getugroups.h: Likewise.
52375         * lib/getusershell.c: Likewise.
52376         * lib/gl_anyavltree_list1.h: Likewise.
52377         * lib/gl_anyavltree_list2.h: Likewise.
52378         * lib/gl_anyhash_list1.h: Likewise.
52379         * lib/gl_anyhash_list2.h: Likewise.
52380         * lib/gl_anylinked_list1.h: Likewise.
52381         * lib/gl_anylinked_list2.h: Likewise.
52382         * lib/gl_anyrbtree_list1.h: Likewise.
52383         * lib/gl_anyrbtree_list2.h: Likewise.
52384         * lib/gl_anytree_list1.h: Likewise.
52385         * lib/gl_anytree_list2.h: Likewise.
52386         * lib/gl_anytree_oset.h: Likewise.
52387         * lib/gl_anytreehash_list1.h: Likewise.
52388         * lib/gl_anytreehash_list2.h: Likewise.
52389         * lib/gl_array_list.c: Likewise.
52390         * lib/gl_array_list.h: Likewise.
52391         * lib/gl_array_oset.c: Likewise.
52392         * lib/gl_array_oset.h: Likewise.
52393         * lib/gl_avltree_list.c: Likewise.
52394         * lib/gl_avltree_list.h: Likewise.
52395         * lib/gl_avltree_oset.c: Likewise.
52396         * lib/gl_avltree_oset.h: Likewise.
52397         * lib/gl_avltreehash_list.c: Likewise.
52398         * lib/gl_avltreehash_list.h: Likewise.
52399         * lib/gl_carray_list.c: Likewise.
52400         * lib/gl_carray_list.h: Likewise.
52401         * lib/gl_linked_list.c: Likewise.
52402         * lib/gl_linked_list.h: Likewise.
52403         * lib/gl_linkedhash_list.c: Likewise.
52404         * lib/gl_linkedhash_list.h: Likewise.
52405         * lib/gl_list.c: Likewise.
52406         * lib/gl_list.h: Likewise.
52407         * lib/gl_oset.c: Likewise.
52408         * lib/gl_oset.h: Likewise.
52409         * lib/gl_rbtree_list.c: Likewise.
52410         * lib/gl_rbtree_list.h: Likewise.
52411         * lib/gl_rbtree_oset.c: Likewise.
52412         * lib/gl_rbtree_oset.h: Likewise.
52413         * lib/gl_rbtreehash_list.c: Likewise.
52414         * lib/gl_rbtreehash_list.h: Likewise.
52415         * lib/gl_sublist.c: Likewise.
52416         * lib/gl_sublist.h: Likewise.
52417         * lib/group-member.c: Likewise.
52418         * lib/group-member.h: Likewise.
52419         * lib/hard-locale.c: Likewise.
52420         * lib/hard-locale.h: Likewise.
52421         * lib/hash-pjw.c: Likewise.
52422         * lib/hash-pjw.h: Likewise.
52423         * lib/hash-triple.c: Likewise.
52424         * lib/hash.c: Likewise.
52425         * lib/hash.h: Likewise.
52426         * lib/human.c: Likewise.
52427         * lib/human.h: Likewise.
52428         * lib/i-ring.c: Likewise.
52429         * lib/i-ring.h: Likewise.
52430         * lib/idcache.c: Likewise.
52431         * lib/imaxabs.c: Likewise.
52432         * lib/imaxdiv.c: Likewise.
52433         * lib/inet_pton.c: Likewise.
52434         * lib/inet_pton.h: Likewise.
52435         * lib/intprops.h: Likewise.
52436         * lib/inttostr.c: Likewise.
52437         * lib/inttostr.h: Likewise.
52438         * lib/inttypes.in.h: Likewise.
52439         * lib/isapipe.c: Likewise.
52440         * lib/isdir.c: Likewise.
52441         * lib/isnan.c: Likewise.
52442         * lib/isnan.h: Likewise.
52443         * lib/isnanf.c: Likewise.
52444         * lib/isnanf.h: Likewise.
52445         * lib/isnanl-nolibm.h: Likewise.
52446         * lib/isnanl.c: Likewise.
52447         * lib/isnanl.h: Likewise.
52448         * lib/javacomp.c: Likewise.
52449         * lib/javacomp.h: Likewise.
52450         * lib/javaexec.c: Likewise.
52451         * lib/javaexec.h: Likewise.
52452         * lib/javaversion.c: Likewise.
52453         * lib/javaversion.h: Likewise.
52454         * lib/javaversion.java: Likewise.
52455         * lib/lbrkprop.h: Likewise.
52456         * lib/lchmod.h: Likewise.
52457         * lib/lchown.c: Likewise.
52458         * lib/ldexpl.c: Likewise.
52459         * lib/linebreak.c: Likewise.
52460         * lib/linebreak.h: Likewise.
52461         * lib/linebuffer.c: Likewise.
52462         * lib/linebuffer.h: Likewise.
52463         * lib/locale.in.h: Likewise.
52464         * lib/logl.c: Likewise.
52465         * lib/long-options.c: Likewise.
52466         * lib/long-options.h: Likewise.
52467         * lib/lstat.c: Likewise.
52468         * lib/lstat.h: Likewise.
52469         * lib/math.in.h: Likewise.
52470         * lib/mbchar.c: Likewise.
52471         * lib/mbchar.h: Likewise.
52472         * lib/mbfile.h: Likewise.
52473         * lib/mbiter.h: Likewise.
52474         * lib/mbscasecmp.c: Likewise.
52475         * lib/mbscasestr.c: Likewise.
52476         * lib/mbschr.c: Likewise.
52477         * lib/mbscspn.c: Likewise.
52478         * lib/mbslen.c: Likewise.
52479         * lib/mbsncasecmp.c: Likewise.
52480         * lib/mbsnlen.c: Likewise.
52481         * lib/mbspbrk.c: Likewise.
52482         * lib/mbspcasecmp.c: Likewise.
52483         * lib/mbsrchr.c: Likewise.
52484         * lib/mbssep.c: Likewise.
52485         * lib/mbsspn.c: Likewise.
52486         * lib/mbsstr.c: Likewise.
52487         * lib/mbstok_r.c: Likewise.
52488         * lib/mbswidth.c: Likewise.
52489         * lib/mbswidth.h: Likewise.
52490         * lib/mbuiter.h: Likewise.
52491         * lib/memcasecmp.c: Likewise.
52492         * lib/memcasecmp.h: Likewise.
52493         * lib/memchr.c: Likewise.
52494         * lib/memcmp.c: Likewise.
52495         * lib/memcoll.c: Likewise.
52496         * lib/memcoll.h: Likewise.
52497         * lib/memcpy.c: Likewise.
52498         * lib/memrchr.c: Likewise.
52499         * lib/mkancesdirs.c: Likewise.
52500         * lib/mkdir-p.c: Likewise.
52501         * lib/mkdir-p.h: Likewise.
52502         * lib/mkdir.c: Likewise.
52503         * lib/mkdirat.c: Likewise.
52504         * lib/mkdtemp.c: Likewise.
52505         * lib/mkstemp-safer.c: Likewise.
52506         * lib/mkstemp.c: Likewise.
52507         * lib/modechange.c: Likewise.
52508         * lib/modechange.h: Likewise.
52509         * lib/mountlist.c: Likewise.
52510         * lib/mountlist.h: Likewise.
52511         * lib/mpsort.c: Likewise.
52512         * lib/nanosleep.c: Likewise.
52513         * lib/obstack.c: Likewise.
52514         * lib/obstack.h: Likewise.
52515         * lib/open-safer.c: Likewise.
52516         * lib/open.c: Likewise.
52517         * lib/openat-die.c: Likewise.
52518         * lib/openat-priv.h: Likewise.
52519         * lib/openat-proc.c: Likewise.
52520         * lib/openat.c: Likewise.
52521         * lib/openat.h: Likewise.
52522         * lib/pagealign_alloc.c: Likewise.
52523         * lib/pagealign_alloc.h: Likewise.
52524         * lib/physmem.c: Likewise.
52525         * lib/physmem.h: Likewise.
52526         * lib/pipe-safer.c: Likewise.
52527         * lib/pipe.c: Likewise.
52528         * lib/pipe.h: Likewise.
52529         * lib/posixtm.c: Likewise.
52530         * lib/posixtm.h: Likewise.
52531         * lib/posixver.c: Likewise.
52532         * lib/printf-frexp.c: Likewise.
52533         * lib/printf-frexp.h: Likewise.
52534         * lib/printf-frexpl.c: Likewise.
52535         * lib/printf-frexpl.h: Likewise.
52536         * lib/printf.c: Likewise.
52537         * lib/progname.c: Likewise.
52538         * lib/progname.h: Likewise.
52539         * lib/progreloc.c: Likewise.
52540         * lib/putenv.c: Likewise.
52541         * lib/quote.c: Likewise.
52542         * lib/quote.h: Likewise.
52543         * lib/quotearg.c: Likewise.
52544         * lib/quotearg.h: Likewise.
52545         * lib/raise.c: Likewise.
52546         * lib/readline.c: Likewise.
52547         * lib/readline.h: Likewise.
52548         * lib/readlink.c: Likewise.
52549         * lib/readtokens.c: Likewise.
52550         * lib/readtokens.h: Likewise.
52551         * lib/readtokens0.c: Likewise.
52552         * lib/readtokens0.h: Likewise.
52553         * lib/readutmp.c: Likewise.
52554         * lib/readutmp.h: Likewise.
52555         * lib/realloc.c: Likewise.
52556         * lib/relocwrapper.c: Likewise.
52557         * lib/rename-dest-slash.c: Likewise.
52558         * lib/rename.c: Likewise.
52559         * lib/rmdir.c: Likewise.
52560         * lib/rpmatch.c: Likewise.
52561         * lib/safe-read.c: Likewise.
52562         * lib/safe-read.h: Likewise.
52563         * lib/safe-write.c: Likewise.
52564         * lib/safe-write.h: Likewise.
52565         * lib/same-inode.h: Likewise.
52566         * lib/same.c: Likewise.
52567         * lib/same.h: Likewise.
52568         * lib/save-cwd.c: Likewise.
52569         * lib/save-cwd.h: Likewise.
52570         * lib/savedir.c: Likewise.
52571         * lib/savedir.h: Likewise.
52572         * lib/savewd.c: Likewise.
52573         * lib/savewd.h: Likewise.
52574         * lib/search.in.h: Likewise.
52575         * lib/setenv.c: Likewise.
52576         * lib/setenv.h: Likewise.
52577         * lib/settime.c: Likewise.
52578         * lib/sh-quote.c: Likewise.
52579         * lib/sh-quote.h: Likewise.
52580         * lib/sig2str.c: Likewise.
52581         * lib/sig2str.h: Likewise.
52582         * lib/signal.in.h: Likewise.
52583         * lib/signbitd.c: Likewise.
52584         * lib/signbitf.c: Likewise.
52585         * lib/signbitl.c: Likewise.
52586         * lib/sigprocmask.c: Likewise.
52587         * lib/sincosl.c: Likewise.
52588         * lib/sleep.c: Likewise.
52589         * lib/sprintf.c: Likewise.
52590         * lib/sqrtl.c: Likewise.
52591         * lib/stat-time.h: Likewise.
52592         * lib/stdio--.h: Likewise.
52593         * lib/stdio-safer.h: Likewise.
52594         * lib/stdlib--.h: Likewise.
52595         * lib/stdlib-safer.h: Likewise.
52596         * lib/stdlib.in.h: Likewise.
52597         * lib/stpcpy.c: Likewise.
52598         * lib/stpncpy.c: Likewise.
52599         * lib/strchrnul.c: Likewise.
52600         * lib/strcspn.c: Likewise.
52601         * lib/strerror.c: Likewise.
52602         * lib/strftime.c: Likewise.
52603         * lib/strftime.h: Likewise.
52604         * lib/striconveh.c: Likewise.
52605         * lib/striconveh.h: Likewise.
52606         * lib/striconveha.c: Likewise.
52607         * lib/striconveha.h: Likewise.
52608         * lib/stripslash.c: Likewise.
52609         * lib/strnlen1.c: Likewise.
52610         * lib/strnlen1.h: Likewise.
52611         * lib/strtod.c: Likewise.
52612         * lib/strtoimax.c: Likewise.
52613         * lib/strtok_r.c: Likewise.
52614         * lib/strtol.c: Likewise.
52615         * lib/strtoll.c: Likewise.
52616         * lib/strtoul.c: Likewise.
52617         * lib/strtoull.c: Likewise.
52618         * lib/sysexits.in.h: Likewise.
52619         * lib/tempname.c: Likewise.
52620         * lib/tempname.h: Likewise.
52621         * lib/timespec.h: Likewise.
52622         * lib/tls.c: Likewise.
52623         * lib/tls.h: Likewise.
52624         * lib/tmpdir.c: Likewise.
52625         * lib/tmpdir.h: Likewise.
52626         * lib/tmpfile-safer.c: Likewise.
52627         * lib/tmpfile.c: Likewise.
52628         * lib/trigl.c: Likewise.
52629         * lib/trigl.h: Likewise.
52630         * lib/trim.c: Likewise.
52631         * lib/trim.h: Likewise.
52632         * lib/trunc.c: Likewise.
52633         * lib/truncf.c: Likewise.
52634         * lib/truncl.c: Likewise.
52635         * lib/tsearch.c: Likewise.
52636         * lib/unicodeio.c: Likewise.
52637         * lib/unicodeio.h: Likewise.
52638         * lib/unistd--.h: Likewise.
52639         * lib/unistd-safer.h: Likewise.
52640         * lib/unistdio/ulc-fprintf.c: Likewise.
52641         * lib/unistdio/ulc-vfprintf.c: Likewise.
52642         * lib/unlinkdir.c: Likewise.
52643         * lib/unlinkdir.h: Likewise.
52644         * lib/unlocked-io.h: Likewise.
52645         * lib/unsetenv.c: Likewise.
52646         * lib/userspec.c: Likewise.
52647         * lib/utime.c: Likewise.
52648         * lib/utimecmp.c: Likewise.
52649         * lib/utimecmp.h: Likewise.
52650         * lib/utimens.c: Likewise.
52651         * lib/verify.h: Likewise.
52652         * lib/verror.c: Likewise.
52653         * lib/verror.h: Likewise.
52654         * lib/version-etc-fsf.c: Likewise.
52655         * lib/version-etc.c: Likewise.
52656         * lib/version-etc.h: Likewise.
52657         * lib/vfprintf.c: Likewise.
52658         * lib/vprintf.c: Likewise.
52659         * lib/vsprintf.c: Likewise.
52660         * lib/w32spawn.h: Likewise.
52661         * lib/wait-process.c: Likewise.
52662         * lib/wait-process.h: Likewise.
52663         * lib/wcwidth.c: Likewise.
52664         * lib/write-any-file.c: Likewise.
52665         * lib/xalloc-die.c: Likewise.
52666         * lib/xalloc.h: Likewise.
52667         * lib/xasprintf.c: Likewise.
52668         * lib/xgetcwd.c: Likewise.
52669         * lib/xgetcwd.h: Likewise.
52670         * lib/xgetdomainname.c: Likewise.
52671         * lib/xgetdomainname.h: Likewise.
52672         * lib/xgethostname.c: Likewise.
52673         * lib/xmalloc.c: Likewise.
52674         * lib/xmalloca.c: Likewise.
52675         * lib/xmalloca.h: Likewise.
52676         * lib/xmemcoll.c: Likewise.
52677         * lib/xnanosleep.c: Likewise.
52678         * lib/xreadlink.c: Likewise.
52679         * lib/xreadlink.h: Likewise.
52680         * lib/xsetenv.c: Likewise.
52681         * lib/xsetenv.h: Likewise.
52682         * lib/xstriconv.c: Likewise.
52683         * lib/xstriconv.h: Likewise.
52684         * lib/xstrndup.c: Likewise.
52685         * lib/xstrndup.h: Likewise.
52686         * lib/xstrtod.c: Likewise.
52687         * lib/xstrtod.h: Likewise.
52688         * lib/xstrtol-error.c: Likewise.
52689         * lib/xstrtol.c: Likewise.
52690         * lib/xstrtol.h: Likewise.
52691         * lib/xtime.h: Likewise.
52692         * lib/xvasprintf.c: Likewise.
52693         * lib/xvasprintf.h: Likewise.
52694         * lib/yesno.c: Likewise.
52695         * lib/yesno.h: Likewise.
52696         * posix-modules: Likewise.
52697         * tests/test-alloca-opt.c: Likewise.
52698         * tests/test-arcfour.c: Likewise.
52699         * tests/test-arctwo.c: Likewise.
52700         * tests/test-argmatch.c: Likewise.
52701         * tests/test-argp-2.sh: Likewise.
52702         * tests/test-argp.c: Likewise.
52703         * tests/test-arpa_inet.c: Likewise.
52704         * tests/test-array_list.c: Likewise.
52705         * tests/test-array_oset.c: Likewise.
52706         * tests/test-atexit.c: Likewise.
52707         * tests/test-avltree_list.c: Likewise.
52708         * tests/test-avltree_oset.c: Likewise.
52709         * tests/test-avltreehash_list.c: Likewise.
52710         * tests/test-base64.c: Likewise.
52711         * tests/test-binary-io.c: Likewise.
52712         * tests/test-byteswap.c: Likewise.
52713         * tests/test-c-ctype.c: Likewise.
52714         * tests/test-c-strcasecmp.c: Likewise.
52715         * tests/test-c-strcasestr.c: Likewise.
52716         * tests/test-c-strncasecmp.c: Likewise.
52717         * tests/test-c-strstr.c: Likewise.
52718         * tests/test-canonicalize-lgpl.c: Likewise.
52719         * tests/test-canonicalize.c: Likewise.
52720         * tests/test-carray_list.c: Likewise.
52721         * tests/test-ceilf.c: Likewise.
52722         * tests/test-ceill.c: Likewise.
52723         * tests/test-count-one-bits.c: Likewise.
52724         * tests/test-crc.c: Likewise.
52725         * tests/test-dirname.c: Likewise.
52726         * tests/test-fbufmode.c: Likewise.
52727         * tests/test-fcntl.c: Likewise.
52728         * tests/test-fflush.c: Likewise.
52729         * tests/test-floorf.c: Likewise.
52730         * tests/test-floorl.c: Likewise.
52731         * tests/test-fopen.c: Likewise.
52732         * tests/test-fprintf-posix.c: Likewise.
52733         * tests/test-fprintf-posix.h: Likewise.
52734         * tests/test-fpurge.c: Likewise.
52735         * tests/test-freadable.c: Likewise.
52736         * tests/test-freadahead.c: Likewise.
52737         * tests/test-freading.c: Likewise.
52738         * tests/test-freopen.c: Likewise.
52739         * tests/test-frexp.c: Likewise.
52740         * tests/test-frexpl.c: Likewise.
52741         * tests/test-fseek.c: Likewise.
52742         * tests/test-fseeko.c: Likewise.
52743         * tests/test-fseterr.c: Likewise.
52744         * tests/test-fstrcmp.c: Likewise.
52745         * tests/test-ftell.c: Likewise.
52746         * tests/test-ftello.c: Likewise.
52747         * tests/test-fwritable.c: Likewise.
52748         * tests/test-fwriting.c: Likewise.
52749         * tests/test-getaddrinfo.c: Likewise.
52750         * tests/test-getpass.c: Likewise.
52751         * tests/test-gettimeofday.c: Likewise.
52752         * tests/test-hmac-md5.c: Likewise.
52753         * tests/test-hmac-sha1.c: Likewise.
52754         * tests/test-iconv.c: Likewise.
52755         * tests/test-iconvme.c: Likewise.
52756         * tests/test-inttypes.c: Likewise.
52757         * tests/test-isnan.c: Likewise.
52758         * tests/test-isnanf.c: Likewise.
52759         * tests/test-isnanl-nolibm.c: Likewise.
52760         * tests/test-isnanl.c: Likewise.
52761         * tests/test-isnanl.h: Likewise.
52762         * tests/test-ldexpl.c: Likewise.
52763         * tests/test-linked_list.c: Likewise.
52764         * tests/test-linkedhash_list.c: Likewise.
52765         * tests/test-locale.c: Likewise.
52766         * tests/test-localename.c: Likewise.
52767         * tests/test-lock.c: Likewise.
52768         * tests/test-lseek.c: Likewise.
52769         * tests/test-malloca.c: Likewise.
52770         * tests/test-math.c: Likewise.
52771         * tests/test-mbscasecmp.c: Likewise.
52772         * tests/test-mbscasestr1.c: Likewise.
52773         * tests/test-mbscasestr2.c: Likewise.
52774         * tests/test-mbscasestr3.c: Likewise.
52775         * tests/test-mbscasestr4.c: Likewise.
52776         * tests/test-mbschr.c: Likewise.
52777         * tests/test-mbscspn.c: Likewise.
52778         * tests/test-mbsncasecmp.c: Likewise.
52779         * tests/test-mbspbrk.c: Likewise.
52780         * tests/test-mbspcasecmp.c: Likewise.
52781         * tests/test-mbsrchr.c: Likewise.
52782         * tests/test-mbsspn.c: Likewise.
52783         * tests/test-mbsstr1.c: Likewise.
52784         * tests/test-mbsstr2.c: Likewise.
52785         * tests/test-mbsstr3.c: Likewise.
52786         * tests/test-md5.c: Likewise.
52787         * tests/test-memmem.c: Likewise.
52788         * tests/test-netinet_in.c: Likewise.
52789         * tests/test-open.c: Likewise.
52790         * tests/test-printf-frexp.c: Likewise.
52791         * tests/test-printf-frexpl.c: Likewise.
52792         * tests/test-printf-posix.c: Likewise.
52793         * tests/test-printf-posix.h: Likewise.
52794         * tests/test-rbtree_list.c: Likewise.
52795         * tests/test-rbtree_oset.c: Likewise.
52796         * tests/test-rbtreehash_list.c: Likewise.
52797         * tests/test-read-file.c: Likewise.
52798         * tests/test-rijndael.c: Likewise.
52799         * tests/test-search.c: Likewise.
52800         * tests/test-signbit.c: Likewise.
52801         * tests/test-sleep.c: Likewise.
52802         * tests/test-snprintf-posix.c: Likewise.
52803         * tests/test-snprintf-posix.h: Likewise.
52804         * tests/test-snprintf.c: Likewise.
52805         * tests/test-sprintf-posix.c: Likewise.
52806         * tests/test-sprintf-posix.h: Likewise.
52807         * tests/test-stat-time.c: Likewise.
52808         * tests/test-stdbool.c: Likewise.
52809         * tests/test-stdint.c: Likewise.
52810         * tests/test-stdio.c: Likewise.
52811         * tests/test-stdlib.c: Likewise.
52812         * tests/test-stpncpy.c: Likewise.
52813         * tests/test-strcasestr.c: Likewise.
52814         * tests/test-striconv.c: Likewise.
52815         * tests/test-striconveh.c: Likewise.
52816         * tests/test-striconveha.c: Likewise.
52817         * tests/test-string.c: Likewise.
52818         * tests/test-sys_select.c: Likewise.
52819         * tests/test-sys_socket.c: Likewise.
52820         * tests/test-sys_stat.c: Likewise.
52821         * tests/test-sys_time.c: Likewise.
52822         * tests/test-sysexits.c: Likewise.
52823         * tests/test-time.c: Likewise.
52824         * tests/test-tls.c: Likewise.
52825         * tests/test-trunc.c: Likewise.
52826         * tests/test-truncf.c: Likewise.
52827         * tests/test-truncl.c: Likewise.
52828         * tests/test-unistd.c: Likewise.
52829         * tests/test-vasnprintf-posix.c: Likewise.
52830         * tests/test-vasnprintf-posix2.c: Likewise.
52831         * tests/test-vasnprintf.c: Likewise.
52832         * tests/test-vasprintf-posix.c: Likewise.
52833         * tests/test-vasprintf.c: Likewise.
52834         * tests/test-verify.c: Likewise.
52835         * tests/test-vfprintf-posix.c: Likewise.
52836         * tests/test-vprintf-posix.c: Likewise.
52837         * tests/test-vsnprintf-posix.c: Likewise.
52838         * tests/test-vsnprintf.c: Likewise.
52839         * tests/test-vsprintf-posix.c: Likewise.
52840         * tests/test-wchar.c: Likewise.
52841         * tests/test-wctype.c: Likewise.
52842         * tests/test-wcwidth.c: Likewise.
52843         * tests/test-xstrtol.c: Likewise.
52844         * tests/test-xvasprintf.c: Likewise.
52845         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
52846         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
52847         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52848         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52849         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52850         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
52851         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52852         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52853         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52854         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
52855         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52856         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52857         * tests/uniname/test-uninames.c: Likewise.
52858         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
52859         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
52860         * tests/unistdio/test-u16-printf1.h: Likewise.
52861         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
52862         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
52863         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
52864         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
52865         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
52866         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
52867         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
52868         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
52869         * tests/unistdio/test-u32-printf1.h: Likewise.
52870         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
52871         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
52872         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
52873         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
52874         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
52875         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
52876         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
52877         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
52878         * tests/unistdio/test-u8-printf1.h: Likewise.
52879         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
52880         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
52881         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
52882         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
52883         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
52884         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
52885         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
52886         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
52887         * tests/unistdio/test-ulc-printf1.h: Likewise.
52888         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
52889         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
52890         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
52891         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
52892         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
52893         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
52894         * tests/uniwidth/test-u16-strwidth.c: Likewise.
52895         * tests/uniwidth/test-u16-width.c: Likewise.
52896         * tests/uniwidth/test-u32-strwidth.c: Likewise.
52897         * tests/uniwidth/test-u32-width.c: Likewise.
52898         * tests/uniwidth/test-u8-strwidth.c: Likewise.
52899         * tests/uniwidth/test-u8-width.c: Likewise.
52900         * tests/uniwidth/test-uc_width.c: Likewise.
52901         * config/srclist-update: Likewise.
52902         (fixlicense): Update to GPLv3+.
52903
52904         Change copyright notice from LGPLv2.1+ to LGPLv3+.
52905         * tests/test-tsearch.c: Change copyright notice.
52906
52907         Change copyright notice from LGPLv2.0+ to LGPLv3+.
52908         * lib/c-strcaseeq.h: Change copyright notice.
52909         * lib/streq.h: Likewise.
52910         * lib/uniconv.h: Likewise.
52911         * lib/uniconv/u-conv-from-enc.h: Likewise.
52912         * lib/uniconv/u-conv-to-enc.h: Likewise.
52913         * lib/uniconv/u-strconv-from-enc.h: Likewise.
52914         * lib/uniconv/u-strconv-to-enc.h: Likewise.
52915         * lib/uniconv/u16-conv-from-enc.c: Likewise.
52916         * lib/uniconv/u16-conv-to-enc.c: Likewise.
52917         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
52918         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
52919         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
52920         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
52921         * lib/uniconv/u32-conv-from-enc.c: Likewise.
52922         * lib/uniconv/u32-conv-to-enc.c: Likewise.
52923         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
52924         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
52925         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
52926         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
52927         * lib/uniconv/u8-conv-from-enc.c: Likewise.
52928         * lib/uniconv/u8-conv-to-enc.c: Likewise.
52929         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
52930         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
52931         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
52932         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
52933         * lib/uniname.h: Likewise.
52934         * lib/uniname/uniname.c: Likewise.
52935         * lib/unistdio.h: Likewise.
52936         * lib/unistdio/u-asnprintf.h: Likewise.
52937         * lib/unistdio/u-asprintf.h: Likewise.
52938         * lib/unistdio/u-printf-args.c: Likewise.
52939         * lib/unistdio/u-printf-args.h: Likewise.
52940         * lib/unistdio/u-printf-parse.h: Likewise.
52941         * lib/unistdio/u-snprintf.h: Likewise.
52942         * lib/unistdio/u-sprintf.h: Likewise.
52943         * lib/unistdio/u-vasprintf.h: Likewise.
52944         * lib/unistdio/u-vsnprintf.h: Likewise.
52945         * lib/unistdio/u-vsprintf.h: Likewise.
52946         * lib/unistdio/u16-asnprintf.c: Likewise.
52947         * lib/unistdio/u16-asprintf.c: Likewise.
52948         * lib/unistdio/u16-printf-parse.c: Likewise.
52949         * lib/unistdio/u16-snprintf.c: Likewise.
52950         * lib/unistdio/u16-sprintf.c: Likewise.
52951         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
52952         * lib/unistdio/u16-u16-asprintf.c: Likewise.
52953         * lib/unistdio/u16-u16-snprintf.c: Likewise.
52954         * lib/unistdio/u16-u16-sprintf.c: Likewise.
52955         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
52956         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
52957         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
52958         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
52959         * lib/unistdio/u16-vasnprintf.c: Likewise.
52960         * lib/unistdio/u16-vasprintf.c: Likewise.
52961         * lib/unistdio/u16-vsnprintf.c: Likewise.
52962         * lib/unistdio/u16-vsprintf.c: Likewise.
52963         * lib/unistdio/u32-asnprintf.c: Likewise.
52964         * lib/unistdio/u32-asprintf.c: Likewise.
52965         * lib/unistdio/u32-printf-parse.c: Likewise.
52966         * lib/unistdio/u32-snprintf.c: Likewise.
52967         * lib/unistdio/u32-sprintf.c: Likewise.
52968         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
52969         * lib/unistdio/u32-u32-asprintf.c: Likewise.
52970         * lib/unistdio/u32-u32-snprintf.c: Likewise.
52971         * lib/unistdio/u32-u32-sprintf.c: Likewise.
52972         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
52973         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
52974         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
52975         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
52976         * lib/unistdio/u32-vasnprintf.c: Likewise.
52977         * lib/unistdio/u32-vasprintf.c: Likewise.
52978         * lib/unistdio/u32-vsnprintf.c: Likewise.
52979         * lib/unistdio/u32-vsprintf.c: Likewise.
52980         * lib/unistdio/u8-asnprintf.c: Likewise.
52981         * lib/unistdio/u8-asprintf.c: Likewise.
52982         * lib/unistdio/u8-printf-parse.c: Likewise.
52983         * lib/unistdio/u8-snprintf.c: Likewise.
52984         * lib/unistdio/u8-sprintf.c: Likewise.
52985         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
52986         * lib/unistdio/u8-u8-asprintf.c: Likewise.
52987         * lib/unistdio/u8-u8-snprintf.c: Likewise.
52988         * lib/unistdio/u8-u8-sprintf.c: Likewise.
52989         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
52990         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
52991         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
52992         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
52993         * lib/unistdio/u8-vasnprintf.c: Likewise.
52994         * lib/unistdio/u8-vasprintf.c: Likewise.
52995         * lib/unistdio/u8-vsnprintf.c: Likewise.
52996         * lib/unistdio/u8-vsprintf.c: Likewise.
52997         * lib/unistdio/ulc-asnprintf.c: Likewise.
52998         * lib/unistdio/ulc-asprintf.c: Likewise.
52999         * lib/unistdio/ulc-printf-parse.c: Likewise.
53000         * lib/unistdio/ulc-snprintf.c: Likewise.
53001         * lib/unistdio/ulc-sprintf.c: Likewise.
53002         * lib/unistdio/ulc-vasnprintf.c: Likewise.
53003         * lib/unistdio/ulc-vasprintf.c: Likewise.
53004         * lib/unistdio/ulc-vsnprintf.c: Likewise.
53005         * lib/unistdio/ulc-vsprintf.c: Likewise.
53006         * lib/unistr.h: Likewise.
53007         * lib/unistr/u-cpy-alloc.h: Likewise.
53008         * lib/unistr/u-cpy.h: Likewise.
53009         * lib/unistr/u-endswith.h: Likewise.
53010         * lib/unistr/u-move.h: Likewise.
53011         * lib/unistr/u-set.h: Likewise.
53012         * lib/unistr/u-startswith.h: Likewise.
53013         * lib/unistr/u-stpcpy.h: Likewise.
53014         * lib/unistr/u-stpncpy.h: Likewise.
53015         * lib/unistr/u-strcat.h: Likewise.
53016         * lib/unistr/u-strcpy.h: Likewise.
53017         * lib/unistr/u-strcspn.h: Likewise.
53018         * lib/unistr/u-strdup.h: Likewise.
53019         * lib/unistr/u-strlen.h: Likewise.
53020         * lib/unistr/u-strncat.h: Likewise.
53021         * lib/unistr/u-strncpy.h: Likewise.
53022         * lib/unistr/u-strnlen.h: Likewise.
53023         * lib/unistr/u-strpbrk.h: Likewise.
53024         * lib/unistr/u-strspn.h: Likewise.
53025         * lib/unistr/u-strstr.h: Likewise.
53026         * lib/unistr/u-strtok.h: Likewise.
53027         * lib/unistr/u16-check.c: Likewise.
53028         * lib/unistr/u16-chr.c: Likewise.
53029         * lib/unistr/u16-cmp.c: Likewise.
53030         * lib/unistr/u16-cpy-alloc.c: Likewise.
53031         * lib/unistr/u16-cpy.c: Likewise.
53032         * lib/unistr/u16-endswith.c: Likewise.
53033         * lib/unistr/u16-mblen.c: Likewise.
53034         * lib/unistr/u16-mbsnlen.c: Likewise.
53035         * lib/unistr/u16-mbtouc-aux.c: Likewise.
53036         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
53037         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
53038         * lib/unistr/u16-mbtouc.c: Likewise.
53039         * lib/unistr/u16-mbtoucr.c: Likewise.
53040         * lib/unistr/u16-move.c: Likewise.
53041         * lib/unistr/u16-next.c: Likewise.
53042         * lib/unistr/u16-prev.c: Likewise.
53043         * lib/unistr/u16-set.c: Likewise.
53044         * lib/unistr/u16-startswith.c: Likewise.
53045         * lib/unistr/u16-stpcpy.c: Likewise.
53046         * lib/unistr/u16-stpncpy.c: Likewise.
53047         * lib/unistr/u16-strcat.c: Likewise.
53048         * lib/unistr/u16-strchr.c: Likewise.
53049         * lib/unistr/u16-strcmp.c: Likewise.
53050         * lib/unistr/u16-strcpy.c: Likewise.
53051         * lib/unistr/u16-strcspn.c: Likewise.
53052         * lib/unistr/u16-strdup.c: Likewise.
53053         * lib/unistr/u16-strlen.c: Likewise.
53054         * lib/unistr/u16-strmblen.c: Likewise.
53055         * lib/unistr/u16-strmbtouc.c: Likewise.
53056         * lib/unistr/u16-strncat.c: Likewise.
53057         * lib/unistr/u16-strncmp.c: Likewise.
53058         * lib/unistr/u16-strncpy.c: Likewise.
53059         * lib/unistr/u16-strnlen.c: Likewise.
53060         * lib/unistr/u16-strpbrk.c: Likewise.
53061         * lib/unistr/u16-strrchr.c: Likewise.
53062         * lib/unistr/u16-strspn.c: Likewise.
53063         * lib/unistr/u16-strstr.c: Likewise.
53064         * lib/unistr/u16-strtok.c: Likewise.
53065         * lib/unistr/u16-to-u32.c: Likewise.
53066         * lib/unistr/u16-to-u8.c: Likewise.
53067         * lib/unistr/u16-uctomb-aux.c: Likewise.
53068         * lib/unistr/u16-uctomb.c: Likewise.
53069         * lib/unistr/u32-check.c: Likewise.
53070         * lib/unistr/u32-chr.c: Likewise.
53071         * lib/unistr/u32-cmp.c: Likewise.
53072         * lib/unistr/u32-cpy-alloc.c: Likewise.
53073         * lib/unistr/u32-cpy.c: Likewise.
53074         * lib/unistr/u32-endswith.c: Likewise.
53075         * lib/unistr/u32-mblen.c: Likewise.
53076         * lib/unistr/u32-mbsnlen.c: Likewise.
53077         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
53078         * lib/unistr/u32-mbtouc.c: Likewise.
53079         * lib/unistr/u32-mbtoucr.c: Likewise.
53080         * lib/unistr/u32-move.c: Likewise.
53081         * lib/unistr/u32-next.c: Likewise.
53082         * lib/unistr/u32-prev.c: Likewise.
53083         * lib/unistr/u32-set.c: Likewise.
53084         * lib/unistr/u32-startswith.c: Likewise.
53085         * lib/unistr/u32-stpcpy.c: Likewise.
53086         * lib/unistr/u32-stpncpy.c: Likewise.
53087         * lib/unistr/u32-strcat.c: Likewise.
53088         * lib/unistr/u32-strchr.c: Likewise.
53089         * lib/unistr/u32-strcmp.c: Likewise.
53090         * lib/unistr/u32-strcpy.c: Likewise.
53091         * lib/unistr/u32-strcspn.c: Likewise.
53092         * lib/unistr/u32-strdup.c: Likewise.
53093         * lib/unistr/u32-strlen.c: Likewise.
53094         * lib/unistr/u32-strmblen.c: Likewise.
53095         * lib/unistr/u32-strmbtouc.c: Likewise.
53096         * lib/unistr/u32-strncat.c: Likewise.
53097         * lib/unistr/u32-strncmp.c: Likewise.
53098         * lib/unistr/u32-strncpy.c: Likewise.
53099         * lib/unistr/u32-strnlen.c: Likewise.
53100         * lib/unistr/u32-strpbrk.c: Likewise.
53101         * lib/unistr/u32-strrchr.c: Likewise.
53102         * lib/unistr/u32-strspn.c: Likewise.
53103         * lib/unistr/u32-strstr.c: Likewise.
53104         * lib/unistr/u32-strtok.c: Likewise.
53105         * lib/unistr/u32-to-u16.c: Likewise.
53106         * lib/unistr/u32-to-u8.c: Likewise.
53107         * lib/unistr/u32-uctomb.c: Likewise.
53108         * lib/unistr/u8-check.c: Likewise.
53109         * lib/unistr/u8-chr.c: Likewise.
53110         * lib/unistr/u8-cmp.c: Likewise.
53111         * lib/unistr/u8-cpy-alloc.c: Likewise.
53112         * lib/unistr/u8-cpy.c: Likewise.
53113         * lib/unistr/u8-endswith.c: Likewise.
53114         * lib/unistr/u8-mblen.c: Likewise.
53115         * lib/unistr/u8-mbsnlen.c: Likewise.
53116         * lib/unistr/u8-mbtouc-aux.c: Likewise.
53117         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
53118         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
53119         * lib/unistr/u8-mbtouc.c: Likewise.
53120         * lib/unistr/u8-mbtoucr.c: Likewise.
53121         * lib/unistr/u8-move.c: Likewise.
53122         * lib/unistr/u8-next.c: Likewise.
53123         * lib/unistr/u8-prev.c: Likewise.
53124         * lib/unistr/u8-set.c: Likewise.
53125         * lib/unistr/u8-startswith.c: Likewise.
53126         * lib/unistr/u8-stpcpy.c: Likewise.
53127         * lib/unistr/u8-stpncpy.c: Likewise.
53128         * lib/unistr/u8-strcat.c: Likewise.
53129         * lib/unistr/u8-strchr.c: Likewise.
53130         * lib/unistr/u8-strcmp.c: Likewise.
53131         * lib/unistr/u8-strcpy.c: Likewise.
53132         * lib/unistr/u8-strcspn.c: Likewise.
53133         * lib/unistr/u8-strdup.c: Likewise.
53134         * lib/unistr/u8-strlen.c: Likewise.
53135         * lib/unistr/u8-strmblen.c: Likewise.
53136         * lib/unistr/u8-strmbtouc.c: Likewise.
53137         * lib/unistr/u8-strncat.c: Likewise.
53138         * lib/unistr/u8-strncmp.c: Likewise.
53139         * lib/unistr/u8-strncpy.c: Likewise.
53140         * lib/unistr/u8-strnlen.c: Likewise.
53141         * lib/unistr/u8-strpbrk.c: Likewise.
53142         * lib/unistr/u8-strrchr.c: Likewise.
53143         * lib/unistr/u8-strspn.c: Likewise.
53144         * lib/unistr/u8-strstr.c: Likewise.
53145         * lib/unistr/u8-strtok.c: Likewise.
53146         * lib/unistr/u8-to-u16.c: Likewise.
53147         * lib/unistr/u8-to-u32.c: Likewise.
53148         * lib/unistr/u8-uctomb-aux.c: Likewise.
53149         * lib/unistr/u8-uctomb.c: Likewise.
53150         * lib/unitypes.h: Likewise.
53151         * lib/uniwidth.h: Likewise.
53152         * lib/uniwidth/cjk.h: Likewise.
53153         * lib/uniwidth/u16-strwidth.c: Likewise.
53154         * lib/uniwidth/u16-width.c: Likewise.
53155         * lib/uniwidth/u32-strwidth.c: Likewise.
53156         * lib/uniwidth/u32-width.c: Likewise.
53157         * lib/uniwidth/u8-strwidth.c: Likewise.
53158         * lib/uniwidth/u8-width.c: Likewise.
53159         * lib/uniwidth/width.c: Likewise.
53160
53161 2007-10-07  Bruno Haible  <bruno@clisp.org>
53162
53163         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
53164         The file is still under LGPL (see modules/inttypes).
53165
53166 2007-10-06  Bruno Haible  <bruno@clisp.org>
53167
53168         * modules/trunc (Dependencies): Add 'extensions'.
53169         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
53170         Reported by Ben Pfaff <blp@gnu.org>.
53171
53172 2007-10-06  Bruno Haible  <bruno@clisp.org>
53173
53174         * modules/freopen-tests: New file.
53175         * tests/test-freopen.c: New file.
53176
53177         * modules/fopen-tests: New file.
53178         * tests/test-fopen.c: New file.
53179
53180         * modules/fopen: New file.
53181         * lib/fopen.c: New file.
53182         * m4/fopen.m4: New file.
53183         * modules/freopen: New file.
53184         * lib/freopen.c: New file.
53185         * m4/freopen.m4: New file.
53186         * lib/stdio.in.h (fopen, freopen): New declarations.
53187         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
53188         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53189         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
53190         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53191         * doc/functions/fopen.texi: Mention the 'fopen' module.
53192         * doc/functions/freopen.texi: Mention the 'freopen' module.
53193
53194 2007-10-06  Bruno Haible  <bruno@clisp.org>
53195
53196         * modules/open-tests: New file.
53197         * tests/test-open.c: New file.
53198
53199         * modules/open: New file.
53200         * lib/open.c: New file.
53201         * m4/open.m4: New file.
53202         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
53203         lib/open.c does.
53204         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
53205         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
53206         macros.
53207         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
53208         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
53209         REPLACE_OPEN.
53210         * doc/functions/open.texi: Mention the 'open' module.
53211
53212 2007-10-04  Bruno Haible  <bruno@clisp.org>
53213
53214         * modules/ceill-tests: New file.
53215         * tests/test-ceill.c: New file.
53216
53217         * modules/ceill: New file.
53218         * lib/ceill.c: Replace entire file.
53219         * m4/ceill.m4: New file.
53220         * lib/math.in.h (ceill): Replace declaration.
53221         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
53222         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
53223         * doc/functions/ceill.texi: Mention the 'ceill' module.
53224         * modules/mathl (Files): Remove lib/ceill.c.
53225         (Depends-on): Add ceill.
53226
53227 2007-10-04  Bruno Haible  <bruno@clisp.org>
53228
53229         * modules/ceilf-tests: New file.
53230         * tests/test-ceilf.c: New file.
53231
53232         * modules/ceilf: New file.
53233         * lib/ceil.c: New file.
53234         * lib/ceilf.c: New file.
53235         * m4/ceilf.m4: New file.
53236         * lib/math.in.h (ceilf): New declaration.
53237         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
53238         HAVE_DECL_CEILF.
53239         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
53240         HAVE_DECL_CEILF.
53241         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
53242
53243 2007-10-04  Bruno Haible  <bruno@clisp.org>
53244
53245         * modules/floorl-tests: New file.
53246         * tests/test-floorl.c: New file.
53247
53248         * modules/floorl: New file.
53249         * lib/floorl.c: Replace entire file.
53250         * m4/floorl.m4: New file.
53251         * lib/math.in.h (floorl): Replace declaration.
53252         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
53253         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
53254         * doc/functions/floorl.texi: Mention the 'floorl' module.
53255         * modules/mathl (Files): Remove lib/floorl.c.
53256         (Depends-on): Add floorl.
53257
53258 2007-10-04  Bruno Haible  <bruno@clisp.org>
53259
53260         * modules/floorf-tests: New file.
53261         * tests/test-floorf.c: New file.
53262
53263         * modules/floorf: New file.
53264         * lib/floor.c: New file.
53265         * lib/floorf.c: New file.
53266         * m4/floorf.m4: New file.
53267         * lib/math.in.h (floorf): New declaration.
53268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
53269         HAVE_DECL_FLOORF.
53270         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
53271         HAVE_DECL_FLOORF.
53272         * doc/functions/floorf.texi: Mention the 'floorf' module.
53273
53274 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
53275             Bruno Haible  <bruno@clisp.org>
53276
53277         Advertise for the Git server instead of the CVS server.
53278         * doc/gnulib-intro.texi (Steady Development): Mention the Git
53279         repository instead of the CVS one.
53280         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
53281         about all VCS systems generically.
53282         * doc/gnulib.texi (Introduction): Capitalize `Git'.
53283
53284 2007-10-04  Bruno Haible  <bruno@clisp.org>
53285
53286         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
53287         means.
53288         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
53289
53290 2007-10-04  Bruno Haible  <bruno@clisp.org>
53291
53292         * modules/truncl-tests: New file.
53293         * tests/test-truncl.c: New file.
53294
53295         * modules/truncl: New file.
53296         * lib/truncl.c: New file.
53297         * m4/truncl.m4: New file.
53298         * lib/math.in.h (truncl): New declaration.
53299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
53300         HAVE_DECL_TRUNCL.
53301         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
53302         HAVE_DECL_TRUNCL.
53303         * doc/functions/truncl.texi: Mention the 'truncl' module.
53304
53305 2007-10-04  Bruno Haible  <bruno@clisp.org>
53306
53307         * modules/truncf-tests: New file.
53308         * tests/test-truncf.c: New file.
53309
53310         * modules/truncf: New file.
53311         * lib/trunc.c: Make paramerizable through USE_* macros.
53312         * lib/truncf.c: New file.
53313         * m4/truncf.m4: New file.
53314         * lib/math.in.h (truncf): New declaration.
53315         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
53316         HAVE_DECL_TRUNCF.
53317         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
53318         HAVE_DECL_TRUNCF.
53319         * doc/functions/truncf.texi: Mention the 'truncf' module.
53320
53321 2007-10-03  Bruno Haible  <bruno@clisp.org>
53322
53323         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53324         augmentation also for tests modules.
53325         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
53326         * modules/atexit-tests (Makefile.am): Likewise.
53327         * modules/binary-io-tests (Makefile.am): Likewise.
53328         * modules/c-strcase-tests (Makefile.am): Likewise.
53329         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
53330         * modules/canonicalize-tests (Makefile.am): Likewise.
53331         * modules/closein-tests (Makefile.am): Likewise.
53332         * modules/fprintf-posix-tests (Makefile.am): Likewise.
53333         * modules/freadahead-tests (Makefile.am): Likewise.
53334         * modules/fseek-tests (Makefile.am): Likewise.
53335         * modules/fseeko-tests (Makefile.am): Likewise.
53336         * modules/ftell-tests (Makefile.am): Likewise.
53337         * modules/ftello-tests (Makefile.am): Likewise.
53338         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
53339         * modules/isnanl-tests (Makefile.am): Likewise.
53340         * modules/lseek-tests (Makefile.am): Likewise.
53341         * modules/mbscasecmp-tests (Makefile.am): Likewise.
53342         * modules/mbscasestr-tests (Makefile.am): Likewise.
53343         * modules/mbschr-tests (Makefile.am): Likewise.
53344         * modules/mbscspn-tests (Makefile.am): Likewise.
53345         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
53346         * modules/mbspbrk-tests (Makefile.am): Likewise.
53347         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
53348         * modules/mbsrchr-tests (Makefile.am): Likewise.
53349         * modules/mbsspn-tests (Makefile.am): Likewise.
53350         * modules/mbsstr-tests (Makefile.am): Likewise.
53351         * modules/printf-posix-tests (Makefile.am): Likewise.
53352         * modules/snprintf-posix-tests (Makefile.am): Likewise.
53353         * modules/sprintf-posix-tests (Makefile.am): Likewise.
53354         * modules/tsearch-tests (Makefile.am): Likewise.
53355         * modules/uniname/uniname-tests (Makefile.am): Likewise.
53356         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
53357         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
53358         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
53359         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
53360         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
53361         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
53362         * modules/vprintf-posix-tests (Makefile.am): Likewise.
53363         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
53364         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
53365         * modules/xstrtoimax-tests (Makefile.am): Likewise.
53366         * modules/xstrtol-tests (Makefile.am): Likewise.
53367         * modules/xstrtoumax-tests (Makefile.am): Likewise.
53368         * modules/yesno-tests (Makefile.am): Likewise.
53369
53370 2007-10-03  Bruno Haible  <bruno@clisp.org>
53371
53372         * modules/trunc-tests: New file.
53373         * tests/test-trunc.c: New file.
53374
53375         * modules/trunc: New file.
53376         * lib/trunc.c: New file.
53377         * m4/trunc.m4: New file.
53378         * lib/math.in.h (trunc): New declaration.
53379         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
53380         HAVE_DECL_TRUNC.
53381         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
53382         HAVE_DECL_TRUNC.
53383         * doc/functions/trunc.texi: Mention the 'trunc' module.
53384
53385 2007-10-03  Bruno Haible  <bruno@clisp.org>
53386
53387         * tests/test-fpending.c: New file, mostly copied
53388         from coreutils/lib/t-fpending.c.
53389         * modules/fpending-tests: New file.
53390
53391 2007-10-03  Bruno Haible  <bruno@clisp.org>
53392
53393         Port the stdio extensions to QNX (untested).
53394         * lib/fseterr.c (fseterr): Add support for QNX.
53395         * lib/fbufmode.c (fbufmode): Likewise.
53396         * lib/freadable.c (freadable): Likewise.
53397         * lib/fwritable.c (fwritable): Likewise.
53398         * lib/freading.c (freading): Likewise.
53399         * lib/fwriting.c (fwriting): Likewise.
53400         * lib/freadahead.c (freadahed): Likewise.
53401         * lib/fpurge.c (fpurge): Likewise.
53402         * lib/fseeko.c (rpl_fseeko): Likewise.
53403
53404 2007-10-03  Bruno Haible  <bruno@clisp.org>
53405             Jim Meyering  <jim@meyering.net>
53406             Eric Blake  <ebb9@byu.net>
53407
53408         * doc/relocatable.texi: Use @command instead of @program.
53409
53410 2007-10-02  Jim Meyering  <jim@meyering.net>
53411
53412         Perform one more "_.h" -> ".in.h" substitution.
53413         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
53414         instead of unistd_.h here, too.
53415
53416 2007-10-01  Bruno Haible  <bruno@clisp.org>
53417
53418         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
53419         Needed for the alloca-opt module.
53420
53421 2007-09-30  Bruno Haible  <bruno@clisp.org>
53422
53423         * lib/alloca.in.h: Renamed from lib/alloca_.h.
53424         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
53425         alloca_.h.
53426         * lib/argz.in.h: Renamed from lib/argz_.h.
53427         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
53428         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
53429         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
53430         byteswap_.h.
53431         * lib/dirent.in.h: Renamed from lib/dirent_.h.
53432         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
53433         dirent_.h.
53434         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
53435         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
53436         fcntl_.h.
53437         * lib/float.in.h: Renamed from lib/float_.h.
53438         * modules/float (Files, Makefile.am): Use float.in.h instead of
53439         float_.h.
53440         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
53441         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
53442         fnmatch_.h.
53443         * lib/getopt.in.h: Renamed from lib/getopt_.h.
53444         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
53445         getopt_.h.
53446         * lib/glob.in.h: Renamed from lib/glob_.h.
53447         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
53448         * lib/iconv.in.h: Renamed from lib/iconv_.h.
53449         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
53450         iconv_.h.
53451         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
53452         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
53453         inttypes_.h.
53454         * lib/locale.in.h: Renamed from lib/locale_.h.
53455         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
53456         locale_.h.
53457         * lib/math.in.h: Renamed from lib/math_.h.
53458         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
53459         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
53460         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
53461         of netinet_in_.h. Add dependency.
53462         * lib/poll.in.h: Renamed from lib/poll_.h.
53463         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
53464         * lib/search.in.h: Renamed from lib/search_.h.
53465         * modules/search (Files, Makefile.am): Use search.in.h instead of
53466         search_.h.
53467         * lib/signal.in.h: Renamed from lib/signal_.h.
53468         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
53469         _signal.h.
53470         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
53471         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
53472         stdbool_.h.
53473         * lib/stdint.in.h: Renamed from lib/stdint_.h.
53474         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
53475         stdint_.h.
53476         * lib/stdio.in.h: Renamed from lib/stdio_.h.
53477         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
53478         stdio_.h.
53479         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
53480         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
53481         stdlib_.h.
53482         * lib/string.in.h: Renamed from lib/string_.h.
53483         * modules/string (Files, Makefile.am): Use string.in.h instead of
53484         string_.h.
53485         * doc/gnulib-tool.texi (Initial import): Update.
53486         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
53487         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
53488         of sys_select_.h. Add dependency.
53489         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
53490         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
53491         of sys_socket_.h.
53492         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
53493         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
53494         sys_stat_.h.
53495         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
53496         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
53497         sys_time_.h.
53498         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
53499         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
53500         sysexits_.h.
53501         * lib/time.in.h: Renamed from lib/time_.h.
53502         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
53503         * lib/unistd.in.h: Renamed from lib/unistd_.h.
53504         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
53505         unistd_.h.
53506         * lib/wchar.in.h: Renamed from lib/wchar_.h.
53507         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
53508         wchar_.h.
53509         * lib/wctype.in.h: Renamed from lib/wctype_.h.
53510         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
53511         wctype_.h.
53512         * build-aux/bootstrap (slurp): Update.
53513         * lib/.cppi-disable: Update.
53514
53515 2007-09-30  Bruno Haible  <bruno@clisp.org>
53516
53517         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
53518         Needed on BeOS.
53519
53520 2007-09-30  Bruno Haible  <bruno@clisp.org>
53521
53522         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
53523
53524 2007-09-29  Bruno Haible  <bruno@clisp.org>
53525
53526         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
53527
53528 2007-09-29  Bruno Haible  <bruno@clisp.org>
53529
53530         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
53531         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
53532         * build-aux/install-reloc: Compile also areadlink.c.
53533         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
53534
53535 2007-09-29  Bruno Haible  <bruno@clisp.org>
53536
53537         * gnulib-tool (func_emit_initmacro_done): Indentation.
53538
53539 2007-09-29  Bruno Haible  <bruno@clisp.org>
53540
53541         * README: Add CVS checkout update instructions.
53542         Info from Bob Proulx <bob@proulx.com>.
53543
53544 2007-09-28  Eric Blake  <ebb9@byu.net>
53545
53546         Provide move-if-change.
53547         * build-aux/move-if-change: New file, based on best practice
53548         rather than any canonical upstream location.
53549
53550 2007-09-28  Jim Meyering  <jim@meyering.net>
53551
53552         Fix canonicalize loop-detection corner case.
53553         Do not attempt to stat the symlink values stored via seen_triple.
53554         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
53555         on linux-2.6.18, (but not 2.6.22).
53556         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
53557         triple_compare.  The former compares dev,ino,filename, while the latter
53558         would actually stat dirname(filename) when dev and ino were equal.
53559         * lib/hash-triple.c: Install <string.h>.
53560         (STREQ): Define.
53561         (triple_compare_ino_str): New function.
53562         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
53563
53564 2007-09-28  Eric Blake  <ebb9@byu.net>
53565
53566         Enforce that AC_REPLACE_FUNCS files exist.
53567         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
53568         override check for typos.
53569
53570         Fix test-closein on Solaris 10.
53571         * tests/test-closein.c (main): Don't assume stdin can be inherited
53572         closed on all systems.
53573         * tests/test-closein.sh: Likewise.
53574         Reported by Piotr Tarnowski.
53575
53576 2007-09-28  Jim Meyering  <jim@meyering.net>
53577
53578         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
53579
53580 2007-09-27  Jim Meyering  <jim@meyering.net>
53581
53582         canonicalize: Avoid a false-positive cycle failure.
53583         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
53584         Sort.  Remove cycle-check.
53585         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
53586         not cycle-check.h.
53587         (seen_triple): New function.
53588         (canonicalize_filename_mode): Use it instead of cycle-check.
53589         * tests/test-canonicalize.c: Add a test for this bug.
53590         * tests/test-canonicalize.sh: Set up and run the test.
53591
53592         New module, file-set, from coreutils.
53593         * modules/file-set: Define it.
53594         * lib/file-set.c, lib/file-set.h: Implement.
53595
53596         New module, hash-triple, from coreutils.
53597         * modules/hash-triple: Define it.
53598         * lib/hash-triple.c, lib/hash-triple.h: Implement.
53599
53600 2007-09-25  Eric Blake  <ebb9@byu.net>
53601
53602         Fix strerror on Interix.
53603         * lib/string_.h (strerror): Declare replacement.
53604         * doc/functions/strerror.texi (strerror): Document the Interix
53605         shortcoming.
53606         * modules/string (Makefile.am): Support new hooks.
53607         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
53608         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
53609         gl_FUNC_STRERROR_SEPARATE.
53610         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
53611         * lib/strerror.c (rpl_strerror): Provide replacement.
53612         * modules/strerror (Depends-on): Add string.
53613         (configure.ac): Detect use of module.
53614         * tests/test-strerror.c: New file.
53615         * modules/strerror-tests: New test module.
53616         * modules/argp (Depends-on): Add strerror.
53617         * modules/error (Depends-on): Likewise.
53618         Reported by Martin Koeppe.
53619
53620 2007-09-24  Bruno Haible  <bruno@clisp.org>
53621
53622         * README: Update git instructions.
53623
53624 2007-09-24  Eric Blake  <ebb9@byu.net>
53625
53626         Revert fpending breakage from 2007-09-08.
53627         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
53628         __fpending.c.
53629
53630 2007-09-24  Jim Meyering  <jim@meyering.net>
53631
53632         filenamecat.c: Add a test.
53633         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
53634         showing how the function works when DIR is the empty string.
53635
53636 2007-09-21  Simon Josefsson  <simon@josefsson.org>
53637
53638         * tests/test-canonicalize.sh: Turn on executable bit.
53639
53640 2007-09-19  Eric Blake  <ebb9@byu.net>
53641
53642         * README: Update CVS instructions.
53643
53644 2007-09-18  Bruno Haible  <bruno@clisp.org>
53645
53646         * modules/areadlink: New file.
53647         * lib/areadlink.h (areadlink): New declaration.
53648         * lib/areadlink.c: New file, based on lib/xreadlink.c.
53649
53650 2007-09-17  Jim Meyering  <jim@meyering.net>
53651
53652         * lib/savewd.c (ESTALE) [!defined]: Define.
53653         Reported to be required on Interix by Martin Koeppe.
53654
53655 2007-09-17  Bruno Haible  <bruno@clisp.org>
53656
53657         * gnulib-tool (func_version): Use $version.
53658
53659 2007-09-16  Bruno Haible  <bruno@clisp.org>
53660
53661         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
53662         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
53663         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
53664         Reported by Greg Schafer <gschafer@zip.com.au>.
53665
53666 2007-09-15  Bruno Haible  <bruno@clisp.org>
53667
53668         * gnulib-tool (sed): Try a little harder to make bash understand the
53669         alias.
53670         Reported by Bruce Korb <bruce.korb@gmail.com>.
53671
53672 2007-09-13  Eric Blake  <ebb9@byu.net>
53673
53674         * ChangeLog: Remove conflict markers.
53675
53676 2007-09-13  Simon Josefsson  <simon@josefsson.org>
53677
53678         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
53679         Reported by Bruno Haible <bruno@clisp.org>.
53680
53681 2007-09-12  Bruno Haible  <bruno@clisp.org>
53682
53683         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
53684         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
53685         is not defined.
53686
53687 2007-09-12  Eric Blake  <ebb9@byu.net>
53688
53689         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
53690         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
53691         Autoconf definition.
53692         * modules/euidaccess (Depends-on): Add extensions, for
53693         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
53694         * modules/fnmatch (Depends-on): Likewise.
53695         * modules/getaddrinfo (Depends-on): Likewise.
53696         * modules/getdelim (Depends-on): Likewise.
53697         * modules/getline (Depends-on): Likewise.
53698         * modules/getsubopt (Depends-on): Likewise.
53699         * modules/gettext (Depends-on): Likewise.
53700         * modules/group-member (Depends-on): Likewise.
53701         * modules/mbchar (Depends-on): Likewise.
53702         * modules/memmem (Depends-on): Likewise.
53703         * modules/mempcpy (Depends-on): Likewise.
53704         * modules/memrchr (Depends-on): Likewise.
53705         * modules/pagealign_alloc (Depends-on): Likewise.
53706         * modules/readutmp (Depends-on): Likewise.
53707         * modules/stpcpy (Depends-on): Likewise.
53708         * modules/stpncpy (Depends-on): Likewise.
53709         * modules/strchrnul (Depends-on): Likewise.
53710         * modules/strndup (Depends-on): Likewise.
53711         * modules/strsep (Depends-on): Likewise.
53712         * modules/strverscmp (Depends-on): Likewise.
53713         * modules/vasprintf (Depends-on): Likewise.
53714         * modules/wcwidth (Depends-on): Likewise.
53715         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
53716         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
53717         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
53718         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
53719         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53720         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53721         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
53722         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53723         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
53724         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
53725         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53726         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53727         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53728         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
53729         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
53730         * m4/readutmp.m4 (gl_READUTMP): Likewise.
53731         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53732         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53733         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53734         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53735         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53736         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53737         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53738         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
53739         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
53740         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53741         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
53742         so that lock.m4 can be used in gettext without extensions module.
53743
53744 2007-09-11  Bruno Haible  <bruno@clisp.org>
53745
53746         * m4/isc-posix.m4: Remove file.
53747         Suggested by Eric Blake.
53748
53749 2007-09-11  Eric Blake  <ebb9@byu.net>
53750
53751         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
53752
53753 2007-09-10  Bruno Haible  <bruno@clisp.org>
53754
53755         * posix-modules: Fix typo in error message.
53756         Reported by Matt <mkraai@beckman.com>.
53757
53758 2007-09-09  Bruno Haible  <bruno@clisp.org>
53759
53760         * doc/functions/getdelim.texi: Update list of platforms lacking the
53761         function.
53762         * doc/functions/getline.texi: Likewise.
53763
53764 2007-09-09  Jim Meyering  <jim@meyering.net>
53765
53766         * lib/hash.c (hash_initialize): Detect calloc failure.
53767         Reported by Bruno Haible.
53768
53769 2007-09-09  Bruno Haible  <bruno@clisp.org>
53770
53771         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
53772         malloc or realloc fails.
53773
53774 2007-09-09  Bruno Haible  <bruno@clisp.org>
53775
53776         * modules/getcwd (Depends-on): Add malloc-posix.
53777         * modules/glob (Depends-on): Likewise.
53778         * modules/putenv (Depends-on): Likewise.
53779         * modules/strdup (Depends-on): Likewise.
53780         * modules/getdelim (Depends-on): Add realloc-posix.
53781         * modules/read-file (Depends-on): Likewise.
53782
53783 2007-09-09  Bruno Haible  <bruno@clisp.org>
53784
53785         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
53786         (gl_FUNC_MALLOC_POSIX): Require it.
53787         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
53788         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
53789         * modules/realloc (Files): Add m4/malloc.m4.
53790         * modules/calloc (Files): Likewise.
53791
53792 2007-09-09  Bruno Haible  <bruno@clisp.org>
53793
53794         * modules/malloc-posix: New file.
53795         * modules/malloc (Depends-on): Add malloc-posix.
53796         * lib/malloc.c: Include errno.h.
53797         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
53798         and a POSIX-compatible malloc into a single function. Set ENOMEM
53799         when returning NULL.
53800         * m4/malloc.m4: New file.
53801         * doc/functions/malloc.texi: Mention the malloc-posix module.
53802         * lib/stdlib_.h (malloc): New declaration.
53803         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53804         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
53805         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
53806         and HAVE_MALLOC_POSIX.
53807
53808 2007-09-09  Bruno Haible  <bruno@clisp.org>
53809
53810         * modules/realloc-posix: New file.
53811         * modules/realloc (Depends-on): Add realloc-posix.
53812         * lib/realloc.c: Include errno.h.
53813         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
53814         and a POSIX-compatible realloc into a single function. Set ENOMEM
53815         when returning NULL.
53816         * m4/realloc.m4: New file.
53817         * doc/functions/realloc.texi: Mention the realloc-posix module.
53818         * lib/stdlib_.h (realloc): New declaration.
53819         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53820         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
53821         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
53822         and HAVE_REALLOC_POSIX.
53823
53824 2007-09-09  Bruno Haible  <bruno@clisp.org>
53825
53826         * modules/calloc-posix: New file.
53827         * modules/calloc (Depends-on): Add calloc-posix.
53828         * lib/calloc.c: Include errno.h.
53829         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
53830         and a POSIX-compatible calloc into a single function. Set ENOMEM
53831         when returning NULL.
53832         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
53833         * doc/functions/calloc.texi: Mention the calloc-posix module.
53834         * lib/stdlib_.h (calloc): New declaration.
53835         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53836         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
53837         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
53838         and HAVE_CALLOC_POSIX.
53839
53840 2007-09-09  Bruno Haible  <bruno@clisp.org>
53841
53842         Allow for modules to show an arbitrary notice.
53843         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
53844         * gnulib-tool: New option --extract-notice.
53845         (func_usage): Document it.
53846         (sed_extract_prog): Update.
53847         (func_get_notice): New function.
53848         (func_modules_notice): New function.
53849         (func_import, func_create_testdir): Invoke it.
53850         Suggested by Jim Meyering.
53851
53852 2007-09-09  Bruno Haible  <bruno@clisp.org>
53853
53854         * gnulib-tool: New options --verbose, --quiet.
53855         (func_usage): Document them.
53856         (verbose): New variable.
53857         (func_execute_command): New function.
53858         (func_import): Don't show the module list and the file list if
53859         $verbose < 0.
53860         (func_create_testdir): Likewise. Use func_execute_command.
53861         (func_create_megatestdir): Use func_execute_command.
53862
53863 2007-09-08  Bruno Haible  <bruno@clisp.org>
53864
53865         * gnulib-tool (func_import): Prefer rsync over wget when available,
53866         for fetching the PO files.
53867
53868 2007-09-08  Bruno Haible  <bruno@clisp.org>
53869
53870         * posix-modules: New file. Portions copied from gnulib-tool.
53871         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
53872
53873 2007-09-08  Jim Meyering  <jim@meyering.net>
53874
53875         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
53876         * lib/fpending.h: Rename from __fpending.h.
53877         * lib/fpending.c: Rename from __fpending.c.
53878         Include "fpending.h", not "__fpending.h".
53879         * lib/__fpending.h, lib/__fpending.c: Remove files.
53880         * modules/fpending (Files): Reflect new file names.
53881         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
53882
53883 2007-09-08  Bruno Haible  <bruno@clisp.org>
53884
53885         * m4/inttypes-h.m4: Remove stub file.
53886
53887 2007-09-07  Simon Josefsson  <simon@josefsson.org>
53888
53889         * doc/headers/stdint.texi: Discuss #include_next issue.
53890
53891 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53892
53893         * build-aux/bootstrap: Remove obsolete comment about wget --help.
53894
53895 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53896
53897         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
53898         in variable name.
53899
53900 2007-09-03  Jim Meyering  <jim@meyering.net>
53901
53902         New module: git-version-gen.
53903         * modules/git-version-gen: New file.
53904
53905         Import changes from coreutils for bootstrap script.
53906
53907         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
53908
53909         bootstrap: uses rsync to download the .po files
53910         * build-aux/bootstrap (po_download_command_format): New global.
53911         (download_po_files): Use rsync.
53912         (update_po_files): Don't remove .po files after download,
53913         so future rsync runs can take advantage of the copies.
53914
53915         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
53916
53917         Solve the unnecessary-.po-file-regeneration problem once and for all.
53918         * build-aux/bootstrap (download_po_files): New function, renamed from
53919         get_translations.  Now, downloads, but doesn't update LINGUAS.
53920         (update_po_files): New function.
53921
53922         bootstrap: Ignore more.
53923         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
53924         uniwidth to e.g., lib/.gitignore.
53925         (slurp): Handle the sys_stat_.h -> sys mapping, too.
53926
53927         * build-aux/bootstrap: New setting: vc_ignore.
53928         (insert_sorted_if_absent): Create $file if absent.
53929         Adapt to new, possibly empty, list: $vc_ignore.
53930
53931         bootstrap: generate more ignorable names
53932         * build-aux/bootstrap (slurp): When generating ignorable names,
53933         also map .sin to .sed, .gperf to .c, and .y to .c.
53934
53935 2007-09-03  Jim Meyering  <jim@meyering.net>
53936
53937         * build-aux/git-version-gen: New file, from coreutils.  For details, see
53938         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
53939
53940 2007-09-02  Bruno Haible  <bruno@clisp.org>
53941
53942         Fix mis-recognition of 'mcs' on QNX 6.
53943         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
53944         output contains the string "Mono".
53945         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
53946         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
53947
53948 2007-09-01  Bruno Haible  <bruno@clisp.org>
53949
53950         Fix collision between uniwidth/* and linebreak modules.
53951         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
53952         u32_width): Remove declarations.
53953         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
53954         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
53955         streq3, streq2, streq1, streq0): Remove functions.
53956         (STREQ): Remove macro.
53957         (is_cjk_encoding): Remove function.
53958         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
53959         (uc_width, u8_width, u16_width, u32_width): Remove functions.
53960         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
53961         * NEWS: Document the change.
53962
53963 2007-09-01  Bruno Haible  <bruno@clisp.org>
53964
53965         * lib/streq.h: Add double-inclusion guard.
53966
53967 2007-09-01  Karl Berry  <karl@gnu.org>
53968
53969         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
53970
53971 2007-08-28  Jim Meyering  <jim@meyering.net>
53972
53973         Rename mreadlink_with_size to areadlink_with_size.
53974         * NEWS: Document the change.
53975         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
53976         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
53977         * lib/mreadlink.h: Rename this to...
53978         * lib/areadlink.h: ...this.
53979         * modules/mreadlink-with-size: Rename this to...
53980         * modules/areadlink-with-size: ...this.
53981         * lib/canonicalize.c: Reflect the renaming.
53982         * modules/canonicalize: Likewise.
53983
53984 2007-08-26  Bruno Haible  <bruno@clisp.org>
53985
53986         * gnulib-tool (func_import): When deciding which files to remove,
53987         consider also dangling symbolic links.
53988         Reported by Eric Blake.
53989
53990 2007-08-26  Bruno Haible  <bruno@clisp.org>
53991
53992         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
53993
53994 2007-08-23  Simon Josefsson  <simon@josefsson.org>
53995
53996         * lib/readline.c: Don't include getline.h, the prototype is now
53997         found in stdio.h.
53998
53999 2007-08-23  Jim Meyering  <jim@meyering.net>
54000
54001         Getdelim touchup.
54002         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
54003         around the funlockfile call, since funlockfile never sets errno.
54004         Don't set errno upon failed realloc.
54005
54006 2007-08-22  Eric Blake  <ebb9@byu.net>
54007
54008         Getline touchups.
54009         * lib/getdelim.c (getdelim): Revert regression that required *n to
54010         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
54011         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
54012         getdelim, rather than whether implementation is missing.
54013         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
54014         * lib/stdio_.h (getline): Also declare if replacement is
54015         required.
54016         * doc/functions/getdelim.texi: New file.
54017         * doc/functions/getline.texi: Likewise.
54018         * doc/gnulib.texi (Function Substitutes): Add new files.
54019         Reported by Bruno Haible.
54020
54021 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
54022
54023         * users.txt: Add Guile.
54024
54025 2007-08-22  Eric Blake  <ebb9@byu.net>
54026
54027         * tests/test-getdelim.c (main): Use remove, not unlink.
54028         * tests/test-getline.c (main): Likewise.
54029
54030         Move getline and getdelim into stdio.h, per POSIX 200x.
54031         * modules/getline (Files): Remove getline.h.
54032         (Depends-on): Add stdio.
54033         (configure.ac): Add module indicator.
54034         * modules/getdelim (Files): Remove getdelim.h.
54035         (Depends-on): Add stdio.
54036         (configure.ac): Add module indicator.
54037         * modules/stdio (Makefile.am): Work with new indicators.
54038         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
54039         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
54040         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
54041         * lib/getdelim.h: Delete.
54042         * lib/getline.h: Delete.
54043         * lib/stdio_.h (getdelim, getline): Declare.
54044         * modules/getdelim-tests: New module.
54045         * modules/getline-tests: Likewise.
54046         * tests/test-getdelim.c: New file.
54047         * tests/test-getline.c: Likewise.
54048         * NEWS: Document the change.
54049         * lib/getline.c: Update choice of header.
54050         * lib/csharpcomp.c: Likewise.
54051         * lib/getpass.c: Likewise.
54052         * lib/javacomp.c: Likewise.
54053         * lib/javaversion.c: Likewise.
54054         * lib/yesno.c: Likewise.
54055         * lib/getdelim.c: Likewise.
54056         (getdelim): Set errno on failure, and avoid memory leak.
54057
54058 2007-08-19  Bruno Haible  <bruno@clisp.org>
54059
54060         * modules/closein (Depends-on): Add freadahead.
54061         * lib/closein.c: Include freadahead.h.
54062         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
54063         is zero.
54064
54065 2007-08-19  Bruno Haible  <bruno@clisp.org>
54066
54067         * modules/freadahead-tests: New file.
54068         * tests/test-freadahead.sh: New file.
54069         * tests/test-freadahead.c: New file.
54070
54071         * modules/freadahead: New file.
54072         * lib/freadahead.h: New file.
54073         * lib/freadahead.c: New file.
54074         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
54075         fbufmode, fpurge, freadable, fwritable.
54076
54077 2007-08-19  Eric Blake  <ebb9@byu.net>
54078
54079         Test yesno in combination with closein.
54080         * lib/yesno.c (yesno): Document use of stdin.
54081         * modules/yesno-tests (Files): New module.
54082         * tests/test-yesno.c (main): New file.
54083         * tests/test-yesno.sh: Likewise.
54084
54085 2007-08-19  Bruno Haible  <bruno@clisp.org>
54086
54087         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
54088         * lib/fseeko.c (rpl_fseeko): Likewise.
54089         * lib/fseterr.c (fseterr): Likewise.
54090
54091 2007-08-19  Bruno Haible  <bruno@clisp.org>
54092
54093         * tests/test-lseek.c (main): Disable a test for BeOS.
54094         * doc/functions/lseek.texi: Document the BeOS bug.
54095
54096 2007-08-19  Bruno Haible  <bruno@clisp.org>
54097             Eric Blake  <ebb9@byu.net>
54098
54099         * lib/lseek.c: Include <sys/stat.h>.
54100         (rpl_lseek): Add workaround code also for Unix platforms.
54101         Needed for BeOS.
54102         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
54103         * doc/functions/lseek.texi: Document BeOS definiency.
54104
54105 2007-08-18  Bruno Haible  <bruno@clisp.org>
54106
54107         * modules/fstrcmp-tests: New file.
54108         * tests/test-fstrcmp.c: New file.
54109
54110 2007-08-18  Bruno Haible  <bruno@clisp.org>
54111
54112         * modules/fstrcmp: New file, from GNU gettext with modifications.
54113         * lib/fstrcmp.h: New file, from GNU gettext.
54114         * lib/fstrcmp.c: New file, from GNU gettext.
54115         * MODULES.html.sh (String handling): Add fstrcmp.
54116
54117 2007-08-18  Bruno Haible  <bruno@clisp.org>
54118
54119         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
54120         'bool'.
54121         (diag, compareseq): Remove const from the ctxt argument.
54122         (USE_HEURISTIC): Undefine at the end.
54123
54124 2007-08-18  Jim Meyering  <jim@meyering.net>
54125
54126         New file: lib/idcache.h
54127         * NEWS: Mention the addition.
54128         * modules/idcache (Files): Add lib/idcache.h
54129         * lib/idcache.c: Include "idcache.h".
54130         Don't include <sys/types.h>.
54131         Add a FIXME comment.
54132         Move file-scoped "static" declarations to the top.
54133         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
54134
54135 2007-08-17  Bruno Haible  <bruno@clisp.org>
54136         and Paul Eggert  <eggert@cs.ucla.edu>
54137
54138         * MODULES.html.sh: Add diffseq.
54139         * modules/diffseq: New file.
54140         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
54141         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
54142
54143 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54144
54145         Import changes from coreutils for bootstrap script.
54146
54147         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
54148
54149         * build-aux/bootstrap (slurp): Work even in environments where
54150         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
54151         current code does not slurp files whose names start with ".", and
54152         this looks like it might be a troublesome area.
54153
54154         2007-07-11  Jim Meyering  <jim@meyering.net>
54155
54156         If there's a GPL vN copyright comment, require that N == 3.
54157
54158         2007-07-08  Jim Meyering  <jim@meyering.net>
54159
54160         Run the coreutils-specific code only if tests/Makefile.am.in exists.
54161         * build-aux/bootstrap (mam_template): Move definition out of loop.
54162
54163         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
54164
54165         * build-aux/bootstrap (symlink_to_dir): Rename function from
54166         symlink_to_gnulib.  Add a directory parameter.  Update all
54167         callers.
54168         (cp_mark_as_generated): Also check for -- and link to -- files in
54169         gl/.
54170
54171         2007-07-08  Jim Meyering  <jim@meyering.net>
54172
54173         Adapt to deeper hierarchy in gnulib.
54174         * build-aux/bootstrap (symlink_to_dir): If the destination
54175         directory doesn't exist, create it. This is required at least for
54176         "lib/uniwidth/cjk.h".
54177
54178         2007-05-15  Jim Meyering  <jim@meyering.net>
54179
54180         * build-aux/bootstrap: Now that generated Makefile.am files
54181         are no longer under version control, they must be created at
54182         bootstrap time.
54183
54184 2007-08-14  Ben Pfaff  <blp@gnu.org>
54185
54186         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
54187
54188 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54189
54190         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
54191         given the changes below.
54192         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
54193         even on hosts that have padding bits beyond the supported 64.
54194
54195 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54196
54197         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
54198         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
54199         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
54200         depends on it.
54201         (xstrtol_error): Remove.
54202         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
54203         but with a different signature.
54204         (ATTRIBUTE_NORETURN, __attribute__): New macros.
54205         * lib/xstrtol-error.c: Include exitfail.h.
54206         (xstrtol_fatal): New function, with a different signature from the
54207         old xstrtol_error, so that the caller need not worry about passing
54208         in an exit status, or about storage management of the option argument.
54209         (xstrtol_error): Now a static function.  Redo signature to
54210         implement xstrtol_fatal.  Output the correct number of hyphens in
54211         front of the option so that the caller need not worry about
54212         storage management.
54213         (N_): New macro.
54214         (_): Remove; not used now.
54215         * modules/xstrtol: Depend on getopt.
54216         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
54217         of old STRTOL_FATAL_ERROR macro.
54218         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
54219         of test program.
54220         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
54221         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
54222
54223 2007-08-08  Eric Blake  <ebb9@byu.net>
54224
54225         * lib/xstrtol-error.c: Add missing include.
54226
54227         Move xstrtol messages into gnulib domain, when --pobase is used.
54228         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
54229         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
54230         * modules/xstrtol (Files): Distribute new file.
54231         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
54232         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
54233         * tests/test-xstrtol.c: ...into new file.
54234         * tests/test-xstrtoul.c: Also test xstrtoul.
54235         * tests/test-xstrtoimax.c: Also test xstrtoimax.
54236         * tests/test-xstrtoumax.c: Also test xstrtoumax.
54237         * tests/test-xstrtol.sh: Drive the tests.
54238         * tests/test-xstrtoimax.sh: Likewise.
54239         * tests/test-xstrtoumax.sh: Likewise.
54240         * modules/xstrtol-tests: New module.
54241         * modules/xstrtoimax-tests: Likewise.
54242         * modules/xstrtoumax-tests: Likewise.
54243
54244 2007-08-08  Jim Meyering  <jim@meyering.net>
54245
54246         New function: mfile_name_concat.
54247         * lib/filenamecat.c (mfile_name_concat): New function, just like
54248         file_name_concat, but return NULL upon failure rather than exiting
54249         with a diagnostic.
54250         * lib/filenamecat.h: Declare it.
54251
54252 2007-08-07  Bruno Haible  <bruno@clisp.org>
54253
54254         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
54255         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
54256         warning from gcc.
54257         Reported by Eric Blake.
54258
54259 2007-08-07  Simon Josefsson  <simon@josefsson.org>
54260
54261         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
54262         * modules/crypto/arcfour (License): Likewise.
54263         * modules/crypto/des-tests (License): Likewise.
54264         * modules/crypto/gc-arctwo-tests (License): Likewise.
54265         * modules/crypto/gc-des-tests (License): Likewise.
54266         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
54267         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
54268         * modules/crypto/gc-md2-tests (License): Likewise.
54269         * modules/crypto/gc-md4-tests (License): Likewise.
54270         * modules/crypto/gc-md5-tests (License): Likewise.
54271         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
54272         * modules/crypto/gc-rijndael-tests (License): Likewise.
54273         * modules/crypto/gc-sha1-tests (License): Likewise.
54274         * modules/crypto/gc-tests (License): Likewise.
54275         * modules/crypto/hmac-md5 (License): Likewise.
54276         * modules/crypto/hmac-sha1 (License): Likewise.
54277         * modules/crypto/md2-tests (License): Likewise.
54278         * modules/crypto/md4-tests (License): Likewise.
54279         * modules/crypto/md5 (License): Likewise.
54280         * modules/crypto/rijndael (License): Likewise.
54281         * modules/crypto/sha1 (License): Likewise.
54282         * modules/memxor (License): Likewise.
54283
54284 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54285         and Bruno Haible  <bruno@clisp.org>
54286
54287         * NEWS: Describe interface changes to human, xstrtol.
54288         * lib/human.h: Include <xstrtol.h>.
54289         (human_options): Return enum strtol_error, not int.  Remove
54290         bool arg; take int * instead.
54291         * lib/human.c: Don't include "gettext.h".
54292         (_): Remove; no longer used.
54293         Don't include <xstrtol.h>, since human.h does it.
54294         (human_options): Adjust to abovementioned interface changes.
54295         Do not report error to stderr; that's now the caller's
54296         responsibility.
54297         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
54298         interface change.
54299         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
54300         Str, Argument_type_string.  All uses changed.  Put " argument"
54301         in diagnostics to make them clearer.  Change wording of suffix
54302         message for clarity.
54303         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
54304         Argument_type_string.
54305         (STRTOL_FATAL_WARN): Remove; no longer used.
54306         * modules/human (Depends-on): Remove gettext-h.
54307
54308 2007-08-06  Simon Josefsson  <simon@josefsson.org>
54309
54310         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
54311
54312 2007-07-31  Bruno Haible  <bruno@clisp.org>
54313
54314         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
54315         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
54316         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
54317
54318 2007-07-31  Bruno Haible  <bruno@clisp.org>
54319
54320         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
54321         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
54322
54323 2007-07-30  Bruno Haible  <bruno@clisp.org>
54324
54325         * modules/base64 (License): Use the synonymous term "LGPLv2+".
54326         * modules/c-ctype (License): Likewise.
54327         * modules/c-strcase (License): Likewise.
54328         * modules/check-version (License): Likewise.
54329         * modules/iconv (License): Likewise.
54330         * modules/iconv_open (License): Likewise.
54331         * modules/read-file (License): Likewise.
54332         * modules/striconv (License): Likewise.
54333         * modules/strverscmp (License): Likewise.
54334         * modules/vasprintf (License): Likewise.
54335         * modules/crypto/des (License): Likewise.
54336         * modules/crypto/gc (License): Likewise.
54337         * modules/crypto/gc-arcfour (License): Likewise.
54338         * modules/crypto/gc-arctwo (License): Likewise.
54339         * modules/crypto/gc-des (License): Likewise.
54340         * modules/crypto/gc-hmac-md5 (License): Likewise.
54341         * modules/crypto/gc-hmac-sha1 (License): Likewise.
54342         * modules/crypto/gc-md2 (License): Likewise.
54343         * modules/crypto/gc-md4 (License): Likewise.
54344         * modules/crypto/gc-md5 (License): Likewise.
54345         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
54346         * modules/crypto/gc-random (License): Likewise.
54347         * modules/crypto/gc-rijndael (License): Likewise.
54348         * modules/crypto/gc-sha1 (License): Likewise.
54349         * modules/crypto/md2 (License): Likewise.
54350         * modules/crypto/md4 (License): Likewise.
54351
54352 2007-07-30  Jim Meyering  <jim@meyering.net>
54353
54354         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
54355         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
54356         it has valid stat data.  This bug would cause du not to count the
54357         sizes of inaccessible directories.
54358         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
54359         in <http://bugzilla.redhat.com/250077>.
54360
54361 2007-07-25  Peter O'Gorman  <peter@pogma.com>
54362             Bruno Haible  <bruno@clisp.org>
54363
54364         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
54365         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
54366         #include_next, gives a diagnostic about it, but reports no error in
54367         the exit code.
54368         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54369
54370 2007-07-24  Ben Pfaff  <blp@gnu.org>
54371
54372         Improve name: "count-one-bits" is better than "popcount".
54373         * MODULES.html.sh: Update name.
54374         * lib/popcount.h: Renamed lib/count-one-bits.h.
54375         (popcount): Renamed count_one_bits.
54376         (popcountl): Renamed count_one_bits_l.
54377         (popcountll): Renamed count_one_bits_ll.
54378         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
54379         * modules/popcount: Renamed module/count-one-bits.
54380         * modules/popcount-tests: Renamed module/count-one-bits-tests.
54381         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
54382
54383 2007-07-23  Ben Pfaff  <blp@gnu.org>
54384
54385         * lib/popcount.h (popcount32): Reduce size of constants, to allow
54386         better code generation, and add U to large constants to avoid
54387         warnings, in non-GCC case.
54388         Suggested by Bruno Haible.
54389
54390 2007-07-23  Ben Pfaff  <blp@gnu.org>
54391
54392         * lib/popcount.h: Use verify_true instead of if...abort.
54393         * modules/popcount: Depend on verify module.
54394         Suggested by Jim Meyering.
54395
54396 2007-07-23  Bruno Haible  <bruno@clisp.org>
54397
54398         * gnulib-tool (func_import): Create a .cvsignore file also when the
54399         directory is not yet in CVS but the toplevel directory is. When
54400         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
54401         Reported by Karl Berry.
54402
54403 2007-07-22  Ben Pfaff  <blp@gnu.org>
54404
54405         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
54406         case.
54407         Suggested by Eric Blake.
54408
54409 2007-07-22  Ben Pfaff  <blp@gnu.org>
54410
54411         New module: popcount.
54412         * MODULES.html.sh: Add popcount.
54413         * modules/popcount: New file.
54414         * modules/popcount-tests: New file.
54415         * tests/test-popcount.c: New file.
54416         * lib/popcount.h: New file.
54417         * m4/popcount.m4: New file.
54418
54419 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54420
54421         * build-aux/announce-gen: Update to GPLv3.
54422
54423         * build-aux/config.guess: Update from config.
54424
54425 2007-07-21  Bruno Haible  <bruno@clisp.org>
54426
54427         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
54428         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
54429
54430 2007-07-20  Jim Meyering  <jim@meyering.net>
54431
54432         * check-module: Diagnose a self-dependency.
54433
54434 2007-07-19  Bruno Haible  <bruno@clisp.org>
54435
54436         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
54437         empty.
54438         Reported by Eric Blake.
54439
54440 2007-07-18  Bruno Haible  <bruno@clisp.org>
54441
54442         * gnulib-tool: New options --po-base, --po-domain.
54443         (func_usage): Document them.
54444         (pobase, po_domain): New variables.
54445         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
54446         DEFAULT_TEXT_DOMAIN.
54447         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
54448         (func_import): Consider pobase and po_domain. Create a po/ directory.
54449         (func_create_testdir): Set pobase and po_domain to empty.
54450         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
54451         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
54452
54453 2007-07-18  Bruno Haible  <bruno@clisp.org>
54454
54455         * gnulib-tool (func_get_automake_snippet): Synthesize also an
54456         EXTRA_DIST augmentation for files in build-aux/.
54457
54458 2007-07-16  Bruno Haible  <bruno@clisp.org>
54459
54460         * modules/lseek (License): Use the synonymous term "LGPLv2+".
54461         * modules/getdelim (License): Likewise.
54462
54463 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54464
54465         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
54466         * modules/d-type (License): Likewise.
54467         * modules/extensions (License): Likewise.
54468         * modules/fnmatch (License): Likewise.
54469         * modules/fseeko (License): Likewise.
54470         * modules/getaddrinfo (License): Likewise.
54471         * modules/getline (License): Likewise.
54472         * modules/getlogin_r (License): Likewise.
54473         * modules/getpass (License): Likewise.
54474         * modules/gettimeofday (License): Likewise.
54475         * modules/glob (License): Likewise.
54476         * modules/inet_ntop (License): Likewise.
54477         * modules/malloc (License): Likewise.
54478         * modules/malloca (License): Likewise.
54479         * modules/memmem (License): Likewise.
54480         * modules/mempcpy (License): Likewise.
54481         * modules/memset (License): Likewise.
54482         * modules/minmax (License): Likewise.
54483         * modules/mktime (License): Likewise.
54484         * modules/netinet_in (License): Likewise.
54485         * modules/pathmax (License): Likewise.
54486         * modules/poll (License): Likewise.
54487         * modules/regex (License): Likewise.
54488         * modules/snprintf (License): Likewise.
54489         * modules/stdbool (License): Likewise.
54490         * modules/stdint (License): Likewise.
54491         * modules/stdio (License): Likewise.
54492         * modules/strcase (License): Likewise.
54493         * modules/strcasestr (License): Likewise.
54494         * modules/strdup (License): Likewise.
54495         * modules/string (License): Likewise.
54496         * modules/strndup (License): Likewise.
54497         * modules/strnlen (License): Likewise.
54498         * modules/strpbrk (License): Likewise.
54499         * modules/strptime (License): Likewise.
54500         * modules/strsep (License): Likewise.
54501         * modules/sys_select (License): Likewise.
54502         * modules/sys_socket (License): Likewise.
54503         * modules/sys_stat (License): Likewise.
54504         * modules/sys_time (License): Likewise.
54505         * modules/time (License): Likewise.
54506         * modules/time_r (License): Likewise.
54507         * modules/timegm (License): Likewise.
54508         * modules/unistd (License): Likewise.
54509         * modules/vsnprintf (License): Likewise.
54510         * modules/wctype (License): Likewise.
54511
54512 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54513
54514         * modules/argz (License): LGPLv2+.
54515
54516 2007-07-15  Karl Berry  <karl@gnu.org>
54517
54518         * doc/gnulib.texi: revise node structure per new fdl.texi.
54519
54520 2007-07-14  Bruno Haible  <bruno@clisp.org>
54521
54522         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
54523         the output file.
54524         * lib/uniname/uninames.h: Regenerated.
54525
54526 2007-07-14  Karl Berry  <karl@gnu.org>
54527
54528         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
54529         omitting sectioning and index commands.
54530
54531 2007-07-13  Bruno Haible  <bruno@clisp.org>
54532
54533         New gnulib-tool option --more-symlinks.
54534         * gnulib-tool (func_usage): Document --more-symlinks.
54535         (do_copyrights): New variable.
54536         Recognize option --more-symlinks.
54537         (func_import): Don't add a copyright notice transform to
54538         sed_transform_lib_file if do_copyrights is empty.
54539
54540 2007-07-13  Bruno Haible  <bruno@clisp.org>
54541
54542         * lib/vasnprintf.c (decimal_point_char): Define also if
54543         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
54544         && !NEED_PRINTF_DIRECTIVE_A.
54545         Reported by Clemens Koller <clemens.koller@anagramm.de> via
54546         Gary V. Vaughan <gary@gnu.org>.
54547
54548 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
54549
54550         * lib/inttypes_.h: Undo previous change, since it was fixed
54551         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
54552
54553 2007-07-13  Bruno Haible  <bruno@clisp.org>
54554
54555         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
54556         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
54557
54558 2007-07-13  Jim Meyering  <jim@meyering.net>
54559
54560         df: Don't fail for Tru64's "file-on-file mount".
54561         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
54562         so we fall through and use statfs instead.  Details here:
54563         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
54564         Reported by Albert Chin.
54565
54566 2007-07-13  Bruno Haible  <bruno@clisp.org>
54567
54568         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
54569         * modules/configmake (License): Likewise.
54570         * modules/gettext (License): Likewise.
54571         * modules/gettext-h (License): Likewise.
54572         * modules/include_next (License): Likewise.
54573         * modules/link-warning (License): Likewise.
54574         * modules/localcharset (License): Likewise.
54575         * modules/localename (License): Likewise.
54576         * modules/lock (License): Likewise.
54577         * modules/relocatable-lib-lgpl (License): Likewise.
54578         * modules/size_max (License): Likewise.
54579         * modules/vasnprintf (License): Likewise.
54580         * modules/wchar (License): Likewise.
54581         * modules/xsize (License): Likewise.
54582
54583 2007-07-13  Bruno Haible  <bruno@clisp.org>
54584
54585         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
54586         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
54587
54588 2007-07-12  Bruno Haible  <bruno@clisp.org>
54589
54590         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
54591         in the modules files.
54592
54593 2007-07-11  Karl Berry  <karl@gnu.org>
54594
54595         * MODULES.html.sh (func_module): use
54596          sed -e '\|^'"${includefile}"'$|d'
54597          instead of /.../d, to avoid errors on $includefile's containing /.
54598
54599 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54600
54601         * gnulib-tool (func_import): Avoid duplication of --avoid
54602         statements
54603         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
54604         names to `_' in variable names.
54605
54606 2007-07-10  Eric Blake  <ebb9@byu.net>
54607
54608         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
54609         * NEWS: Document this change.
54610
54611 2007-07-08  Bruno Haible  <bruno@clisp.org>
54612
54613         Update to Unicode 5.0.
54614         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
54615         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
54616         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
54617         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
54618         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
54619         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
54620         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
54621         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
54622         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
54623         U+10A3F, U+1D242..U+1D244.
54624         (nonspacing_table_ind): Update.
54625         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
54626         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
54627
54628 2007-07-08  Bruno Haible  <bruno@clisp.org>
54629
54630         Update to Unicode 5.0.
54631         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
54632         code transform. Extend the name index field of unicode_name_to_code and
54633         unicode_code_to_name from 16 to 24 bits.
54634         * lib/uniname/uniname.c (unicode_character_name,
54635         unicode_name_character): Add the range 0x12xxx to the code transform.
54636         * lib/uniname/uninames.h: Regenerated.
54637         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
54638
54639 2007-07-07  Bruno Haible  <bruno@clisp.org>
54640
54641         * modules/wcwidth-tests: New file.
54642         * tests/test-wcwidth.c: New file.
54643
54644         Work around MacOS X wcwidth() bug.
54645         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
54646         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
54647         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
54648         original wcwidth in non-UTF-8 locales.
54649         * modules/wcwidth (Depends-on): Add localcharset, streq,
54650         uniwidth/width.
54651         * doc/functions/wcwidth.texi: Update.
54652
54653 2007-07-07  Bruno Haible  <bruno@clisp.org>
54654
54655         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
54656         (wcwidth): New declaration.
54657         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
54658         macros.
54659         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
54660         here. Prepare for creating <wchar.h> unconditionally.
54661         * modules/wchar (Depends-on): Add link-warning.
54662         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
54663         REPLACE_WCWIDTH, and GL_LINK_WARNING.
54664         * lib/wcwidth.h: Remove file.
54665         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
54666         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
54667         * modules/wcwidth (Files): Remove lib/wcwidth.h.
54668         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
54669         (Include): Replace wcwidth.h with <wchar.h>.
54670         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
54671         * lib/mbchar.h: Don't include wcwidth.h.
54672         * lib/mbswidth.c: Likewise.
54673         * NEWS: Mention the change.
54674
54675 2007-07-07  Bruno Haible  <bruno@clisp.org>
54676
54677         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
54678         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
54679         definition with an external declaration.
54680         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
54681         defined as a function. Remove AC_C_INLINE requirement.
54682         * modules/wcwidth (Files): Add lib/wcwidth.c.
54683         (Makefile.am): Remove redundant statement.
54684
54685 2007-07-07  Bruno Haible  <bruno@clisp.org>
54686
54687         * MODULES.html.sh (Unicode string functions): Add the new modules.
54688
54689         * tests/uniwidth/test-u32-strwidth.c: New file.
54690         * modules/uniwidth/u32-strwidth-tests: New file.
54691
54692         * lib/uniwidth/u32-strwidth.c: New file.
54693         * modules/uniwidth/u32-strwidth: New file.
54694
54695         * tests/uniwidth/test-u16-strwidth.c: New file.
54696         * modules/uniwidth/u16-strwidth-tests: New file.
54697
54698         * lib/uniwidth/u16-strwidth.c: New file.
54699         * modules/uniwidth/u16-strwidth: New file.
54700
54701         * tests/uniwidth/test-u8-strwidth.c: New file.
54702         * modules/uniwidth/u8-strwidth-tests: New file.
54703
54704         * lib/uniwidth/u8-strwidth.c: New file.
54705         * modules/uniwidth/u8-strwidth: New file.
54706
54707         * tests/uniwidth/test-u32-width.c: New file.
54708         * modules/uniwidth/u32-width-tests: New file.
54709
54710         * lib/uniwidth/u32-width.c: New file.
54711         * modules/uniwidth/u32-width: New file.
54712
54713         * tests/uniwidth/test-u16-width.c: New file.
54714         * modules/uniwidth/u16-width-tests: New file.
54715
54716         * lib/uniwidth/u16-width.c: New file.
54717         * modules/uniwidth/u16-width: New file.
54718
54719         * tests/uniwidth/test-u8-width.c: New file.
54720         * modules/uniwidth/u8-width-tests: New file.
54721
54722         * lib/uniwidth/u8-width.c: New file.
54723         * modules/uniwidth/u8-width: New file.
54724
54725         * tests/uniwidth/test-uc_width.c: New file.
54726         * modules/uniwidth/width-tests: New file.
54727
54728         * lib/uniwidth/width.c: New file, from GNU libiconv.
54729         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
54730         * modules/uniwidth/width: New file.
54731
54732         * lib/uniwidth.h: New file, from GNU libiconv.
54733         * modules/uniwidth/base: New file.
54734
54735 2007-07-07  Bruno Haible  <bruno@clisp.org>
54736
54737         * lib/uniname.h: New file, from GNU gettext.
54738         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
54739         * lib/uniname/uninames.h: New file, from GNU gettext.
54740         * lib/uniname/uniname.c: New file, from GNU gettext.
54741         * tests/uniname/test-uninames.sh: New file.
54742         * tests/uniname/test-uninames.c: New file, from GNU gettext.
54743         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
54744         * modules/uniname/base: New file.
54745         * modules/uniname/uniname: New file.
54746         * modules/uniname/uniname-tests: New file.
54747         * MODULES.html.sh (Unicode string functions): Add the new modules.
54748
54749 2007-07-06  Bruno Haible  <bruno@clisp.org>
54750
54751         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
54752
54753 2007-07-06  Bruno Haible  <bruno@clisp.org>
54754
54755         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
54756         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
54757         includes <cygwin/sys_time.h> which includes <sys/select.h> which
54758         include <sys/time.h>.
54759         Reported by Eric Blake.
54760
54761 2007-07-06  Eric Blake  <ebb9@byu.net>
54762
54763         Fix testing canonicalize on cygwin.
54764         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54765         Revert patch from 2007-06-19.
54766         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
54767         canonicalize module is also in use.
54768         * tests/test-canonicalize.c: New file.
54769         * tests/test-canonicalize.sh: Likewise.
54770         * modules/canonicalize-tests: Likewise.
54771
54772 2007-07-06  Jim Meyering  <jim@meyering.net>
54773
54774         * lib/getugroups.c (getugroups): Detect getgrent failure.
54775         Adjust comment to reflect reality: this function may return -1.
54776
54777 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
54778
54779         * build-aux/bootstrap (TP_URL,get_translations): Update to use
54780         the new TP address.
54781         (usage): Fix typo
54782         (gnulib_mk): New variable.
54783
54784 2007-07-05  Jim Meyering  <jim@meyering.net>
54785
54786         Don't let endgrent clobber errno, no matter how improbable.
54787         * lib/getugroups.c (getugroups): Save and restore errno around
54788         endgrent call.
54789
54790         Close the group DB even when failing with 2^31 or more members.
54791         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
54792
54793 2007-07-04  Jim Meyering  <jim@meyering.net>
54794
54795         * lib/getugroups.h: New file.
54796         * lib/getugroups.c: Include "getugroups.h".
54797         Remove uses of "register" keyword.
54798         Move local variable, "cp", down into scope where used.
54799         Give "username" parameter the "const" attribute.
54800         * modules/getugroups (Files): Add lib/getugroups.h
54801
54802 2007-07-04  Karl Berry  <karl@gnu.org>
54803
54804         * MODULES.html.sh (func_all_modules): Complete rename of
54805         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
54806
54807 2007-07-02  Bruno Haible  <bruno@clisp.org>
54808
54809         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
54810         mode, when inttypes.h comes from gnulib.
54811         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54812
54813 2007-07-02  Simon Josefsson  <simon@josefsson.org>
54814
54815         * NEWS: Mention lgpl module name change.
54816
54817         * modules/lgpl-2.1: Renamed from lgpl.
54818
54819         * NEWS: Mention gpl module name change.
54820
54821         * modules/gpl-3.0: New file, based on gpl-2.0.
54822
54823         * modules/gpl-2.0: Renamed from gpl.
54824
54825         * modules/gpl: Fix filename, doc/gpl.texi is now found at
54826         doc/gpl-2.0.texi.
54827
54828 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54829
54830         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
54831         #define __STDC_LIMIT_MACROS temporarily while including
54832         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
54833         Problem reported by Joel E. Denny in
54834         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
54835
54836 2007-07-01  Bruno Haible  <bruno@clisp.org>
54837
54838         * lib/unistdio.h: New file.
54839         * lib/unistdio/u-asnprintf.h: New file.
54840         * lib/unistdio/u-asprintf.h: New file.
54841         * lib/unistdio/u-printf-args.c: New file.
54842         * lib/unistdio/u-printf-args.h: New file.
54843         * lib/unistdio/u-printf-parse.h: New file.
54844         * lib/unistdio/u-snprintf.h: New file.
54845         * lib/unistdio/u-sprintf.h: New file.
54846         * lib/unistdio/u-vasprintf.h: New file.
54847         * lib/unistdio/u-vsnprintf.h: New file.
54848         * lib/unistdio/u-vsprintf.h: New file.
54849         * lib/unistdio/ulc-asnprintf.c: New file.
54850         * lib/unistdio/ulc-asprintf.c: New file.
54851         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
54852         * lib/unistdio/ulc-printf-parse.c: New file.
54853         * lib/unistdio/ulc-snprintf.c: New file.
54854         * lib/unistdio/ulc-sprintf.c: New file.
54855         * lib/unistdio/ulc-vasnprintf.c: New file.
54856         * lib/unistdio/ulc-vasprintf.c: New file.
54857         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
54858         * lib/unistdio/ulc-vsnprintf.c: New file.
54859         * lib/unistdio/ulc-vsprintf.c: New file.
54860         * lib/unistdio/u8-asnprintf.c: New file.
54861         * lib/unistdio/u8-asprintf.c: New file.
54862         * lib/unistdio/u8-printf-parse.c: New file.
54863         * lib/unistdio/u8-snprintf.c: New file.
54864         * lib/unistdio/u8-sprintf.c: New file.
54865         * lib/unistdio/u8-vasnprintf.c: New file.
54866         * lib/unistdio/u8-vasprintf.c: New file.
54867         * lib/unistdio/u8-vsnprintf.c: New file.
54868         * lib/unistdio/u8-vsprintf.c: New file.
54869         * lib/unistdio/u8-u8-asnprintf.c: New file.
54870         * lib/unistdio/u8-u8-asprintf.c: New file.
54871         * lib/unistdio/u8-u8-snprintf.c: New file.
54872         * lib/unistdio/u8-u8-sprintf.c: New file.
54873         * lib/unistdio/u8-u8-vasnprintf.c: New file.
54874         * lib/unistdio/u8-u8-vasprintf.c: New file.
54875         * lib/unistdio/u8-u8-vsnprintf.c: New file.
54876         * lib/unistdio/u8-u8-vsprintf.c: New file.
54877         * lib/unistdio/u16-asnprintf.c: New file.
54878         * lib/unistdio/u16-asprintf.c: New file.
54879         * lib/unistdio/u16-printf-parse.c: New file.
54880         * lib/unistdio/u16-snprintf.c: New file.
54881         * lib/unistdio/u16-sprintf.c: New file.
54882         * lib/unistdio/u16-vasnprintf.c: New file.
54883         * lib/unistdio/u16-vasprintf.c: New file.
54884         * lib/unistdio/u16-vsnprintf.c: New file.
54885         * lib/unistdio/u16-vsprintf.c: New file.
54886         * lib/unistdio/u16-u16-asnprintf.c: New file.
54887         * lib/unistdio/u16-u16-asprintf.c: New file.
54888         * lib/unistdio/u16-u16-snprintf.c: New file.
54889         * lib/unistdio/u16-u16-sprintf.c: New file.
54890         * lib/unistdio/u16-u16-vasnprintf.c: New file.
54891         * lib/unistdio/u16-u16-vasprintf.c: New file.
54892         * lib/unistdio/u16-u16-vsnprintf.c: New file.
54893         * lib/unistdio/u16-u16-vsprintf.c: New file.
54894         * lib/unistdio/u32-asnprintf.c: New file.
54895         * lib/unistdio/u32-asprintf.c: New file.
54896         * lib/unistdio/u32-printf-parse.c: New file.
54897         * lib/unistdio/u32-snprintf.c: New file.
54898         * lib/unistdio/u32-sprintf.c: New file.
54899         * lib/unistdio/u32-vasnprintf.c: New file.
54900         * lib/unistdio/u32-vasprintf.c: New file.
54901         * lib/unistdio/u32-vsnprintf.c: New file.
54902         * lib/unistdio/u32-vsprintf.c: New file.
54903         * lib/unistdio/u32-u32-asnprintf.c: New file.
54904         * lib/unistdio/u32-u32-asprintf.c: New file.
54905         * lib/unistdio/u32-u32-snprintf.c: New file.
54906         * lib/unistdio/u32-u32-sprintf.c: New file.
54907         * lib/unistdio/u32-u32-vasnprintf.c: New file.
54908         * lib/unistdio/u32-u32-vasprintf.c: New file.
54909         * lib/unistdio/u32-u32-vsnprintf.c: New file.
54910         * lib/unistdio/u32-u32-vsprintf.c: New file.
54911         * tests/unistdio/test-ulc-asnprintf1.c: New file.
54912         * tests/unistdio/test-ulc-asnprintf1.h: New file.
54913         * tests/unistdio/test-ulc-printf1.h: New file.
54914         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
54915         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
54916         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
54917         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
54918         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
54919         * tests/unistdio/test-ulc-vasprintf1.c: New file.
54920         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
54921         * tests/unistdio/test-ulc-vsprintf1.c: New file.
54922         * tests/unistdio/test-u8-asnprintf1.c: New file.
54923         * tests/unistdio/test-u8-asnprintf1.h: New file.
54924         * tests/unistdio/test-u8-printf1.h: New file.
54925         * tests/unistdio/test-u8-vasnprintf1.c: New file.
54926         * tests/unistdio/test-u8-vasnprintf2.c: New file.
54927         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
54928         * tests/unistdio/test-u8-vasnprintf3.c: New file.
54929         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
54930         * tests/unistdio/test-u8-vasprintf1.c: New file.
54931         * tests/unistdio/test-u8-vsnprintf1.c: New file.
54932         * tests/unistdio/test-u8-vsprintf1.c: New file.
54933         * tests/unistdio/test-u16-asnprintf1.c: New file.
54934         * tests/unistdio/test-u16-asnprintf1.h: New file.
54935         * tests/unistdio/test-u16-printf1.h: New file.
54936         * tests/unistdio/test-u16-vasnprintf1.c: New file.
54937         * tests/unistdio/test-u16-vasnprintf2.c: New file.
54938         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
54939         * tests/unistdio/test-u16-vasnprintf3.c: New file.
54940         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
54941         * tests/unistdio/test-u16-vasprintf1.c: New file.
54942         * tests/unistdio/test-u16-vsnprintf1.c: New file.
54943         * tests/unistdio/test-u16-vsprintf1.c: New file.
54944         * tests/unistdio/test-u32-asnprintf1.c: New file.
54945         * tests/unistdio/test-u32-asnprintf1.h: New file.
54946         * tests/unistdio/test-u32-printf1.h: New file.
54947         * tests/unistdio/test-u32-vasnprintf1.c: New file.
54948         * tests/unistdio/test-u32-vasnprintf2.c: New file.
54949         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
54950         * tests/unistdio/test-u32-vasnprintf3.c: New file.
54951         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
54952         * tests/unistdio/test-u32-vasprintf1.c: New file.
54953         * tests/unistdio/test-u32-vsnprintf1.c: New file.
54954         * tests/unistdio/test-u32-vsprintf1.c: New file.
54955         * modules/unistdio/base: New file.
54956         * modules/unistdio/u-printf-args: New file.
54957         * modules/unistdio/ulc-asnprintf: New file.
54958         * modules/unistdio/ulc-asprintf: New file.
54959         * modules/unistdio/ulc-fprintf: New file.
54960         * modules/unistdio/ulc-printf-parse: New file.
54961         * modules/unistdio/ulc-snprintf: New file.
54962         * modules/unistdio/ulc-sprintf: New file.
54963         * modules/unistdio/ulc-vasnprintf: New file.
54964         * modules/unistdio/ulc-vasprintf: New file.
54965         * modules/unistdio/ulc-vfprintf: New file.
54966         * modules/unistdio/ulc-vsnprintf: New file.
54967         * modules/unistdio/ulc-vsprintf: New file.
54968         * modules/unistdio/u8-asnprintf: New file.
54969         * modules/unistdio/u8-asprintf: New file.
54970         * modules/unistdio/u8-printf-parse: New file.
54971         * modules/unistdio/u8-snprintf: New file.
54972         * modules/unistdio/u8-sprintf: New file.
54973         * modules/unistdio/u8-vasnprintf: New file.
54974         * modules/unistdio/u8-vasprintf: New file.
54975         * modules/unistdio/u8-vsnprintf: New file.
54976         * modules/unistdio/u8-vsprintf: New file.
54977         * modules/unistdio/u8-u8-asnprintf: New file.
54978         * modules/unistdio/u8-u8-asprintf: New file.
54979         * modules/unistdio/u8-u8-snprintf: New file.
54980         * modules/unistdio/u8-u8-sprintf: New file.
54981         * modules/unistdio/u8-u8-vasnprintf: New file.
54982         * modules/unistdio/u8-u8-vasprintf: New file.
54983         * modules/unistdio/u8-u8-vsnprintf: New file.
54984         * modules/unistdio/u8-u8-vsprintf: New file.
54985         * modules/unistdio/u16-asnprintf: New file.
54986         * modules/unistdio/u16-asprintf: New file.
54987         * modules/unistdio/u16-printf-parse: New file.
54988         * modules/unistdio/u16-snprintf: New file.
54989         * modules/unistdio/u16-sprintf: New file.
54990         * modules/unistdio/u16-vasnprintf: New file.
54991         * modules/unistdio/u16-vasprintf: New file.
54992         * modules/unistdio/u16-vsnprintf: New file.
54993         * modules/unistdio/u16-vsprintf: New file.
54994         * modules/unistdio/u16-u16-asnprintf: New file.
54995         * modules/unistdio/u16-u16-asprintf: New file.
54996         * modules/unistdio/u16-u16-snprintf: New file.
54997         * modules/unistdio/u16-u16-sprintf: New file.
54998         * modules/unistdio/u16-u16-vasnprintf: New file.
54999         * modules/unistdio/u16-u16-vasprintf: New file.
55000         * modules/unistdio/u16-u16-vsnprintf: New file.
55001         * modules/unistdio/u16-u16-vsprintf: New file.
55002         * modules/unistdio/u32-asnprintf: New file.
55003         * modules/unistdio/u32-asprintf: New file.
55004         * modules/unistdio/u32-printf-parse: New file.
55005         * modules/unistdio/u32-snprintf: New file.
55006         * modules/unistdio/u32-sprintf: New file.
55007         * modules/unistdio/u32-vasnprintf: New file.
55008         * modules/unistdio/u32-vasprintf: New file.
55009         * modules/unistdio/u32-vsnprintf: New file.
55010         * modules/unistdio/u32-vsprintf: New file.
55011         * modules/unistdio/u32-u32-asnprintf: New file.
55012         * modules/unistdio/u32-u32-asprintf: New file.
55013         * modules/unistdio/u32-u32-snprintf: New file.
55014         * modules/unistdio/u32-u32-sprintf: New file.
55015         * modules/unistdio/u32-u32-vasnprintf: New file.
55016         * modules/unistdio/u32-u32-vasprintf: New file.
55017         * modules/unistdio/u32-u32-vsnprintf: New file.
55018         * modules/unistdio/u32-u32-vsprintf: New file.
55019         * modules/unistdio/ulc-asnprintf-tests: New file.
55020         * modules/unistdio/ulc-vasnprintf-tests: New file.
55021         * modules/unistdio/ulc-vasprintf-tests: New file.
55022         * modules/unistdio/ulc-vsnprintf-tests: New file.
55023         * modules/unistdio/ulc-vsprintf-tests: New file.
55024         * modules/unistdio/u8-asnprintf-tests: New file.
55025         * modules/unistdio/u8-vasnprintf-tests: New file.
55026         * modules/unistdio/u8-vasprintf-tests: New file.
55027         * modules/unistdio/u8-vsnprintf-tests: New file.
55028         * modules/unistdio/u8-vsprintf-tests: New file.
55029         * modules/unistdio/u16-asnprintf-tests: New file.
55030         * modules/unistdio/u16-vasnprintf-tests: New file.
55031         * modules/unistdio/u16-vasprintf-tests: New file.
55032         * modules/unistdio/u16-vsnprintf-tests: New file.
55033         * modules/unistdio/u16-vsprintf-tests: New file.
55034         * modules/unistdio/u32-asnprintf-tests: New file.
55035         * modules/unistdio/u32-vasnprintf-tests: New file.
55036         * modules/unistdio/u32-vasprintf-tests: New file.
55037         * modules/unistdio/u32-vsnprintf-tests: New file.
55038         * modules/unistdio/u32-vsprintf-tests: New file.
55039         * MODULES.html.sh (Unicode string functions): Add the new modules.
55040
55041 2007-07-01  Bruno Haible  <bruno@clisp.org>
55042
55043         * lib/sprintf.c (sprintf): Limit the available length estimation,
55044         to avoid address wraparound.
55045         * lib/vsprintf.c (vsprintf): Likewise.
55046         * modules/sprintf-posix (Dependencies): Add stdint.
55047         * modules/vsprintf-posix (Dependencies): Likewise.
55048
55049 2007-07-01  Bruno Haible  <bruno@clisp.org>
55050
55051         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
55052         Windows PATH as well. Conservative double-quoting. Comments.
55053
55054 2007-07-01  Bruno Haible  <bruno@clisp.org>
55055             Eric Blake  <ebb9@byu.net>
55056             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55057
55058         * gnulib-tool (self_abspathname): Fix algorithm to cope with
55059         empty components in $PATH, denoting '.'.
55060
55061 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55062
55063         * gnulib-tool: Fix indentation.
55064         (func_create_megatestdir): Likewise.
55065         Report by Bruno Haible.
55066
55067 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55068
55069         Sync from Automake.
55070         * build-aux/gnupload: Fix shell portability issues with for loops.
55071         Report by Karl Berry.
55072
55073 2007-06-29  Simon Josefsson  <simon@josefsson.org>
55074
55075         * build-aux/maint.mk (POURL): Use translationproject.org.
55076
55077 2007-06-27  Simon Josefsson  <simon@josefsson.org>
55078             Bruno Haible  <bruno@clisp.org>
55079
55080         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
55081         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
55082         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
55083         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
55084         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
55085
55086 2007-06-27  Bruno Haible  <bruno@clisp.org>
55087
55088         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
55089         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
55090
55091 2007-06-26  Karl Berry  <karl@gnu.org>
55092
55093         * MODULES.html.sh: remove xreadlink-with-size.
55094
55095 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55096
55097         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
55098         method that I hope also handles the double-include problem noted
55099         by Bruno Haible in
55100         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
55101
55102 2007-06-23  Bruno Haible  <bruno@clisp.org>
55103
55104         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55105         Don't let the 'mostlyclean' target fail if the last subdirectory could
55106         not be removed.
55107         Reported by Karl Berry.
55108
55109 2007-06-23  Bruno Haible  <bruno@clisp.org>
55110
55111         * gnulib-tool (echo): Add a speedier workaround for ksh.
55112         * tests/test-echo.sh: Likewise.
55113
55114 2007-06-23  Bruno Haible  <bruno@clisp.org>
55115
55116         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
55117         * tests/test-echo.sh: Likewise.
55118
55119 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55120
55121         * gnulib-tool (IFS): Initialize early, so we don't set it to
55122         empty later.
55123         (self_abspathname): Rewrite algorithm to set it, reindent.
55124         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
55125         (func_create_megatestdir): Merge some sed scripts.
55126
55127 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55128
55129         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
55130         exposed by Sun Studio 11 cc on Solaris 8.
55131
55132 2007-06-22  Bruno Haible  <bruno@clisp.org>
55133
55134         * gnulib-tool (echo): Ensure the echo primitive does not interpret
55135         backslashes.
55136         * tests/test-echo.sh: New file.
55137
55138 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55139
55140         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
55141         simplify `sed_replace_build_aux' scripts, they are portable but
55142         echoing them with `echo' is not.
55143         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
55144
55145 2007-06-21  Karl Berry  <karl@gnu.org>
55146
55147         * config/srclist.txt: guess we can't handle the licenses via
55148         srclist at the moment.
55149
55150 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
55151
55152         * MODULES.html.sh: Add include_next.
55153         * modules/include_next: New file.
55154
55155 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
55156
55157         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
55158         INCLUDE_NEXT.
55159         (gl_CHECK_NEXT_HEADERS): New macro.
55160         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
55161         the obsolescent gl_ABSOLUTE_HEADER.
55162         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
55163         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
55164         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
55165         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55166         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
55167         * m4/math_h.m4 (gl_MATH_H): Likewise.
55168         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55169         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
55170         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
55171         * m4/stdint.m4 (gl_STDINT_H): Likewise.
55172         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
55173         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
55174         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
55175         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55176         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55177         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
55178         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
55179         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
55180         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
55181         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
55182         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
55183         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55184         * m4/inttypes.m4 (gl_INTTYPES_H): Define
55185         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
55186         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
55187         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
55188         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
55189         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
55190         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
55191         * lib/float_.h: Likewise.
55192         * lib/inttypes_.h: Likewise.
55193         * lib/math_.h: Likewise.
55194         * lib/search_.h: Likewise.
55195         * lib/signal_.h: Likewise.
55196         * lib/stdint_.h: Likewise.
55197         * lib/stdio_.h: Likewise.
55198         * lib/stdlib_.h: Likewise.
55199         * lib/string_.h: Likewise.
55200         * lib/sys_stat_.h: Likewise.
55201         * lib/sys_time_.h: Likewise.
55202         * lib/time_.h: Likewise.
55203         * lib/unistd_.h: Likewise.
55204         * lib/wchar_.h: Likewise.
55205         * lib/wctype_.h: Likewise.
55206         * lib/dirent_.h: Likewise.
55207         * lib/iconv_.h: Likewise.
55208         * lib/locale_.h: Likewise.
55209         * lib/netinet_in_.h: Likewise.
55210         * lib/sys_select_.h: Likewise.
55211         * lib/sys_socket_.h: Likewise.
55212         * lib/sysexits_.h: Likewise.
55213         * modules/fcntl (Depends-on): Depend on include_next, not
55214         absolute_header.
55215         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
55216         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
55217         * modules/fchdir: Likewise.
55218         * modules/float: Likewise.
55219         * modules/iconv_open: Likewise.
55220         * modules/inttypes: Likewise.
55221         * modules/locale: Likewise.
55222         * modules/math: Likewise.
55223         * modules/netinet_in: Likewise.
55224         * modules/search: Likewise.
55225         * modules/signal: Likewise.
55226         * modules/stdint: Likewise.
55227         * modules/stdio: Likewise.
55228         * modules/stdlib: Likewise.
55229         * modules/string: Likewise.
55230         * modules/sys_select: Likewise.
55231         * modules/sys_socket: Likewise.
55232         * modules/sys_stat: Likewise.
55233         * modules/sys_time: Likewise.
55234         * modules/sysexits: Likewise.
55235         * modules/time: Likewise.
55236         * modules/unistd: Likewise.
55237         * modules/wchar: Likewise.
55238         * modules/wctype: Likewise.
55239         * modules/sys_stat: Change maintainer to "all".
55240         * modules/unistd: Likewise.
55241
55242 2007-06-20  Karl Berry  <karl@gnu.org>
55243
55244         * config/srclist.txt: track www changes in license files.
55245
55246 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
55247
55248         * build-aux/bootstrap: Remove stray dot.
55249         Make sure build_aux settings are honored when linking
55250         gnulib_extra_files.
55251
55252 2007-06-19  Eric Blake  <ebb9@byu.net>
55253
55254         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
55255         Allow compilation on cygwin.
55256
55257 2007-06-19  Jim Meyering  <jim@meyering.net>
55258
55259         xreadlink-with-size: Remove module.  No longer used.
55260         Ex-callers now use xreadlink or mreadlink-with-size.
55261         * modules/xreadlink-with-size: Remove module.
55262         * lib/xreadlink-with-size.c: Remove file.
55263         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
55264         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
55265         just before the function definition *is* accurate.
55266
55267         Eliminate one way canonicalize_filename_mode could exit.
55268         * lib/canonicalize.c (canonicalize_filename_mode):
55269         Use mreadlink_with_size, not xreadlink_with_size.
55270
55271 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
55272
55273         Detect porting problems to FreeBSD/arm, which has time_t wider than
55274         long int.  Original problem reported for GNU diff by Xin Li in
55275         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
55276         * modules/getdate (Depends-on): Add intprops, verify.
55277         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
55278         is an integer type no wider than long int.
55279
55280 2007-06-18  Jim Meyering  <jim@meyering.net>
55281
55282         New module: mreadlink-with-size.
55283         * MODULES.html.sh: Add mreadlink-with-size.
55284         * modules/mreadlink-with-size: New module
55285         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
55286         not xreadlink-with-size.
55287         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
55288
55289 2007-06-16  Bruno Haible  <bruno@clisp.org>
55290
55291         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
55292         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
55293         Reported by Gary V. Vaughan <gary@gnu.org>.
55294
55295 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
55296
55297         Revamp lchown so that it lives in unistd.h where it belongs.
55298         * lib/lchown.h: Remove.
55299         * lib/dirchownmod.c: Don't include lib/lchown.h.
55300         * lib/fchownat.c: Likewise.
55301         * lib/openat.c: Likewise.
55302         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
55303         does not follow symlinks.
55304         (EOPNOTSUPP): Define if not defined.
55305         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
55306         is defined to 0.
55307         (lchown): New decl.
55308         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
55309         Do not check for lchown decl.
55310         Set REPLACE_LCHOWN.
55311         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
55312         REPLACE_LCHOWN.
55313         * modules/chown: Make it clear it follows symlinks.
55314         * modules/lchown: Make it clear it doesn't follow symlinks.
55315         (Files): Remove lib/lchown.h
55316         (Depends-on): Add unistd.
55317         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
55318         (Include): Include <unistd.h>, not "lchown.h".
55319         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
55320         REPLACE_LCHOWN.
55321
55322 2007-06-15  Jim Meyering  <jim@meyering.net>
55323
55324         Change license (GPL to LGPL) of fsusage and dependents.
55325         * modules/fsusage (License): Change to LGPL.
55326         * modules/full-read (License): Likewise.
55327         * modules/full-write (License): Likewise.
55328         * modules/safe-read (License): Likewise.
55329         * modules/safe-write (License): Likewise.
55330
55331 2007-06-14  Ben Pfaff  <blp@gnu.org>
55332
55333         Missing part of allocsa -> malloca transition.
55334         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
55335         gl_MALLOCA.
55336
55337 2007-06-12  Bruno Haible  <bruno@clisp.org>
55338
55339         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
55340         to ia64, x86_64, i386.
55341         Reported by Eric Blake.
55342
55343 2007-06-12  Bruno Haible  <bruno@clisp.org>
55344
55345         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
55346         cross-compiling to x86_64.
55347
55348 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
55349
55350         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
55351         glitch reported by Ralf Wildenhues in
55352         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
55353
55354         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
55355         Vin Shelton.
55356
55357 2007-06-11  Bruno Haible  <bruno@clisp.org>
55358
55359         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
55360         replacement string.
55361         Reported by Eric Blake.
55362
55363 2007-06-10  Bruno Haible  <bruno@clisp.org>
55364
55365         Prepare vasnprintf code for use with Unicode strings.
55366         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
55367         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
55368         TYPE_U32_STRING.
55369         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
55370         a_u32_string variants.
55371         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55372         * lib/printf-args.c: Don't include config.h and the specification
55373         header if PRINTF_FETCHARGS is already defined.
55374         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55375         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
55376         TYPE_U16_STRING, TYPE_U32_STRING.
55377         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
55378         u16_directive, u16_directives, u32_directive, u32_directives): New
55379         types.
55380         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
55381         New declarations.
55382         * lib/printf-parse.c: Don't include config.h and the specification
55383         header if PRINTF_PARSE is already defined. Eliminate the set of
55384         parameters for WIDE_CHAR_VERSION; the user of this file must provide
55385         them now. Include c-ctype.h.
55386         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
55387         directive and CHAR_T_ONLY_ASCII.
55388         * lib/vasnprintf.c: Don't include config.h and the specification header
55389         if VASNPRINTF is already defined.
55390         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
55391         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
55392         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
55393         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
55394         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
55395         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
55396         code accordingly.
55397         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
55398         pad_ourselves also in this case, with the 'c' and 's' directives, and
55399         with a different notion of "width".
55400         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
55401
55402 2007-06-10  Bruno Haible  <bruno@clisp.org>
55403
55404         * modules/unistr/u32-mbsnlen: New file.
55405         * lib/unistr/u32-mbsnlen.c: New file.
55406
55407         * modules/unistr/u16-mbsnlen: New file.
55408         * lib/unistr/u16-mbsnlen.c: New file.
55409
55410         * modules/unistr/u8-mbsnlen: New file.
55411         * lib/unistr/u8-mbsnlen.c: New file.
55412
55413         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
55414         declarations.
55415
55416 2007-06-10  Bruno Haible  <bruno@clisp.org>
55417
55418         * lib/string_.h (mbsnlen): New declaration.
55419         * lib/mbsnlen.c: New file.
55420         * m4/mbsnlen.m4: New file.
55421         * modules/mbsnlen: New file.
55422         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
55423         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
55424         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
55425
55426 2007-06-10  Bruno Haible  <bruno@clisp.org>
55427
55428         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
55429
55430 2007-06-10  Bruno Haible  <bruno@clisp.org>
55431
55432         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
55433         * lib/mbuiter.h: Likewise.
55434
55435 2007-06-10  Bruno Haible  <bruno@clisp.org>
55436
55437         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
55438         declaration.
55439
55440 2007-06-10  Karl Berry  <karl@gnu.org>
55441
55442         * config/srclist.txt: remove gettext entries, Bruno prefers
55443         to update individually.
55444
55445 2007-06-10  Bruno Haible  <bruno@clisp.org>
55446
55447         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
55448         'maxlen'. Ensure only length + width bytes are allocated, not
55449         length + 1 + width.
55450
55451 2007-06-09  Bruno Haible  <bruno@clisp.org>
55452
55453         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
55454         (CHAR_T): Remove macro.
55455         (VASNPRINTF): Update.
55456
55457 2007-06-09  Bruno Haible  <bruno@clisp.org>
55458
55459         * MODULES.html.sh (Unicode string functions): Add the new modules.
55460
55461         * modules/uniconv/u32-conv-to-enc: New file.
55462         * lib/uniconv/u32-conv-to-enc.c: New file.
55463         * modules/uniconv/u32-conv-to-enc-tests: New file.
55464         * tests/uniconv/test-u32-conv-to-enc.c: New file.
55465
55466         * modules/uniconv/u16-conv-to-enc: New file.
55467         * lib/uniconv/u16-conv-to-enc.c: New file.
55468         * lib/uniconv/u-conv-to-enc.h: New file.
55469         * modules/uniconv/u16-conv-to-enc-tests: New file.
55470         * tests/uniconv/test-u16-conv-to-enc.c: New file.
55471
55472         * modules/uniconv/u8-conv-to-enc: New file.
55473         * lib/uniconv/u8-conv-to-enc.c: New file.
55474         * modules/uniconv/u8-conv-to-enc-tests: New file.
55475         * tests/uniconv/test-u8-conv-to-enc.c: New file.
55476
55477         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
55478         u32_conv_to_encoding): New declarations.
55479
55480 2007-06-09  Bruno Haible  <bruno@clisp.org>
55481
55482         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
55483
55484 2007-06-09  Bruno Haible  <bruno@clisp.org>
55485
55486         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
55487         * modules/malloca: Renamed from modules/allocsa, updated.
55488         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
55489         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
55490         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
55491         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
55492         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
55493         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
55494         * modules/xmalloca: Renamed from modules/xallocsa, updated.
55495         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
55496         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
55497         * modules/c-strcasestr (Depends-on): Update.
55498         * lib/c-strcasestr.c: Update.
55499         * modules/c-strstr (Depends-on): Update.
55500         * lib/c-strstr.c: Update.
55501         * modules/canonicalize-lgpl (Depends-on): Update.
55502         * lib/canonicalize-lgpl.c: Update.
55503         * modules/clean-temp (Depends-on): Update.
55504         * lib/clean-temp.c: Update.
55505         * modules/csharpcomp (Depends-on): Update.
55506         * lib/csharpcomp.c: Update.
55507         * modules/csharpexec (Depends-on): Update.
55508         * lib/csharpexec.c: Update.
55509         * modules/javacomp (Depends-on): Update.
55510         * lib/javacomp.c: Update.
55511         * modules/javaexec (Depends-on): Update.
55512         * lib/javaexec.c: Update.
55513         * modules/mbscasestr (Depends-on): Update.
55514         * lib/mbscasestr.c: Update.
55515         * modules/mbsstr (Depends-on): Update.
55516         * lib/mbsstr.c: Update.
55517         * modules/setenv (Depends-on): Update.
55518         * lib/setenv.c: Update.
55519         * modules/strcasestr (Depends-on): Update.
55520         * lib/strcasestr.c: Update.
55521         * modules/striconveha (Depends-on): Update.
55522         * lib/striconveha.c: Update.
55523         * modules/relocatable-prog-wrapper (Files): Update.
55524         * lib/relocwrapper.c: Update.
55525         * build-aux/install-reloc: Update.
55526         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
55527
55528 2007-06-08  Bruno Haible  <bruno@clisp.org>
55529
55530         Port to uClibc.
55531         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
55532         * lib/fpurge.c (fpurge): Likewise.
55533         * lib/freading.c (freading): Likewise.
55534         * lib/fseeko.c (rpl_fseeko): Likewise.
55535         * lib/fseterr.c (fseterr): Likewise.
55536         * lib/fwriting.c (fwriting): Likewise.
55537         * tests/test-fflush.c (main): Avoid a failure on uClibc.
55538
55539 2007-06-08  Bruno Haible  <bruno@clisp.org>
55540
55541         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
55542         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
55543         * modules/gettext (Files): Add m4/intlmacosx.m4.
55544
55545 2007-06-07  Bruno Haible  <bruno@clisp.org>
55546
55547         * modules/localename-tests: New file.
55548         * tests/test-localename.c: New file.
55549
55550         New module 'localename'.
55551         * lib/localename.h: New file.
55552         * lib/localename.c: New file, from GNU gettext.
55553         * m4/localename.m4: New file.
55554         * modules/localename: New file.
55555
55556 2007-06-07  Bruno Haible  <bruno@clisp.org>
55557
55558         Work around the lack of <wchar.h> on some builds of uClibc.
55559         * doc/headers/wchar.texi: Update.
55560         * lib/wchar_.h: Include <wchar.h> only if it exists.
55561         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
55562         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
55563         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
55564         doesn't exist.
55565         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
55566         * modules/mbfile (Depends-on): Add wchar.
55567         * modules/mbiter (Depends-on): Likewise.
55568         * modules/mbuiter (Depends-on): Likewise.
55569         Reported by Simon Josefsson.
55570
55571 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55572
55573         Work around problem reported by Steven M. Schweda in
55574         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
55575         Tru64 5.1B with the Compaq compiler environment installed declares
55576         an 'isblank' function but does not define it in the C library.
55577         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
55578         * lib/regex_internal.h (isblank): Likewise.
55579         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
55580         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55581
55582 2007-06-05  Bruno Haible  <bruno@clisp.org>
55583
55584         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
55585         ia64.
55586         * modules/printf-safe: New file.
55587         * modules/fprintf-posix (Depends-on): Add printf-safe.
55588         * modules/printf-posix (Depends-on): Likewise.
55589         * modules/snprintf-posix (Depends-on): Likewise.
55590         * modules/sprintf-posix (Depends-on): Likewise.
55591         * modules/vasnprintf-posix (Depends-on): Likewise.
55592         * modules/vasprintf-posix (Depends-on): Likewise.
55593         * modules/vfprintf-posix (Depends-on): Likewise.
55594         * modules/vprintf-posix (Depends-on): Likewise.
55595         * modules/vsnprintf-posix (Depends-on): Likewise.
55596         * modules/vsprintf-posix (Depends-on): Likewise.
55597         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
55598         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
55599         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
55600         "no" on i386, x86_64, ia64.
55601         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
55602         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55603         on i386, x86_64, ia64.
55604         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
55605         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55606         on i386, x86_64, ia64.
55607         * tests/test-vasnprintf-posix.c: Include float.h.
55608         (LDBL80_WORDS): New macro.
55609         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55610         on i386, x86_64, ia64.
55611         * tests/test-vasprintf-posix.c: Include float.h.
55612         (LDBL80_WORDS): New macro.
55613         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55614         on i386, x86_64, ia64.
55615         * tests/test-snprintf-posix.c: Include float.h.
55616         * tests/test-sprintf-posix.c: Likewise.
55617         * tests/test-vsnprintf-posix.c: Likewise.
55618         * tests/test-vsprintf-posix.c: Likewise.
55619
55620 2007-06-05  Bruno Haible  <bruno@clisp.org>
55621
55622         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
55623         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
55624         non-IEEE numbers on i386, x86_64, ia64.
55625         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
55626         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
55627         * tests/test-isnanl.h: Include float.h.
55628         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
55629
55630 2007-06-05  Bruno Haible  <bruno@clisp.org>
55631
55632         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
55633         also the %a / %A. Handle the %a / %A code before this extra handling.
55634
55635 2007-06-05  Bruno Haible  <bruno@clisp.org>
55636
55637         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
55638         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
55639
55640 2007-06-05  Bruno Haible  <bruno@clisp.org>
55641
55642         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
55643         typo in variable name.
55644
55645 2007-06-05  Eric Blake  <ebb9@byu.net>
55646
55647         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
55648         Reported by Simon Josefsson.
55649
55650 2007-06-04  Bruno Haible  <bruno@clisp.org>
55651
55652         Avoid test failures on some PowerPC platforms.
55653         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
55654         Define differently for PowerPC.
55655         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
55656         Reported by Gary V. Vaughan <gary@gnu.org>.
55657
55658 2007-06-02  Bruno Haible  <bruno@clisp.org>
55659
55660         Fix test-stdint failure on FreeBSD/ia64.
55661         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
55662         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
55663         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
55664         * doc/headers/stdint.texi: Update.
55665
55666 2007-06-01  Bruno Haible  <bruno@clisp.org>
55667
55668         * tests/test-binary-io.c (main): Pass a third argument to open().
55669         Reported by Gary V. Vaughan <gary@gnu.org>.
55670
55671 2007-06-01  Bruno Haible  <bruno@clisp.org>
55672
55673         * doc/functions/frexpl.texi: Update for mingw.
55674
55675 2007-06-01  Bruno Haible  <bruno@clisp.org>
55676
55677         * tests/test-lseek.c (main): Disable test of errno for invalid third
55678         argument.
55679         * doc/functions/lseek.texi: Update.
55680         Reported by Gary V. Vaughan <gary@gnu.org>.
55681
55682 2007-05-28  Bruno Haible  <bruno@clisp.org>
55683
55684         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
55685
55686 2007-05-31  Eric Blake  <ebb9@byu.net>
55687
55688         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
55689         cross compiling.
55690
55691 2007-05-30  Eric Blake  <ebb9@byu.net>
55692         and Bruno Haible  <bruno@clisp.org>
55693
55694         Work around mingw test failures exposed by m4-1.4.9b.
55695         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
55696         * tests/test-unistd.c: Disable uid_t and git_t tests for the
55697         moment.
55698
55699 2007-05-30  Bruno Haible  <bruno@clisp.org>
55700
55701         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
55702         assuming that they are closed. Needed on HP-UX 11.
55703
55704 2007-05-29  Bruno Haible  <bruno@clisp.org>
55705
55706         Fix a problem with #include_next.
55707         * lib/dirent_.h: Split the double-inclusion guard.
55708         * lib/fcntl_.h: Likewise.
55709         * lib/float_.h: Likewise.
55710         * lib/iconv_.h: Likewise.
55711         * lib/inttypes_.h: Likewise.
55712         * lib/locale_.h: Likewise.
55713         * lib/math_.h: Likewise.
55714         * lib/netinet_in_.h: Likewise.
55715         * lib/search_.h: Likewise.
55716         * lib/signal_.h: Likewise.
55717         * lib/stdint_.h: Likewise.
55718         * lib/stdio_.h: Likewise.
55719         * lib/stdlib_.h: Likewise.
55720         * lib/string_.h: Likewise.
55721         * lib/sys_select_.h: Likewise.
55722         * lib/sys_socket_.h: Likewise.
55723         * lib/sys_stat_.h: Likewise.
55724         * lib/sys_time_.h: Likewise.
55725         * lib/sysexits_.h: Likewise.
55726         * lib/time_.h: Likewise.
55727         * lib/unistd_.h: Likewise.
55728         * lib/wchar_.h: Likewise.
55729         * lib/wctype_.h: Likewise.
55730
55731 2007-05-29  Bruno Haible  <bruno@clisp.org>
55732
55733         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
55734         for the moment.
55735
55736 2007-05-29  Bruno Haible  <bruno@clisp.org>
55737
55738         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
55739         invocation.
55740         Reported by Eric Blake.
55741
55742 2007-05-29  Bruno Haible  <bruno@clisp.org>
55743
55744         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
55745         compiling case.
55746
55747 2007-05-29  Eric Blake  <ebb9@byu.net>
55748             Bruno Haible  <bruno@clisp.org>
55749
55750         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
55751         cross compiles.
55752
55753 2007-05-28  Eric Blake  <ebb9@byu.net>
55754
55755         * modules/closein-tests (test_closein_LDADD): Support test on
55756         cygwin with libtool.
55757
55758 2007-05-28  Bruno Haible  <bruno@clisp.org>
55759
55760         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
55761         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55762         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55763         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55764         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55765         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55766         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55767         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55768         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55769
55770 2007-05-28  Eric Blake  <ebb9@byu.net>
55771
55772         Unconditionally include <config.h> in unit tests.
55773         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
55774         * tests/test-allocsa.c, tests/test-arcfour.c,
55775         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
55776         tests/test-array_list.c, tests/test-array_oset.c,
55777         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
55778         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
55779         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
55780         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
55781         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
55782         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
55783         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
55784         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
55785         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
55786         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
55787         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
55788         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
55789         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
55790         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
55791         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
55792         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
55793         test-md5.c, test-memmem.c, test-printf-posix.c,
55794         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
55795         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
55796         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
55797         test-strcasestr.c, test-striconv.c, test-striconveh.c,
55798         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
55799         test-vasnprintf-posix2.c, test-vasnprintf.c,
55800         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
55801         test-vfprintf-posix.c, test-vprintf-posix.c,
55802         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
55803         test-xvasprintf.c: Likewise.
55804
55805 2007-05-28  Bruno Haible  <bruno@clisp.org>
55806
55807         * gnulib-tool (func_import): Remember the --with-tests command-line
55808         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
55809         Reported by Eric Blake.
55810
55811 2007-05-28  Bruno Haible  <bruno@clisp.org>
55812
55813         * modules/ftell-tests: New file.
55814         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
55815         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
55816
55817         * lib/ftell.c: New file.
55818         * modules/ftell: New file.
55819         * m4/ftell.m4: New file.
55820         * doc/functions/ftell.texi: Update.
55821         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
55822         REPLACE_FTELL.
55823         * lib/stdio_.h (rpl_ftell): New declaration.
55824         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
55825         REPLACE_FTELL.
55826
55827 2007-05-28  Eric Blake  <ebb9@byu.net>
55828
55829         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
55830
55831 2007-05-28  Bruno Haible  <bruno@clisp.org>
55832
55833         * modules/fseek-tests: New file.
55834         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
55835         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
55836
55837         * lib/fseek.c: New file.
55838         * modules/fseek: New file.
55839         * m4/fseek.m4: New file.
55840         * doc/functions/fseek.texi: Update.
55841         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
55842         REPLACE_FSEEK.
55843         * lib/stdio_.h (rpl_fseek): New declaration.
55844         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
55845         REPLACE_FSEEK.
55846
55847 2007-05-28  Bruno Haible  <bruno@clisp.org>
55848
55849         * lib/stdio_.h (fflush): More comments.
55850
55851 2007-05-28  Bruno Haible  <bruno@clisp.org>
55852
55853         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
55854         runtime test.
55855
55856 2007-05-28  Eric Blake  <ebb9@byu.net>
55857
55858         Improve lseek module.
55859         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
55860         * lib/unistd_.h (lseek): Scale back link warning message.
55861         * tests/test-lseek.c: Beef up test.
55862         * tests/test-lseek.sh: Exercise more facets of lseek.
55863         Reported by Bruno Haible.
55864
55865 2007-05-28  Bruno Haible  <bruno@clisp.org>
55866
55867         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
55868         to define.
55869
55870 2007-05-27  Bruno Haible  <bruno@clisp.org>
55871
55872         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
55873
55874 2007-05-27  Bruno Haible  <bruno@clisp.org>
55875
55876         * modules/openmp: New file.
55877         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
55878         Noah Misch.
55879
55880 2007-05-26  Bruno Haible  <bruno@clisp.org>
55881
55882         * modules/chdir-long (Depends-on): Add fchdir.
55883         * modules/chdir-safer (Depends-on): Likewise.
55884         * modules/fts (Depends-on): Likewise.
55885         * modules/fts-lgpl (Depends-on): Likewise.
55886         * modules/openat (Depends-on): Likewise.
55887         * modules/savewd (Depends-on): Likewise.
55888
55889 2007-05-24  Eric Blake  <ebb9@byu.net>
55890
55891         Fix lseek on mingw.
55892         * modules/lseek: New module.
55893         * m4/lseek.m4: New file.
55894         * lib/lseek.c: New file.
55895         * modules/lseek-tests: New file.
55896         * tests/test-lseek.c: New file.
55897         * tests/test-lseek.sh: New file.
55898         * MODULES.html.sh: Document lseek module.
55899         * modules/fflush (Depends-on): Add lseek, fseeko.
55900         * modules/fseeko (Depends-on): Likewise.
55901         * modules/ftello (Depends-on): Likewise.
55902         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
55903         broken.
55904         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
55905         broken.
55906         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
55907         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
55908         * lib/ftello.c (rpl_ftello): Likewise.
55909         * tests/test-fseeko.c (main): Test this.
55910         * tests/test-fseeko.sh: Likewise.
55911         * tests/test-ftello.c (main): Likewise.
55912         * tests/test-ftello.sh: Likewise.
55913         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
55914         implies replacing fseek.
55915         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
55916         HAVE_FTELLO.
55917         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
55918         * modules/unistd (Makefile.am): Likewise.
55919         * lib/unistd_.h (lseek): Declare a replacement.
55920         * doc/functions/lseek.texi (lseek): Document this fix.
55921         * doc/functions/fseek.texi (fseek): Likewise.
55922         * doc/functions/ftell.texi (ftell): Likewise.
55923
55924 2007-05-24  Bruno Haible  <bruno@clisp.org>
55925
55926         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
55927         in the printed representation of a NaN.
55928         * tests/test-vasprintf-posix.c (test_function): Likewise.
55929         * tests/test-snprintf-posix.h (test_function): Likewise.
55930         * tests/test-sprintf-posix.h (test_function): Likewise.
55931         Reported by Eric Blake.
55932
55933 2007-05-23  Eric Blake  <ebb9@byu.net>
55934
55935         Fix fseeko/ftello on cygwin 1.5.24.
55936         * doc/functions/fseeko.texi (fseeko): Document the fix.
55937         * doc/functions/ftello.texi (ftello): Document the fix.
55938         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
55939         * doc/functions/stdout.text (stdout): New file.
55940         * doc/functions/stderr.text (stderr): New file.
55941         * doc/gnulib.texi (Function Substitutes): Use new files.
55942         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
55943         prior to 1.7.0.
55944         * tests/test-ftello.c (main): Likewise for ftello.
55945         * tests/test-fseeko.sh: New file.
55946         * tests/test-ftello.sh: New file.
55947         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
55948         with seekable stdin.
55949         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
55950         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
55951         (gl_REPLACE_FSEEKO): New macro.
55952         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
55953         * modules/fseeko (Files): Distribute fseeko.c.
55954         * modules/ftello (Files): Distribute ftello.c.
55955         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
55956         mode.
55957         * lib/ftello.c (rpl_ftello): New file.
55958         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
55959         fseeko, ftello.
55960         (gl_STDIN_LARGE_OFFSET): New macro.
55961         * modules/stdio (Makefile.am): Perform the replacement.
55962         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
55963
55964 2007-05-23  Bruno Haible  <bruno@clisp.org>
55965
55966         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
55967         GNULIB_POSIXCHECK is defined.
55968
55969 2007-05-21  Bruno Haible  <bruno@clisp.org>
55970
55971         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
55972         Check also the output for NaN arguments. When cross-compiling, guess
55973         no on IRIX.
55974         * lib/vasnprintf.c: Update comments.
55975         * tests/test-vasnprintf-posix.c (strisnan): New function.
55976         (test_function): Use it.
55977         * tests/test-vasprintf-posix.c (strisnan): New function.
55978         (test_function): Use it.
55979         * tests/test-snprintf-posix.h (strisnan): New function.
55980         (test_function): Use it.
55981         * tests/test-sprintf-posix.h (strisnan): New function.
55982         (test_function): Use it.
55983         Reported by Eric Blake.
55984
55985 2007-05-20  Bruno Haible  <bruno@clisp.org>
55986
55987         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
55988         numbers that fails on BeOS.
55989         * doc/functions/frexpl.texi: Update.
55990
55991 2007-05-20  Jim Meyering  <jim@meyering.net>
55992
55993         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
55994         forced upon us by glibc-2.6.
55995
55996 2007-05-20  Bruno Haible  <bruno@clisp.org>
55997
55998         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
55999         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
56000         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
56001         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
56002         NEED_PRINTF_INFINITE.
56003         (is_infinitel): New function.
56004         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
56005         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
56006         gl_PREREQ_VASNPRINTF_INFINITE.
56007         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
56008         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56009         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
56010         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
56011         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
56012         gl_PREREQ_VASNPRINTF_INFINITE.
56013         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56014         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56015         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56016         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56017         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56018         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56019         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56020         * doc/functions/fprintf.texi: Update.
56021         * doc/functions/printf.texi: Update.
56022         * doc/functions/snprintf.texi: Update.
56023         * doc/functions/sprintf.texi: Update.
56024         * doc/functions/vfprintf.texi: Update.
56025         * doc/functions/vprintf.texi: Update.
56026         * doc/functions/vsnprintf.texi: Update.
56027         * doc/functions/vsprintf.texi: Update.
56028
56029 2007-05-20  Bruno Haible  <bruno@clisp.org>
56030
56031         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
56032         was not found in libc.
56033         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
56034
56035 2007-05-20  Bruno Haible  <bruno@clisp.org>
56036
56037         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
56038         printed as "-nan" instead of "nan".
56039         * tests/test-vasprintf-posix.c (test_function): Likewise.
56040         * tests/test-snprintf-posix.h (test_function): Likewise.
56041         * tests/test-sprintf-posix.h (test_function): Likewise.
56042         Needed for HP-UX 11.
56043
56044 2007-05-20  Jim Meyering  <jim@meyering.net>
56045
56046         Fix buggy test for the fchownat-deref bug.
56047         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
56048         symlink required for the run-test.  Without it, this test would
56049         always declare that fchownat doesn't work, and client code would
56050         unnecessarily use the replacement function with fixed libc.
56051         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
56052         Reported by Greg Schafer.
56053
56054 2007-05-19  Bruno Haible  <bruno@clisp.org>
56055
56056         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
56057         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
56058         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
56059         Needed for IRIX 6.5 and Solaris 2.5.1.
56060
56061 2007-05-19  Bruno Haible  <bruno@clisp.org>
56062
56063         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
56064         (test_function): Skip tests involving -0.0 on platforms where
56065         -0.0 = 0.0.
56066         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
56067         (test_function): Skip tests involving -0.0 on platforms where
56068         -0.0 = 0.0.
56069         * tests/test-snprintf-posix.h (have_minus_zero): New function.
56070         (test_function): Skip tests involving -0.0 on platforms where
56071         -0.0 = 0.0.
56072         * tests/test-sprintf-posix.h (have_minus_zero): New function.
56073         (test_function): Skip tests involving -0.0 on platforms where
56074         -0.0 = 0.0.
56075         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
56076         tests.
56077         * tests/test-printf-posix.h (test_function): Likewise.
56078         * tests/test-printf-posix.output: Remove all -0.0 related results.
56079         Needed for IRIX 6.5.
56080
56081 2007-05-19  Bruno Haible  <bruno@clisp.org>
56082
56083         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
56084         printed as "nan0x7fffffff" instead of "nan".
56085         * tests/test-vasprintf-posix.c (test_function): Likewise.
56086         * tests/test-snprintf-posix.h (test_function): Likewise.
56087         * tests/test-sprintf-posix.h (test_function): Likewise.
56088         * tests/test-fprintf-posix.h (NaN): Remove macro.
56089         (test_function): Remove all NaN related tests.
56090         * tests/test-printf-posix.h (NaN): Remove macro.
56091         (test_function): Remove all NaN related tests.
56092         * tests/test-printf-posix.output: Remove all NaN related results.
56093         Needed for IRIX 6.5.
56094
56095 2007-05-19  Bruno Haible  <bruno@clisp.org>
56096
56097         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
56098         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
56099
56100 2007-05-19  Bruno Haible  <bruno@clisp.org>
56101
56102         * lib/float_.h: New file.
56103         * m4/float_h.m4: New file.
56104         * modules/float: New file.
56105         * modules/isnanl (Dependencies): Add float.
56106         * modules/isnanl-nolibm (Dependencies): Likewise.
56107         * modules/mathl (Dependencies): Likewise.
56108         * modules/printf-frexpl (Dependencies): Likewise.
56109         * modules/signbit (Dependencies): Likewise.
56110         * modules/vasnprintf (Dependencies): Likewise.
56111         * doc/headers/float.texi: Update.
56112
56113 2007-05-19  Jim Meyering  <jim@meyering.net>
56114
56115         * lib/utimens.c (gl_futimens): Rename from futimens,
56116         now that glibc-2.6 declares futimens.
56117         * lib/utimens.h: Likewise.
56118
56119 2007-05-19  Bruno Haible  <bruno@clisp.org>
56120
56121         Avoid test failures on mingw.
56122         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
56123         * tests/test-printf-posix.sh: Likewise.
56124         * tests/test-vfprintf-posix.sh: Likewise.
56125         * tests/test-vprintf-posix.sh: Likewise.
56126
56127 2007-05-19  Bruno Haible  <bruno@clisp.org>
56128
56129         Fix *printf result for NaN, Inf, -0.0 on mingw.
56130         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
56131         * lib/vasnprintf.c: Include math.h and isnan.h.
56132         (is_infinite_or_zero): New function.
56133         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
56134         values in the %f, %F, %e, %E, %g, %G directives.
56135         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
56136         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56137         gl_PRINTF_INFINITE and test its result. Invoke
56138         gl_PREREQ_VASNPRINTF_INFINITE.
56139         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56140         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56141         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56142         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56143         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56144         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56145         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56146         * doc/functions/fprintf.texi: Update.
56147         * doc/functions/printf.texi: Update.
56148         * doc/functions/snprintf.texi: Update.
56149         * doc/functions/sprintf.texi: Update.
56150         * doc/functions/vfprintf.texi: Update.
56151         * doc/functions/vprintf.texi: Update.
56152         * doc/functions/vsnprintf.texi: Update.
56153         * doc/functions/vsprintf.texi: Update.
56154
56155 2007-05-19  Bruno Haible  <bruno@clisp.org>
56156
56157         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
56158         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
56159         Instead of multiplying with 10^k, set extra_zeroes to k.
56160         (scale10_round_long_double): Remove function.
56161
56162 2007-05-18  Bruno Haible  <bruno@clisp.org>
56163
56164         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
56165         introduced on 2007-05-06.
56166
56167 2007-05-18  Bruno Haible  <bruno@clisp.org>
56168
56169         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
56170         %g directives.
56171         * tests/test-vasprintf-posix.c (test_function): Likewise.
56172         * tests/test-snprintf-posix.h (test_function): Likewise.
56173         * tests/test-sprintf-posix.h (test_function): Likewise.
56174
56175 2007-05-18  Bruno Haible  <bruno@clisp.org>
56176
56177         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
56178         (strmatch): New function.
56179         (test_function): Test the %f directive on numbers of various exponents.
56180         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
56181         (strmatch): New function.
56182         (test_function): Test the %f directive on numbers of various exponents.
56183         * tests/test-snprintf-posix.h (strmatch): New function.
56184         (test_function): Test the %f directive on numbers of various exponents.
56185         * tests/test-sprintf-posix.h (strmatch): New function.
56186         (test_function): Test the %f directive on numbers of various exponents.
56187         * tests/test-snprintf-posix.c (SIZEOF): New macro.
56188         * tests/test-sprintf-posix.c (SIZEOF): New macro.
56189         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
56190         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
56191
56192 2007-05-18  Bruno Haible  <bruno@clisp.org>
56193
56194         Add support for 'long double' number output.
56195         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
56196         * lib/vasnprintf.c: Include math.h and float+.h.
56197         (mp_limb_t): New type.
56198         (GMP_LIMB_BITS): New macro.
56199         (mp_twolimb_t): New type.
56200         (GMP_TWOLIMB_BITS): New macro.
56201         (mpn_t): New type.
56202         (multiply, divide, convert_to_decimal, decode_long_double,
56203         scale10_round_long_double, scale10_round_decimal_long_double,
56204         floorlog10l): New functions.
56205         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
56206         for the %f, %F, %e, %E, %g, %G directives.
56207         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
56208         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56209         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
56210         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
56211         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56212         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56213         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56214         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56215         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56216         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56217         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56218         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
56219         * modules/snprintf-posix (Depends-on): Likewise.
56220         * modules/sprintf-posix (Depends-on): Likewise.
56221         * modules/vasnprintf-posix (Depends-on): Likewise.
56222         * modules/vasprintf-posix (Depends-on): Likewise.
56223         * modules/vfprintf-posix (Depends-on): Likewise.
56224         * modules/vsnprintf-posix (Depends-on): Likewise.
56225         * modules/vsprintf-posix (Depends-on): Likewise.
56226         * modules/vasnprintf (Files): Add lib/float+.h.
56227         * doc/functions/fprintf.texi: Update.
56228         * doc/functions/printf.texi: Update.
56229         * doc/functions/snprintf.texi: Update.
56230         * doc/functions/sprintf.texi: Update.
56231         * doc/functions/vfprintf.texi: Update.
56232         * doc/functions/vprintf.texi: Update.
56233         * doc/functions/vsnprintf.texi: Update.
56234         * doc/functions/vsprintf.texi: Update.
56235
56236 2007-05-18  Bruno Haible  <bruno@clisp.org>
56237
56238         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
56239
56240 2007-05-18  Bruno Haible  <bruno@clisp.org>
56241
56242         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
56243         for printing 64-bit integers. Needed for mingw.
56244
56245 2007-05-18  Bruno Haible  <bruno@clisp.org>
56246
56247         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
56248         gl_FUNC_FREXPL_WORKS.
56249         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
56250
56251 2007-05-18  Bruno Haible  <bruno@clisp.org>
56252
56253         * modules/frexpl-nolibm-tests: New file.
56254
56255         * modules/frexpl-nolibm: New file.
56256         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
56257
56258 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56259
56260         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
56261         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56262         GCC 4.2, which otherwise issues a lot of warnings.
56263         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
56264         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
56265         Likewise.
56266         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
56267         * modules/iconv_open (iconv.h): Likewise.
56268         * modules/locale (locale.h): Likewise.
56269         * modules/netinet_in (netinet/in.h): Likewise.
56270         * modules/sys_select (sys_select.h): Likewise.
56271         * modules/sys_socket (sys/socket.h): Likewise.
56272         * modules/sys_stat (sys/stat.h): Likewise.
56273         * modules/sysexits (sysexits.h): Likewise.
56274         * modules/unistd (unistd.h): Likewise.
56275
56276 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56277
56278         * modules/closein-tests (Makefile.am): Distribute
56279         `test-closein.sh'.
56280
56281 2007-05-17  Bruno Haible  <bruno@clisp.org>
56282
56283         * tests/test-printf-posix.output: Renamed from
56284         tests/test-fprintf-posix.out.
56285         * modules/fprintf-posix-tests: Update.
56286         * modules/printf-posix-tests: Update.
56287         * modules/vfprintf-posix-tests: Update.
56288         * modules/vprintf-posix-tests: Update.
56289         * tests/test-fprintf-posix.sh: Update.
56290         * tests/test-printf-posix.sh: Update.
56291         * tests/test-vfprintf-posix.sh: Update.
56292         * tests/test-vprintf-posix.sh: Update.
56293         Reported by Ralf Wildenhues.
56294
56295 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56296
56297         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
56298         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56299         GCC 4.2, which otherwise issues a lot of warnings.
56300         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
56301         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
56302         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
56303         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
56304         it should no longer be needed.
56305         * lib/string_.h: Likewise.
56306         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
56307         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
56308         * modules/inttypes (inttypes.h): Likewise.
56309         * modules/math (math.h): Likewise.
56310         * modules/search (search.h): Likewise.
56311         * modules/signal (signal.h): Likewise.
56312         * modules/stdint (stdint.h): Likewise.
56313         * modules/stdio (stdio.h): Likewise.
56314         * modules/stdlib (stdlib.h): Likewise.
56315         * modules/string (string.h): Likewise.
56316         * modules/sys_time (sys/time.h): Likewise.
56317         * modules/time (time.h): Likewise.
56318         * modules/wchar (wchar.h): Likewise.
56319         * modules/wctype (wtype.h): Likewise.
56320
56321 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56322
56323         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
56324
56325 2007-05-13  Bruno Haible  <bruno@clisp.org>
56326
56327         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
56328         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56329         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
56330         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56331         (gl_PREREQ_STRTOK_R): Don't require it here.
56332
56333 2007-05-13  Bruno Haible  <bruno@clisp.org>
56334
56335         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
56336         when used in C++ mode.
56337
56338 2007-05-12  Bruno Haible  <bruno@clisp.org>
56339
56340         * lib/linebuffer.h: Tweak doc.
56341         * lib/linebuffer.c: Likewise.
56342
56343 2007-05-12  James Youngman  <jay@gnu.org>
56344
56345         * lib/linebuffer.c (readlinebuffer_delim): New function,
56346         like readlinebuffer, but use a caller-specified delimiter.
56347         (readlinebuffer): Just call readlinebuffer_delim with '\n'
56348         as the delimiter.
56349         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
56350
56351 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56352
56353         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
56354         * modules/openat (Files): Remove openat-die.c.
56355         (Depends-on): Add openat-die.
56356         * modules/openat-die: New module.
56357
56358 2007-05-06  Bruno Haible  <bruno@clisp.org>
56359
56360         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
56361         Update with info about Cygwin.
56362         * doc/functions/fprintf.texi: Update.
56363         * doc/functions/printf.texi: Update.
56364         * doc/functions/snprintf.texi: Update.
56365         * doc/functions/sprintf.texi: Update.
56366         * doc/functions/vfprintf.texi: Update.
56367         * doc/functions/vprintf.texi: Update.
56368         * doc/functions/vsnprintf.texi: Update.
56369         * doc/functions/vsprintf.texi: Update.
56370         Reported by Eric Blake.
56371
56372 2007-05-06  Bruno Haible  <bruno@clisp.org>
56373
56374         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
56375         padding ourselves for the floating-point directives.
56376         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
56377         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
56378         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56379         gl_PRINTF_FLAG_ZERO and test its result. Invoke
56380         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
56381         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56382         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56383         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56384         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56385         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56386         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56387         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56388         * tests/test-snprintf-posix.h (test_function): Also check the width
56389         and some flags in the %f directive.
56390         * tests/test-sprintf-posix.h (test_function): Likewise.
56391         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56392         * tests/test-vasprintf-posix.c (test_function): Likewise.
56393         * doc/functions/fprintf.texi: Update.
56394         * doc/functions/printf.texi: Update.
56395         * doc/functions/snprintf.texi: Update.
56396         * doc/functions/sprintf.texi: Update.
56397         * doc/functions/vfprintf.texi: Update.
56398         * doc/functions/vprintf.texi: Update.
56399         * doc/functions/vsnprintf.texi: Update.
56400         * doc/functions/vsprintf.texi: Update.
56401
56402 2007-05-06  Bruno Haible  <bruno@clisp.org>
56403
56404         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
56405         pass the ' flag character to sprintf or snprintf.
56406         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
56407         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
56408         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56409         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
56410         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
56411         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56412         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56413         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56414         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56415         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56416         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56417         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56418         * tests/test-snprintf-posix.h (test_function): Also check the grouping
56419         flag.
56420         * tests/test-sprintf-posix.h (test_function): Likewise.
56421         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56422         * tests/test-vasprintf-posix.c (test_function): Likewise.
56423         * doc/functions/fprintf.texi: Update.
56424         * doc/functions/printf.texi: Update.
56425         * doc/functions/snprintf.texi: Update.
56426         * doc/functions/sprintf.texi: Update.
56427         * doc/functions/vfprintf.texi: Update.
56428         * doc/functions/vprintf.texi: Update.
56429         * doc/functions/vsnprintf.texi: Update.
56430         * doc/functions/vsprintf.texi: Update.
56431
56432 2007-05-01  Bruno Haible  <bruno@clisp.org>
56433
56434         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
56435
56436 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
56437
56438         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
56439         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
56440
56441 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56442
56443         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
56444         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
56445         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
56446
56447 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
56448
56449         * lib/argp-help.c (struct hol_entry): New member `ord'.
56450         (HOL_ENTRY_PTRCMP): Use ord for comparison
56451         (hol_sort): Initialize ord.
56452
56453 2007-05-01  Bruno Haible  <bruno@clisp.org>
56454
56455         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
56456         Reported by Eric Blake.
56457         * doc/gnulib.texi (Function Substitutes): Update.
56458
56459 2007-05-01  Bruno Haible  <bruno@clisp.org>
56460
56461         * doc/functions.texi: Remove file, now redundant through
56462         doc/functions/*.texi.
56463
56464 2007-05-01  Bruno Haible  <bruno@clisp.org>
56465
56466         * modules/argp (Depends-on): Add sleep.
56467
56468 2007-05-01  Bruno Haible  <bruno@clisp.org>
56469
56470         * modules/sleep-tests: New file.
56471         * tests/test-sleep.c: New file.
56472
56473         * modules/sleep: New file.
56474         * lib/sleep.c: New file.
56475         * m4/sleep.m4: New file.
56476         * lib/unistd_.h (sleep): New declaration.
56477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
56478         HAVE_SLEEP.
56479         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
56480         * doc/functions/sleep.texi: Document the sleep module.
56481
56482 2007-05-01  Bruno Haible  <bruno@clisp.org>
56483
56484         * lib/sigprocmask.h: Remove file.
56485         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
56486         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
56487         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
56488         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
56489         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
56490         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
56491         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
56492         HAVE_SIGSET_T as a shell variable.
56493         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
56494         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
56495         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
56496         (Depends-on): Add signal. Remove verify.
56497         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
56498         (Include): Mention <signal.h> instead of sigprocmask.h.
56499         * NEWS: Mention the change.
56500         * lib/fatal-signal.c: Don't include sigprocmask.h.
56501
56502 2007-05-01  Bruno Haible  <bruno@clisp.org>
56503
56504         * modules/signal: New file.
56505         * lib/signal_.h: New file.
56506         * m4/signal_h.m4: New file.
56507
56508 2007-05-01  Bruno Haible  <bruno@clisp.org>
56509
56510         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
56511         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
56512         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
56513         HAVE_WCTYPE_CTMP_BUG into wctype.h.
56514
56515 2007-05-01  Bruno Haible  <bruno@clisp.org>
56516
56517         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
56518         configure time.
56519         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
56520         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
56521         * modules/sys_stat (Makefile.am): Substitute their values into
56522         sys/stat.h.
56523
56524 2007-05-01  Bruno Haible  <bruno@clisp.org>
56525
56526         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
56527         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
56528         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
56529
56530 2007-05-01  Bruno Haible  <bruno@clisp.org>
56531
56532         * doc/header/assert.texi: Undo last change: don't mention the gnulib
56533         'assert' module here.
56534
56535 2007-05-01  Bruno Haible  <bruno@clisp.org>
56536
56537         * doc/functions/*.texi: New files.
56538         * doc/functions/google-ranking.txt: New file.
56539         * doc/gnulib.texi (Function Substitutes): New chapter.
56540         (ctime, inet_ntoa): Remove sections.
56541         * doc/ctime.texi: Remove file.
56542         * doc/inet_ntoa.texi: Remove file.
56543         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
56544         dependencies.
56545         (%.info): New rule, specifying a --reference-limit.
56546
56547 2007-05-01  Bruno Haible  <bruno@clisp.org>
56548
56549         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
56550
56551 2007-05-01  Bruno Haible  <bruno@clisp.org>
56552
56553         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
56554         the portability of 'mkdir' to mingw systems.
56555
56556 2007-05-01  Bruno Haible  <bruno@clisp.org>
56557
56558         * doc/headers/google-ranking.txt: New file.
56559
56560 2007-04-30  Eric Blake  <ebb9@byu.net>
56561
56562         Prefer fseeko to fseek.
56563         * modules/getpass (Depends-on): Add fseeko.
56564         * lib/getpass.c (getpass): Use fseeko, not fseek.
56565
56566 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
56567
56568         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
56569         assumes the sorting is stable, while most qsort implementations
56570         are not.  Use argument addresses to ensure they never compare as
56571         equal.
56572
56573         * tests/test-argp-2.sh (usage-indent test): Fix output
56574         (func_compare): Restore diff options
56575         * tests/test-argp.c: Restore #include "progname.h"
56576
56577 2007-04-29  Bruno Haible  <bruno@clisp.org>
56578
56579         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
56580         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56581         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
56582         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56583         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
56584         (configure.ac): Define CHECK_SNPRINTF_POSIX.
56585         (TESTS, check_PROGRAMS): Add test-snprintf.
56586         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
56587         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
56588         (TESTS, check_PROGRAMS): Add test-vsnprintf.
56589         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
56590         assertions that fail on HP-UX, OSF/1, or IRIX.
56591         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
56592
56593 2007-04-29  Bruno Haible  <bruno@clisp.org>
56594
56595         * MODULES.html.sh (posix_functions): Remove 'contents'.
56596
56597 2007-04-29  Karl Berry  <karl@gnu.org>
56598
56599         * config/srclist.txt (gendocs_template_min): new entry.
56600
56601 2007-04-29  Bruno Haible  <bruno@clisp.org>
56602
56603         Work around fpurge bug on BSD systems.
56604         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
56605         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
56606         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
56607         fpurge to rpl_fpurge if the system already has this function.
56608         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
56609         the case where the system already has this function. Correct invariants
56610         on BSD systems.
56611         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
56612         BSD systems.
56613
56614 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56615
56616         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
56617         proposed by Sven Verdoolaege.
56618
56619         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
56620         options.
56621         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
56622         (usage and help tests): Update
56623
56624 2007-04-29  Bruno Haible  <bruno@clisp.org>
56625
56626         * tests/test-fflush.c (main): Use a file of size 17, not 10.
56627         Print more information in case of failure. Disable a test on BeOS.
56628
56629 2007-04-29  Bruno Haible  <bruno@clisp.org>
56630
56631         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
56632         This helps debugging on systems on which no gdb is available.
56633
56634 2007-04-29  Bruno Haible  <bruno@clisp.org>
56635
56636         * lib/freading.h: Improve comments.
56637         * lib/fwriting.h: Likewise.
56638         * tests/test-freading.c (main): Don't check freading immediately after
56639         repositioning. Needed for glibc.
56640
56641 2007-04-29  Bruno Haible  <bruno@clisp.org>
56642
56643         * lib/freading.c (freading): Trivial simplification.
56644
56645 2007-04-28  Bruno Haible  <bruno@clisp.org>
56646
56647         * tests/test-fwriting.c (main): Also test the interaction between
56648         fflush and fwriting.
56649         * modules/fwriting-tests (Depends-on): Add fflush.
56650
56651         * tests/test-freading.c (main): Also test the interaction between
56652         fflush and freading.
56653         * modules/freading-tests (Depends-on): Add fflush.
56654
56655 2007-04-28  Bruno Haible  <bruno@clisp.org>
56656
56657         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
56658         fseeko and ftello.
56659         Suggested by Eric Blake.
56660
56661 2007-04-28  Jim Meyering  <jim@meyering.net>
56662
56663         Avoid false-negative in gl_STDINT_H's C99 conformance test.
56664         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
56665         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
56666
56667 2007-04-27  Eric Blake  <ebb9@byu.net>
56668
56669         * doc/headers/assert.texi (assert.h): Document assert module use.
56670
56671 2007-04-27  Bruno Haible  <bruno@clisp.org>
56672
56673         * doc/headers/*.texi: New files.
56674         * doc/gnulib.texi (Header File Substitutes): New chapter.
56675         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
56676         dependencies.
56677         (standards.info ,standards.html, standards.dvi): Update dependencies.
56678         (mostlyclean, clean): New targets.
56679
56680 2007-04-27  Bruno Haible  <bruno@clisp.org>
56681
56682         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
56683         * modules/sysexits (Files, Makefile.am): Update.
56684
56685         * lib/sys_socket_.h: Renamed from lib/socket_.h.
56686         * modules/sys_socket (Files, Makefile.am): Update.
56687
56688         * lib/sys_stat_.h: Renamed from lib/stat_.h.
56689         * modules/sys_stat (Files, Makefile.am): Update.
56690
56691 2007-04-27  Eric Blake  <ebb9@byu.net>
56692
56693         * lib/freading.h: Improve comments.
56694         * lib/fwriting.h: Likewise.
56695         * lib/fflush.c: Likewise.
56696
56697         Fix closein for mingw.
56698         * modules/closein-tests: Add tests for closein.
56699         * tests/test-closein.c: New file.
56700         * tests/test-closein.sh: Likewise.
56701         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
56702         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
56703
56704 2007-04-27  Bruno Haible  <bruno@clisp.org>
56705
56706         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
56707         version is < 6.
56708         * lib/math_.h [__DECC]: Likewise.
56709         * lib/stdio_.h [__DECC]: Likewise.
56710         * lib/stdlib_.h [__DECC]: Likewise.
56711         * lib/string_.h [__DECC]: Likewise.
56712         * lib/time_.h [__DECC]: Likewise.
56713         * lib/wchar_.h [__DECC]: Likewise.
56714         * lib/wctype_.h [__DECC]: Likewise.
56715
56716 2007-04-27  Bruno Haible  <bruno@clisp.org>
56717
56718         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
56719
56720 2007-04-27  Bruno Haible  <bruno@clisp.org>
56721
56722         * lib/fflush.c: Add comments.
56723         * modules/fpurge-tests (Depends-on): Add fflush.
56724         * modules/freadable-tests (Depends-on): Likewise.
56725         * modules/fwritable-tests (Depends-on): Likewise.
56726
56727 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
56728
56729         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
56730         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
56731         Report by Bruno Haible <bruno@clisp.org>.
56732
56733 2007-04-26  Eric Blake  <ebb9@byu.net>
56734
56735         Fix fflush on mingw.
56736         * modules/fflush (Depends-on): Add freading.
56737         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
56738         but unread data.
56739
56740 2007-04-26  Eric Blake  <ebb9@byu.net>
56741         and Bruno Haible  <bruno@clisp.org>
56742
56743         Implement freading and fwriting.
56744         * lib/freading.c: New file.
56745         * lib/freading.h: Likewise.
56746         * m4/freading.m4: Likewise.
56747         * modules/freading: Likewise.
56748         * modules/freading-tests: Likewise.
56749         * tests/test-freading.c: Likewise.
56750         * lib/fwriting.c: New file.
56751         * lib/fwriting.h: Likewise.
56752         * m4/fwriting.m4: Likewise.
56753         * modules/fwriting: Likewise.
56754         * modules/fwriting-tests: Likewise.
56755         * tests/test-fwriting.c: Likewise.
56756         * MODULES.html.sh (File stream based Input/Output): Mention them.
56757
56758 2007-04-26  Bruno Haible  <bruno@clisp.org>
56759
56760         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
56761         'long' when we assume it.
56762         Suggested by Eric Blake.
56763
56764 2007-04-26  Bruno Haible  <bruno@clisp.org>
56765
56766         Ensure fseeko, ftello are declared on glibc systems.
56767         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
56768         * modules/fseeko (configure.ac-early): Likewise.
56769         * modules/ftello (configure.ac-early): Likewise.
56770         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
56771         AC_FUNC_FSEEKO for this.
56772         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
56773         (gl_CHECK_FSEEKO): Remove macro.
56774
56775 2007-04-26  Bruno Haible  <bruno@clisp.org>
56776
56777         * tests/test-fflush.c (main): Also check the ftell result after
56778         fflush and fseek/fseeko.
56779         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
56780         file descriptor position cache in the stream.
56781         * lib/fseeko.c (rpl_fseeko): Likewise.
56782
56783 2007-04-26  Bruno Haible  <bruno@clisp.org>
56784
56785         * modules/fflush-tests (Depends-on): Add fseeko.
56786
56787 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
56788             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56789
56790         * lib/argz_.h: ensure error_t definition is obtained in same
56791         mechanism system argz.h would have.
56792         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
56793         argz facilities are known bad.  Err on the side of caution if
56794         cross-compiling.
56795
56796 2007-04-25  Eric Blake  <ebb9@byu.net>
56797
56798         * lib/fpurge.c (includes): Use stdlib.h for free.
56799         * tests/test-fflush.c (main): Also test fflush-fseeko.
56800
56801 2007-04-25  Bruno Haible  <bruno@clisp.org>
56802
56803         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
56804         * lib/fseeko.c: New file.
56805         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
56806         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
56807         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
56808         gl_FUNC_FSEEKO.
56809         (gl_FUNC_FSEEKO): Invoke it.
56810         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
56811         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
56812         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
56813
56814 2007-04-25  Bruno Haible  <bruno@clisp.org>
56815
56816         * modules/fflush (Depends-on): Add ftello.
56817
56818 2007-04-25  Bruno Haible  <bruno@clisp.org>
56819
56820         * modules/ftello-tests: New file.
56821         * tests/test-ftello.c: New file.
56822
56823         * modules/ftello: New file.
56824         * m4/ftello.m4: New file.
56825         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
56826         HAVE_FTELLO.
56827         * lib/stdio_.h (ftello): New declaration.
56828         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
56829         HAVE_FTELLO.
56830
56831 2007-04-25  Bruno Haible  <bruno@clisp.org>
56832
56833         * modules/fseeko-tests: New file.
56834         * tests/test-fseeko.c: New file.
56835
56836         * modules/fseeko: New file.
56837         * m4/fseeko.m4: New file.
56838         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
56839         HAVE_FSEEKO.
56840         * lib/stdio_.h (fseeko): New declaration.
56841         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
56842         HAVE_FSEEKO.
56843
56844 2007-04-25  Bruno Haible  <bruno@clisp.org>
56845
56846         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
56847
56848 2007-04-25  Bruno Haible  <bruno@clisp.org>
56849
56850         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
56851         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
56852         * tests/test-unistd.c: Likewise.
56853         * tests/test-fcntl.c: Likewise.
56854
56855 2007-04-23  Eric Blake  <ebb9@byu.net>
56856
56857         * lib/fflush.c: Fix missing include.
56858         Reported by Bruno Haible.
56859
56860 2007-04-23  Bruno Haible  <bruno@clisp.org>
56861
56862         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
56863         Reported by Eric Blake.
56864
56865 2007-04-23  Bruno Haible  <bruno@clisp.org>
56866
56867         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
56868
56869 2007-04-23  Bruno Haible  <bruno@clisp.org>
56870
56871         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
56872
56873 2007-04-23  Bruno Haible  <bruno@clisp.org>
56874
56875         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
56876         Needed on HP-UX 11.
56877
56878 2007-04-16  Eric Blake  <ebb9@byu.net>
56879
56880         Make fflush rely on fpurge.
56881         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
56882         open coding all variants.
56883         * modules/fflush (Depends-on): Add fpurge and unistd.
56884         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
56885         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
56886
56887         Fix --with-tests compilation on cygwin.
56888         * modules/argmatch-tests (Makefile.am): List gnulib library first
56889         in LDADD.
56890         * modules/argp-tests (Makefile.am): Likewise.
56891         * modules/array-list-tests (Makefile.am): Likewise.
56892         * modules/array-oset-tests (Makefile.am): Likewise.
56893         * modules/avltree-list-tests (Makefile.am): Likewise.
56894         * modules/avltree-oset-tests (Makefile.am): Likewise.
56895         * modules/avltreehash-list-tests (Makefile.am): Likewise.
56896         * modules/carray-list-tests (Makefile.am): Likewise.
56897         * modules/dirname-tests (Makefile.am): Likewise.
56898         * modules/frexp-tests (Makefile.am): Likewise.
56899         * modules/isnanl-tests (Makefile.am): Likewise.
56900         * modules/linked-list-tests (Makefile.am): Likewise.
56901         * modules/linkedhash-list-tests (Makefile.am): Likewise.
56902         * modules/lock-tests (Makefile.am): Likewise.
56903         * modules/rbtree-list-tests (Makefile.am): Likewise.
56904         * modules/rbtree-oset-tests (Makefile.am): Likewise.
56905         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
56906         * modules/tls-tests (Makefile.am): Likewise.
56907         * modules/tsearch-tests (Makefile.am): Likewise.
56908         * modules/xvasprintf-tests (Makefile.am): Likewise.
56909
56910         Fix fpurge for cygwin.
56911         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
56912         value.
56913         * modules/fpurge-tests (Depends-on): Clean up trash.
56914
56915 2007-04-16  Simon Josefsson  <simon@josefsson.org>
56916
56917         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
56918
56919         * m4/autobuild.m4: Re-indent.
56920
56921 2007-04-13  Bruno Haible  <bruno@clisp.org>
56922
56923         * modules/fpurge-tests: New file.
56924         * tests/test-fpurge.c: New file.
56925
56926         * modules/fpurge: New file.
56927         * lib/fpurge.h: New file.
56928         * lib/fpurge.c: New file.
56929         * m4/fpurge.m4: New file.
56930
56931 2007-04-13  Bruno Haible  <bruno@clisp.org>
56932
56933         * modules/fbufmode-tests: New file.
56934         * tests/test-fbufmode.c: New file.
56935
56936         * modules/fbufmode: New file.
56937         * lib/fbufmode.h: New file.
56938         * lib/fbufmode.c: New file.
56939         * m4/fbufmode.m4: New file.
56940
56941 2007-04-13  Bruno Haible  <bruno@clisp.org>
56942
56943         * modules/fwritable-tests: New file.
56944         * tests/test-fwritable.c: New file.
56945
56946         * modules/fwritable: New file.
56947         * lib/fwritable.h: New file.
56948         * lib/fwritable.c: New file.
56949         * m4/fwritable.m4: New file.
56950
56951 2007-04-13  Bruno Haible  <bruno@clisp.org>
56952
56953         * modules/freadable-tests: New file.
56954         * tests/test-freadable.c: New file.
56955
56956         * modules/freadable: New file.
56957         * lib/freadable.h: New file.
56958         * lib/freadable.c: New file.
56959         * m4/freadable.m4: New file.
56960
56961 2007-04-13  Bruno Haible  <bruno@clisp.org>
56962
56963         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
56964         MOSTLYCLEANFILES.
56965
56966 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56967
56968         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
56969         gzip bootstrap.conf to avoid dragging in i18n machinery.
56970         (gnulib_tool_option): Use it.
56971
56972 2007-04-13  Bruno Haible  <bruno@clisp.org>
56973
56974         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
56975         %F directives.
56976         * tests/test-vasprintf-posix.c (test_function): Likewise.
56977         * tests/test-snprintf-posix.h (test_function): Likewise.
56978         * tests/test-sprintf-posix.h (test_function): Likewise.
56979         * tests/test-fprintf-posix.h (test_function): Likewise.
56980         * tests/test-printf-posix.h (test_function): Likewise.
56981         * tests/test-fprintf-posix.out: Likewise.
56982
56983 2007-04-13  Bruno Haible  <bruno@clisp.org>
56984
56985         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
56986         * modules/tls-tests (configure.ac): Likewise.
56987         Reported by Arto C. Nirkko <anirkko@insel.ch>.
56988
56989 2007-04-13  Bruno Haible  <bruno@clisp.org>
56990
56991         * lib/tls.c (glthread_tls_get): Fix return type.
56992         Patch by Arto C. Nirkko <anirkko@insel.ch>.
56993
56994 2007-04-12  Eric Blake  <ebb9@byu.net>
56995
56996         * modules/gettime (Depends-on): Remove gettime.
56997         Reported by Dmitry V. Levin.
56998
56999 2007-04-12  Bruno Haible  <bruno@clisp.org>
57000
57001         * modules/fflush (Include): Mention <stdio.h>.
57002         * modules/strtoimax (Include): Mention <inttypes.h>.
57003         * modules/strtoumax (Include): Likewise.
57004
57005 2007-04-12  Eric Blake  <ebb9@byu.net>
57006
57007         * .cvsignore: New file.
57008         * .gitignore: Likewise.
57009
57010 2007-04-12  Bruno Haible  <bruno@clisp.org>
57011
57012         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
57013         not before, since $(LDADD) often contains libgnu.a.
57014         * modules/striconv-tests (test_striconv_LDADD): Likewise.
57015         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
57016         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
57017         Needed on Cygwin.
57018
57019 2007-04-12  Eric Blake  <ebb9@byu.net>
57020
57021         Work around glibc's failure to flush stdin on fclose.
57022         * lib/closein.c (close_stdin): Flush stdin before closing.
57023
57024         Work around glibc's failure to reset seekable stdin on exit.
57025         * modules/closein: New module.
57026         * lib/closein.c: New file.
57027         * lib/closein.h: Likewise.
57028         * m4/closein.m4: Likewise.
57029         * MODULES.html.sh (File stream based Input/Output): Document it.
57030
57031 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57032
57033         * gnulib-tool: Rename generated 'autobuild' script to
57034         'do-autobuild' in --create-megatestdir output.
57035
57036         * doc/gnulib.texi (Build robot for gnulib): Fix.
57037
57038 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57039
57040         * modules/sysexits (Depends-on): Add absolute-header.
57041
57042 2007-04-12  Eric Blake  <ebb9@byu.net>
57043
57044         No need to preserve errno on success.
57045         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
57046         Reported by Bruno Haible.
57047
57048 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57049
57050         * MODULES.html.sh (Support for maintaining and releasing
57051         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
57052
57053 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57054
57055         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
57056
57057 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57058
57059         * modules/autobuild: New module.
57060
57061         * m4/autobuild.m4: New file.
57062
57063 2007-04-11  Bruno Haible  <bruno@clisp.org>
57064
57065         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
57066         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
57067         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
57068         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
57069         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57070         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57071         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57072         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57073         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57074         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57075         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
57076         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57077         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57078         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
57079         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57080         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57081         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
57082         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57083         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57084         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
57085         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57086         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57087         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
57088         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57089         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57090         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
57091         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57092         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57093         Reported by Eric Blake.
57094
57095 2007-04-11  Bruno Haible  <bruno@clisp.org>
57096
57097         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
57098
57099 2007-04-10  Bruno Haible  <bruno@clisp.org>
57100
57101         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
57102         for NaN and Infinity. Needed on FreeBSD 6.1.
57103         * tests/test-vasnprintf-posix.c (test_function): Undo last change
57104         regarding results for "%010a" of Infinity and NaN.
57105         * tests/test-vasprintf-posix.c (test_function): Likewise.
57106         * tests/test-snprintf-posix.h (test_function): Likewise.
57107         * tests/test-sprintf-posix.h (test_function): Likewise.
57108         * tests/test-fprintf-posix.h (test_function): Likewise.
57109         * tests/test-printf-posix.h (test_function): Likewise.
57110         * tests/test-fprintf-posix.out: Likewise.
57111
57112 2007-04-10  Bruno Haible  <bruno@clisp.org>
57113
57114         * modules/locale-tests: New file.
57115         * tests/test-locale.c: New file.
57116
57117         * modules/locale: New file.
57118         * lib/locale_.h: New file.
57119         * m4/locale_h.m4: New file.
57120
57121 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
57122             Bruno Haible  <bruno@clisp.org>
57123
57124         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
57125         be determined, test for availability of the copysignf, copysign,
57126         copysignl functions.
57127         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
57128         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
57129         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
57130
57131 2007-04-09  Eric Blake  <ebb9@byu.net>
57132
57133         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
57134         * modules/stdio (Makefile.am): Support fflush.
57135         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57136         * modules/fflush: New file.
57137         * lib/fflush.c: Likewise.
57138         * m4/fflush.m4: Likewise.
57139         * modules/fflush-tests: New test.
57140         * tests/test-fflush.c: Likewise.
57141         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
57142
57143 2007-04-06  Bruno Haible  <bruno@clisp.org>
57144
57145         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
57146         (VASNPRINTF): Use signbit for faster determination whether to print a
57147         minus sign.
57148         * modules/vasnprintf (Files): Remove lib/float+.h.
57149         * modules/fprintf-posix (Depends-on): Add signbit.
57150         * modules/snprintf-posix (Depends-on): Likewise.
57151         * modules/sprintf-posix (Depends-on): Likewise.
57152         * modules/vasnprintf-posix (Depends-on): Likewise.
57153         * modules/vasprintf-posix (Depends-on): Likewise.
57154         * modules/vfprintf-posix (Depends-on): Likewise.
57155         * modules/vsnprintf-posix (Depends-on): Likewise.
57156         * modules/vsprintf-posix (Depends-on): Likewise.
57157
57158 2007-04-06  Bruno Haible  <bruno@clisp.org>
57159
57160         * tests/test-frexp.c (main): Test also the sign bit of zero results.
57161         * tests/test-frexpl.c (main): Likewise.
57162         * tests/test-ldexpl.c (main): Likewise.
57163         * modules/frexp-tests (Depends-on): Add signbit.
57164         * modules/frexpl-tests (Depdends-on): Likewise.
57165         * modules/ldexpl-tests (Depdends-on): Likewise.
57166
57167 2007-04-06  Bruno Haible  <bruno@clisp.org>
57168
57169         * modules/signbit-tests: New file.
57170         * tests/test-signbit.c: New file.
57171
57172         * modules/signbit: New file.
57173         * lib/signbitf.c: New file.
57174         * lib/signbitd.c: New file.
57175         * lib/signbitl.c: New file.
57176         * m4/signbit.m4: New file.
57177         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
57178         (signbit): New macro.
57179         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
57180         REPLACE_SIGNBIT.
57181         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
57182         REPLACE_FREXPL into math.h.
57183
57184 2007-04-06  Bruno Haible  <bruno@clisp.org>
57185
57186         * modules/isnanf-nolibm-tests: New file.
57187         * tests/test-isnanf.c: New file.
57188
57189         * modules/isnanf-nolibm: New file.
57190         * lib/isnanf.h: New file.
57191         * lib/isnanf.c: New file.
57192         * lib/isnan.c: Consider the USE_FLOAT macro.
57193         * m4/isnanf.m4: New file.
57194
57195 2007-04-06  Bruno Haible  <bruno@clisp.org>
57196
57197         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
57198         (Link): New section.
57199
57200         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
57201
57202 2007-04-06  Bruno Haible  <bruno@clisp.org>
57203
57204         Assume the 'long double' type.
57205         * m4/longdouble.m4: Remove file.
57206         * config/srclist.txt: Don't mention longdouble.m4.
57207         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
57208         * lib/float+.h: Likewise.
57209         * lib/frexp.c: Likewise.
57210         * lib/printf-args.h: Likewise.
57211         * lib/printf-args.c: Likewise.
57212         * lib/printf-frexp.c: Likewise.
57213         * lib/printf-parse.c: Likewise.
57214         * lib/vasnprintf.c: Likewise.
57215         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
57216         * m4/intl.m4: Likewise.
57217         * m4/isnanl.m4: Likewise.
57218         * m4/printf.m4: Likewise.
57219         * m4/printf-frexpl.m4: Likewise.
57220         * m4/vasnprintf.m4: Likewise.
57221         * modules/allocsa (Files): Remove m4/longdouble.m4.
57222         * modules/gettext (Files): Likewise.
57223         * modules/relocatable-prog-wrapper (Files): Likewise.
57224         * modules/vasnprintf (Files): Likewise.
57225         * modules/isnanl (Files): Likewise.
57226         (Include): Simplify.
57227         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
57228         (Include): Simplify.
57229         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
57230         (Include): Simplify.
57231         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
57232         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57233         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
57234         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57235         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57236         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57237         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
57238         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57239         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57240         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57241         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
57242         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57243         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
57244         * tests/test-isnanl.c: Likewise.
57245         * tests/test-snprintf-posix.h: Likewise.
57246         * tests/test-sprintf-posix.h: Likewise.
57247         * tests/test-vasnprintf-posix.c: Likewise.
57248         * tests/test-vasnprintf-posix2.c: Likewise.
57249         * tests/test-vasprintf-posix.c: Likewise.
57250
57251 2007-04-06  Bruno Haible  <bruno@clisp.org>
57252
57253         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
57254         * lib/math_.h [__DECC]: Include the overridden include file through
57255         #include_next, outside the double-inclusion guard.
57256         * lib/stdio_.h [__DECC]: Likewise.
57257         * lib/stdlib_.h [__DECC]: Likewise.
57258         * lib/string_.h [__DECC]: Likewise.
57259         * lib/time_.h [__DECC]: Likewise.
57260         * lib/wchar_.h [__DECC]: Likewise.
57261         * lib/wctype_.h [__DECC]: Likewise.
57262         * lib/inttypes_.h [__DECC]: Likewise.
57263         Reported by Albert Chin <china@thewrittenword.com> in
57264         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
57265
57266 2007-04-04  Eric Blake  <ebb9@byu.net>
57267
57268         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
57269         1.5.x.
57270
57271 2007-04-04  Bruno Haible  <bruno@clisp.org>
57272
57273         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
57274         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
57275
57276 2007-04-04  Bruno Haible  <bruno@clisp.org>
57277
57278         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
57279         results for "%010a" of Infinity and NaN.
57280         * tests/test-vasprintf-posix.c (test_function): Likewise.
57281         * tests/test-snprintf-posix.h (test_function): Likewise.
57282         * tests/test-sprintf-posix.h (test_function): Likewise.
57283         * tests/test-fprintf-posix.h (test_function): Remove these tests.
57284         * tests/test-printf-posix.h (test_function): Likewise.
57285         * tests/test-fprintf-posix.out: Update.
57286         Needed for FreeBSD 6.1.
57287
57288 2007-04-04  Bruno Haible  <bruno@clisp.org>
57289
57290         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
57291         directly used by the gnulib modules nor by gnulib-tool.
57292
57293 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57294
57295         * DEPENDENCIES: Give overall description of version dependency
57296         desirability.  Use more-typical names for apps.
57297         Add shell, coreutils, diffutils, grep, tar, gzip.
57298
57299 2007-04-04  Simon Josefsson  <simon@josefsson.org>
57300
57301         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
57302
57303 2007-04-04  Karl Berry  <karl@gnu.org>
57304
57305         * MODULES.html.sh (func_module): missing '.
57306
57307 2007-04-03  Bruno Haible  <bruno@clisp.org>
57308
57309         * modules/argmatch-tests (Makefile.am): New variable
57310         test_argmatch_LDADD.
57311         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
57312         * modules/array-list-tests (Makefile.am): New variable
57313         test_array_list_LDADD.
57314         * modules/array-oset-tests (Makefile.am): New variable
57315         test_array_oset_LDADD.
57316         * modules/avltree-list-tests (Makefile.am): New variable
57317         test_avltree_list_LDADD.
57318         * modules/avltree-oset-tests (Makefile.am): New variable
57319         test_avltree_oset_LDADD.
57320         * modules/avltreehash-list-tests (Makefile.am): New variable
57321         test_avltreehash_list_LDADD.
57322         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
57323         test_canonicalize_lgpl_LDADD.
57324         * modules/carray-list-tests (Makefile.am): New variable
57325         test_carray_list_LDADD.
57326         * modules/dirname-tests (Makefile.am): New variable
57327         test_dirname_LDADD.
57328         * modules/linked-list-tests (Makefile.am): New variable
57329         test_linked_list_LDADD.
57330         * modules/linkedhash-list-tests (Makefile.am): New variable
57331         test_linkedhash_list_LDADD.
57332         * modules/rbtree-list-tests (Makefile.am): New variable
57333         test_rbtree_list_LDADD.
57334         * modules/rbtree-oset-tests (Makefile.am): New variable
57335         test_rbtree_oset_LDADD.
57336         * modules/rbtreehash-list-tests (Makefile.am): New variable
57337         test_rbtreehash_list_LDADD.
57338         * modules/xvasprintf-tests (Makefile.am): New variable
57339         test_xvasprintf_LDADD.
57340         Reported by Eric Blake.
57341
57342 2007-04-03  Eric Blake  <ebb9@byu.net>
57343
57344         * DEPENDENCIES: Weaken m4 requirements.
57345
57346 2007-04-03  Bruno Haible  <bruno@clisp.org>
57347
57348         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
57349         * modules/isnanl-tests (configure.ac): Likewise.
57350
57351 2007-04-03  Ben Pfaff  <blp@gnu.org>
57352
57353         * modules/iconv_open: Add $(srcdir)/ to source directory
57354         references in Makefile fragments that call gperf, to fix VPATH
57355         builds.
57356
57357 2007-04-03  Bruno Haible  <bruno@clisp.org>
57358
57359         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
57360         * lib/ldexpl.c: Undo last change.
57361
57362 2007-04-03  Bruno Haible  <bruno@clisp.org>
57363
57364         * modules/printf-frexpl (Depends-on): Undo last change.
57365         (Files): Add m4/ldexpl.m4.
57366
57367 2007-04-03  Bruno Haible  <bruno@clisp.org>
57368
57369         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
57370         * modules/isnanl (Link): New section.
57371
57372         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
57373         * modules/frexp (Link): New section.
57374
57375         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
57376         * modules/frexpl (Link): New section.
57377
57378         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
57379         * modules/ldexpl (Link): New section.
57380
57381 2007-04-03  Bruno Haible  <bruno@clisp.org>
57382
57383         * modules/TEMPLATE-EXTENDED: New file.
57384         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
57385
57386 2007-04-03  Bruno Haible  <bruno@clisp.org>
57387
57388         * DEPENDENCIES: New file.
57389         Suggested by Simon Josefsson.
57390
57391 2007-04-03  Bruno Haible  <bruno@clisp.org>
57392
57393         * doc/gnulib.texi: Escape @.
57394
57395 2007-04-03  James Youngman  <jay@gnu.org>
57396         and Paul Eggert  <eggert@cs.ucla.edu>
57397
57398         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
57399         birthtime on all systems that have birthtime, not just those which
57400         use st_birthtimensec rather than st_birthtim.  Putting zero in
57401         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
57402         that the birth time is not available for files on an NFS mount.
57403
57404 2007-04-03  Simon Josefsson  <simon@josefsson.org>
57405
57406         * modules/memxor: Move back from crypto/, suggested by Bruno.
57407         * modules/crypto/hmac-sha1: Fix memxor dependency.
57408
57409         * modules/crypto/gc: Moved from ../.
57410
57411 2007-04-02  Eric Blake  <ebb9@byu.net>
57412
57413         * lib/ldexpl.c (includes): Avoid libm.
57414
57415         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
57416
57417 2007-04-02  Bruno Haible  <bruno@clisp.org>
57418
57419         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
57420         on IRIX.
57421
57422 2007-04-02  Bruno Haible  <bruno@clisp.org>
57423
57424         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
57425         x86 or x86_64 platforms running MacOS X.
57426         Reported by Ryan Schmidt <@ryandesign.com>.
57427
57428 2007-04-02  Bruno Haible  <bruno@clisp.org>
57429
57430         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
57431         i386.
57432
57433 2007-04-01  Simon Josefsson  <simon@josefsson.org>
57434
57435         * modules/crypto/arcfour: Moved from ../.
57436         * modules/crypto/arcfour-tests: Moved from ../.
57437         * modules/crypto/arctwo: Moved from ../.
57438         * modules/crypto/arctwo-tests: Moved from ../.
57439         * modules/crypto/des: Moved from ../.
57440         * modules/crypto/des-tests: Moved from ../.
57441         * modules/crypto/gc-arcfour: Moved from ../.
57442         * modules/crypto/gc-arcfour-tests: Moved from ../.
57443         * modules/crypto/gc-arctwo: Moved from ../.
57444         * modules/crypto/gc-arctwo-tests: Moved from ../.
57445         * modules/crypto/gc-des: Moved from ../.
57446         * modules/crypto/gc-des-tests: Moved from ../.
57447         * modules/crypto/gc-hmac-md5: Moved from ../.
57448         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
57449         * modules/crypto/gc-hmac-sha1: Moved from ../.
57450         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
57451         * modules/crypto/gc-md2: Moved from ../.
57452         * modules/crypto/gc-md2-tests: Moved from ../.
57453         * modules/crypto/gc-md4: Moved from ../.
57454         * modules/crypto/gc-md4-tests: Moved from ../.
57455         * modules/crypto/gc-md5: Moved from ../.
57456         * modules/crypto/gc-md5-tests: Moved from ../.
57457         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
57458         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
57459         * modules/crypto/gc-random: Moved from ../.
57460         * modules/crypto/gc-rijndael: Moved from ../.
57461         * modules/crypto/gc-rijndael-tests: Moved from ../.
57462         * modules/crypto/gc-sha1: Moved from ../.
57463         * modules/crypto/gc-sha1-tests: Moved from ../.
57464         * modules/crypto/gc-tests: Moved from ../.
57465         * modules/crypto/hmac-md5: Moved from ../.
57466         * modules/crypto/hmac-md5-tests: Moved from ../.
57467         * modules/crypto/hmac-sha1: Moved from ../.
57468         * modules/crypto/hmac-sha1-tests: Moved from ../.
57469         * modules/crypto/md2: Moved from ../.
57470         * modules/crypto/md2-tests: Moved from ../.
57471         * modules/crypto/md4: Moved from ../.
57472         * modules/crypto/md4-tests: Moved from ../.
57473         * modules/crypto/md5: Moved from ../.
57474         * modules/crypto/md5-tests: Moved from ../.
57475         * modules/crypto/memxor: Moved from ../.
57476         * modules/crypto/rijndael: Moved from ../.
57477         * modules/crypto/rijndael-tests: Moved from ../.
57478         * modules/crypto/sha1: Moved from ../.
57479
57480 2007-03-30  James Youngman  <jay@gnu.org>
57481
57482         * tests/test-stat-time.c (prepare_test): use chmod() rather than
57483         rename() to change the ctime of a file (because ctime is unaffected
57484         by rename on jfs2 on AIX 5.1).
57485         (main): Start by doing cleanup, in case a previous run failed leaving
57486         test files behind.
57487
57488 2007-03-31  Bruno Haible  <bruno@clisp.org>
57489
57490         Support old proprietary implementations of iconv.
57491         * modules/iconv_open: New file.
57492         * lib/iconv_.h: New file.
57493         * m4/iconv_h.m4: New file.
57494         * lib/iconv_open.c: New file.
57495         * lib/iconv_open-aix.gperf: New file.
57496         * lib/iconv_open-hpux.gperf: New file.
57497         * lib/iconv_open-irix.gperf: New file.
57498         * lib/iconv_open-osf.gperf: New file.
57499         * m4/iconv_open.m4: New file.
57500         * modules/linebreak (Depends-on): Add iconv_open.
57501         * modules/striconv (Depends-on): Likewise.
57502         * modules/striconveh (Depends-on): Likewise.
57503         * modules/unicodeio (Depends-on): Likewise.
57504         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
57505         (iconv_t)(-1).
57506         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
57507         conversion if cd is (iconv_t)(-1).
57508         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
57509         is not possible.
57510
57511 2007-03-31  Bruno Haible  <bruno@clisp.org>
57512
57513         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57514         work on Solaris either. Protect also second use of "autodetect_jp".
57515
57516 2007-03-31  Bruno Haible  <bruno@clisp.org>
57517
57518         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
57519         the function is not present.
57520
57521 2007-03-31  Bruno Haible  <bruno@clisp.org>
57522
57523         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
57524         the function is not present.
57525
57526 2007-03-31  Bruno Haible  <bruno@clisp.org>
57527
57528         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
57529         a bug in HP-UX iconv_open().
57530
57531 2007-03-31  Bruno Haible  <bruno@clisp.org>
57532
57533         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
57534         (Mathematics <math.h>): New section, add fpieee.
57535         (Input/output <stdio.h>): Add fseterr.
57536         (Mathematics <math.h>): New section, add printf-frexp.
57537         (Container data structures): Add sublist.
57538         (Core language properties): Add fpucw, inline.
57539         (Functions for greatest-width integer types <inttypes.h>): Add
57540         imaxabs, imaxdiv, inttypes.
57541         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
57542         isnanl-nolibm, ldexp.
57543         (Mathematics <math.h>): New section, add printf-frexpl.
57544         (Support for systems lacking POSIX:2001): Add fprintf-posix,
57545         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
57546         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
57547         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
57548         (Unicode string functions): Add unistr/u*-mbtoucr.
57549         (Java): Add javacomp-script, javaexec-script.
57550         (C#): Add csharpcomp-script, csharpexec-script.
57551         (Support for building libraries and executables): Add havelib,
57552         relocatable-*.
57553         (Support for maintaining and releasing projects): Renamed from
57554         'Support for maintaining and release projects'. Add announce-gen.
57555
57556 2007-03-31  Bruno Haible  <bruno@clisp.org>
57557
57558         * README: Talk primarily about git.
57559         (git and CVS): Renamed from CVS.
57560         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
57561         gnulib is available through git.
57562         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
57563
57564 2007-03-30  Bruno Haible  <bruno@clisp.org>
57565
57566         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
57567         * lib/poll_.h: Likewise.
57568         * lib/stat_.h: Likewise.
57569         * lib/sys_time_.h: Likewise.
57570         * lib/sysexit_.h: Likewise.
57571         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
57572         * lib/stdbool_.h: Likewise.
57573         * lib/byteswap_.h: Add double-inclusion guard.
57574
57575 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
57576
57577         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
57578
57579 2007-03-30  Karl Berry  <karl@gnu.org>
57580
57581         * config/srclist-update: double space after USA in the license
57582         substitution, since that's how it's usually (?) written.
57583
57584 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57585
57586         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
57587         reported by Bruno Haible.
57588
57589 2007-03-29  Bruno Haible  <bruno@clisp.org>
57590
57591         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
57592         a bug in AIX iconv().
57593
57594 2007-03-29  Bruno Haible  <bruno@clisp.org>
57595
57596         * modules/ldexpl-tests: New file.
57597         * tests/test-ldexpl.c: New file.
57598
57599 2007-03-29  Bruno Haible  <bruno@clisp.org>
57600
57601         * lib/ldexpl.c: Include fpucw.h.
57602         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
57603         multiplication.
57604         * modules/ldexpl (Depends-on): Add fpucw.
57605
57606 2007-03-29  Bruno Haible  <bruno@clisp.org>
57607
57608         * modules/ldexpl: New file.
57609         * m4/ldexpl.m4: New file.
57610         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
57611         set.
57612         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
57613         REPLACE_LDEXPL.
57614         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
57615         REPLACE_LDEXPL.
57616         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
57617         gl_FUNC_LDEXPL_WORKS.
57618         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
57619         * modules/mathl (Files): Remove lib/ldexpl.c.
57620         (Depends-on): Add ldexpl.
57621
57622 2007-03-29  Bruno Haible  <bruno@clisp.org>
57623
57624         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
57625
57626 2007-03-29  Bruno Haible  <bruno@clisp.org>
57627
57628         * tests/test-striconveh.c (main): Don't assume that a direct conversion
57629         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
57630         and possibly also HP-UX.
57631         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57632         work on AIX, IRIX, HP-UX, OSF/1.
57633         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
57634         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
57635         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
57636         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
57637         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
57638         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
57639
57640 2007-03-29  Bruno Haible  <bruno@clisp.org>
57641
57642         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
57643
57644 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57645
57646         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
57647         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
57648
57649 2007-03-29  Eric Blake  <ebb9@byu.net>
57650
57651         * lib/acl-internal.h: Remove redundant include.
57652         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
57653         Cygwin when a file is locked.
57654
57655 2007-03-29  Bruno Haible  <bruno@clisp.org>
57656
57657         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
57658         file.
57659         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
57660
57661 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57662
57663         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
57664         try to remove a parent directory if the child couldn't be removed
57665         (except for the first rmdir, which could fail because the child
57666         doesn't exist).  Problem reported by Jeff Blaine in
57667         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
57668
57669 2007-03-28  Bruno Haible  <bruno@clisp.org>
57670
57671         * lib/striconveh.c (utf8conv_carefully): New function.
57672         (mem_cd_iconveh_internal): Invoke it.
57673
57674 2007-03-28  Bruno Haible  <bruno@clisp.org>
57675
57676         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
57677         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
57678         input.
57679         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
57680         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
57681         unistr/u8-uctomb.
57682
57683 2007-03-28  Bruno Haible  <bruno@clisp.org>
57684
57685         * modules/unistr/u8-mbtoucr: New file.
57686         * lib/unistr/u8-mbtoucr.c: New file.
57687         * modules/unistr/u16-mbtoucr: New file.
57688         * lib/unistr/u16-mbtoucr.c: New file.
57689         * modules/unistr/u16-mbtoucr: New file.
57690         * lib/unistr/u16-mbtoucr.c: New file.
57691         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
57692
57693 2007-03-27  Simon Josefsson  <simon@josefsson.org>
57694             Bruno Haible  <bruno@clisp.org>
57695
57696         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
57697         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
57698         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
57699
57700         * m4/stdio_h.m4: Add stubs for vasprintf too.
57701
57702         * modules/stdio: Support vasprintf in sed command.
57703
57704         * modules/vasprintf: Depend on stdio for prototypes.  Remove
57705         vasprintf.h.  Add stdio module indicator.
57706
57707         * lib/stdio_.h: Declare asprintf and vasprintf, based on
57708         vasprintf.h.
57709
57710         * lib/vasprintf.h: File removed.
57711
57712         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
57713         * lib/vasprintf.c: Ditto.
57714         * lib/xvasprintf.c: Ditto.
57715         * tests/test-vasprintf-posix.c: Ditto.
57716         * tests/test-vasprintf.c: Ditto.
57717
57718 2007-03-27  Bruno Haible  <bruno@clisp.org>
57719
57720         Make vasnprintf multithread-safe.
57721         * lib/vasnprintf.c (decimal_point_char): New function.
57722         (VASNPRINTF): Use it.
57723         Suggested by Simon Josefsson.
57724
57725 2007-03-27  Eric Blake  <ebb9@byu.net>
57726
57727         Support sub-second birthtime on cygwin.
57728         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
57729         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
57730         (get_stat_birthtime): Also work with st_birthtim.
57731
57732 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
57733
57734         * lib/stat-time.h (USE_BIRTHTIME): Remove.
57735         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
57736         (get_stat_birthtime_ns): Do not try to use "spare" fields.
57737         (get_stat_birthtime_ns): Simplify compile-time tests.
57738         (get_stat_birthtime): Change the API to look like
57739         get_stat_mtime etc., except return a negative tv_nsec on error.
57740         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
57741         Don't check for "spare" fields.
57742         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
57743         or for struct stat.st_birthtime, as these tests aren't used.
57744         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
57745
57746 2007-03-27  Bruno Haible  <bruno@clisp.org>
57747
57748         * lib/stat-time.h: Include <sys/stat.h>.
57749
57750 2007-03-27  James Youngman  <jay@gnu.org>
57751
57752         * lib/stat-time.h (get_stat_birthtime): New function for
57753           retrieving st_birthtime as provided by UFS2 (hence *BSD).
57754         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
57755           and its variants.
57756         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
57757         * modules/stat-time-test: New file.
57758         * tests/test-stat-time.c: New test, devised by Bruno Haible.
57759
57760 2007-03-26  Bruno Haible  <bruno@clisp.org>
57761
57762         Better support of signalling NaNs.
57763         * lib/atanl.c: Include isnanl.h.
57764         (atanl): Perform test for NaN at the beginning of the function and
57765         through a call to isnanl.
57766         * lib/cosl.c: Include isnanl.h.
57767         (cosl): Perform test for NaN at the beginning of the function and
57768         through a call to isnanl.
57769         * lib/ldexpl.c: Include isnanl.h.
57770         (ldexpl): Perform test for NaN through a call to isnanl.
57771         * lib/logl.c: Include isnanl.h.
57772         (logl): Perform test for NaN at the beginning of the function and
57773         through a call to isnanl.
57774         * lib/sinl.c: Include isnanl.h.
57775         (sinl): Perform test for NaN at the beginning of the function and
57776         through a call to isnanl.
57777         * lib/sqrtl.c: Include isnanl.h.
57778         (sqrtl): Perform test for NaN at the beginning of the function and
57779         through a call to isnanl.
57780         * lib/tanl.c: Include isnanl.h.
57781         (tanl): Perform test for NaN at the beginning of the function and
57782         through a call to isnanl.
57783         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
57784         * modules/mathl (Depends-on): Add isnanl.
57785
57786 2007-03-26  Eric Blake  <ebb9@byu.net>
57787
57788         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
57789         regression in logic sense of previous patch.
57790
57791 2007-03-26  Bruno Haible  <bruno@clisp.org>
57792
57793         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
57794         unportable shell command "if ! ...".
57795         Reported by Ralf Wildenhues.
57796
57797 2007-03-25  Bruno Haible  <bruno@clisp.org>
57798
57799         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
57800         <sysexits.h> file, and only add EX_CONFIG.
57801         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
57802         absolute file name and whether it is sufficient. Substitute also
57803         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
57804         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
57805         ABSOLUTE_SYSEXITS_H into sysexits.h.
57806
57807 2007-03-25  Bruno Haible  <bruno@clisp.org>
57808
57809         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
57810         hints is NULL.
57811
57812 2007-03-25  Bruno Haible  <bruno@clisp.org>
57813
57814         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
57815         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
57816
57817 2007-03-25  Bruno Haible  <bruno@clisp.org>
57818
57819         * lib/vasnprintf.c: Include langinfo.h.
57820         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
57821         multithread-safe.
57822         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
57823         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
57824         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57825         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57826         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57827         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57828         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57829         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
57830         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57831         Reported by Simon Josefsson.
57832
57833 2007-03-25  Bruno Haible  <bruno@clisp.org>
57834
57835         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
57836         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
57837         * modules/vasnprintf (Depends-on): Add stdint.
57838
57839 2007-03-25  Bruno Haible  <bruno@clisp.org>
57840
57841         * modules/fpieee: New file.
57842         * m4/fpieee.m4: New file.
57843         * modules/isnan-nolibm (Depends-on): Add fpieee.
57844         * modules/isnanl-nolibm (Depends-on): Add fpieee.
57845         * modules/isnanl (Depends-on): Add fpieee.
57846
57847 2007-03-25  Bruno Haible  <bruno@clisp.org>
57848
57849         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
57850
57851 2007-03-25  Bruno Haible  <bruno@clisp.org>
57852
57853         Avoid test failures on IRIX 6.5.
57854         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
57855         (main): Use it.
57856         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
57857         macros.
57858         (main): Use them.
57859
57860 2007-03-25  Bruno Haible  <bruno@clisp.org>
57861
57862         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
57863         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
57864         exists but doesn't work.
57865         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
57866         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
57867         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
57868         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
57869         math.h.
57870
57871 2007-03-25  Bruno Haible  <bruno@clisp.org>
57872
57873         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
57874         returns inf. Needed on IRIX 6.5.
57875
57876 2007-03-25  Bruno Haible  <bruno@clisp.org>
57877
57878         * tests/test-frexpl.c: Include isnanl-nolibm.h.
57879         (main): Use isnanl instead of x != x idiom.
57880         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
57881
57882         * tests/test-frexp.c: Include isnan.h.
57883         (main): Use isnan instead of x != x idiom.
57884         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
57885
57886 2007-03-25  Bruno Haible  <bruno@clisp.org>
57887
57888         * tests/test-frexp.c (NaN): New function/macro.
57889         (main): Use it instead of 0.0 / 0.0.
57890         * tests/test-isnan.c (NaN): New function/macro.
57891         (main): Use it instead of 0.0 / 0.0.
57892         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
57893         (test_function): Use it instead of 0.0 / 0.0.
57894         * tests/test-vasprintf-posix.c (NaN): New function/macro.
57895         (test_function): Use it instead of 0.0 / 0.0.
57896         * tests/test-snprintf-posix.h (NaN): New function/macro.
57897         (test_function): Use it instead of 0.0 / 0.0.
57898         * tests/test-sprintf-posix.h (NaN): New function/macro.
57899         (test_function): Use it instead of 0.0 / 0.0.
57900         * tests/test-fprintf-posix.h (NaN): New function/macro.
57901         (test_function): Use it instead of 0.0 / 0.0.
57902         * tests/test-printf-posix.h (NaN): New function/macro.
57903         (test_function): Use it instead of 0.0 / 0.0.
57904
57905         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
57906
57907 2007-03-25  Bruno Haible  <bruno@clisp.org>
57908
57909         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
57910
57911 2007-03-25  Bruno Haible  <bruno@clisp.org>
57912
57913         * lib/regexec.c (merge_state_with_log): Make static.
57914
57915 2007-03-25  Bruno Haible  <bruno@clisp.org>
57916
57917         * lib/trigl.c (kernel_rem_pio2): Make static.
57918
57919 2007-03-25  Bruno Haible  <bruno@clisp.org>
57920
57921         * lib/sincosl.c (sincosl_table): Make static.
57922
57923 2007-03-25  Bruno Haible  <bruno@clisp.org>
57924
57925         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
57926         if the compiler does not support C99.
57927
57928 2007-03-25  Bruno Haible  <bruno@clisp.org>
57929
57930         * modules/time (Makefile.am): Ensure all rule action lines start with a
57931         tab.
57932
57933 2007-03-24  Bruno Haible  <bruno@clisp.org>
57934
57935         * modules/tsearch-tests: New file.
57936         * tests/test-tsearch.sh: New file.
57937         * tests/test-tsearch.c: New file, mostly copied from glibc.
57938
57939         * modules/search-tests: New file.
57940         * tests/test-search.c: New file.
57941
57942         * modules/search: New file.
57943         * lib/search_.h: New file, incorporating lib/tsearch.h.
57944         * m4/search_h.m4: New file.
57945         * lib/tsearch.h: Remove file.
57946         * lib/tsearch.c: Include search.h instead of tsearch.h.
57947         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
57948         HAVE_TSEARCH.
57949         * modules/tsearch (Files): Remove lib/tsearch.h.
57950         (Depends-on): Add search.
57951         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
57952         (Include): Change tsearch.h into search.h.
57953
57954 2007-03-24  Bruno Haible  <bruno@clisp.org>
57955
57956         * modules/fpucw: New file.
57957         * lib/fpucw.h: New file.
57958         * lib/frexp.c: Include fpucw.h.
57959         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57960         (FUNC): Use them.
57961         * lib/printf-frexp.c: Include fpucw.h.
57962         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57963         (FUNC): Use them.
57964         * lib/vasnprintf.c: Include fpucw.h.
57965         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
57966         'long double' calculations.
57967         * tests/test-frexpl.c: Include fpucw.h.
57968         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57969         * tests/test-printf-frexpl.c: Include fpucw.h.
57970         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57971         * modules/frexpl (Depends-on): Add fpucw.
57972         * modules/printf-frexpl (Depends-on): Likewise.
57973         * modules/fprintf-posix (Depends-on): Likewise.
57974         * modules/snprintf-posix (Depends-on): Likewise.
57975         * modules/sprintf-posix (Depends-on): Likewise.
57976         * modules/vasnprintf-posix (Depends-on): Likewise.
57977         * modules/vasprintf-posix (Depends-on): Likewise.
57978         * modules/vfprintf-posix (Depends-on): Likewise.
57979         * modules/vsnprintf-posix (Depends-on): Likewise.
57980         * modules/vsprintf-posix (Depends-on): Likewise.
57981         * modules/frexpl-tests (Depends-on): Likewise.
57982         * modules/printf-frexpl-tests (Depends-on): Likewise.
57983
57984 2007-03-24  Bruno Haible  <bruno@clisp.org>
57985
57986         * lib/float+.h: New file.
57987         * lib/isnan.c: Include float+.h.
57988         (SIZE): New macro.
57989         (FUNC): Compare only SIZE bytes of the value.
57990         * lib/vasnprintf.c: Include float+.h.
57991         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
57992         SIZEOF_LDBL or SIZEOF_DBL bytes.
57993         * modules/isnan-nolibm (Files): Add lib/float+.h.
57994         * modules/isnanl-nolibm (Files): Add lib/float+.h.
57995         * modules/isnanl (Files): Add lib/float+.h.
57996         * modules/vasnprintf (Files): Add lib/float+.h.
57997
57998 2007-03-24  Bruno Haible  <bruno@clisp.org>
57999
58000         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
58001         include isnanl-nolibm.h.
58002
58003 2007-03-24  Bruno Haible  <bruno@clisp.org>
58004
58005         * tests/test-read-file.c (main): Don't produce spurious output for
58006         expected situations. Make the test fail if it encountered unexpected
58007         results.
58008
58009 2007-03-24  Bruno Haible  <bruno@clisp.org>
58010
58011         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
58012         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
58013
58014 2007-03-24  Bruno Haible  <bruno@clisp.org>
58015
58016         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
58017
58018 2007-03-24  Bruno Haible  <bruno@clisp.org>
58019
58020         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
58021         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
58022
58023         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
58024         * modules/utf8-ucs4: Turn into a symbolic link to module
58025         unistr/u8-mbtouc.
58026
58027         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
58028         utf8-ucs4-unsafe.
58029         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
58030         unistr/u8-mbtouc-unsafe.
58031
58032         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
58033         * modules/utf16-ucs4: Turn into a symbolic link to module
58034         unistr/u16-mbtouc.
58035
58036         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
58037         utf16-ucs4-unsafe.
58038         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
58039         unistr/u16-mbtouc-unsafe.
58040
58041         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
58042         * modules/ucs4-utf8: Turn into a symbolic link to module
58043         unistr/u8-ubtomb.
58044
58045         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
58046         * modules/ucs4-utf16: Turn into a symbolic link to module
58047         unistr/u16-ubtomb.
58048
58049 2007-03-24  Bruno Haible  <bruno@clisp.org>
58050
58051         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
58052         Enable the function only if HAVE_INLINE.
58053         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
58054         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
58055         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
58056         Enable the function only if HAVE_INLINE.
58057         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
58058         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
58059         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
58060         Enable the function only if HAVE_INLINE.
58061         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
58062         Enable the function only if HAVE_INLINE.
58063         * modules/utf8-ucs4: Update.
58064         * modules/utf8-ucs4-unsafe: Update.
58065         * modules/utf16-ucs4: Update.
58066         * modules/utf16-ucs4-unsafe: Update.
58067         * modules/ucs4-utf8: Update.
58068         * modules/ucs4-utf16: Update.
58069
58070 2007-03-24  Bruno Haible  <bruno@clisp.org>
58071
58072         * lib/utf8-ucs4.h: Remove file.
58073         * lib/utf8-ucs4-unsafe.h: Remove file.
58074         * lib/utf16-ucs4.h: Remove file.
58075         * lib/utf16-ucs4-unsafe.h: Remove file.
58076         * lib/ucs4-utf8.h: Remove file.
58077         * lib/ucs4-utf16.h: Remove file.
58078         * lib/unistr.h: Include their previous contents.
58079         * m4/utf-ucs4.m4: Remove file.
58080         * m4/ucs4-utf.m4: Remove file.
58081         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
58082         (Depends-on): Add unistr/base.
58083         (configure.ac): Remove gl_UTF_UCS4.
58084         (Makefile.am): Update.
58085         (Include): Change to unistr.h.
58086         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
58087         (Depends-on): Add unistr/base.
58088         (configure.ac): Remove gl_UTF_UCS4.
58089         (Makefile.am): Update.
58090         (Include): Change to unistr.h.
58091         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
58092         (Depends-on): Add unistr/base.
58093         (configure.ac): Remove gl_UTF_UCS4.
58094         (Makefile.am): Update.
58095         (Include): Change to unistr.h.
58096         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
58097         (Depends-on): Add unistr/base.
58098         (configure.ac): Remove gl_UTF_UCS4.
58099         (Makefile.am): Update.
58100         (Include): Change to unistr.h.
58101         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
58102         (Depends-on): Add unistr/base.
58103         (configure.ac): Remove gl_UCS4_UTF.
58104         (Makefile.am): Update.
58105         (Include): Change to unistr.h.
58106         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
58107         (Depends-on): Add unistr/base.
58108         (configure.ac): Remove gl_UCS4_UTF.
58109         (Makefile.am): Update.
58110         (Include): Change to unistr.h.
58111         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
58112         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
58113         utf8-ucs4-unsafe.h.
58114         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
58115         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
58116         utf16-ucs4-unsafe.h.
58117         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
58118         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
58119         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
58120         * lib/unistr/u8-strchr.c: Likewise.
58121         * lib/unistr/u8-strrchr.c: Likewise.
58122         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
58123         * lib/unistr/u16-strchr.c: Likewise.
58124         * lib/unistr/u16-strrchr.c: Likewise.
58125         * lib/striconveh.c: Update.
58126         * lib/linebreak.c: Update.
58127
58128 2007-03-24  Bruno Haible  <bruno@clisp.org>
58129
58130         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
58131         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
58132
58133 2007-03-22  Bruno Haible  <bruno@clisp.org>
58134
58135         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
58136
58137 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
58138
58139         * MODULES.html.sh (File system functions): New module write-any-file.
58140         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
58141         * m4/write-any-file.m4: New files.
58142
58143 2007-03-23  Eric Blake  <ebb9@byu.net>
58144
58145         * gnulib-tool: Rearrange space-tab sequences, since some editors
58146         like to eat them.
58147
58148 2007-03-23  Eric Blake  <ebb9@byu.net>
58149
58150         * lib/version-etc.c (version_etc_va): Update license wording to
58151         be more concise.  Recommended by Richard Stallman.
58152
58153 2007-03-22  Bruno Haible  <bruno@clisp.org>
58154
58155         * lib/poll.c (MSG_PEEK): New fallback definition.
58156
58157 2007-03-22  Bruno Haible  <bruno@clisp.org>
58158
58159         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
58160         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
58161         (main): Update.
58162         Fixes a compilation error on BeOS.
58163
58164 2007-03-22  Bruno Haible  <bruno@clisp.org>
58165
58166         * modules/frexpl-tests: New file.
58167         * tests/test-frexpl.c: New file.
58168
58169         * modules/frexpl: New file.
58170         * m4/frexpl.m4: New file.
58171         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
58172         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
58173         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
58174         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
58175         (Depends-on): Add frexpl. Remove isnanl-nolibm.
58176         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
58177
58178 2007-03-22  Bruno Haible  <bruno@clisp.org>
58179
58180         * lib/frexpl.c: Share code with lib/frexp.c.
58181         * modules/mathl (Files): Add lib/frexp.c.
58182         (Depends-on): Add isnanl-nolibm.
58183
58184 2007-03-22  Bruno Haible  <bruno@clisp.org>
58185
58186         * modules/printf-frexp (Files): Add m4/frexp.m4.
58187         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
58188         only if the found frexp function actually works.
58189
58190 2007-03-22  Bruno Haible  <bruno@clisp.org>
58191
58192         * lib/frexp.c: Remove older implementation that uses divisions.
58193
58194 2007-03-21  Bruno Haible  <bruno@clisp.org>
58195
58196         * modules/frexp-tests: New file.
58197         * tests/test-frexp.c: New file.
58198
58199         * modules/frexp: New file.
58200         * lib/frexp.c: New file.
58201         * m4/frexp.m4: New file.
58202         * lib/math_.h (frexp): New declaration.
58203         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
58204         REPLACE_FREXP.
58205         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
58206
58207 2007-03-21  Bruno Haible  <bruno@clisp.org>
58208
58209         * modules/isnanl-tests: New file.
58210         * tests/test-isnanl.c: New file.
58211
58212         * modules/isnanl: New file.
58213         * lib/isnanl.h: New file.
58214         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
58215         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
58216         gl_FUNC_ISNANL_WORKS.
58217         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
58218         New macros.
58219
58220 2007-03-21  Bruno Haible  <bruno@clisp.org>
58221
58222         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
58223         lib/isnanl.h.
58224         (Include): Update.
58225         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
58226         * lib/vasnprintf.c: Update.
58227         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
58228         tests/test-isnanl.h, remove tests/test-isnanl.c.
58229         (Makefile.am): Update.
58230         * tests/test-isnanl-nolibm.c: New file.
58231         * tests/test-isnanl.h: New file.
58232         * tests/test-isnanl.c: Remove file.
58233
58234 2007-03-21  Jim Meyering  <jim@meyering.net>
58235
58236         When trying to open ".", treat ESTALE like EACCES.
58237         * lib/savewd.c (savewd_save): Resort to forking not just upon
58238         failure with EACCES, but also when errno is ESTALE.
58239
58240 2007-03-20  Bruno Haible  <bruno@clisp.org>
58241
58242         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
58243         Needed on AIX 5.1. Reported by Matthew Woehlke.
58244
58245 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58246
58247         Suggestions by Bruno Haible:
58248         * lib/acl-internal.h: Include "gettext.h" rather than rolling
58249         our own.
58250         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
58251         * modules/acl (Depends-on): Add gettext.
58252
58253 2007-03-19  Bruno Haible  <bruno@clisp.org>
58254
58255         * modules/iconvme: Remove file.
58256         * lib/iconvme.h: Remove file.
58257         * lib/iconvme.c: Remove file.
58258         * m4/iconvme.m4: Remove file.
58259
58260 2007-03-19  Bruno Haible  <bruno@clisp.org>
58261
58262         * doc/relocatable-maint.texi: Break long shell script line.
58263         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58264
58265 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58266
58267         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
58268         handle file_has_acl.
58269         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
58270         * lib/acl.c: Move header inclusions and related macro defns into
58271         lib/acl-internal.h.
58272         (S_ISLNK): Remove defn, since that's now done for us.
58273         (file_has_acl): Move to lib/file-has-acl.c.
58274         Call acl_trivial if available.  This is the crucial part of the fix.
58275         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
58276         shared within the library.  Rewrite a bit, partly to make it compatible
58277         with the GNU coding style.
58278         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
58279         Remove unnecessary double-quotes.
58280         Don't test for acl_to_text; the build will catch that.
58281         Replace acl_entries if it doesn't exist and it is needed.
58282         Check for -lsec and acl_trivial (as used on Solaris 10).
58283         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
58284         lib/file-has-acl.c.
58285         (Depends-on): Add sys_stat, for S_ISLNK.
58286
58287 2007-03-19  Ben Pfaff  <blp@gnu.org>
58288
58289         * doc/gnulib.texi: Fix typos.
58290         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58291
58292 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58293
58294         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
58295         If size is zero here, buf must be zero.
58296
58297 2007-03-19  Simon Josefsson  <simon@josefsson.org>
58298
58299         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
58300         <bruno@clisp.org>.
58301
58302 2007-03-18  Bruno Haible  <bruno@clisp.org>
58303
58304         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
58305         Suggested by Eric Blake.
58306
58307 2007-03-18  Ben Pfaff  <blp@gnu.org>
58308
58309         * doc/relocatable.texi: Recommend using as prefix a directory
58310         that does not exist and will never be created.  Based on
58311         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
58312         and others.
58313
58314 2007-03-17  Bruno Haible  <bruno@clisp.org>
58315
58316         * lib/fchownat.c: Include lchown.h.
58317
58318 2007-03-17  Bruno Haible  <bruno@clisp.org>
58319
58320         Fix endless loop when the given allocated size was > INT_MAX.
58321         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
58322         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
58323         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
58324         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
58325         * lib/sprintf.c (sprintf): Likewise.
58326
58327 2007-03-17  Bruno Haible  <bruno@clisp.org>
58328
58329         * tests/test-argp-2.sh (func_compare): Output a context diff.
58330
58331 2007-03-17  Bruno Haible  <bruno@clisp.org>
58332
58333         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
58334         locale's decimal-point character.
58335
58336 2007-03-17  Bruno Haible  <bruno@clisp.org>
58337
58338         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
58339         before comparing it. Needed because on some platforms (e.g. x86) a
58340         'long double' occupies less bytes than sizeof (long double).
58341
58342 2007-03-17  Bruno Haible  <bruno@clisp.org>
58343
58344         * tests/test-crc.c (main): Make printf statements 64-bit clean.
58345         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
58346         * tests/test-getaddrinfo.c (simple): Likewise.
58347         * tests/test-read-file.c (main): Likewise.
58348
58349 2007-03-17  Bruno Haible  <bruno@clisp.org>
58350
58351         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
58352
58353 2007-03-17  Bruno Haible  <bruno@clisp.org>
58354
58355         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
58356         unused variable.
58357
58358 2007-03-17  Bruno Haible  <bruno@clisp.org>
58359
58360         * tests/test-c-strcasecmp.c: Include c-strcase.h.
58361         * tests/test-c-strncasecmp.c: Likewise.
58362
58363 2007-03-17  Bruno Haible  <bruno@clisp.org>
58364
58365         * modules/stdlib (Depends-on): Add unistd.
58366         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
58367         Needed for MacOS X 10.3.
58368
58369 2007-03-17  Bruno Haible  <bruno@clisp.org>
58370
58371         * lib/unistr/u-strdup.h: Include <stdlib.h>.
58372
58373 2007-03-17  Bruno Haible  <bruno@clisp.org>
58374
58375         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
58376
58377 2007-03-17  Bruno Haible  <bruno@clisp.org>
58378
58379         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
58380         to reflect files copied from gnulib (with or without modifications).
58381         Suggested by Jim Meyering.
58382
58383 2007-03-17  Eric Blake  <ebb9@byu.net>
58384
58385         * NEWS: Document stdlib change from 2007-02-18.
58386
58387 2007-03-17  Jim Meyering  <jim@meyering.net>
58388
58389         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
58390         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
58391         someone uses a name containing shell meta-characters.
58392         Reported by Alfred M. Szmidt.
58393
58394         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
58395
58396 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58397
58398         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
58399         and copy gettext configuration files only if configure.ac contains
58400         a use of AM_GNU_GETTEXT_VERSION.
58401
58402 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58403
58404         * build-aux/bootstrap (gnulib_name): New variable.
58405         (gnulib_tool_options): Use it.
58406
58407 2007-03-13  Simon Josefsson  <simon@josefsson.org>
58408
58409         * tests/test-des.c: Use new namespace.
58410
58411 2007-03-15  Bruno Haible  <bruno@clisp.org>
58412
58413         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
58414         Reported by James Youngman <jay@gnu.org>.
58415
58416 2007-03-15  Bruno Haible  <bruno@clisp.org>
58417
58418         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
58419         declared prototype. Needed with cc on OSF/1 5.1.
58420
58421 2007-03-15  Bruno Haible  <bruno@clisp.org>
58422
58423         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
58424         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
58425         (struct gl_list_implementation): Add dispose_fn argument to the
58426         'create_empty', 'create' methods.
58427         (struct gl_list_impl_base): Add field 'dispose_fn'.
58428         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
58429         argument.
58430         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
58431         dispose_fn argument.
58432         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
58433         dispose_fn on the dropped values.
58434         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
58435         dispose_fn argument.
58436         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
58437         dropped values.
58438         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
58439         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58440         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
58441         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58442         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
58443         argument.
58444         (gl_tree_list_free): Call dispose_fn on the dropped values.
58445         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
58446         the dropped values.
58447         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
58448         Add dispose_fn argument.
58449         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
58450         Call dispose_fn on the dropped values.
58451         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
58452         Add dispose_fn argument.
58453         (gl_sublist_create): Initialize the 'dispose_fn' field.
58454         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
58455         * tests/test-array_list.c (main): Update.
58456         * tests/test-carray_list.c (main): Update.
58457         * tests/test-avltree_list.c (main): Update.
58458         * tests/test-rbtree_list.c (main): Update.
58459         * tests/test-avltreehash_list.c (main): Update.
58460         * tests/test-rbtreehash_list.c (main): Update.
58461         * tests/test-linked_list.c (main): Update.
58462         * tests/test-linkedhash_list.c (main): Update.
58463         * tests/test-array_oset.c (main): Update.
58464
58465 2007-03-15  Bruno Haible  <bruno@clisp.org>
58466
58467         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
58468         (gl_oset_create_empty): Add dispose_fn argument.
58469         (struct gl_oset_implementation): Add dispose_fn argument to
58470         'create_empty' method.
58471         (struct gl_oset_impl_base): Add dispose_fn field.
58472         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
58473         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
58474         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
58475         values.
58476         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
58477         (gl_tree_oset_free): Call dispose_fn on the dropped values.
58478         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58479         dropped value.
58480         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58481         dropped value.
58482         * tests/test-array_oset.c (main): Update.
58483         * tests/test-avltree_oset.c (main): Update.
58484         * tests/test-rbtree_oset.c (main): Update.
58485         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
58486
58487 2007-03-13  Bruno Haible  <bruno@clisp.org>
58488
58489         * tests/test-stdbool.c (i): Update after last patch.
58490
58491 2007-03-12  Bruno Haible  <bruno@clisp.org>
58492
58493         * lib/quotearg.c: Include <wctype.h> early, before the definition of
58494         the iswprint macro. Needed on Solaris 2.5.1.
58495
58496 2007-03-12  Bruno Haible  <bruno@clisp.org>
58497
58498         * tests/test-printf-frexp.c (main): Declare x as volatile.
58499
58500 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58501
58502         * doc/gnulib.texi (Build robot for gnulib): New section.
58503
58504 2007-03-12  Jim Meyering  <jim@meyering.net>
58505
58506         * build-aux/bootstrap: New file.
58507         * build-aux/bootstrap.conf: New file, from coreutils.
58508
58509 2007-03-11  Bruno Haible  <bruno@clisp.org>
58510
58511         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
58512
58513 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58514
58515         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
58516         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
58517         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
58518
58519 2007-03-11  Bruno Haible  <bruno@clisp.org>
58520
58521         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
58522         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
58523
58524 2007-03-11  Bruno Haible  <bruno@clisp.org>
58525
58526         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
58527         formula. Needed for SunPRO C 5.0.
58528
58529 2007-03-11  Bruno Haible  <bruno@clisp.org>
58530
58531         * modules/long-options (Depends-on): Add getopt.
58532
58533 2007-03-11  Bruno Haible  <bruno@clisp.org>
58534
58535         * modules/modechange (Depends-on): Add stdbool.
58536
58537 2007-03-11  Bruno Haible  <bruno@clisp.org>
58538
58539         * modules/i-ring (Depends-on): Add stdbool.
58540
58541 2007-03-11  Bruno Haible  <bruno@clisp.org>
58542
58543         * modules/gc-des (Depends-on): Add stdbool.
58544
58545 2007-03-11  Bruno Haible  <bruno@clisp.org>
58546
58547         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
58548
58549 2007-03-11  Bruno Haible  <bruno@clisp.org>
58550
58551         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
58552
58553 2007-03-11  Bruno Haible  <bruno@clisp.org>
58554
58555         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
58556
58557 2007-03-11  Bruno Haible  <bruno@clisp.org>
58558
58559         * lib/vasnprintf.c (sprintf): Undefine.
58560
58561 2007-03-11  Bruno Haible  <bruno@clisp.org>
58562
58563         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
58564         initializers in SunPRO C and Compaq C compilers.
58565
58566 2007-03-11  Bruno Haible  <bruno@clisp.org>
58567
58568         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
58569         decrementing code ANSI C compliant.
58570
58571 2007-03-11  Bruno Haible  <bruno@clisp.org>
58572
58573         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
58574         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
58575
58576 2007-03-11  Bruno Haible  <bruno@clisp.org>
58577
58578         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
58579         <stdbool.h> substitute doesn't pass.
58580
58581 2007-03-11  Bruno Haible  <bruno@clisp.org>
58582
58583         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
58584
58585 2007-03-11  Bruno Haible  <bruno@clisp.org>
58586
58587         * gnulib-tool (func_create_megatestdir): Create also an autobuild
58588         script, for submission to autobuild.josefsson.org.
58589
58590 2007-03-10  Bruno Haible  <bruno@clisp.org>
58591
58592         * modules/canonicalize-lgpl-tests: New file.
58593         * tests/test-canonicalize-lgpl.sh: New file.
58594         * tests/test-canonicalize-lgpl.c: New file.
58595
58596         * modules/c-strcase-tests: New file.
58597         * tests/test-c-strcase.sh: New file.
58598         * tests/test-c-strcasecmp.c: New file.
58599         * tests/test-c-strncasecmp.c: New file.
58600
58601         * modules/atexit-tests: New file.
58602         * tests/test-atexit.sh: New file.
58603         * tests/test-atexit.c: New file.
58604
58605 2007-03-10  Bruno Haible  <bruno@clisp.org>
58606
58607         * tests/test-binary-io.sh: Use temporary filenames that are not so
58608         likely to clash with those of other tests (in a parallel make).
58609         * tests/test-binary-io.c: Likewise.
58610
58611 2007-03-10  Bruno Haible  <bruno@clisp.org>
58612
58613         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
58614         fallback; use #error instead.
58615         Suggested by Simon Josefsson.
58616
58617 2007-03-10  Bruno Haible  <bruno@clisp.org>
58618
58619         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
58620         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
58621         first and the last.
58622
58623 2007-03-10  Bruno Haible  <bruno@clisp.org>
58624
58625         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
58626
58627 2007-03-10  Bruno Haible  <bruno@clisp.org>
58628
58629         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
58630         "make distcheck".
58631         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
58632         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
58633         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
58634
58635 2007-03-10  Bruno Haible  <bruno@clisp.org>
58636
58637         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
58638         variable.
58639         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
58640         variable.
58641
58642 2007-03-09  Eric Blake  <ebb9@byu.net>
58643         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
58644
58645         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
58646         types are not being provided by gnulib.
58647         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
58648         types are supported.
58649
58650 2007-03-10  Bruno Haible  <bruno@clisp.org>
58651
58652         * lib/stdio_.h (__attribute__): New macro.
58653         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
58654         vsprintf): Specify __attribute__ __format__ for GCC.
58655         Suggested by Eric Blake.
58656
58657 2007-03-09  Bruno Haible  <bruno@clisp.org>
58658
58659         * modules/printf-posix-tests: New file.
58660         * tests/test-printf-posix.sh: New file.
58661         * tests/test-printf-posix.c: New file.
58662
58663         * modules/printf-posix: New file.
58664         * lib/printf.c: New file.
58665         * m4/printf-posix-rpl.m4: New file.
58666         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
58667         REPLACE_PRINTF.
58668         * lib/stdio_.h (printf): New declaration.
58669         (format, __format__, ____printf____, ____scanf____, ____strftime____,
58670         ____strfmon____): New macros.
58671         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
58672         REPLACE_PRINTF.
58673
58674 2007-03-09  Bruno Haible  <bruno@clisp.org>
58675
58676         * tests/test-vasnprintf-posix2.sh: New file.
58677         * tests/test-vasnprintf-posix2.c: New file.
58678         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
58679         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
58680         (Makefile.am): Activate test-vasnprintf-posix2.sh.
58681
58682         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
58683         a locale dependent decimal point, rather than always '.'.
58684
58685 2007-03-09  Eric Blake  <ebb9@byu.net>
58686
58687         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
58688         spite of platforms like Tandem/NSK that define it to -1.
58689
58690 2007-03-08  Bruno Haible  <bruno@clisp.org>
58691
58692         * modules/vprintf-posix-tests: New file.
58693         * tests/test-vprintf-posix.sh: New file.
58694         * tests/test-vprintf-posix.c: New file.
58695         * tests/test-printf-posix.h: New file.
58696
58697         * modules/vprintf-posix: New file.
58698         * lib/vprintf.c: New file.
58699         * m4/vprintf-posix.m4: New file.
58700         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
58701         REPLACE_VPRINTF.
58702         * lib/stdio_.h (vprintf): New declaration.
58703         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
58704         REPLACE_VPRINTF.
58705
58706 2007-03-08  Bruno Haible  <bruno@clisp.org>
58707
58708         * modules/fprintf-posix-tests: New file.
58709         * tests/test-fprintf-posix.sh: New file.
58710         * tests/test-fprintf-posix.c: New file.
58711
58712         * modules/fprintf-posix: New file.
58713         * lib/fprintf.c: New file.
58714         * m4/fprintf-posix.m4: New file.
58715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
58716         REPLACE_FPRINTF.
58717         * lib/stdio_.h (fprintf): New declaration.
58718         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
58719         REPLACE_FPRINTF.
58720
58721 2007-03-08  Bruno Haible  <bruno@clisp.org>
58722
58723         * modules/vfprintf-posix-tests: New file.
58724         * tests/test-vfprintf-posix.sh: New file.
58725         * tests/test-vfprintf-posix.c: New file.
58726         * tests/test-fprintf-posix.h: New file.
58727         * tests/test-fprintf-posix.out: New file.
58728
58729         * modules/vfprintf-posix: New file.
58730         * lib/vfprintf.c: New file.
58731         * m4/vfprintf-posix.m4: New file.
58732         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
58733         REPLACE_VFPRINTF.
58734         * lib/stdio_.h (vfprintf): New declaration.
58735         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
58736         REPLACE_VFPRINTF.
58737
58738 2007-03-08  Bruno Haible  <bruno@clisp.org>
58739
58740         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
58741
58742 2007-03-08  Bruno Haible  <bruno@clisp.org>
58743
58744         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
58745         instead of 'expr' invocations.
58746         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58747         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58748         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58749         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58750         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58751         Suggested by Paul Eggert.
58752
58753 2007-03-08  Bruno Haible  <bruno@clisp.org>
58754
58755         * modules/fseterr-tests: New file.
58756         * tests/test-fseterr.c: New file.
58757
58758         * modules/fseterr: New file.
58759         * lib/fseterr.h: New file.
58760         * lib/fseterr.c: New file.
58761
58762 2007-03-08  Bruno Haible  <bruno@clisp.org>
58763
58764         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
58765         * lib/getopt_.h: Likewise.
58766         * lib/mbswidth.h: Likewise.
58767         * lib/setenv.h: Likewise.
58768         * lib/vasnprintf.h: Likewise.
58769         * lib/vasprintf.h: Likewise.
58770         * lib/verror.h: Likewise.
58771         * lib/xsetenv.h: Likewise.
58772         * lib/xvasprintf.h: Likewise.
58773
58774 2007-03-08  Jim Meyering  <jim@meyering.net>
58775
58776         * users.txt: Add parted.
58777
58778         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
58779
58780 2007-03-07  Bruno Haible  <bruno@clisp.org>
58781
58782         * m4/printf.m4: Make the shell script snippets copy&pastable.
58783
58784 2007-03-02  Bruno Haible  <bruno@clisp.org>
58785
58786         * lib/netinet_in_.h: New file.
58787         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
58788         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
58789         * modules/netinet_in (Files): Add lib/netinet_in_.h.
58790         (Depends-on): Add absolute-header.
58791         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
58792         into netinet/in.h.
58793
58794 2007-03-03  Bruno Haible  <bruno@clisp.org>
58795
58796         * lib/sys_select_.h: New file.
58797         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
58798         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
58799         * modules/sys_select (Files): Add lib/sys_select_.h.
58800         (Depends-on): Add absolute-header.
58801         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
58802         into sys/select.h.
58803
58804 2007-03-02  Bruno Haible  <bruno@clisp.org>
58805
58806         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
58807         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
58808         values.
58809         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
58810         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
58811         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
58812         * modules/sys_socket (Depends-on): Add absolute-header.
58813         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
58814         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
58815         (Include): Remove requirement of inclusion of <sys/types.h>.
58816
58817 2007-03-02  Bruno Haible  <bruno@clisp.org>
58818
58819         * lib/byteswap_.h (bswap_32): Fix formula.
58820
58821 2007-03-06  Bruno Haible  <bruno@clisp.org>
58822
58823         * modules/sprintf-posix-tests: New file.
58824         * tests/test-sprintf-posix.c: New file.
58825
58826         * modules/sprintf-posix: New file.
58827         * lib/sprintf.c: New file.
58828         * m4/sprintf-posix.m4: New file.
58829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
58830         REPLACE_SPRINTF.
58831         * lib/stdio_.h (sprintf): New declaration.
58832         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
58833         REPLACE_SPRINTF.
58834
58835 2007-03-06  Bruno Haible  <bruno@clisp.org>
58836
58837         * modules/vsprintf-posix-tests: New file.
58838         * tests/test-vsprintf-posix.c: New file.
58839         * tests/test-sprintf-posix.h: New file.
58840
58841         * modules/vsprintf-posix: New file.
58842         * lib/vsprintf.c: New file.
58843         * m4/vsprintf-posix.m4: New file.
58844         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
58845         REPLACE_VSPRINTF.
58846         * lib/stdio_.h (vsprintf): New declaration.
58847         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
58848         REPLACE_VSPRINTF.
58849
58850 2007-03-06  Bruno Haible  <bruno@clisp.org>
58851
58852         * modules/vsnprintf (Depend-on): Remove minmax.
58853
58854 2007-03-06  Bruno Haible  <bruno@clisp.org>
58855
58856         * modules/snprintf-posix-tests: New file.
58857         * tests/test-snprintf-posix.c: New file.
58858
58859         * modules/snprintf-posix: New file.
58860         * m4/snprintf-posix.m4: New file.
58861         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
58862         gl_FUNC_SNPRINTF.
58863         (gl_FUNC_SNPRINTF): Invoke it.
58864         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
58865         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
58866         is set.
58867         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
58868
58869 2007-03-06  Bruno Haible  <bruno@clisp.org>
58870
58871         * modules/vsnprintf-posix-tests: New file.
58872         * tests/test-vsnprintf-posix.c: New file.
58873         * tests/test-snprintf-posix.h: New file.
58874
58875         * modules/vsnprintf-posix: New file.
58876         * m4/vsnprintf-posix.m4: New file.
58877         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
58878         gl_FUNC_VSNPRINTF.
58879         (gl_FUNC_VSNPRINTF): Invoke it.
58880         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
58881         * lib/stdio_.h (vsnprintf): Define as a replacement if
58882         REPLACE_VSNPRINTF is set.
58883         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
58884
58885 2007-03-06  Bruno Haible  <bruno@clisp.org>
58886
58887         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
58888         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
58889
58890 2007-03-06  Bruno Haible  <bruno@clisp.org>
58891
58892         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
58893         (asinl): Declare also if HAVE_DECL_ASINL is set.
58894         (atanl): Declare also if HAVE_DECL_ATANL is set.
58895         (ceill): Declare also if HAVE_DECL_CEILL is set.
58896         (cosl): Declare also if HAVE_DECL_COSL is set.
58897         (expl): Declare also if HAVE_DECL_EXPL is set.
58898         (floorl): Declare also if HAVE_DECL_FLOORL is set.
58899         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
58900         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
58901         (logl): Declare also if HAVE_DECL_LOGL is set.
58902         (sinl): Declare also if HAVE_DECL_SINL is set.
58903         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
58904         (tanl): Declare also if HAVE_DECL_TANL is set.
58905         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
58906         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
58907         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
58908         declaration of frexpl, ldexpl.
58909         * modules/printf-frexpl (Depends-on): Add math.
58910         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
58911
58912 2007-03-05  Bruno Haible  <bruno@clisp.org>
58913
58914         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
58915         frexpl and ldexpl are declared.
58916         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
58917
58918 2007-03-05  Bruno Haible  <bruno@clisp.org>
58919
58920         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
58921         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
58922
58923 2007-03-05  Bruno Haible  <bruno@clisp.org>
58924
58925         * lib/stdio_.h: Include <stddef.h>.
58926
58927 2007-03-05  Bruno Haible  <bruno@clisp.org>
58928
58929         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
58930
58931 2007-03-05  Bruno Haible  <bruno@clisp.org>
58932
58933         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
58934         NetBSD 4, from Ralf Wildenhues.
58935
58936 2007-03-04  Bruno Haible  <bruno@clisp.org>
58937
58938         * lib/vasprintf.h: Update #if logic for the case when the functions
58939         exist but are overridden.
58940
58941 2007-03-04  Bruno Haible  <bruno@clisp.org>
58942
58943         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
58944         implementations: glibc-2.4 and MacOS X 10.3.
58945         * tests/test-vasnprintf-posix.c (test_function): Test also the case
58946         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
58947         * tests/test-vasprintf-posix.c (test_function): Likewise.
58948
58949 2007-03-04  Bruno Haible  <bruno@clisp.org>
58950
58951         * modules/vasprintf-posix-tests: New file.
58952         * tests/test-vasprintf-posix.c: New file.
58953
58954         * modules/vasprintf-posix: New file.
58955         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
58956         defined.
58957         * m4/vasprintf-posix.m4: New file.
58958         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
58959         gl_FUNC_VASPRINTF.
58960         (gl_FUNC_VASPRINTF): Invoke it.
58961         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
58962         here.
58963         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
58964
58965 2007-03-04  Bruno Haible  <bruno@clisp.org>
58966
58967         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
58968         REPLACE_GETTIMEOFDAY.
58969         * modules/sys_time (Makefile.am): Likewise.
58970         * m4/sys_time_h.m4: Likewise.
58971         * m4/gettimeofday.m4: Likewise.
58972
58973 2007-03-04  Bruno Haible  <bruno@clisp.org>
58974
58975         * modules/vasnprintf-posix-tests: New file.
58976         * tests/test-vasnprintf-posix.c: New file.
58977
58978         * modules/vasnprintf-posix: New file.
58979         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
58980         printf-frexpl.h.
58981         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
58982         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
58983         REPLACE_VASNPRINTF is defined.
58984         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
58985         gl_FUNC_VASNPRINTF.
58986         (gl_FUNC_VASNPRINTF): Invoke it.
58987         * m4/vasnprintf-posix.m4: New file.
58988         * m4/printf.m4: New file.
58989
58990 2007-03-04  Bruno Haible  <bruno@clisp.org>
58991
58992         Compile progreloc.c only if --enable-relocatable is specified.
58993         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
58994         if --enable-relocatable was specified.
58995         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
58996         lib_SOURCES.
58997
58998 2007-03-04  Jim Meyering  <jim@meyering.net>
58999
59000         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
59001         Use it consistently, rather than enumerating errno constants.
59002
59003 2007-03-04  Bruno Haible  <bruno@clisp.org>
59004
59005         * modules/xvasprintf-tests: New file.
59006         * tests/test-xvasprintf.c: New file.
59007
59008         * modules/vasprintf-tests: New file.
59009         * tests/test-vasprintf.c: New file.
59010
59011         * modules/vasnprintf-tests: New file.
59012         * tests/test-vasnprintf.c: New file.
59013
59014         * modules/vsnprintf-tests: New file.
59015         * tests/test-vsnprintf.c: New file.
59016
59017         * modules/snprintf-tests: New file.
59018         * tests/test-snprintf.c: New file.
59019
59020 2007-03-04  Bruno Haible  <bruno@clisp.org>
59021
59022         Compile relocatable.c only if --enable-relocatable is specified.
59023         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
59024         gl_RELOCATABLE_LIBRARY.
59025         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
59026         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
59027         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
59028         gl_RELOCATABLE_LIBRARY.
59029         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
59030         (Makefile.am): Remove lib_SOURCES.
59031         * modules/relocatable-lib-lgpl (configure.ac): Invoke
59032         gl_RELOCATABLE_LIBRARY.
59033         (Makefile.am): Remove lib_SOURCES.
59034         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
59035         always.
59036         * modules/relocatable-prog-wrapper (configure.ac): Invoke
59037         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
59038
59039 2007-03-04  Bruno Haible  <bruno@clisp.org>
59040
59041         * modules/argmatch-tests: New file.
59042         * tests/test-argmatch.c: New file.
59043
59044         * tests/test-allocsa.c (main): Halve the number of loop runs.
59045
59046         * modules/alloca-opt-tests: New file.
59047         * tests/test-alloca-opt.c: New file.
59048
59049 2007-03-04  Jim Meyering  <jim@meyering.net>
59050
59051         Work around difference between Linux ACLs and Solaris 10 ZFS.
59052         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
59053         for EINVAL.
59054
59055 2007-03-03  Bruno Haible  <bruno@clisp.org>
59056
59057         * modules/relocatable-prog (Depends-on): Add back progreloc's
59058         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
59059
59060 2007-03-03  Bruno Haible  <bruno@clisp.org>
59061
59062         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
59063         * modules/relocatable-lib: New file.
59064
59065 2007-03-03  Bruno Haible  <bruno@clisp.org>
59066
59067         * modules/relocatable-prog: Renamed from modules/relocatable.
59068         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
59069
59070 2007-03-03  Bruno Haible  <bruno@clisp.org>
59071
59072         * modules/relocatable-script (Files): Add doc/relocatable.texi,
59073         m4/relocatable-lib.m4.
59074         (Depends-on): Remove 'relocatable'.
59075         (configure.ac): Add gl_RELOCATABLE_NOP.
59076
59077 2007-03-03  Bruno Haible  <bruno@clisp.org>
59078
59079         * modules/relocatable-prog-wrapper: New file.
59080         * modules/relocatable (Depends-on): Add it. Remove all other
59081         dependencies except progname.
59082         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
59083
59084         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
59085         (gl_FUNC_STRERROR): Nop.
59086         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
59087
59088         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
59089         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
59090
59091         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
59092         (gl_FUNC_READLINK): Update.
59093
59094         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
59095
59096 2007-03-03  Bruno Haible  <bruno@clisp.org>
59097
59098         * lib/xreadlink.c: Include <unistd.h> unconditionally.
59099         * modules/xreadlink (Depends-on): Add unistd.
59100         * modules/xreadlink-with-size (Depends-on): Likewise.
59101
59102 2007-03-03  Bruno Haible  <bruno@clisp.org>
59103
59104         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
59105         extracted from gt_FUNC_SETENV.
59106         (gt_FUNC_SETENV): Remove macro.
59107         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
59108         remove gt_FUNC_SETENV.
59109
59110 2007-03-03  Bruno Haible  <bruno@clisp.org>
59111
59112         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
59113         ENABLE_RELOCATABLE here.
59114         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
59115
59116 2007-03-03  Bruno Haible  <bruno@clisp.org>
59117
59118         * modules/rbtreehash-list-tests (Depends-on): Add progname.
59119         * tests/test-rbtreehash_list.c: Include progname.h.
59120         (main): Call set_program_name.
59121
59122         * modules/rbtree-oset-tests (Depends-on): Add progname.
59123         * tests/test-rbtree_oset.c: Include progname.h.
59124         (main): Call set_program_name.
59125
59126         * modules/rbtree-list-tests (Depends-on): Add progname.
59127         * tests/test-rbtree_list.c: Include progname.h.
59128         (main): Call set_program_name.
59129
59130         * modules/linked-list-tests (Depends-on): Add progname.
59131         * tests/test-linked_list.c: Include progname.h.
59132         (main): Call set_program_name.
59133
59134 2007-03-03  Bruno Haible  <bruno@clisp.org>
59135
59136         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
59137         All uses of __restrict changed to _Restrict_.
59138         * lib/glob_.h (__restrict): Remove macro.
59139
59140 2007-03-02  Bruno Haible  <bruno@clisp.org>
59141
59142         * modules/gettext (configure.ac): Require gettext infrastructure
59143         from version 0.16.1.
59144
59145 2007-03-02  Bruno Haible  <bruno@clisp.org>
59146
59147         * modules/linkedhash-list-tests (Depends-on): Add progname.
59148         * tests/test-linkedhash_list.c: Include progname.h.
59149         (main): Call set_program_name.
59150
59151         * modules/carray-list-tests (Depends-on): Add progname.
59152         * tests/test-carray_list.c: Include progname.h.
59153         (main): Call set_program_name.
59154
59155         * modules/avltreehash-list-tests (Depends-on): Add progname.
59156         * tests/test-avltreehash_list.c: Include progname.h.
59157         (main): Call set_program_name.
59158
59159         * modules/avltree-oset-tests (Depends-on): Add progname.
59160         * tests/test-avltree_oset.c: Include progname.h.
59161         (main): Call set_program_name.
59162
59163         * modules/avltree-list-tests (Depends-on): Add progname.
59164         * tests/test-avltree_list.c: Include progname.h.
59165         (main): Call set_program_name.
59166
59167         * modules/array-oset-tests (Depends-on): Add progname.
59168         * tests/test-array_oset.c: Include progname.h.
59169         (main): Call set_program_name.
59170
59171         * modules/array-list-tests (Depends-on): Add progname.
59172         * tests/test-array_list.c: Include progname.h.
59173         (main): Call set_program_name.
59174
59175         * modules/argp-tests (Depends-on): Add progname.
59176         * tests/test-argp.c: Include argp.h first. Include progname.h.
59177         (main): Call set_program_name.
59178
59179 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
59180
59181         * doc/gnulib-tool.texi (Initial import): Reword description of
59182         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
59183         limited effect even if defined after the first system include.
59184
59185 2007-03-01  Bruno Haible  <bruno@clisp.org>
59186
59187         * build-aux/config.libpath: Update to libtool-1.5.22.
59188         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59189
59190 2007-03-01  Bruno Haible  <bruno@clisp.org>
59191
59192         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
59193         foo_CFLAGS.
59194         Reported by Ralf Wildenhues.
59195
59196 2007-03-01  Bruno Haible  <bruno@clisp.org>
59197
59198         * build-aux/install-reloc: Remove object files left over by some
59199         compilers.
59200         Reported by Ralf Wildenhues.
59201
59202 2007-03-01  Bruno Haible  <bruno@clisp.org>
59203
59204         * build-aux/install-reloc: Break long lines.
59205
59206 2007-03-01  Bruno Haible  <bruno@clisp.org>
59207
59208         * doc/relocatable.texi: Document that it may not work on OpenBSD.
59209         Reported by Ralf Wildenhues.
59210
59211 2007-03-01  Bruno Haible  <bruno@clisp.org>
59212
59213         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
59214         include ordering constraints.
59215
59216 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59217
59218         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
59219         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
59220         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
59221         as another example.
59222         * lib/time_.h: Fix misspelling.
59223         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59224         Require gl_HEADER_TIME_H_DEFAULTS.
59225         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
59226         * m4/time_r.m4 (gl_TIME_R): Likewise.
59227         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
59228
59229 2007-03-01  Bruno Haible  <bruno@clisp.org>
59230
59231         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
59232         * m4/utimens.m4 (gl_UTIMENS): Likewise.
59233
59234 2007-03-01  Jim Meyering  <jim@meyering.net>
59235
59236         * modules/xreadlink (Maintainer): Add my name.
59237         * modules/xreadlink-with-size (Depends-on): Alphabetize.
59238
59239 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
59240             Bruno Haible  <bruno@clisp.org>
59241
59242         * build-aux/install-reloc: Compile also c-ctype.c.
59243         * build-aux/relocatable.sh.in: New file.
59244         * doc/relocatable.texi: New file.
59245         * doc/relocatable-maint.texi: New file.
59246         * doc/gnulib.texi: Include relocatable-maint.texi.
59247         * lib/progreloc.c: Include unistd.h unconditionally.
59248         * lib/relocwrapper.c: Include unistd.h unconditionally.
59249         Include c-ctype.h.
59250         (add_dotbin): Use c_tolower.
59251         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
59252         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
59253         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
59254         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
59255         to m4/relocatable-lib.m4.
59256         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
59257         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
59258         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
59259         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
59260         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
59261         * modules/relocatable: New file.
59262         * modules/relocatable-lib: New file.
59263         * modules/relocatable-script: New file.
59264
59265 2007-02-28  Bruno Haible  <bruno@clisp.org>
59266
59267         Import --enable-relocatable infrastructure.
59268         * build-aux/config.libpath: New file, from GNU gettext.
59269         * build-aux/install-reloc: New file, from GNU gettext.
59270         * build-aux/reloc-ldflags: New file, from GNU gettext.
59271         * lib/relocatable.h: New file, from GNU gettext.
59272         * lib/relocatable.c: New file, from GNU gettext.
59273         * lib/relocwrapper.c: New file, from GNU gettext.
59274         * m4/relocatable.m4: New file, from GNU gettext.
59275
59276 2007-02-28  Bruno Haible  <bruno@clisp.org>
59277
59278         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
59279
59280         * modules/xreadlink: New file, from GNU gettext with modifications.
59281         * lib/xreadlink.c: New file, from GNU gettext.
59282         * lib/xreadlink.h: Add comments.
59283         (xreadlink): New declaration.
59284
59285         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
59286         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
59287         lib/xreadlink-with-size.c.
59288         (configure.ac): Remove gl_XREADLINK invocation.
59289         (Makefile.am): Augment lib_SOURCES.
59290         * m4/xreadlink.m4: Remove file.
59291         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
59292         (xreadlink_with_size): Renamed from xreadink.
59293         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
59294         * modules/canonicalize (Depends-on): Replace xreadlink with
59295         xreadlink-with-size.
59296         * lib/canonicalize.c (canonicalize_filename_mode): Update.
59297
59298 2007-02-25  Jim Meyering  <jim@meyering.net>
59299
59300         * build-aux/announce-gen: When complaining about excess arguments,
59301         list them.
59302
59303 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59304
59305         * README: Document signed integer overflow situation more
59306         accurately.
59307
59308 2007-02-25  Bruno Haible  <bruno@clisp.org>
59309
59310         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
59311         'a' or 'A' conversion.
59312
59313 2007-02-25  Bruno Haible  <bruno@clisp.org>
59314
59315         * modules/filename: Renamed from modules/pathname.
59316         (Files): Replace lib/pathname.h with lib/filename.h. Replace
59317         lib/concatpath.c with lib/concat-filename.c.
59318         (Makefile.am): Update.
59319         (Include): Replace pathname.h with filename.h.
59320         * lib/filename.h: Renamed from lib/pathname.h.
59321         (concatenated_filename): Renamed from concatenated_pathname.
59322         * lib/concat-filename.c: Renamed from lib/concatpath.c.
59323         (concatenated_filename): Renamed from concatenated_pathname.
59324         * lib/findprog.c: Include filename.h instead of pathname.h.
59325         (find_in_path): Update.
59326         * lib/javacomp.c: Include filename.h instead of pathname.h.
59327         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
59328         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
59329         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
59330         is_oldgcj_14_13_usable, is_javac_usable): Update.
59331         * lib/javaexec.c: Include filename.h instead of pathname.h.
59332         (execute_java_class): Update.
59333         * modules/findprog: Update.
59334         * modules/javacomp: Update.
59335         * modules/javaexec: Update.
59336         * MODULES.html.sh (File system functions): Add 'filename', remove
59337         'pathname'.
59338
59339 2007-02-25  Bruno Haible  <bruno@clisp.org>
59340
59341         * modules/printf-frexpl-tests: New file.
59342         * tests/test-printf-frexpl.c: New file.
59343
59344         * modules/printf-frexpl: New file.
59345         * lib/printf-frexpl.h: New file.
59346         * lib/printf-frexpl.c: New file.
59347         * m4/printf-frexpl.m4: New file.
59348
59349 2007-02-25  Bruno Haible  <bruno@clisp.org>
59350
59351         * modules/printf-frexp-tests: New file.
59352         * tests/test-printf-frexp.c: New file.
59353
59354         * modules/printf-frexp: New file.
59355         * lib/printf-frexp.h: New file.
59356         * lib/printf-frexp.c: New file.
59357         * m4/printf-frexp.m4: New file.
59358
59359 2007-02-25  Bruno Haible  <bruno@clisp.org>
59360
59361         Assume automake >= 1.10 for the tests.
59362         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
59363         * modules/arctwo-tests: Likewise.
59364         * modules/argp-tests: Likewise.
59365         * modules/avltree-list-tests: Likewise.
59366         * modules/avltree-oset-tests: Likewise.
59367         * modules/avltreehash-list-tests: Likewise.
59368         * modules/carray-list-tests: Likewise.
59369         * modules/crc-tests: Likewise.
59370         * modules/des-tests: Likewise.
59371         * modules/gc-arcfour-tests: Likewise.
59372         * modules/gc-arctwo-tests: Likewise.
59373         * modules/gc-des-tests: Likewise.
59374         * modules/gc-hmac-md5-tests: Likewise.
59375         * modules/gc-hmac-sha1-tests: Likewise.
59376         * modules/gc-md2-tests: Likewise.
59377         * modules/gc-md4-tests: Likewise.
59378         * modules/gc-md5-tests: Likewise.
59379         * modules/gc-pbkdf2-sha1-tests: Likewise.
59380         * modules/gc-rijndael-tests: Likewise.
59381         * modules/gc-sha1-tests: Likewise.
59382         * modules/gc-tests: Likewise.
59383         * modules/getaddrinfo-tests: Likewise.
59384         * modules/hmac-md5-tests: Likewise.
59385         * modules/hmac-sha1-tests: Likewise.
59386         * modules/linked-list-tests: Likewise.
59387         * modules/linkedhash-list-tests: Likewise.
59388         * modules/lock-tests: Likewise.
59389         * modules/md2-tests: Likewise.
59390         * modules/md4-tests: Likewise.
59391         * modules/md5-tests: Likewise.
59392         * modules/rbtree-list-tests: Likewise.
59393         * modules/rbtree-oset-tests: Likewise.
59394         * modules/rbtreehash-list-tests: Likewise.
59395         * modules/read-file-tests: Likewise.
59396         * modules/rijndael-tests: Likewise.
59397         * modules/stdint-tests: Likewise.
59398         * modules/tls-tests: Likewise.
59399
59400 2007-02-24  Bruno Haible  <bruno@clisp.org>
59401
59402         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
59403         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
59404         function; instead check whether isnan with a double argument links.
59405         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
59406         function; instead check whether isnan with a 'long double' argument
59407         links.
59408         Reported by Eric Blake <ebb9@byu.net>.
59409
59410 2007-02-24  Bruno Haible  <bruno@clisp.org>
59411
59412         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
59413         defined.
59414         * lib/isnanl.c: Remove all code. Just include isnan.c.
59415         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
59416
59417 2007-02-25  Jim Meyering  <jim@meyering.net>
59418
59419         Avoid conflicting types for 'unsetenv' on FreeBSD.
59420         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
59421         conflicting with FreeBSD's (5.0 and 6.1) function declaration
59422         in stdlib.h.
59423
59424 2007-02-24  Bruno Haible  <bruno@clisp.org>
59425
59426         * modules/isnanl-nolibm-tests: New file.
59427         * tests/test-isnanl.c: New file.
59428
59429         * modules/isnanl-nolibm: New file.
59430         * lib/isnanl.h: New file.
59431         * lib/isnanl.c: New file.
59432         * m4/isnanl.m4: New file.
59433
59434 2007-02-24  Bruno Haible  <bruno@clisp.org>
59435
59436         * modules/isnan-nolibm-tests: New file.
59437         * tests/test-isnan.c: New file.
59438
59439         * modules/isnan-nolibm: New file.
59440         * lib/isnan.h: New file.
59441         * lib/isnan.c: New file.
59442         * m4/isnan.m4: New file.
59443
59444 2007-02-24  Bruno Haible  <bruno@clisp.org>
59445
59446         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
59447         assume that an exponent fits in 20 bits.
59448
59449 2007-02-24  Jim Meyering  <jim@meyering.net>
59450
59451         * m4/regex.m4: Update the description of the configure-time option,
59452         --without-included-regex, to state accurately what the defaults are,
59453         and perhaps to give people an idea why using this option is risky.
59454
59455 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
59456
59457         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
59458         loops on small arguments.  This attempts to avoid the problem
59459         Bruno Haible reported for AIX 4.3.2 in
59460         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
59461
59462 2007-02-23  Bruno Haible  <bruno@clisp.org>
59463
59464         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
59465         Needed for help2man.
59466
59467 2007-02-23  Karl Berry  <karl@gnu.org>
59468
59469         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
59470         exists, foo.h should be cvs-ignored, not committed.
59471
59472 2007-02-23  Eric Blake  <ebb9@byu.net>
59473
59474         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
59475         * lib/stat-time.h (includes): Likewise.
59476         * lib/utimecmp.c (includes): Likewise.
59477         * lib/utimens.h (includes): Likewise.
59478         * lib/getdate.y (includes): Also include "timespec.h" for use
59479         internal to the module.
59480         * modules/utimens (Depends-on): Revert yesterday's patch.
59481         * modules/nanosleep (Depends-on): Add missing dependency.
59482
59483 2007-02-22  Bruno Haible  <bruno@clisp.org>
59484
59485         * lib/glob.c: Don't include getlogin_r.h.
59486
59487 2007-02-22  Jim Meyering  <jim@meyering.net>
59488
59489         * modules/utimens (Depends-on): Add timespec, required for
59490         utimens.h's inclusion of timespec.h.
59491
59492 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
59493
59494         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
59495         long unreadable paths in GNU/Linux.  Problem reported by Andreas
59496         Schwab in
59497         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
59498         I'll try to think of a better way to fix the Solaris problem.
59499
59500         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
59501         like glibc; on Solaris 10, it fails with errno == EINVAL.
59502         POSIX says the behavior is unspecified if the first argument is NULL,
59503         so play it safe and never pass NULL to the system getcwd.
59504
59505 2007-02-21  Jim Meyering  <jim@meyering.net>
59506
59507         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
59508         of gettimeofday.  It would conflict with the one now always
59509         provided via sys_time_.h.  Reported by Matthew Woehlke, as
59510         an IRIX 6.5 build failure.
59511
59512 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
59513
59514         Minor fixups to port to Solaris 10 with Sun C 5.8.
59515         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
59516         * modules/getcwd (Depends-on): Add dirfd.
59517         * lib/putenv.c (putenv): #undef it.
59518         (rpl_putenv): New decl.
59519         (malloc, free): Include <stdlib.h> rather than prototyping separately.
59520
59521 2007-02-20  Bruno Haible  <bruno@clisp.org>
59522
59523         * modules/stdio-tests: New file.
59524         * tests/test-stdio.c: New file.
59525
59526         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
59527         (Depends-on): Add stdio.
59528         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59529         (Include): Use <stdio.h> instead of vsnprintf.h.
59530         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59531         HAVE_DECL_VSNPRINTF.
59532         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
59533
59534         * modules/snprintf (Files): Remove lib/snprintf.h.
59535         (Depends-on): Add stdio.
59536         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59537         (Include): Use <stdio.h> instead of snprintf.h.
59538         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59539         HAVE_DECL_SNPRINTF.
59540         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
59541         * lib/getaddrinfo.c: Likewise.
59542
59543         * modules/stdio: New file.
59544         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
59545         * lib/snprintf.h: Remove file.
59546         * lib/vsnprintf.h: Remove file.
59547         * lib/.cppi-disable: Remove snprintf.h.
59548         * m4/stdio_h.m4: New file.
59549         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
59550
59551 2007-02-20  Jim Meyering  <jim@meyering.net>
59552
59553         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
59554         used by e.g., mingw.  From Bruno Haible.
59555
59556 2007-02-19  Bruno Haible  <bruno@clisp.org>
59557
59558         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
59559         warnings.
59560         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59561
59562 2007-02-19  Bruno Haible  <bruno@clisp.org>
59563
59564         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
59565         from mingw users.
59566
59567 2007-02-19  Bruno Haible  <bruno@clisp.org>
59568
59569         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
59570         warnings.
59571         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
59572
59573 2007-02-19  Jim Meyering  <jim@meyering.net>
59574
59575         Don't use FD after a successful "fdopendir (fd)".
59576         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
59577         Reset it by calling dirfd on the just-obtained DIR*.
59578
59579         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
59580         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
59581
59582 2007-02-18  Bruno Haible  <bruno@clisp.org>
59583
59584         * lib/readlink.c: Include <unistd.h>.
59585         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
59586         HAVE_READLINK.
59587         * modules/readlink (Depends-on): Add unistd.
59588         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59589         (Include): Add <unistd.h>.
59590
59591         * lib/getlogin_r.h: Remove file.
59592         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
59593         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
59594         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
59595         HAVE_DECL_GETLOGIN_R.
59596         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
59597         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59598         (Include): Use <unistd.h> instead of getlogin_r.h.
59599
59600         * lib/getcwd.h: Remove file.
59601         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
59602         * lib/xgetcwd.c: Likewise.
59603         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
59604         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
59605         * modules/getcwd (Files): Remove lib/getcwd.h.
59606         (Depends-on): Add unistd.
59607         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59608         (Include): Use <unistd.h> instad of getcwd.h.
59609
59610         * lib/ftruncate.c: Include <unistd.h> first.
59611         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
59612         Set HAVE_FTRUNCATE.
59613         * modules/ftruncate (Depends-on): Add unistd.
59614         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59615
59616         * lib/fchdir.c: Include <unistd.h> first.
59617         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
59618         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
59619         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
59620         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59621         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
59622
59623         * lib/dup2.c: Include <unistd.h> first.
59624         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
59625         HAVE_DUP2.
59626         * modules/dup2 (Depends-on): Add unistd.
59627         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59628
59629         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
59630         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
59631         REPLACE_CHOWN. Don't define chown as a macro here.
59632         * modules/chown (Depends-on): Add unistd.
59633         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59634
59635         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
59636         Add definition for GL_LINK_WARNING.
59637         (chown, dup2): New declarations.
59638         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
59639         link warning.
59640         (ftruncate): New declaration.
59641         (getcwd): New declaration, taken from old getcwd.h.
59642         (getlogin_r): New declaration, taken from old getlogin_r.h.
59643         (readlink): New declaration.
59644         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
59645         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
59646         (gl_PREREQ_UNISTD): Remove macro.
59647         (gl_UNISTD_MODULE_INDICATOR): New macro.
59648         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
59649         many new variables. Don't set UNISTD_H.
59650         * modules/unistd (Description): Change.
59651         (Depends-on): Add link-warning.
59652         (configure.ac): Update.
59653         (Makefile.am): Create unistd.h always. Substitute many new variables
59654         into it.
59655
59656 2007-02-18  Bruno Haible  <bruno@clisp.org>
59657
59658         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
59659         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
59660         HAVE_GETSUBOPT.
59661         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
59662         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
59663         * lib/getsubopt.h: Remove file.
59664         * modules/getsubopt (Files): Remove lib/getsubopt.h.
59665         (Depends-on): Add stdlib.
59666         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59667         (Includes): Use <stdlib.h> instead of getsubopt.h.
59668         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
59669         Set HAVE_GETSUBOPT.
59670         * lib/getsubopt.c: Don't include getsubopt.h.
59671
59672 2007-02-18  Bruno Haible  <bruno@clisp.org>
59673
59674         * modules/fchdir (Depends-on): Add dup2.
59675
59676 2007-02-18  Bruno Haible  <bruno@clisp.org>
59677
59678         * lib/stdlib_.h: Handle glibc's special invocation convention
59679         specially.
59680
59681 2007-02-18  Bruno Haible  <bruno@clisp.org>
59682
59683         * modules/stdlib-tests: New file.
59684         * tests/test-stdlib.c: New file.
59685
59686         * modules/mkstemp (Files): Remove lib/mkstemp.h.
59687         (Depends-on): Add stdlib.
59688         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59689         (Includes): Use <stdlib.h> instead of mkstemp.h.
59690         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59691         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
59692         * lib/mkstemp.c: Don't include mkstemp.h.
59693         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
59694         * lib/stdlib--.h: Don't include mkstemp.h.
59695
59696         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
59697         (Depends-on): Add stdlib.
59698         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59699         (Includes): Use <stdlib.h> instead of mkdtemp.h.
59700         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59701         HAVE_MKDTEMP.
59702         * lib/mkdtemp.c: Don't include mkdtemp.h.
59703         * lib/clean-temp.c: Don't include mkdtemp.h.
59704
59705         * modules/exit (Files): Remove lib/exit.h.
59706         (Depends-on): Add stdlib.
59707         (Makefile.am): Remove lib_SOURCES.
59708         (Include): Use <stdlib.h> instead of exit.h.
59709         * lib/argmatch.c: Don't include exit.h.
59710         * lib/execute.c: Likewise.
59711         * lib/pagealign_alloc.c: Likewise.
59712         * lib/pipe.c: Likewise.
59713         * lib/wait-process.c: Likewise.
59714         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
59715         * lib/exitfail.c: Likewise.
59716         * lib/savewd.c: Likewise.
59717         * lib/xsetenv.c: Likewise.
59718
59719         * modules/stdlib: New file.
59720         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
59721         and extra comments about mkstemp().
59722         * lib/exit.h: Remove file.
59723         * lib/mkdtemp.h: Remove file.
59724         * lib/mkstemp.h: Remove file.
59725         * m4/stdlib_h.m4: New file.
59726         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
59727
59728 2007-02-18  Bruno Haible  <bruno@clisp.org>
59729
59730         * modules/math-tests: New file.
59731         * tests/test-math.c: New file.
59732
59733         * modules/math: New file.
59734         * modules/mathl (Files): Remove lib/mathl.h.
59735         (Depends-on): Add math.
59736         (Makefile.am): Don't mention mathl.h.
59737         (Include): Use <math.h> instead of mathl.h.
59738         * lib/math_.h: New file.
59739         * lib/mathl.h: Remove file.
59740         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
59741         mathl.h.
59742         * lib/asinl.c: Likewise.
59743         * lib/atanl.c: Likewise.
59744         * lib/ceill.c: Likewise.
59745         * lib/cosl.c: Likewise.
59746         * lib/expl.c: Likewise.
59747         * lib/floorl.c: Likewise.
59748         * lib/frexpl.c: Likewise.
59749         * lib/ldexpl.c: Likewise.
59750         * lib/logl.c: Likewise.
59751         * lib/sincosl.c: Likewise.
59752         * lib/sinl.c: Likewise.
59753         * lib/sqrtl.c: Likewise.
59754         * lib/tanl.c: Likewise.
59755         * lib/trigl.c: Likewise.
59756         * m4/math_h.m4: New file.
59757         * MODULES.html.sh (Mathematics): Add math.
59758
59759 2007-02-17  Bruno Haible  <bruno@clisp.org>
59760
59761         * modules/wctype-tests: New file.
59762         * tests/test-wctype.c: New file.
59763
59764         * modules/wchar-tests: New file.
59765         * tests/test-wchar.c: New file.
59766
59767         * modules/unistd-tests: New file.
59768         * tests/test-unistd.c: New file.
59769
59770         * modules/time-tests: New file.
59771         * tests/test-time.c: New file.
59772
59773         * modules/sysexits-tests: New file.
59774         * tests/test-sysexits.c: New file.
59775
59776         * modules/sys_time-tests: New file.
59777         * tests/test-sys_time.c: New file.
59778
59779         * modules/sys_stat-tests: New file.
59780         * tests/test-sys_stat.c: New file.
59781
59782         * modules/sys_socket-tests: New file.
59783         * tests/test-sys_socket.c: New file.
59784
59785         * modules/sys_select-tests: New file.
59786         * tests/test-sys_select.c: New file.
59787
59788         * modules/string-tests: New file.
59789         * tests/test-string.c: New file.
59790
59791         * modules/stdbool-tests: New file.
59792         * tests/test-stdbool.c: New file.
59793
59794         * modules/netinet_in-tests: New file.
59795         * tests/test-netinet_in.c: New file.
59796
59797         * modules/inttypes-tests: New file.
59798         * tests/test-inttypes.c: New file.
59799
59800         * modules/fcntl-tests: New file.
59801         * tests/test-fcntl.c: New file.
59802
59803         * modules/byteswap-tests: New file.
59804         * tests/test-byteswap.c: New file.
59805
59806         * modules/arpa_inet-tests: New file.
59807         * tests/test-arpa_inet.c: New file.
59808
59809 2007-02-17  Bruno Haible  <bruno@clisp.org>
59810
59811         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
59812         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
59813         if the corresponding module is not enabled. Emit link warnings if
59814         the function is used nevertheless.
59815         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
59816         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
59817         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
59818         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
59819         * modules/inttypes (Depends-on): Add link-warning.
59820         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59821         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
59822         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
59823         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
59824         * modules/imaxdiv (configure.ac): Likewise.
59825         * modules/strtoimax (configure.ac): Likewise.
59826         * modules/strtoumax (configure.ac): Likewise.
59827
59828 2007-02-17  Bruno Haible  <bruno@clisp.org>
59829
59830         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
59831         gl_STRING_MODULE_INDICATOR_DEFAULTS.
59832         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
59833         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
59834
59835 2007-02-17  Bruno Haible  <bruno@clisp.org>
59836
59837         * modules/link-warning: New file.
59838         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
59839         * lib/string_.h (GL_LINK_WARNING): Remove definition.
59840         * modules/string (Depends-on): Add link-warning.
59841         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59842         string.h.
59843         * MODULES.html.sh (Support for building libraries and executables): Add
59844         link-warning.
59845
59846 2007-02-17  Bruno Haible  <bruno@clisp.org>
59847
59848         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
59849         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
59850         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
59851         long lines.
59852
59853 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
59854             Bruno Haible  <bruno@clisp.org>
59855
59856         * modules/tmpfile: New file.
59857         * lib/tmpfile.c: New file.
59858         * m4/tmpfile.m4: New file.
59859         * MODULES.html.sh (func_all_modules): New section "Input/output".
59860
59861 2007-02-15  Bruno Haible  <bruno@clisp.org>
59862
59863         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
59864         (supports_delete_on_close): New function.
59865         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
59866
59867 2007-02-14  Bruno Haible  <bruno@clisp.org>
59868
59869         * modules/mbspcasecmp-tests: New file.
59870         * tests/test-mbspcasecmp.sh: New file.
59871         * tests/test-mbspcasecmp.c: New file.
59872
59873         New module mbspcasecmp.
59874         * modules/mbspcasecmp: New file.
59875         * lib/mbspcasecmp.c: New file.
59876         * lib/string_.h (strncasecmp): Change warning message.
59877         (mbspcasecmp): New declaration.
59878         * m4/mbspcasecmp.m4: New file.
59879         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59880         GNULIB_MBSPCASECMP.
59881         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
59882         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
59883
59884 2007-02-14  Bruno Haible  <bruno@clisp.org>
59885
59886         * modules/mbsncasecmp-tests: New file.
59887         * tests/test-mbsncasecmp.sh: New file.
59888         * tests/test-mbsncasecmp.c: New file.
59889
59890         New module mbsncasecmp.
59891         * modules/mbsncasecmp: New file.
59892         * lib/mbsncasecmp.c: New file.
59893         * lib/string_.h (mbsncasecmp): New declaration.
59894         * m4/mbsncasecmp.m4: New file.
59895         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59896         GNULIB_MBSNCASECMP.
59897         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
59898         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
59899
59900 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
59901
59902         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
59903         Verify that it doesn't overlap with our flags.
59904         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
59905         do not have the desired effect in multibyte locales; instead, use
59906         mbscasecmp.
59907         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
59908         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
59909         we don't require GNU fnmatch ourselves (if our users require it, they
59910         should do so explicitly).
59911
59912         Fix regex code so it doesn't rely on strcasecmp.
59913         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
59914         Otherwise, include gnulib's langinfo.h.
59915         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
59916         undesirable behavior in non-C locales.  Instead, rely on localecharset.
59917         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
59918         * modules/regex (FILES): Remove m4/codeset.m4.
59919         (Depends-on): Add localcharset.  Remove strcase.
59920
59921 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59922
59923         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
59924         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59925
59926 2007-02-13  Bruno Haible  <bruno@clisp.org>
59927
59928         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
59929         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59930
59931 2007-02-12  Bruno Haible  <bruno@clisp.org>
59932
59933         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59934         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
59935         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
59936         time warning rather than a link error.
59937
59938 2007-02-12  Bruno Haible  <bruno@clisp.org>
59939
59940         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
59941         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59942         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59943
59944 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59945
59946         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
59947         args, not 2.
59948
59949 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59950
59951         New module 'time', so that apps can include <time.h> as per
59952         POSIX and GNU instead of separate include files like time_r.h
59953         and timegm.h.  This implementation tries out a simpler approach
59954         for replacing decls in standard include files (as compared to
59955         the string module), somewhat as an experiment.
59956
59957         * config/srclist.txt: Comment out mktime.c for now.
59958         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
59959         since it doesn't apply any more.  Use generic wording instead.
59960         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
59961         'time'.
59962         * lib/time_.h, m4/time_h.m4, modules/time: New files.
59963         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
59964         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
59965         Don't include <sys/types.h>; no longer needed since we assume C89.
59966         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
59967         * lib/strftime.c: Likewise.
59968         * lib/time_r.c: Likewise.
59969         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
59970         * lib/nanosleep.c: Include <time.h> first, to check interface.
59971         * lib/strptime.c: Likewise.
59972         * lib/time_r.c: Likewise.
59973         * lib/timegm.c: Likewise.
59974         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
59975         needed.
59976         * lib/timegm.c: Don't include timegm.h; no longer needed.
59977         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
59978         time.h now handles any problems in that area.
59979         (struct timespec, nanosleep): Remove; time.h now arranges for these.
59980         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
59981         that time.h defines struct timespec.
59982         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
59983         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
59984         handles that.
59985         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
59986         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
59987         needed.  Set REPLACE_LOCALTIME.
59988         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
59989         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
59990         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
59991         nanosleep; time_h.m4 now does that.  Don't require
59992         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
59993         module handles this now.
59994         * modules/getdate (Depends-on): Remove timespec.  Add time.
59995         * modules/nanosleep (Depends-on): Likewise.
59996         * modules/stat-time (Depends-on): Likewise.
59997         * modules/nanosleep (Include): Include time.h, not timespec.h.
59998         * modules/strptime (Files): Remove lib/strptime.h.
59999         (Depends-on): Add extensions, time.
60000         (Include): Include time.h, not strptime.h.
60001         * modules/time_r (Files): Remove lib/time_r.h.
60002         (Depends-on): Add time.
60003         (Include): Include time.h, not time_r.h.
60004         * modules/timegm: Likewise.
60005         * modules/timespec (Description): Now does timespec-related decls
60006         of our own, instead of struct timespec itself.
60007         (Depends-on): Add time; remove extensions.
60008         (Maintainer): Add self.
60009         * modules/utimecmp (Depends-on): Add time; remove timespec.
60010         * modules/utimens (Depends-on): Likewise.
60011         * modules/xnanosleep (Depends-on): Likewise.
60012
60013 2007-02-11  Bruno Haible  <bruno@clisp.org>
60014
60015         * lib/c-strstr.c: Include allocsa.h.
60016         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60017         * lib/c-strcasestr.c: Include allocsa.h.
60018         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60019         * lib/strcasestr.c: Include allocsa.h.
60020         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60021         * lib/mbsstr.c: Include allocsa.h.
60022         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
60023         allocsa/freesa instead of malloc/free.
60024         * lib/mbscasestr.c: Include allocsa.h.
60025         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
60026         allocsa/freesa instead of malloc/free.
60027         * modules/c-strstr (Depends-on): Add allocsa.
60028         * modules/c-strcasestr (Depends-on): Likewise.
60029         * modules/strcasestr (Depends-on): Likewise.
60030         * modules/mbsstr (Depends-on): Likewise.
60031         * modules/mbscasestr (Depends-on): Likewise.
60032
60033 2007-02-11  Bruno Haible  <bruno@clisp.org>
60034
60035         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
60036
60037         * modules/mbsspn-tests: New file.
60038         * tests/test-mbsspn.sh: New file.
60039         * tests/test-mbsspn.c: New file.
60040
60041 2007-02-11  Bruno Haible  <bruno@clisp.org>
60042
60043         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
60044
60045         * modules/mbspbrk-tests: New file.
60046         * tests/test-mbspbrk.sh: New file.
60047         * tests/test-mbspbrk.c: New file.
60048
60049 2007-02-11  Bruno Haible  <bruno@clisp.org>
60050
60051         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
60052         unneeded cast.
60053
60054         * modules/mbscspn-tests: New file.
60055         * tests/test-mbscspn.sh: New file.
60056         * tests/test-mbscspn.c: New file.
60057
60058 2007-02-11  Bruno Haible  <bruno@clisp.org>
60059
60060         * modules/mbscasecmp-tests: New file.
60061         * tests/test-mbscasecmp.sh: New file.
60062         * tests/test-mbscasecmp.c: New file.
60063
60064 2007-02-11  Bruno Haible  <bruno@clisp.org>
60065
60066         Ensure O(n) worst-case complexity of mbscasestr.
60067         * lib/mbscasestr.c: Include stdbool.h.
60068         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
60069         functions.
60070         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
60071         the bookkeeping indicates that it's worth it.
60072         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
60073
60074         * modules/mbscasestr-tests: New file.
60075         * tests/test-mbscasestr1.c: New file.
60076         * tests/test-mbscasestr2.sh: New file.
60077         * tests/test-mbscasestr2.c: New file.
60078         * tests/test-mbscasestr3.sh: New file.
60079         * tests/test-mbscasestr3.c: New file.
60080         * tests/test-mbscasestr4.sh: New file.
60081         * tests/test-mbscasestr4.c: New file.
60082         * m4/locale-tr.m4: New file.
60083
60084 2007-02-11  Bruno Haible  <bruno@clisp.org>
60085
60086         Ensure O(n) worst-case complexity of mbsstr.
60087         * lib/mbsstr.c: Include stdbool.h.
60088         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
60089         functions.
60090         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
60091         bookkeeping indicates that it's worth it.
60092         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
60093
60094         * modules/mbsstr-tests: New file.
60095         * tests/test-mbsstr1.c: New file.
60096         * tests/test-mbsstr2.sh: New file.
60097         * tests/test-mbsstr2.c: New file.
60098         * tests/test-mbsstr3.sh: New file.
60099         * tests/test-mbsstr3.c: New file.
60100         * m4/locale-fr.m4: New file.
60101
60102 2007-02-11  Bruno Haible  <bruno@clisp.org>
60103
60104         * lib/mbsrchr.c (mbsrchr): Fix bug.
60105
60106         * modules/mbsrchr-tests: New file.
60107         * tests/test-mbsrchr.sh: New file.
60108         * tests/test-mbsrchr.c: New file.
60109
60110 2007-02-11  Bruno Haible  <bruno@clisp.org>
60111
60112         * lib/mbschr.c (mbschr): Fix bug.
60113
60114         * modules/mbschr-tests: New file.
60115         * tests/test-mbschr.sh: New file.
60116         * tests/test-mbschr.c: New file.
60117         * m4/locale-zh.m4: New file.
60118
60119 2007-02-11  Bruno Haible  <bruno@clisp.org>
60120
60121         Support for copying multibyte string iterators.
60122         * lib/mbiter.h: Include <string.h>.
60123         (mbiter_multi_copy): New function.
60124         (mbi_copy): New macro.
60125         * lib/mbuiter.h: Include <string.h>.
60126         (mbuiter_multi_copy): New function.
60127         (mbui_copy): New macro.
60128
60129 2007-02-11  Bruno Haible  <bruno@clisp.org>
60130
60131         New module mbslen.
60132         * modules/mbslen: New file.
60133         * lib/mbslen.c: New file.
60134         * lib/string_.h (mbslen): New declaration.
60135         * m4/mbslen.m4: New file.
60136         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60137         GNULIB_MBSLEN.
60138         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
60139         * MODULES.html.sh (Internationalization functions): Add mbslen.
60140
60141 2007-02-11  Bruno Haible  <bruno@clisp.org>
60142
60143         Ensure O(n) worst-case complexity of strcasestr substitute.
60144         * lib/strcasestr.c: Include stdbool.h.
60145         (knuth_morris_pratt): New function.
60146         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
60147         bookkeeping indicates that it's worth it.
60148         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
60149
60150         * modules/strcasestr-tests: New file.
60151         * tests/test-strcasestr.c: New file.
60152
60153 2007-02-11  Bruno Haible  <bruno@clisp.org>
60154
60155         Ensure O(n) worst-case complexity of c_strcasestr.
60156         * lib/c-strcasestr.c: Include stdbool.h, string.h.
60157         (knuth_morris_pratt): New function.
60158         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
60159         the bookkeeping indicates that it's worth it.
60160         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
60161
60162         * modules/c-strcasestr-tests: New file.
60163         * tests/test-c-strcasestr.c: New file.
60164
60165 2007-02-11  Bruno Haible  <bruno@clisp.org>
60166
60167         Ensure O(n) worst-case complexity of c_strstr.
60168         * lib/c-strstr.c: Include stdbool.h, string.h.
60169         (knuth_morris_pratt): New function.
60170         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
60171         bookkeeping indicates that it's worth it.
60172         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
60173
60174         * lib/c-strstr.c: Complete rewrite for maintainability.
60175
60176         * modules/c-strstr-tests: New file.
60177         * tests/test-c-strstr.c: New file.
60178
60179 2007-02-11  Bruno Haible  <bruno@clisp.org>
60180
60181         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
60182         5.2.1 and earlier, whereby \055 was treated just like the range
60183         delimiter '-'.
60184         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
60185
60186 2007-02-08  Bruno Haible  <bruno@clisp.org>
60187
60188         * modules/regex (Depends-on): Add stdbool.
60189         Reported by Dalibor Topic <robilad@kaffe.org>.
60190
60191 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
60192
60193         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
60194         Prefer returning from main to exiting from it.
60195         Remove unnecessary parens after sizeof.
60196
60197 2007-02-05  Bruno Haible  <bruno@clisp.org>
60198
60199         New module mbssep.
60200         * modules/mbssep: New file.
60201         * lib/mbssep.c: New file.
60202         * lib/string_.h (strsep): Add a conditional link warning.
60203         (mbssep): New declaration.
60204         * m4/mbssep.m4: New file.
60205         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60206         GNULIB_MBSSEP.
60207         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
60208         * MODULES.html.sh (Internationalization functions): Add mbssep.
60209
60210 2007-02-05  Bruno Haible  <bruno@clisp.org>
60211
60212         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
60213         Optimize search in case of 1 delimiter.
60214
60215 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60216
60217         * lib/acl.h: Include sys/types.h before sys/acl.h.
60218
60219 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60220
60221         Merge upstream fix for glibc bugzilla #3957:
60222
60223         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
60224
60225         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
60226         bit for RE_HAT_LISTS_NOT_NEWLINE.
60227         (build_charclass_op): Remove bogus comment.
60228
60229 2007-02-05  Simon Josefsson  <simon@josefsson.org>
60230
60231         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
60232
60233 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60234
60235         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
60236         * lib/memmem.c [!defined _LIBC]: Include config.h.
60237
60238 2007-02-04  Bruno Haible  <bruno@clisp.org>
60239
60240         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
60241         warning message.
60242
60243 2007-02-04  Bruno Haible  <bruno@clisp.org>
60244
60245         New module mbstok_r.
60246         * modules/mbstok_r: New file.
60247         * lib/mbstok_r.c: New file.
60248         * lib/string_.h (strtok_r): Change argument names to match the
60249         comments. Add a conditional link warning.
60250         (mbstok_r): New declaration.
60251         * m4/mbstok_r.m4: New file.
60252         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60253         GNULIB_MBSTOK_R.
60254         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
60255         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
60256
60257 2007-02-04  Bruno Haible  <bruno@clisp.org>
60258
60259         New module mbsspn.
60260         * modules/mbsspn: New file.
60261         * lib/mbsspn.c: New file.
60262         * lib/string_.h (strspn): Add a conditional link warning.
60263         (mbsspn): New declaration.
60264         * m4/mbsspn.m4: New file.
60265         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60266         GNULIB_MBSSPN.
60267         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
60268         * MODULES.html.sh (Internationalization functions): Add mbsspn.
60269
60270 2007-02-04  Bruno Haible  <bruno@clisp.org>
60271
60272         New module mbspbrk.
60273         * modules/mbspbrk: New file.
60274         * lib/mbspbrk.c: New file.
60275         * lib/string_.h (strpbrk): Add a conditional link warning.
60276         (mbspbrk): New declaration.
60277         * m4/mbspbrk.m4: New file.
60278         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60279         GNULIB_MBSPBRK.
60280         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
60281         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
60282
60283 2007-02-04  Bruno Haible  <bruno@clisp.org>
60284
60285         New module mbscspn.
60286         * modules/mbscspn: New file.
60287         * lib/mbscspn.c: New file.
60288         * lib/string_.h (strcspn): Add a conditional link warning.
60289         (mbscspn): New declaration.
60290         * m4/mbscspn.m4: New file.
60291         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60292         GNULIB_MBSCSPN.
60293         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
60294         * MODULES.html.sh (Internationalization functions): Add mbscspn.
60295
60296 2007-02-04  Bruno Haible  <bruno@clisp.org>
60297
60298         New module mbscasestr, reduced goal of strcasestr.
60299         * modules/mbscasestr: New file.
60300         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
60301         (mbscasestr): Renamed from strcasestr.
60302         * lib/strcasestr.c: Don't include mbuiter.h.
60303         (strcasestr): Remove support for multibyte locales.
60304         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
60305         Change the conditional link warning.
60306         (mbscasestr): New declaration.
60307         * m4/mbscasestr.m4: New file.
60308         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
60309         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
60310         REPLACE_STRCASESTR.
60311         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
60312         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60313         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60314         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
60315         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
60316         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60317         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
60318         (Depends-on): Remove mbuiter.
60319         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
60320
60321 2007-02-04  Bruno Haible  <bruno@clisp.org>
60322
60323         Simplify handling of strncasecmp.
60324         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
60325         the conditional link warning.
60326         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60327         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
60328         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
60329         * modules/strcase (configure.ac): Don't invoke
60330         gl_STRING_MODULE_INDICATOR.
60331         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
60332
60333 2007-02-04  Bruno Haible  <bruno@clisp.org>
60334
60335         New module mbscasecmp, reduced goal of strcasecmp.
60336         * modules/mbscasecmp: New file.
60337         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
60338         (mbscasecmp): Renamed from strcasecmp.
60339         * lib/strcasecmp.c: Don't include mbuiter.h.
60340         (strcasecmp): Remove support for multibyte locales.
60341         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
60342         Change the conditional link warning.
60343         (mbscasecmp): New declaration.
60344         * m4/mbscasecmp.m4: New file.
60345         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
60346         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
60347         REPLACE_STRCASECMP.
60348         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
60349         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60350         GNULIB_MBSCASECMP.
60351         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
60352         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
60353         * modules/strcase (Files): Remove m4/mbrtowc.m4.
60354         (Depends-on): Remove mbuiter.
60355         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
60356
60357 2007-02-04  Bruno Haible  <bruno@clisp.org>
60358
60359         New module mbsstr. Remove module strstr.
60360         * modules/mbsstr: New file.
60361         * modules/strstr: Remove file.
60362         * lib/mbsstr.c: Renamed from lib/strstr.c.
60363         (mbsstr): Renamed from strstr.
60364         * lib/string_.h (strstr): Remove declaration. Change the conditional
60365         link warning.
60366         (mbsstr): New declaration.
60367         * m4/mbsstr.m4: New file.
60368         * m4/strstr.m4: Remove file.
60369         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
60370         REPLACE_STRSTR.
60371         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
60372         Don't initialize GNULIB_STRSTR.
60373         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
60374         substitute GNULIB_STRSTR and REPLACE_STRSTR.
60375         * MODULES.html.sh (Internationalization functions): Add mbsstr.
60376         (Support for systems lacking ANSI C 89): Remove strstr.
60377
60378 2007-02-04  Bruno Haible  <bruno@clisp.org>
60379
60380         New module mbsrchr.
60381         * modules/mbsrchr: New file.
60382         * lib/mbsrchr.c: New file.
60383         * lib/string_.h (strrchr): Add a conditional link warning.
60384         (mbsrchr): New declaration.
60385         * m4/mbsrchr.m4: New file.
60386         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60387         GNULIB_MBSRCHR.
60388         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
60389         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
60390
60391 2007-02-04  Bruno Haible  <bruno@clisp.org>
60392
60393         New module mbschr.
60394         * modules/mbschr: New file.
60395         * lib/mbschr.c: New file.
60396         * lib/string_.h (strchr): Add a conditional link warning.
60397         (mbschr): New declaration.
60398         * m4/mbschr.m4: New file.
60399         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60400         GNULIB_MBSCHR.
60401         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
60402         * MODULES.html.sh (Internationalization functions): Add mbschr.
60403
60404 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60405
60406         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
60407
60408         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
60409
60410 2007-02-04  Bruno Haible  <bruno@clisp.org>
60411
60412         New module description section 'configure.ac-early'.
60413         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
60414         (func_get_autoconf_early_snippet): New function.
60415         (func_import, func_create_testdir): Use it. Remove special cases for
60416         modules 'extensions' and 'lock'.
60417         * modules/extensions (configure.ac-early): Require
60418         gl_USE_SYSTEM_EXTENSIONS.
60419         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
60420
60421 2007-02-04  Bruno Haible  <bruno@clisp.org>
60422
60423         Make use of gcj-4.3's -fsource and -ftarget option.
60424         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
60425         and if so try the options -fsource and -ftarget.
60426         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
60427         source_version, ftarget_option, target_version arguments.
60428         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
60429         (is_envjavac_oldgcj_14_14_usable): Renamed from
60430         is_envjavac_gcj_14_14_usable.
60431         (is_envjavac_oldgcj_14_13_usable): Renamed from
60432         is_envjavac_gcj_14_13_usable.
60433         (is_gcj_present): Update.
60434         (is_gcj_43, is_gcj43_usable): New functions.
60435         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
60436         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
60437         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
60438         try the options -fsource and -ftarget.
60439
60440 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60441
60442         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
60443         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
60444         larger value.
60445
60446 2007-02-03  Jim Meyering  <jim@meyering.net>
60447
60448         Give tools a better chance to allocate space for very large buffers.
60449         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
60450
60451         Make pwd and readlink work also when run with an unreadable parent dir
60452         on systems with openat support.
60453         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
60454         provided getcwd function, even when we have openat support.
60455         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
60456
60457 2007-02-02  Bruno Haible  <bruno@clisp.org>
60458
60459         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
60460         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
60461         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
60462         portability problems if one of these functions is only used on specific
60463         platforms.
60464         Reported by Paul Eggert.
60465
60466 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
60467
60468         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
60469         is causing more trouble than it's curing.
60470         * lib/regex_internal.h (__mempcpy): Remove.
60471         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
60472         (and make the code a tad smaller to boot).
60473         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
60474
60475 2007-02-02  Jim Meyering  <jim@meyering.net>
60476
60477         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
60478         section, not in the Makefile.am: one.
60479
60480 2007-02-02  Eric Blake  <ebb9@byu.net>
60481
60482         * lib/strchrnul.c: Always include config.h first.
60483
60484         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
60485         gnulib strstr is not necessary here.
60486
60487 2007-02-02  Simon Josefsson  <simon@josefsson.org>
60488
60489         * m4/socklen.m4: Fix typo.
60490
60491 2007-02-02  Eric Blake  <ebb9@byu.net>
60492
60493         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
60494         * modules/netinet_in (Makefile.am): Likewise.
60495
60496 2007-02-01  Bruno Haible  <bruno@clisp.org>
60497
60498         * lib/string_.h (GL_LINK_WARNING): New macro.
60499         (strcasecmp, strstr, strcasestr): If provided by the system,
60500         conditionally define as a macro that leads to a warning instead of to
60501         an error.
60502         (strncasecmp): Conditionally define as a macro that leads to a warning.
60503
60504 2007-02-01  Karl Berry  <karl@gnu.org>
60505
60506         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
60507
60508 2007-02-01  Bruno Haible  <bruno@clisp.org>
60509
60510         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
60511         renamings.
60512
60513 2007-02-01  Eric Blake  <ebb9@byu.net>
60514
60515         * modules/regex (Depends-on): Revert dependence on mempcpy.
60516         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
60517         module's definition of mempcpy.
60518         Reported by Paul Eggert.
60519
60520 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
60521
60522         * lib/string_.h: If the gnulib module XYZ is not present, undefine
60523         the symbol XYZ before redefining it.  This fixes a problem with
60524         programs that don't use XYZ, when compiled on systems that define
60525         XYZ to something else.
60526
60527 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
60528
60529         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
60530         occurs when "mkdir -m foo" creates a setgid directory that is (1)
60531         writeable to group or other and (2) is intended to have a special
60532         mode bit that is set or cleared.  In such a case, the directory
60533         should be neither group- nor other-writeable until the special
60534         mode bits are right.
60535
60536 2007-01-31  Eric Blake  <ebb9@byu.net>
60537
60538         * modules/mountlist (Depends-on): Add strstr.
60539
60540         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
60541         bug.
60542         * modules/string (Makefile.am): Remove redundant replacement.
60543         * modules/regex (Depends-on): Add mempcpy.
60544
60545 2007-01-31  Bruno Haible  <bruno@clisp.org>
60546
60547         New module description field 'Link'.
60548         * gnulib-tool (func_usage): Document --extract-link-directive.
60549         (sed_extract_prog): Recognize 'Link' directive.
60550         (func_get_link_directive): New function.
60551         (func_import): Show summary of link directives.
60552         Handle --extract-link-directive option.
60553         * modules/acl (Link): New section.
60554         * modules/clock-time (Link): New section.
60555         * modules/euidaccess (Link): New section.
60556         * modules/gettext (Link): New section.
60557         * modules/iconv (Link): New section.
60558         * modules/lock (Link): New section.
60559         * modules/nanosleep (Link): New section.
60560         * modules/readline (Link): New section.
60561
60562 2007-01-27  Bruno Haible  <bruno@clisp.org>
60563
60564         Enforce the use of gnulib modules for unportable <string.h> functions.
60565         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
60566         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
60567         (gl_HEADER_STRING_H_BODY): Require it.
60568         * lib/string_.h: If the gnulib module XYZ is not present, redefine
60569         the symbol XYZ to one that gives a link error.
60570         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
60571         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
60572         * modules/mempcpy (configure.ac): Likewise.
60573         * modules/memrchr (configure.ac): Likewise.
60574         * modules/stpcpy (configure.ac): Likewise.
60575         * modules/stpncpy (configure.ac): Likewise.
60576         * modules/strcase (configure.ac): Likewise.
60577         * modules/strcasestr (configure.ac): Likewise.
60578         * modules/strchrnul (configure.ac): Likewise.
60579         * modules/strdup (configure.ac): Likewise.
60580         * modules/strndup (configure.ac): Likewise.
60581         * modules/strnlen (configure.ac): Likewise.
60582         * modules/strpbrk (configure.ac): Likewise.
60583         * modules/strsep (configure.ac): Likewise.
60584         * modules/strstr (configure.ac): Likewise.
60585         * modules/strtok_r (configure.ac): Likewise.
60586
60587 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
60588
60589         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
60590
60591 2007-01-30  Jim Meyering  <jim@meyering.net>
60592
60593         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
60594
60595 2007-01-29  Bruno Haible  <bruno@clisp.org>
60596
60597         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
60598         * lib/execute.c: Likewise.
60599         * lib/pipe.c: Likewise.
60600         * lib/printf-args.h: Likewise.
60601         * lib/printf-args.c: Likewise.
60602         * lib/printf-parse.c: Likewise.
60603         * lib/vasnprintf.c: Likewise.
60604
60605 2007-01-29  Eric Blake  <ebb9@byu.net>
60606
60607         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
60608         declaration.
60609
60610 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
60611
60612         * lib/strptime.h (strptime): Use 'restrict' for args where
60613         POSIX requires this.
60614         * lib/strptime.c (strptime): Likewise.
60615         Change license notice from LGPL to GPL, since gnulib-tool will
60616         change this as needed.
60617         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
60618         defined.
60619         Include "strptime.h" first, to check interface.
60620         Do not #undef _LIBC and _NL_CURRENT.
60621         Do not include <stdlib.h>; no longer needed.
60622         Include "time_r.h" and declare ptime_locale_status
60623         only if _LIBC is not defined.
60624         (__P): Remove unused macro.
60625         (match_string): Bring back glibc version, but use it only if _LIBC
60626         is defined.
60627         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
60628         Remove unnecessary assertion and abort() call.
60629         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
60630         * m4/strptime.m4: Fix serial number comment.
60631         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
60632         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
60633         (Depends-on): Add time_r.
60634
60635 2007-01-29  Bruno Haible  <bruno@clisp.org>
60636
60637         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60638         strptime.
60639         * modules/strptime (Depends-on): Add stdbool.
60640         * lib/strptime.h: Include <time.h> always. Add comments.
60641
60642 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60643
60644         * modules/strptime: New file.
60645         * lib/strptime.h: New file.
60646         * lib/strptime.c: New file.
60647         * m4/strptime.m4: New file.
60648
60649 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60650
60651         * MODULES.html.sh: New module mpsort.
60652         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
60653
60654         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
60655         a circularity problem with HP-UX ia64 reported by Bob Proulx in
60656         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
60657         All uses changed.
60658         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
60659         All uses changed.
60660         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
60661         to _Restrict_.
60662         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
60663         the parameter matches the prototype.
60664
60665 2007-01-28  Jim Meyering  <jim@meyering.net>
60666
60667         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
60668         sys/time.h here, reverting that part of the previous patch:
60669         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
60670
60671 2007-01-28  Bruno Haible  <bruno@clisp.org>
60672
60673         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
60674         value of $(SYS_TIME_H).
60675         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
60676         remove it conditionally, too. [added by Jim Meyering]
60677         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
60678         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60679         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
60680         GETTIMEOFDAY_REPLACEMENT to 1.
60681
60682 2007-01-28  Bruno Haible  <bruno@clisp.org>
60683
60684         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
60685         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
60686         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
60687         Set UNISTD_H instead of UNISTD_H2.
60688         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
60689
60690 2007-01-28  Bruno Haible  <bruno@clisp.org>
60691
60692         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
60693         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
60694
60695 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60696
60697         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
60698         (func_create_testdir): Ensure C locale for `grep' and `tr'
60699         character ranges.
60700         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
60701         ACLOCAL_AMFLAGS parsing state machine.
60702
60703 2007-01-27  Bruno Haible  <bruno@clisp.org>
60704
60705         * modules/unistr/base: Update.
60706
60707 2007-01-27  Bruno Haible  <bruno@clisp.org>
60708
60709         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
60710         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
60711         * modules/unistr/u32-mbtouc-unsafe: Renamed from
60712         modules/unistr/u32-mbtouc.
60713         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
60714         * lib/unistr.h: Update.
60715         * lib/linebreak.c: Update.
60716         * modules/unistr/u32-mbtouc: Renamed from
60717         modules/unistr/u32-mbtouc-safe.
60718         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
60719         * lib/unistr.h: Update.
60720         * lib/unistr/u32-to-u8.c: Update.
60721         * lib/unistr/u32-to-u16.c: Update.
60722
60723 2007-01-27  Bruno Haible  <bruno@clisp.org>
60724
60725         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
60726         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
60727         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
60728         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
60729         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
60730         * modules/unistr/u16-mbtouc-unsafe: Renamed from
60731         modules/unistr/u16-mbtouc.
60732         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
60733         * lib/unistr.h: Update.
60734         * lib/linebreak.c: Update.
60735         * modules/linebreak: Update.
60736         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
60737         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
60738         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
60739         * modules/unistr/u16-mbtouc: Renamed from
60740         modules/unistr/u16-mbtouc-safe.
60741         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
60742         * lib/unistr.h: Update.
60743         * lib/unistr/u16-to-u8.c: Update.
60744         * modules/unistr/u16-to-u8: Update.
60745         * lib/unistr/u16-to-u32.c: Update.
60746         * modules/unistr/u16-to-u32: Update.
60747
60748 2007-01-27  Bruno Haible  <bruno@clisp.org>
60749
60750         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
60751         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
60752         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
60753         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
60754         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
60755         * modules/unistr/u8-mbtouc-unsafe: Renamed from
60756         modules/unistr/u8-mbtouc.
60757         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
60758         * lib/unistr.h: Update.
60759         * lib/striconveh.c: Update.
60760         * modules/striconveh: Update.
60761         * lib/linebreak.c: Update.
60762         * modules/linebreak: Update.
60763         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
60764         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
60765         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
60766         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
60767         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
60768         * lib/unistr.h: Update.
60769         * lib/striconveh.c: Update.
60770         * modules/striconveh: Update.
60771         * lib/unistr/u8-to-u16.c: Update.
60772         * modules/unistr/u8-to-u16: Update.
60773         * lib/unistr/u8-to-u32.c: Update.
60774         * modules/unistr/u8-to-u32: Update.
60775
60776 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60777
60778         Sync from Libtool.
60779         * lib/argz.c: Do not include strings.h nor memory.h, include
60780         string.h unconditionally.  Patch by Simon Josefsson.
60781
60782 2007-01-27  Bruno Haible  <bruno@clisp.org>
60783
60784         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
60785         from gl_HEADER_STRING_H_BODY.
60786         (gl_HEADER_STRING_H_BODY): Require it.
60787         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
60788         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
60789         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
60790         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
60791         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60792         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
60793         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60794         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
60795         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
60796         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60797         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
60798         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
60799         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
60800         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60801         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60802
60803 2007-01-27  Bruno Haible  <bruno@clisp.org>
60804
60805         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
60806         check_PROGRAMS into noinst_PROGRAMS.
60807         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
60808         check_PROGRAMS in this case.
60809         (func_import): Set for_test to false.
60810         (func_create_testdir): Set for_test to true.
60811
60812 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
60813             Bruno Haible  <bruno@clisp.org>
60814
60815         * modules/strcasestr (Files): Remove lib/strcasestr.h.
60816         (Depends-on): Add string.
60817         (Includes): Use <string.h> instead of strcasestr.h.
60818         * modules/string (Makefile.am): Also substitute the value of
60819         REPLACE_STRCASESTR.
60820         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
60821         assume strcasestr is declared in <string.h> not <strings.h>. Also
60822         set REPLACE_STRCASESTR.
60823         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
60824         REPLACE_STRCASESTR.
60825         * lib/strcasestr.h: Remove file.
60826         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
60827         * lib/string_.h (strcasestr): New declaration.
60828
60829 2007-01-27  Bruno Haible  <bruno@clisp.org>
60830
60831         * lib/string_.h: Use 'extern'.
60832
60833 2007-01-27  Jim Meyering  <jim@meyering.net>
60834
60835         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
60836         of set-but-not-used local, "q".
60837
60838         * lib/mempcpy.c: Include <config.h> before <string.h>.
60839         This fixes a compilation error on HP-UX, due to the system's
60840         "restrict"-using mempcpy prototype.
60841
60842 2007-01-26  Bruno Haible  <bruno@clisp.org>
60843
60844         Small optimization.
60845         * lib/javacomp.c: Include c-strstr.h.
60846          (is_envjavac_gcj): Use c_strstr instead of strstr.
60847         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
60848
60849 2007-01-26  Bruno Haible  <bruno@clisp.org>
60850
60851         * MODULES.html.sh (Unicode string functions): Add the new modules.
60852
60853         * modules/uniconv/u32-strconv-to-locale: New file.
60854         * lib/uniconv/u32-strconv-to-locale.c: New file.
60855
60856         * modules/uniconv/u16-strconv-to-locale: New file.
60857         * lib/uniconv/u16-strconv-to-locale.c: New file.
60858
60859         * modules/uniconv/u8-strconv-to-locale: New file.
60860         * lib/uniconv/u8-strconv-to-locale.c: New file.
60861
60862         * modules/uniconv/u32-strconv-from-locale: New file.
60863         * lib/uniconv/u32-strconv-from-locale.c: New file.
60864
60865         * modules/uniconv/u16-strconv-from-locale: New file.
60866         * lib/uniconv/u16-strconv-from-locale.c: New file.
60867
60868         * modules/uniconv/u8-strconv-from-locale: New file.
60869         * lib/uniconv/u8-strconv-from-locale.c: New file.
60870
60871         * modules/uniconv/u32-strconv-to-enc: New file.
60872         * lib/uniconv/u32-strconv-to-enc.c: New file.
60873         * modules/uniconv/u32-strconv-to-enc-tests: New file.
60874         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
60875
60876         * modules/uniconv/u16-strconv-to-enc: New file.
60877         * lib/uniconv/u16-strconv-to-enc.c: New file.
60878         * lib/uniconv/u-strconv-to-enc.h: New file.
60879         * modules/uniconv/u16-strconv-to-enc-tests: New file.
60880         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
60881
60882         * modules/uniconv/u8-strconv-to-enc: New file.
60883         * lib/uniconv/u8-strconv-to-enc.c: New file.
60884         * modules/uniconv/u8-strconv-to-enc-tests: New file.
60885         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
60886
60887         * modules/uniconv/u32-strconv-from-enc: New file.
60888         * lib/uniconv/u32-strconv-from-enc.c: New file.
60889         * modules/uniconv/u32-strconv-from-enc-tests: New file.
60890         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
60891
60892         * modules/uniconv/u16-strconv-from-enc: New file.
60893         * lib/uniconv/u16-strconv-from-enc.c: New file.
60894         * modules/uniconv/u16-strconv-from-enc-tests: New file.
60895         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
60896
60897         * modules/uniconv/u8-strconv-from-enc: New file.
60898         * lib/uniconv/u8-strconv-from-enc.c: New file.
60899         * lib/uniconv/u-strconv-from-enc.h: New file.
60900         * modules/uniconv/u8-strconv-from-enc-tests: New file.
60901         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
60902
60903         * modules/uniconv/u32-conv-from-enc: New file.
60904         * lib/uniconv/u32-conv-from-enc.c: New file.
60905         * modules/uniconv/u32-conv-from-enc-tests: New file.
60906         * tests/uniconv/test-u32-conv-from-enc.c: New file.
60907
60908         * modules/uniconv/u16-conv-from-enc: New file.
60909         * lib/uniconv/u16-conv-from-enc.c: New file.
60910         * lib/uniconv/u-conv-from-enc.h: New file.
60911         * modules/uniconv/u16-conv-from-enc-tests: New file.
60912         * tests/uniconv/test-u16-conv-from-enc.c: New file.
60913
60914         * modules/uniconv/u8-conv-from-enc: New file.
60915         * lib/uniconv/u8-conv-from-enc.c: New file.
60916         * modules/uniconv/u8-conv-from-enc-tests: New file.
60917         * tests/uniconv/test-u8-conv-from-enc.c: New file.
60918
60919         * modules/uniconv/base: New file.
60920         * lib/uniconv.h: New file.
60921
60922 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60923
60924         * doc/gnulib-tool.texi (Initial import): Update to match current
60925         behavior with strdup module.
60926         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
60927         * lib/memmem.h: Remove; all uses removed.  This is now done
60928         by <string.h>.
60929         * lib/mempcpy.h: Likewise.
60930         * lib/memrchr.h: Likewise.
60931         * lib/stpcpy.h: Likewise.
60932         * lib/stpncpy.h: Likewise.
60933         * lib/strcase.h: Likewise.
60934         * lib/strchrnul.h: Likewise.
60935         * lib/strdup.h: Likewise.
60936         * lib/strndup.h: Likewise.
60937         * lib/strnlen.h: Likewise.
60938         * lib/strpbrk.h: Likewise.
60939         * lib/strsep.h: Likewise.
60940         * lib/strstr.h: Likewise.
60941         * lib/strtok_r.h: Likewise.
60942         * lib/string_.h: New file.
60943         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
60944         Rely on <string.h> instead.
60945         * lib/canon-host.c: Likewise.
60946         * lib/chdir-long.c: Likewise.
60947         * lib/concatpath.c: Likewise.
60948         * lib/exclude.c: Likewise.
60949         * lib/fchdir.c: Likewise.
60950         * lib/getaddrinfo.c: Likewise.
60951         * lib/getcwd.c: Likewise.
60952         * lib/getsubopt.c: Likewise.
60953         * lib/glob.c: Likewise.
60954         * lib/hard-locale.c: Likewise.
60955         * lib/iconvme.c: Likewise.
60956         * lib/javacomp.c: Likewise.
60957         * lib/mempcpy.c: Likewise.
60958         * lib/memrchr.c: Likewise.
60959         * lib/regex_internal.h: Likewise.
60960         * lib/stpncpy.c: Likewise.
60961         * lib/strcasecmp.c: Likewise.
60962         * lib/strchrnul.c: Likewise.
60963         * lib/strdup.c: Likewise.
60964         * lib/striconv.c: Likewise.
60965         * lib/striconveh.c: Likewise.
60966         * lib/striconveha.c: Likewise.
60967         * lib/strncasecmp.c: Likewise.
60968         * lib/strndup.c: Likewise.
60969         * lib/strnlen.c: Likewise.
60970         * lib/strsep.c: Likewise.
60971         * lib/strstr.c: Likewise.
60972         * lib/strtok_r.c: Likewise.
60973         * lib/userspec.c: Likewise.
60974         * lib/w32spawn.h: Likewise.
60975         * lib/xstrndup.c: Likewise.
60976         * lib/mountlist.c (strstr): Remove decl.
60977         * m4/string_h.m4: New file.
60978         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
60979         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
60980         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
60981         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
60982         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
60983         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
60984         Set REPLACE_STRCASECMP if necessary.
60985         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
60986         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
60987         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
60988         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
60989         HAVE_DECL_STRDUP if necessary.
60990         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
60991         since gl_FUNC_STRNDUP does that now.
60992         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
60993         Check for decl here...
60994         (gl_PREREQ_STRNLEN): ... not here.
60995         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
60996         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
60997         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
60998         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
60999         necessary.
61000         * modules/string: New file.
61001         * modules/memmem (Files): Remove special-purpose include file.
61002         (Depends-on): Add string.
61003         (Include): Include <string.h>, not the removed file.
61004         * modules/mempcpy: Likewise.
61005         * modules/memrchr: Likewise.
61006         * modules/stpcpy: Likewise.
61007         * modules/stpncpy: Likewise.
61008         * modules/strcase: Likewise.
61009         * modules/strchrnul: Likewise.
61010         * modules/strdup: Likewise.
61011         * modules/strndup: Likewise.
61012         * modules/strnlen: Likewise.
61013         * modules/strpbrk: Likewise.
61014         * modules/strsep: Likewise.
61015         * modules/strstr: Likewise.
61016         * modules/strtok_r: Likewise.
61017         * tests/test-dirname.c: Don't include "strdup.h", since
61018         <string.h> now suffices.
61019         * tests/test-memmem.c: Don't include "memmem.h", since
61020         <string.h> now suffices.
61021
61022 2007-01-25  Bruno Haible  <bruno@clisp.org>
61023
61024         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
61025         *resultp is 0.
61026
61027         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
61028         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
61029         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
61030         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
61031
61032         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
61033         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
61034         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
61035         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
61036         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
61037         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
61038
61039 2007-01-24  Bruno Haible  <bruno@clisp.org>
61040
61041         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
61042         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
61043         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
61044         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
61045         gl_FUNC_FTS_CORE.
61046         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
61047         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
61048         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61049         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
61050         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
61051         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
61052         gl_FUNC_FCHOWNAT.
61053         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
61054         gl_FUNC_STRFTIME.
61055         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
61056         Reported by Ralf Wildenhues.
61057
61058 2007-01-24  Bruno Haible  <bruno@clisp.org>
61059
61060         Drop AC_REQUIRE calls that are redundant with the module dependencies.
61061         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
61062         gl_GETADDRINFO.
61063         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
61064         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
61065         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
61066
61067 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
61068
61069         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
61070         Don't use 'exit'; just return from 'main'.
61071         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
61072
61073         * lib/fnmatch_.h: Readjust white space and comments to match
61074         glibc, to avoid spurious diffs.
61075
61076 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61077
61078         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
61079         2004-12-01 change by Jakub Jelinek, since this code won't compile
61080         if !LIBC.  Problem reported by Bob Proulx.
61081
61082 2007-01-23  Bruno Haible  <bruno@clisp.org>
61083
61084         * lib/striconveh.c: Include c-strcaseeq.h.
61085         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
61086         * modules/striconveh (Depends-on): Add c-strcaseeq.
61087
61088 2007-01-23  Bruno Haible  <bruno@clisp.org>
61089
61090         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
61091
61092         * modules/c-strcaseeq: New file.
61093         * lib/c-strcaseeq.h: New file.
61094
61095         * modules/streq: New file.
61096         * lib/streq.h: New file.
61097
61098 2007-01-23  Bruno Haible  <bruno@clisp.org>
61099
61100         * modules/striconveha-tests: New file.
61101         * tests/test-striconveha.c: New file.
61102
61103         * lib/striconveha.h: Include <stdbool.h>.
61104         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
61105         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
61106         (mem_iconveha_notranslit): Renamed from mem_iconveha.
61107         (mem_iconveha): New function.
61108         (str_iconveha_notranslit): Renamed from str_iconveha.
61109         (str_iconveha): New function.
61110         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
61111         c-strcase.
61112
61113 2007-01-23  Bruno Haible  <bruno@clisp.org>
61114
61115         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
61116         encodings without forgiving before trying any encoding with handler.
61117         (str_iconveha): Try all encodings without forgiving before trying any
61118         encoding with handler.
61119
61120 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61121
61122         Import the following changes from libc.
61123
61124         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
61125
61126         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
61127
61128         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
61129
61130         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
61131         normal_bracket label.
61132
61133         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
61134
61135         [BZ #361]
61136         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
61137         to normal_bracket after fetching the next character.
61138
61139 2007-01-22  Bruno Haible  <bruno@clisp.org>
61140
61141         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
61142         argument.
61143         * lib/striconveh.c (iconv_carefully_1): New function.
61144         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
61145         argument.
61146         (str_cd_iconveh): Update.
61147         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
61148         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
61149         * tests/test-striconveh.c (MAGIC): New macro.
61150         (new_offsets): New function.
61151         (main): Test call with and without offsets.
61152
61153 2007-01-22  Bruno Haible  <bruno@clisp.org>
61154
61155         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
61156         * modules/sys_select (Makefile.am): Likewise.
61157         * modules/sys_socket (Makefile.am): Likewise.
61158         * modules/sys_time (Makefile.am): Likewise.
61159
61160 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
61161
61162         * modules/gettimeofday (License): Change from GPL to LGPL, since
61163         gettimeofday is a library function.
61164
61165 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61166
61167         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
61168
61169 2007-01-21  Bruno Haible  <bruno@clisp.org>
61170
61171         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
61172
61173 2007-01-21  Bruno Haible  <bruno@clisp.org>
61174
61175         * modules/striconveha: New file.
61176         * lib/striconveha.h: New file.
61177         * lib/striconveha.c: New file.
61178         * MODULES.html.sh (Internationalization functions): Add striconveha.
61179         * lib/striconv.c (str_iconv): Optimize the case of an empty input
61180         string.
61181         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
61182
61183 2007-01-21  Bruno Haible  <bruno@clisp.org>
61184
61185         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
61186         * lib/striconveh.c (str_iconveh): Likewise.
61187
61188 2007-01-21  Bruno Haible  <bruno@clisp.org>
61189
61190         * lib/striconveh.h (mem_iconveh): New declaration.
61191         * lib/striconveh.c (mem_iconveh): New function.
61192         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
61193
61194 2007-01-21  Bruno Haible  <bruno@clisp.org>
61195
61196         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
61197
61198         * lib/striconveh.h (mem_cd_iconveh): Change specification.
61199         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
61200         original result buffer.
61201         (str_cd_iconveh): Update.
61202         * tests/test-striconveh.c (main): Update.
61203
61204         * lib/striconv.h (mem_cd_iconv): Change specification.
61205         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
61206         result buffer.
61207         (str_cd_iconv): Update.
61208         * tests/test-striconv.c (main): Update.
61209
61210 2007-01-21  Bruno Haible  <bruno@clisp.org>
61211
61212         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
61213
61214 2007-01-20  Jim Meyering  <jim@meyering.net>
61215
61216         * lib/userspec.c (parse_with_separator): If a user or group string
61217         starts with "+", skip the corresponding name-to-ID look-up, since
61218         such a look-up must fail: user and group names may not include "+".
61219
61220 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
61221
61222         * lib/poll.c: Include sys/time.h and time.h unconditionally,
61223         since we now assume the sys_time module.
61224         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
61225         check for sys/time.h; no longer needed.
61226         * modules/poll (Depends-on): Depend on sys_time.
61227
61228 2007-01-18  Bruno Haible  <bruno@clisp.org>
61229
61230         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
61231         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61232
61233         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
61234         gettimeofday.
61235
61236         * tests/test-gettimeofday.c: Include <time.h>.
61237         (dummy): Remove variable.
61238
61239         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
61240         gl_HEADER_SYS_TIME_H.
61241         (gl_HEADER_SYS_TIME_H): New macro.
61242
61243         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
61244         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61245         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
61246         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
61247         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61248         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
61249         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
61250         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61251         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
61252         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
61253         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61254
61255         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
61256         last change; it caused a compilation error when cross-compiling to
61257         Cygwin.
61258
61259 2007-01-18  Jim Meyering  <jim@meyering.net>
61260
61261         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
61262         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
61263         than the race-prone "test -d sys || mkdir sys".
61264         (configure.ac): Use AC_PROG_MKDIR_P.
61265         * modules/sys_select: Likewise.
61266         * modules/sys_socket: Likewise.
61267         * modules/sys_time: Likewise.
61268
61269 2007-01-18  Eric Blake  <ebb9@byu.net>
61270
61271         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
61272         replace gettimeofday.
61273         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
61274         name, to avoid infinite recursion.
61275
61276 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
61277
61278         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
61279         module sys_time.
61280         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
61281         assume timespec.h defines struct timeval.
61282         * lib/settime.c: Likewise.
61283         * lib/utimens.c: Likewise.
61284         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
61285         since we now assume the gettimeofday module.
61286         * lib/tempname.c (__gen_tempname): Likewise.
61287         * lib/gettimeofday.h: Remove.
61288         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
61289         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
61290         Include <time.h>, for 'time()'.
61291         (localtime_buffer_addr): Also use this workaround if
61292         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
61293         to simplify the uses.  All uses changed.
61294         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
61295         that #undef is inside {}, and 'const' follows type name consistently.
61296         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
61297         (gettimeofday): Do not use the maximum possible value for
61298         tv->tv_usec, since that might break usages other than ls.c.
61299         Instead, we'll leave ls.c alone.  This undoes today's patch
61300         by Bruno.  Add a compile-time warning for 1s-clock resolution;
61301         we've never observed the problem but might as well keep the
61302         canary.
61303         * lib/nanosleep.c: Include timespec.h first, for interface check.
61304         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
61305         now assume the sys_time module.
61306         * lib/tempname.c: Likewise.
61307         * lib/timespec.h: Likewise.
61308         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
61309         needed.
61310         * lib/strftime.c: Likewise.
61311         * lib/timespec.h: Likewise.
61312         * lib/posixtm.c: Include posixtm.h first, for interface check.
61313         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
61314         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
61315         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
61316         * lib/sys_time_.h: New file.
61317         * lib/timespec.h (struct timespec): Use long int, not long.
61318         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
61319         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
61320         Remove obsolescent call to AC_HEADER_TIME.
61321         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
61322         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61323         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61324         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
61325         Likewise.
61326         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
61327         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
61328         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
61329         into the sys_time module.  Check for gettimeofday just once.
61330         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
61331         for gettimeofday signature to just check the signature.  Merely
61332         compile it, since linking doesn't test signature.  Improve test for
61333         whether gettimeofday.o is actually needed.
61334         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
61335         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
61336         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
61337         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61338         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
61339         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
61340         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
61341         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
61342         than worrying about sys/time.h.
61343         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61344         Don't bother worrying about TIME_WITH_SYS_TIME.
61345         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
61346         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
61347         * m4/sys_time_h.m4: New file.
61348         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
61349         Don't include sys/time.h.  Return from main rather than exiting.
61350         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
61351         all uses changed.
61352         * modules/gethrxtime (Depends-on): Add sys_time.
61353         * modules/gettime (Depends-on): Likewise.
61354         * modules/gettimeofday (Depends-on): Likewise.
61355         * modules/nanosleep (Depends-on): Likewise.
61356         * modules/settime (Depends-on): Likewise.
61357         * modules/tempname (Depends-on): Likewise.
61358         * modules/utimens (Depends-on): Likewise.
61359         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
61360         (Include): Change back to <sys/time.h>.
61361         (Maintainer): Add self.
61362         * modules/sys_time: New file.
61363         * modules/tempname (Depends-on): Add gettimeofday.
61364         * tests/test-gettimeofday.c: Include <sys/time.h>
61365         rather than gettimeofday.h.
61366
61367 2007-01-17  Bruno Haible  <bruno@clisp.org>
61368
61369         * gnulib-tool (func_get_license): Revert last patch. Instead, let
61370         the license default to GPL.
61371         (func_create_testdir): Don't complain if a module is LGPL and its
61372         tests module depends on GPLed modules.
61373
61374 2007-01-17  Bruno Haible  <bruno@clisp.org>
61375
61376         * lib/gettimeofday.c (gettimeofday): Add code for the case
61377         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
61378         maximum possible value for tv->tv_usec, rather than the minimum one.
61379
61380 2005-10-08  Martin Lambers  <marlam@marlam.de>
61381 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61382 2007-01-16  Bruno Haible  <bruno@clisp.org>
61383
61384         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
61385         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
61386         gl_FUNC_GETTIMEOFDAY.
61387         (Include): Add gettimeofday.h.
61388         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
61389         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
61390         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
61391         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
61392         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
61393         * lib/gettimeofday.h: New file.
61394         * lib/gettimeofday.c: Include <sys/timeb.h>.
61395         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
61396         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61397         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
61398         fall back on time().
61399
61400         * tests/test-gettimeofday.c: New file.
61401         * modules/gettimeofday-tests: New file.
61402
61403 2007-01-16  Eric Blake  <ebb9@byu.net>
61404
61405         * modules/fnmatch (Depends-on): Depend on wchar.
61406         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
61407         * m4/fnmatch.m4: Likewise.
61408         * modules/mbchar (Makefile.am): Assume <wchar.h>.
61409         * m4/mbchar.m4: Likewise.
61410         * modules/mbswidth (Depends-on): Depend on wchar.
61411         * lib/mbswidth.c: Assume <wchar.h>.
61412         * m4/mbswidth.m4: Likewise.
61413         * modules/quotearg (Depends-on): Depend on wchar.
61414         * lib/quotearg.c: Assume <wchar.h>.
61415         * m4/quotearg.m4: Likewise.
61416         * modules/regex (Depends-on): Depend on wchar.
61417         * lib/regex_internal.h: Assume <wchar.h>.
61418         * m4/regex.m4: Likewise.
61419         * modules/stdint (Depends-on): Depend on wchar.
61420         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
61421         * m4/stdint.m4: Likewise.
61422         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
61423         * modules/strftime (Depends-on): Depend on wchar.
61424         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
61425         * modules/strtol (Depends-on): Depend on wchar.
61426         * lib/strtol.c: Assume <wchar.h>.
61427         * modules/wcwidth (Depends-on): Depend on wchar.
61428         * lib/wcwidth.h: Assume <wchar.h>.
61429         * m4/wcwidth.m4: Likewise.
61430
61431 2007-01-16  Bruno Haible  <bruno@clisp.org>
61432
61433         * modules/csharpexec-script: New, created from...
61434         * modules/csharpexec: ... this.
61435
61436 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61437
61438         * modules/javaexec-script: New, created from...
61439         * modules/javaexec: ... this.
61440
61441 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61442
61443         * modules/poll (Dependencies): Add sys_select.
61444
61445 2007-01-15  Jim Meyering  <jim@meyering.net>
61446
61447         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
61448         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
61449         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
61450         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
61451
61452 2007-01-15  Bruno Haible  <bruno@clisp.org>
61453
61454         * modules/striconveh: New file.
61455         * lib/striconveh.h: New file.
61456         * lib/striconveh.c: New file.
61457         * MODULES.html.sh (Internationalization functions): Add striconveh.
61458
61459         * modules/striconveh-tests: New file.
61460         * tests/test-striconveh.c: New file.
61461
61462 2007-01-15  Bruno Haible  <bruno@clisp.org>
61463
61464         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
61465         not from GNU libiconv or GNU libc.
61466
61467 2007-01-15  Bruno Haible  <bruno@clisp.org>
61468
61469         * doc/gnulib-intro.texi (Copyright): Explain the different license
61470         terms for module descriptions, autoconf macros, tests, documentation.
61471
61472 2007-01-14  Bruno Haible  <bruno@clisp.org>
61473
61474         * modules/striconv-tests: New file.
61475         * tests/test-striconv.c: New file.
61476
61477 2007-01-14  Bruno Haible  <bruno@clisp.org>
61478
61479         * modules/iconv-tests: New file.
61480         * tests/test-iconv.c: New file.
61481
61482 2007-01-14  Bruno Haible  <bruno@clisp.org>
61483
61484         * gnulib-tool (func_get_license): For test modules, use the license of
61485         the main module.
61486
61487 2007-01-14  Bruno Haible  <bruno@clisp.org>
61488
61489         * modules/iconv (Include): Clarify that <iconv.h> can only be included
61490         if iconv is found to exist.
61491
61492 2007-01-14  Bruno Haible  <bruno@clisp.org>
61493
61494         * modules/c-ctype-tests: New file.
61495         * tests/test-c-ctype.c: New file.
61496
61497 2007-01-14  Bruno Haible  <bruno@clisp.org>
61498
61499         * modules/binary-io-tests: New file.
61500         * tests/test-binary-io.sh: New file.
61501         * tests/test-binary-io.c: New file.
61502
61503 2007-01-14  Bruno Haible  <bruno@clisp.org>
61504
61505         * modules/array-oset-tests: New file.
61506         * tests/test-array_oset.c: New file.
61507
61508 2007-01-14  Bruno Haible  <bruno@clisp.org>
61509
61510         * modules/array-list-tests: New file.
61511         * tests/test-array_list.c: New file.
61512
61513 2007-01-14  Bruno Haible  <bruno@clisp.org>
61514
61515         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
61516         and make.
61517         Reported by Simon Josefsson in
61518         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
61519
61520 2007-01-14  Bruno Haible  <bruno@clisp.org>
61521
61522         * modules/allocsa-tests: New file.
61523         * tests/test-allocsa.c: New file.
61524
61525 2007-01-14  Bruno Haible  <bruno@clisp.org>
61526
61527         * modules/fchdir (Depends-on): Add absolute-header.
61528         * modules/unistd (Depends-on): Likewise.
61529
61530 2006-12-30  Bruno Haible  <bruno@clisp.org>
61531
61532         * modules/fchdir: New file.
61533         * modules/unistd (Files): Add lib/unistd_.h.
61534         (Makefile.am): Generate unistd.h from unistd_.h.
61535         * lib/fchdir.c: New file.
61536         * lib/dirent_.h: New file.
61537         * lib/unistd_.h: New file.
61538         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
61539         * m4/fchdir.m4: New file.
61540         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
61541         (gl_HEADER_UNISTD): Invoke it.
61542         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
61543         function.
61544         * lib/backupfile.c (opendir, closedir): Undefine.
61545         * lib/chown.c (open, close): Undefine.
61546         * lib/clean-temp.c (open, close): Undefine.
61547         * lib/copy-file.c (open, close): Undefine.
61548         * lib/execute.c (open, close): Undefine.
61549         * lib/fsusage.c (open, close): Undefine.
61550         * lib/gc-gnulib.c (open, close): Undefine.
61551         * lib/getcwd.c (opendir, closedir): Undefine.
61552         * lib/glob.c (opendir, closedir): Undefine.
61553         * lib/javacomp.c (open, close): Undefine.
61554         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
61555         * lib/openat-proc.c (open, close): Undefine.
61556         * lib/pagealign_alloc.c (open, close): Undefine.
61557         * lib/pipe.c (open, close): Undefine.
61558         * lib/progreloc.c (open, close): Undefine.
61559         * lib/savedir.c (opendir, closedir): Undefine.
61560         * lib/utime.c (open, close): Undefine.
61561         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
61562
61563 2007-01-10  Bruno Haible  <bruno@clisp.org>
61564
61565         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
61566
61567 2007-01-12  Eric Blake  <ebb9@byu.net>
61568
61569         Provide a robust <wchar.h>.  Further simplifications are now
61570         possible in other modules, but not included here.
61571         * modules/wchar: New module.
61572         * m4/wchar.m4: New file.
61573         * lib/wchar_.h: Likewise.
61574         * modules/mbchar (Depends-on): Depend on wchar, as the first use
61575         of the new module.
61576         * MODULES.html.sh (Extended multibyte and wide character utilities):
61577         New section.
61578
61579 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
61580
61581         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
61582         to a reasonable default for memory allocation.
61583         (xreadlink): Don't allocate a huge buffer, to work around a buggy
61584         file system that reports garbage st_size values for symlinks.
61585         Problem reported by Liyang Hu.
61586
61587 2007-01-11  Simon Josefsson  <simon@josefsson.org>
61588
61589         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
61590         Emacs .#* auto-save files).
61591
61592 2007-01-11  Bruno Haible  <bruno@clisp.org>
61593
61594         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
61595         directory.
61596
61597 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61598
61599         Use @...@ consistently in lib/wctype_.h.
61600         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
61601         on it being set to 1 or 0.
61602         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
61603         go back to AC_SUBSTing it.
61604         * modules/wctype (Makefile.am): Undo previous change.
61605
61606 2007-01-10  Eric Blake  <ebb9@byu.net>
61607
61608         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
61609         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
61610         * modules/wctype (Makefile.am): Likewise.
61611         Reported by Chris McGuire.
61612
61613 2007-01-10  Jim Meyering  <jim@meyering.net>
61614
61615         fts.c: a small readability/maintainability improvement
61616         * lib/fts.c (fts_read): Make this code slightly more readable and
61617         maintainable by hoisting the "sp->fts_cur = p" assignments to
61618         immediately follow the statements that set P.  Derived from
61619         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
61620
61621 2007-01-10  Eric Blake  <ebb9@byu.net>
61622
61623         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
61624         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
61625         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61626         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
61627         Reported by Chris McGuire.
61628
61629 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61630
61631         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
61632         in sed script.
61633
61634 2007-01-09  Bruno Haible  <bruno@clisp.org>
61635
61636         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
61637         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
61638         variables.
61639         (func_module): Use them.
61640
61641 2007-01-09  Bruno Haible  <bruno@clisp.org>
61642
61643         * modules/unistr/base: New file.
61644         * lib/unistr.h: New file.
61645
61646         * modules/unistr/u8-to-u16: New file.
61647         * lib/unistr/u8-to-u16.c: New file.
61648
61649         * modules/unistr/u8-to-u32: New file.
61650         * lib/unistr/u8-to-u32.c: New file.
61651
61652         * modules/unistr/u16-to-u8: New file.
61653         * lib/unistr/u16-to-u8.c: New file.
61654
61655         * modules/unistr/u16-to-u32: New file.
61656         * lib/unistr/u16-to-u32.c: New file.
61657
61658         * modules/unistr/u32-to-u8: New file.
61659         * lib/unistr/u32-to-u8.c: New file.
61660
61661         * modules/unistr/u32-to-u16: New file.
61662         * lib/unistr/u32-to-u16.c: New file.
61663
61664         * modules/unistr/u8-check: New file.
61665         * modules/unistr/u16-check: New file.
61666         * modules/unistr/u32-check: New file.
61667         * lib/unistr/u8-check.c: New file.
61668         * lib/unistr/u16-check.c: New file.
61669         * lib/unistr/u32-check.c: New file.
61670
61671         * modules/unistr/u8-chr: New file.
61672         * modules/unistr/u16-chr: New file.
61673         * modules/unistr/u32-chr: New file.
61674         * lib/unistr/u8-chr.c: New file.
61675         * lib/unistr/u16-chr.c: New file.
61676         * lib/unistr/u32-chr.c: New file.
61677
61678         * modules/unistr/u8-cmp: New file.
61679         * modules/unistr/u16-cmp: New file.
61680         * modules/unistr/u32-cmp: New file.
61681         * lib/unistr/u8-cmp.c: New file.
61682         * lib/unistr/u16-cmp.c: New file.
61683         * lib/unistr/u32-cmp.c: New file.
61684
61685         * modules/unistr/u8-cpy: New file.
61686         * modules/unistr/u16-cpy: New file.
61687         * modules/unistr/u32-cpy: New file.
61688         * lib/unistr/u8-cpy.c: New file.
61689         * lib/unistr/u16-cpy.c: New file.
61690         * lib/unistr/u32-cpy.c: New file.
61691         * lib/unistr/u-cpy.h: New file.
61692
61693         * modules/unistr/u8-cpy-alloc: New file.
61694         * modules/unistr/u16-cpy-alloc: New file.
61695         * modules/unistr/u32-cpy-alloc: New file.
61696         * lib/unistr/u8-cpy-alloc.c: New file.
61697         * lib/unistr/u16-cpy-alloc.c: New file.
61698         * lib/unistr/u32-cpy-alloc.c: New file.
61699         * lib/unistr/u-cpy-alloc.h: New file.
61700
61701         * modules/unistr/u8-endswith: New file.
61702         * modules/unistr/u16-endswith: New file.
61703         * modules/unistr/u32-endswith: New file.
61704         * lib/unistr/u8-endswith.c: New file.
61705         * lib/unistr/u16-endswith.c: New file.
61706         * lib/unistr/u32-endswith.c: New file.
61707         * lib/unistr/u-endswith.h: New file.
61708
61709         * modules/unistr/u8-mblen: New file.
61710         * modules/unistr/u16-mblen: New file.
61711         * modules/unistr/u32-mblen: New file.
61712         * lib/unistr/u8-mblen.c: New file.
61713         * lib/unistr/u16-mblen.c: New file.
61714         * lib/unistr/u32-mblen.c: New file.
61715
61716         * modules/unistr/u8-mbtouc: New file.
61717         * modules/unistr/u16-mbtouc: New file.
61718         * modules/unistr/u32-mbtouc: New file.
61719         * lib/unistr/u8-mbtouc.c: New file.
61720         * lib/unistr/u16-mbtouc.c: New file.
61721         * lib/unistr/u32-mbtouc.c: New file.
61722
61723         * modules/unistr/u8-mbtouc-safe: New file.
61724         * modules/unistr/u16-mbtouc-safe: New file.
61725         * modules/unistr/u32-mbtouc-safe: New file.
61726         * lib/unistr/u8-mbtouc-safe.c: New file.
61727         * lib/unistr/u16-mbtouc-safe.c: New file.
61728         * lib/unistr/u32-mbtouc-safe.c: New file.
61729
61730         * modules/unistr/u8-move: New file.
61731         * modules/unistr/u16-move: New file.
61732         * modules/unistr/u32-move: New file.
61733         * lib/unistr/u8-move.c: New file.
61734         * lib/unistr/u16-move.c: New file.
61735         * lib/unistr/u32-move.c: New file.
61736         * lib/unistr/u-move.h: New file.
61737
61738         * modules/unistr/u8-next: New file.
61739         * modules/unistr/u16-next: New file.
61740         * modules/unistr/u32-next: New file.
61741         * lib/unistr/u8-next.c: New file.
61742         * lib/unistr/u16-next.c: New file.
61743         * lib/unistr/u32-next.c: New file.
61744
61745         * modules/unistr/u8-prev: New file.
61746         * modules/unistr/u16-prev: New file.
61747         * modules/unistr/u32-prev: New file.
61748         * lib/unistr/u8-prev.c: New file.
61749         * lib/unistr/u16-prev.c: New file.
61750         * lib/unistr/u32-prev.c: New file.
61751
61752         * modules/unistr/u8-set: New file.
61753         * modules/unistr/u16-set: New file.
61754         * modules/unistr/u32-set: New file.
61755         * lib/unistr/u8-set.c: New file.
61756         * lib/unistr/u16-set.c: New file.
61757         * lib/unistr/u32-set.c: New file.
61758         * lib/unistr/u-set.h: New file.
61759
61760         * modules/unistr/u8-startswith: New file.
61761         * modules/unistr/u16-startswith: New file.
61762         * modules/unistr/u32-startswith: New file.
61763         * lib/unistr/u8-startswith.c: New file.
61764         * lib/unistr/u16-startswith.c: New file.
61765         * lib/unistr/u32-startswith.c: New file.
61766         * lib/unistr/u-startswith.h: New file.
61767
61768         * modules/unistr/u8-stpcpy: New file.
61769         * modules/unistr/u16-stpcpy: New file.
61770         * modules/unistr/u32-stpcpy: New file.
61771         * lib/unistr/u8-stpcpy.c: New file.
61772         * lib/unistr/u16-stpcpy.c: New file.
61773         * lib/unistr/u32-stpcpy.c: New file.
61774         * lib/unistr/u-stpcpy.h: New file.
61775
61776         * modules/unistr/u8-stpncpy: New file.
61777         * modules/unistr/u16-stpncpy: New file.
61778         * modules/unistr/u32-stpncpy: New file.
61779         * lib/unistr/u8-stpncpy.c: New file.
61780         * lib/unistr/u16-stpncpy.c: New file.
61781         * lib/unistr/u32-stpncpy.c: New file.
61782         * lib/unistr/u-stpncpy.h: New file.
61783
61784         * modules/unistr/u8-strcat: New file.
61785         * modules/unistr/u16-strcat: New file.
61786         * modules/unistr/u32-strcat: New file.
61787         * lib/unistr/u8-strcat.c: New file.
61788         * lib/unistr/u16-strcat.c: New file.
61789         * lib/unistr/u32-strcat.c: New file.
61790         * lib/unistr/u-strcat.h: New file.
61791
61792         * modules/unistr/u8-strchr: New file.
61793         * modules/unistr/u16-strchr: New file.
61794         * modules/unistr/u32-strchr: New file.
61795         * lib/unistr/u8-strchr.c: New file.
61796         * lib/unistr/u16-strchr.c: New file.
61797         * lib/unistr/u32-strchr.c: New file.
61798
61799         * modules/unistr/u8-strcmp: New file.
61800         * modules/unistr/u16-strcmp: New file.
61801         * modules/unistr/u32-strcmp: New file.
61802         * lib/unistr/u8-strcmp.c: New file.
61803         * lib/unistr/u16-strcmp.c: New file.
61804         * lib/unistr/u32-strcmp.c: New file.
61805
61806         * modules/unistr/u8-strcpy: New file.
61807         * modules/unistr/u16-strcpy: New file.
61808         * modules/unistr/u32-strcpy: New file.
61809         * lib/unistr/u8-strcpy.c: New file.
61810         * lib/unistr/u16-strcpy.c: New file.
61811         * lib/unistr/u32-strcpy.c: New file.
61812         * lib/unistr/u-strcpy.h: New file.
61813
61814         * modules/unistr/u8-strcspn: New file.
61815         * modules/unistr/u16-strcspn: New file.
61816         * modules/unistr/u32-strcspn: New file.
61817         * lib/unistr/u8-strcspn.c: New file.
61818         * lib/unistr/u16-strcspn.c: New file.
61819         * lib/unistr/u32-strcspn.c: New file.
61820         * lib/unistr/u-strcspn.h: New file.
61821
61822         * modules/unistr/u8-strdup: New file.
61823         * modules/unistr/u16-strdup: New file.
61824         * modules/unistr/u32-strdup: New file.
61825         * lib/unistr/u8-strdup.c: New file.
61826         * lib/unistr/u16-strdup.c: New file.
61827         * lib/unistr/u32-strdup.c: New file.
61828         * lib/unistr/u-strdup.h: New file.
61829
61830         * modules/unistr/u8-strlen: New file.
61831         * modules/unistr/u16-strlen: New file.
61832         * modules/unistr/u32-strlen: New file.
61833         * lib/unistr/u8-strlen.c: New file.
61834         * lib/unistr/u16-strlen.c: New file.
61835         * lib/unistr/u32-strlen.c: New file.
61836         * lib/unistr/u-strlen.h: New file.
61837
61838         * modules/unistr/u8-strmblen: New file.
61839         * modules/unistr/u16-strmblen: New file.
61840         * modules/unistr/u32-strmblen: New file.
61841         * lib/unistr/u8-strmblen.c: New file.
61842         * lib/unistr/u16-strmblen.c: New file.
61843         * lib/unistr/u32-strmblen.c: New file.
61844
61845         * modules/unistr/u8-strmbtouc: New file.
61846         * modules/unistr/u16-strmbtouc: New file.
61847         * modules/unistr/u32-strmbtouc: New file.
61848         * lib/unistr/u8-strmbtouc.c: New file.
61849         * lib/unistr/u16-strmbtouc.c: New file.
61850         * lib/unistr/u32-strmbtouc.c: New file.
61851
61852         * modules/unistr/u8-strncat: New file.
61853         * modules/unistr/u16-strncat: New file.
61854         * modules/unistr/u32-strncat: New file.
61855         * lib/unistr/u8-strncat.c: New file.
61856         * lib/unistr/u16-strncat.c: New file.
61857         * lib/unistr/u32-strncat.c: New file.
61858         * lib/unistr/u-strncat.h: New file.
61859
61860         * modules/unistr/u8-strncmp: New file.
61861         * modules/unistr/u16-strncmp: New file.
61862         * modules/unistr/u32-strncmp: New file.
61863         * lib/unistr/u8-strncmp.c: New file.
61864         * lib/unistr/u16-strncmp.c: New file.
61865         * lib/unistr/u32-strncmp.c: New file.
61866
61867         * modules/unistr/u8-strncpy: New file.
61868         * modules/unistr/u16-strncpy: New file.
61869         * modules/unistr/u32-strncpy: New file.
61870         * lib/unistr/u8-strncpy.c: New file.
61871         * lib/unistr/u16-strncpy.c: New file.
61872         * lib/unistr/u32-strncpy.c: New file.
61873         * lib/unistr/u-strncpy.h: New file.
61874
61875         * modules/unistr/u8-strnlen: New file.
61876         * modules/unistr/u16-strnlen: New file.
61877         * modules/unistr/u32-strnlen: New file.
61878         * lib/unistr/u8-strnlen.c: New file.
61879         * lib/unistr/u16-strnlen.c: New file.
61880         * lib/unistr/u32-strnlen.c: New file.
61881         * lib/unistr/u-strnlen.h: New file.
61882
61883         * modules/unistr/u8-strpbrk: New file.
61884         * modules/unistr/u16-strpbrk: New file.
61885         * modules/unistr/u32-strpbrk: New file.
61886         * lib/unistr/u8-strpbrk.c: New file.
61887         * lib/unistr/u16-strpbrk.c: New file.
61888         * lib/unistr/u32-strpbrk.c: New file.
61889         * lib/unistr/u-strpbrk.h: New file.
61890
61891         * modules/unistr/u8-strrchr: New file.
61892         * modules/unistr/u16-strrchr: New file.
61893         * modules/unistr/u32-strrchr: New file.
61894         * lib/unistr/u8-strrchr.c: New file.
61895         * lib/unistr/u16-strrchr.c: New file.
61896         * lib/unistr/u32-strrchr.c: New file.
61897
61898         * modules/unistr/u8-strspn: New file.
61899         * modules/unistr/u16-strspn: New file.
61900         * modules/unistr/u32-strspn: New file.
61901         * lib/unistr/u8-strspn.c: New file.
61902         * lib/unistr/u16-strspn.c: New file.
61903         * lib/unistr/u32-strspn.c: New file.
61904         * lib/unistr/u-strspn.h: New file.
61905
61906         * modules/unistr/u8-strstr: New file.
61907         * modules/unistr/u16-strstr: New file.
61908         * modules/unistr/u32-strstr: New file.
61909         * lib/unistr/u8-strstr.c: New file.
61910         * lib/unistr/u16-strstr.c: New file.
61911         * lib/unistr/u32-strstr.c: New file.
61912         * lib/unistr/u-strstr.h: New file.
61913
61914         * modules/unistr/u8-strtok: New file.
61915         * modules/unistr/u16-strtok: New file.
61916         * modules/unistr/u32-strtok: New file.
61917         * lib/unistr/u8-strtok.c: New file.
61918         * lib/unistr/u16-strtok.c: New file.
61919         * lib/unistr/u32-strtok.c: New file.
61920         * lib/unistr/u-strtok.h: New file.
61921
61922         * modules/unistr/u8-uctomb: New file.
61923         * modules/unistr/u16-uctomb: New file.
61924         * modules/unistr/u32-uctomb: New file.
61925         * lib/unistr/u8-uctomb.c: New file.
61926         * lib/unistr/u16-uctomb.c: New file.
61927         * lib/unistr/u32-uctomb.c: New file.
61928
61929         * MODULES.html.sh (Unicode string functions): Add the new modules.
61930
61931 2007-01-08  Bruno Haible  <bruno@clisp.org>
61932
61933         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
61934         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
61935         subdirectories.
61936
61937 2007-01-08  Karl Berry  <karl@gnu.org>
61938
61939         * doc/error.texi: mention that main() fns must set program_name
61940         when progname is used.
61941
61942 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
61943
61944         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
61945         WCTYPE_H is empty, for the benefit of builds from non-distclean
61946         directories.  Problem reported by Eric Blake in
61947         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
61948
61949 2007-01-08  Bruno Haible  <bruno@clisp.org>
61950
61951         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
61952         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
61953         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
61954         PROVIDE_CANONICALIZE_FILENAME_MODE.
61955         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
61956
61957 2007-01-08  Bruno Haible  <bruno@clisp.org>
61958
61959         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
61960         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
61961         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
61962         * lib/fts.c: Likewise.
61963         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
61964
61965 2006-12-25  Bruno Haible  <bruno@clisp.org>
61966
61967         * modules/utf8-ucs4-safe: New file.
61968         * lib/utf8-ucs4-safe.h: New file.
61969         * lib/unistr/utf8-ucs4-safe.c: New file.
61970
61971         * modules/utf16-ucs4-safe: New file.
61972         * lib/utf16-ucs4-safe.h: New file.
61973         * lib/unistr/utf16-ucs4-safe.c: New file.
61974
61975         * MODULES.html.sh (Unicode string functions): Add the new modules.
61976
61977 2007-01-08  Bruno Haible  <bruno@clisp.org>
61978
61979         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
61980         (Depends-on): Add unitypes.
61981         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61982         (u8_mbtouc_aux): Move out to separate file.
61983         (u8_mbtouc): Use ucs4_t, uint8_t types.
61984         * lib/unistr/utf8-ucs4.c: New file.
61985
61986         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
61987         (Depends-on): Add unitypes.
61988         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61989         (u16_mbtouc_aux): Move out to separate file.
61990         (u16_mbtouc): Use ucs4_t, uint16_t types.
61991         * lib/unistr/utf16-ucs4.c: New file.
61992
61993         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
61994         (Depends-on): Add unitypes.
61995         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
61996         (u8_uctomb_aux): Move out to separate file.
61997         (u8_uctomb): Use ucs4_t, uint8_t types.
61998         * lib/unistr/ucs4-utf8.c: New file.
61999
62000         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
62001         (Depends-on): Add unitypes.
62002         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
62003         (u16_uctomb_aux): Move out to separate file.
62004         (u16_uctomb): Use ucs4_t, uint16_t types.
62005         * lib/unistr/ucs4-utf16.c: New file.
62006
62007 2006-12-25  Bruno Haible  <bruno@clisp.org>
62008
62009         * modules/unitypes: New file.
62010         * lib/unitypes.h: New file.
62011         * MODULES.html.sh (func_all_modules): New section "Unicode string
62012         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
62013         this section. Add unitypes.
62014
62015 2007-01-08  Bruno Haible  <bruno@clisp.org>
62016
62017         Avoid variable names that conflict with those from libtool.
62018         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
62019         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
62020         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
62021         library_names_spec to acl_library_names_spec, hardcode_* to
62022         acl_hardcode_*.
62023         Reported by Ralf Wildenhues.
62024
62025 2007-01-08  Bruno Haible  <bruno@clisp.org>
62026
62027         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
62028         definition.
62029         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
62030         definition.
62031         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
62032         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
62033         definition.
62034         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
62035         definition.
62036         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
62037         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
62038         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
62039         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
62040         definition.
62041         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
62042         definition.
62043         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
62044         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
62045         GC_USE_<algorithm>.
62046         * lib/gc-libgcrypt.c: Likewise.
62047         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
62048         * modules/gc-arctwo (configure.ac): Likewise.
62049         * modules/gc-des (configure.ac): Likewise.
62050         * modules/gc-hmac-md5 (configure.ac): Likewise.
62051         * modules/gc-hmac-sha1 (configure.ac): Likewise.
62052         * modules/gc-md2 (configure.ac): Likewise.
62053         * modules/gc-md4 (configure.ac): Likewise.
62054         * modules/gc-md5 (configure.ac): Likewise.
62055         * modules/gc-random (configure.ac): Likewise.
62056         * modules/gc-rijndael (configure.ac): Likewise.
62057         * modules/gc-sha1 (configure.ac): Likewise.
62058
62059 2007-01-08  Bruno Haible  <bruno@clisp.org>
62060
62061         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
62062         macro definition.
62063         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
62064         definition.
62065         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
62066         definition.
62067         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
62068         * modules/fcntl-safer (configure.ac): Likewise.
62069         * modules/fopen-safer (configure.ac): Likewise.
62070         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
62071         GNULIB_FWRITEERROR macro definition.
62072
62073 2007-01-08  Bruno Haible  <bruno@clisp.org>
62074
62075         * m4/gnulib-common.m4: New file.
62076         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
62077         (func_get_filelist): Add m4/gnulib-common.m4.
62078
62079 2007-01-08  Bruno Haible  <bruno@clisp.org>
62080
62081         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
62082         command.
62083
62084 2007-01-08  Jim Meyering  <jim@meyering.net>
62085
62086         Use a more robust test for a "can't happen" condition.
62087         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
62088         narrowed the st_size value.  Presuming the "can't happen" condition
62089         is true, that narrowing could conceivably convert an invalid st_size
62090         value into a valid one.  Instead, use a change based on Matthew
62091         Woehlke's original patch.
62092
62093         Slight readability improvement: use an assert-like macro
62094         in place of literal "abort ()" uses.
62095         * lib/fts.c (fts_assert): Define.
62096         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
62097         Use this macro instead of a bare 'abort'.
62098
62099 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
62100
62101         Don't worry about using IRIX 5.3's wctype.h broken definitions;
62102         simply work around them.
62103         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
62104         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
62105         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
62106         declaring.
62107         Don't bother to define as macros, since the standard doesn't require it.
62108         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
62109         longer worry about IRIX 5.3.
62110         (HAVE_WCTYPE_CTMP_BUG): Remove.
62111
62112 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62113
62114         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
62115         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
62116         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
62117         Problems reported by Georg Schwarz for IRIX 5.3.
62118
62119         * gnulib-tool (autoconf_minversion): Take the maximum version number
62120         found, not the minimum.  Problem reported by James Youngman.
62121
62122 2007-01-03  Karl Berry  <karl@gnu.org>
62123
62124         * doc/error.texi: new file, explaining interaction with progname.
62125         * doc/gnulib.texi: include it.  Update copyright.
62126
62127 2007-01-03  Simon Josefsson  <simon@josefsson.org>
62128
62129         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
62130         AC_CANONICAL_HOST, to improve autobuild outputs.
62131
62132 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
62133             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
62134
62135         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
62136         sockets, server sockets, and other file descriptors.  Count errors
62137         to compute the return value.  Reorder the code a bit to be easier
62138         to follow.  Don't set event bits that were not requested (except
62139         POLLERR and POLLHUP).
62140
62141 2007-01-01  Bruno Haible  <bruno@clisp.org>
62142
62143         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
62144
62145 2007-01-03  Jim Meyering  <jim@meyering.net>
62146
62147         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
62148
62149 2007-01-02  Bruno Haible  <bruno@clisp.org>
62150
62151         * modules/settime (Include): Require timespec.h.
62152         * modules/nanosleep (Include): Likewise.
62153
62154 2007-01-01  Bruno Haible  <bruno@clisp.org>
62155
62156         * gnulib-tool (func_emit_copyright_notice): Bump year.
62157         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
62158
62159 2007-01-01  Bruno Haible  <bruno@clisp.org>
62160
62161         Improve support for OpenBSD.
62162         * build-aux/config.rpath (libname_spec): Export.
62163         (library_names_spec): New variable. Export.
62164         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
62165         library_names_spec from the config.rpath output. Locate shared library
62166         through the name pattern in library_names_spec.
62167
62168 2007-01-01  Eric Blake  <ebb9@byu.net>
62169
62170         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
62171
62172 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
62173
62174         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
62175         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
62176         assume the C locale, and avoid an "eval" that could cause trouble.
62177         Problem with SORT reported by Bob Proulx.
62178
62179         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
62180         Define.  Trivial patch from Henning Nielsen Lund, originally
62181         sent to bug-grep@gnu.org today.
62182
62183 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62184
62185         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
62186         struct stat.  Problem reported by Henning Nielsen Lund.
62187         * lib/acl.c: Include acl.h first, to check interface.  Don't
62188         bother to include sys/types.h and sys/stat.h again.
62189
62190 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62191
62192         Import the following change from libc; problem reported by
62193         Sven Verdoolaege.
62194
62195         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
62196
62197         [BZ #1373]
62198         * lib/argp.h: Remove __NTH for __argp_usage inline function.
62199
62200 2006-12-28  Jim Meyering  <jim@meyering.net>
62201
62202         * build-aux/announce-gen: Do not assume that the package
62203         builds any of tar.gz, tar.bz2, and .xdelta files.
62204         Suggestion from Simon Josefsson.
62205
62206 2006-12-28  Simon Josefsson  <simon@josefsson.org>
62207
62208         * modules/announce-gen: New file.
62209
62210 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62211
62212         * lib/mbchar.h: Just include <wctype.h>; the wctype module
62213         handles its gotchas now.
62214         * lib/mbswidth.c: Likewise.
62215         * lib/wcwidth.h: Likewise.
62216         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
62217         and iswcntrl; the wctype module does this stuff now.
62218         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62219         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62220         * modules/mbchar (Depends-on): Add wctype.
62221         * modules/mbswidth (Depends-on): Likewise.
62222         * modules/wcwidth (Depends-on): Likewise.
62223
62224 2006-12-27  Eric Blake  <ebb9@byu.net>
62225
62226         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
62227         module uses more than what <wctype.h> is required to provide.
62228
62229 2006-12-26  Eric Blake  <ebb9@byu.net>
62230
62231         * gnulib-tool (sed_extract_prog): Avoid space-tab.
62232
62233 2006-12-26  Eric Blake  <ebb9@byu.net>
62234
62235         * modules/absolute-header: New module.
62236         * modules/fcntl (Depends-on): Depend on it.
62237         * modules/inttypes (Depends-on): Likewise.
62238         * modules/stdint (Depends-on): Likewise.
62239         * modules/sys_stat (Depends-on): Likewise.
62240         * modules/wctype (Depends-on): Likewise.
62241         * MODULES.html.sh (Support for building libraries and
62242         executables): Document it.
62243
62244 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62245
62246         * gnulib-tool (SED): Remove, undoing previous change.
62247         The problem was that it broke coreutils on Solaris, because
62248         "sed --posix" leaked into a makefile.
62249         (sed): New alias, if 'alias' and GNU sed.
62250
62251 2006-12-24  Jim Meyering  <jim@meyering.net>
62252
62253         Work around an fchownat bug in glibc-2.4:
62254         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
62255         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
62256         in spite of the -P option.
62257         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
62258         New macros.
62259         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
62260         * modules/openat (Files): Add lib/fchownat.c.
62261         * lib/openat.c (fchownat): Don't define here.  Move to...
62262         * lib/fchownat.c: ...this new file.
62263
62264 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62265
62266         Fix bug reported by Bruno Haible in
62267         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
62268         where quotearg.c didn't compile on Mac OS X 10.2 because it
62269         lacks <wchar.h> and wint_t.
62270         * lib/wctype_.h (__wctype_wint_t): New type.
62271         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
62272         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
62273         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
62274         Arg is now of type __wctype_wint_t, not wint_t.
62275         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
62276         substitute HAVE_WINT_T.
62277         * modules/wctype (Files): Add m4/wint_t.m4.
62278         (wctype.h): Substitute HAVE_WINT_T.
62279
62280 2006-12-23  Bruno Haible  <bruno@clisp.org>
62281
62282         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
62283
62284 2006-12-23  Bruno Haible  <bruno@clisp.org>
62285
62286         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
62287         S_ISLNK.
62288         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
62289         mingw.
62290
62291 2006-12-22  Bruno Haible  <bruno@clisp.org>
62292
62293         * lib/copy-file.c: Include acl.h.
62294         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
62295         Close the file descriptors only after being done with copy_acl.
62296         * modules/copy-file (Depends-on): Add acl.
62297
62298 2006-12-22  Bruno Haible  <bruno@clisp.org>
62299
62300         * gnulib-tool (SED): New variable.
62301         Use $SED instead of sed everywhere.
62302
62303 2006-12-22  Bruno Haible  <bruno@clisp.org>
62304
62305         * modules/no-c++: New file.
62306         * m4/no-c++.m4: New file.
62307         * MODULES.html.sh (Support for building libraries and executables):
62308         Add no-c++.
62309
62310 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62311
62312         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62313         Include <limits.h>, and use its INT_MAX to rewrite the
62314         j loop so that it does not overflow 'int'.  Problem reported by
62315         Ralf Wildenhues in
62316         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
62317         Play it safe by shifting left by 1 rather than multiplying by 2,
62318         as GCC is less likely to optimize this away when the value
62319         is signed (when it assumes overflow leads to undefined behavior).
62320         Also, don't assume time_t uses two's complement.
62321
62322 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
62323
62324         * MODULES.html.sh: New module wctype.
62325         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
62326         * lib/fnmatch.c: Don't bother to include <wchar.h> before
62327         <wctype.h>, since the new wctype module should fix this.
62328         * lib/quotearg.c: Include <wctype.h> unconditionally, since
62329         the wctype module should arrange for it.
62330         * lib/regex_internal.h: Likewise.
62331         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
62332         since the wctype module should handle this now.
62333         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
62334         * modules/fnmatch (Depends-on): Add wctype.
62335         * modules/quotearg (Depends-on): Likewise.
62336         * modules/regex (Depends-on): Likewise.
62337
62338 2006-12-19  Bruno Haible  <bruno@clisp.org>
62339
62340         * lib/strdup.h [C++]: Wrap definitions in extern "C".
62341         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
62342
62343 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62344
62345         * modules/savewd (Depends-on): Fix dependency on fcntl.
62346
62347 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62348
62349         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
62350         conforms to C99, rather than relying on the user's environment
62351         setting of STDINT_H.
62352
62353 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62354         and Eric Blake  <ebb9@byu.net>
62355
62356         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
62357         This is more consistent with the other defines here.
62358         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
62359         Port to z/OS.  Problem reported by Paul Gilmartin.
62360         Change local vars to use gl_ prefix rather than ac_.
62361         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
62362         with other defines.
62363         * modules/double-slash-root: New module.
62364         * modules/dirname (Files): Remove m4/double-slash-root.m4.
62365         (Depends-on): Add double-slash-root.
62366         * MODULES.html.sh (File system functions): Mention new module.
62367
62368 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
62369
62370         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
62371         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
62372         This is for the benefit of gzip, which doesn't do i18n.
62373
62374 2006-12-12  Jim Meyering  <jim@meyering.net>
62375
62376         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
62377         Reported by Andreas Schwab <schwab@suse.de>.
62378
62379 2006-12-12  Bruno Haible  <bruno@clisp.org>
62380
62381         Merge these changes.
62382         2006-09-05  Bruno Haible  <bruno@clisp.org>
62383         * lib/iconvme.c (iconv_string): No need to save and restore errno when
62384         iconv_alloc succeeded.
62385         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
62386         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
62387         test for " && dest " at the end - dest is always != NULL there. Call
62388         iconv with 4xNULL arguments initially, to reset the state. Call iconv
62389         with 2xNULL arguments, also to flush the state storage. Handle the
62390         IRIX iconv behaviour. Realloc the final result, to throw away unused
62391         memory.
62392
62393 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
62394
62395         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
62396         and fchmodat unconditionally, since glibc 2.4 has them.
62397         Problem reported by Arkadiusz Miskiewicz.
62398
62399 2006-12-10  Bruno Haible  <bruno@clisp.org>
62400
62401         * gnulib-tool (func_import): Show the include files only for those
62402         modules that are copied and specified.
62403         Reported by Karl Berry.
62404
62405 2006-12-08  Jim Meyering  <jim@meyering.net>
62406
62407         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
62408         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
62409
62410         * build-aux/announce-gen: Add two new options, both optional:
62411         --bootstrap-tools=TOOL_LIST
62412               a comma-separated list of tools, e.g.,
62413               autoconf,automake,bison,gnulib
62414         --gnulib-snapshot-date=DATE
62415               if gnulib is in the bootstrap tool list,
62416               then report this as the snapshot date.
62417               If not specified, use the current date/time.
62418               If you specify a date here, be sure it's UTC.
62419
62420 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62421
62422         * tests/test-argp-2.sh: Fix test to match actual output.
62423         (func_compare): Fix sed script to be portable.
62424
62425 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
62426
62427         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
62428         workaround for this case.  It is not autoconfigured now; offhand
62429         it's hard to see how to autoconfigure it.
62430
62431 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62432
62433         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
62434         a directory that is about to be chowned.  Such a directory's
62435         initial file permissions should permit the owner only and this
62436         should not be changed until after the chown, since the group and
62437         other bits would be incorrect if they granted permission before
62438         the chown.
62439
62440         Fix porting problem for iswctype reported by Georg Schwarz in:
62441         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
62442         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
62443         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
62444         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
62445         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62446
62447 2006-12-03  Jim Meyering  <jim@meyering.net>
62448
62449         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
62450         p->fts_statp may not yet be defined.
62451         (fts_read): Instead, set it in the caller, once p->fts_statp is
62452         sure to be defined, and corresponds to a top-level directory.
62453         This bug made du -x fail.  Here's the coreutils test case:
62454         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
62455         Reported by Mike Frysinger.
62456
62457 2006-12-01  Jim Meyering  <jim@meyering.net>
62458
62459         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
62460         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
62461         Reported by Simon Josefsson.
62462
62463 2006-11-30  Jim Meyering  <jim@meyering.net>
62464
62465         * m4/warning.m4: Use the all-permissive copyright notice
62466         recommended by RMS (rather than LGPL).
62467         * m4/vararrays.m4: Likewise.
62468         * m4/flexmember.m4: Likewise.
62469
62470 2006-11-29  Bruno Haible  <bruno@clisp.org>
62471
62472         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62473         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
62474         using +=.
62475         Reported by Simon Josefsson <simon@josefsson.org>.
62476
62477 2006-11-28  James Youngman <jay@gnu.org>
62478
62479         * README: Advise users that they might find the bug-gnulib@gnu.org
62480         and autotools-announce@gnu.org mailing lists useful.
62481
62482 2006-11-28  Bruno Haible  <bruno@clisp.org>
62483
62484         * m4/ptrdiff_max.m4: Remove file.
62485
62486 2006-11-21  Bruno Haible  <bruno@clisp.org>
62487
62488         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
62489         _AC_COMPUTE_INT.
62490         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62491         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
62492         _AC_COMPUTE_INT.
62493         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62494         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
62495         _AC_COMPUTE_INT.
62496         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62497
62498 2006-11-28  Jim Meyering  <jim@meyering.net>
62499
62500         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
62501         warning from "gcc -Wshadow" about shadowing the builtin.
62502
62503 2006-11-27  Bruno Haible  <bruno@clisp.org>
62504
62505         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
62506         _AC_COMPUTE_INT.
62507         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62508
62509 2006-11-27  Bruno Haible  <bruno@clisp.org>
62510             Paul Eggert  <eggert@cs.ucla.edu>
62511
62512         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
62513
62514 2006-11-26  Bruno Haible  <bruno@clisp.org>
62515
62516         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62517         noinst_LTLIBRARIES.
62518
62519 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
62520             Bruno Haible  <bruno@clisp.org>
62521
62522         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
62523         if compiling with "gcc -ansi".
62524
62525 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
62526
62527         Fix some incompatibilities with gcc -ansi -pedantic.
62528         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
62529         if compiling pedantically with GCC, unless it's C99 or later.
62530         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
62531         it mishandles gcc -ansi -pedantic as well.
62532         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
62533         if gcc -pedantic.
62534         * lib/regexec.c (check_node_accept_bytes): Don't use auto
62535         initializers for struct if -pedantic, unless it's C99 or later.
62536
62537 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
62538
62539         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
62540         Don't close an fd more than once. Identical atimes indicate
62541         success, not failure.
62542
62543 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
62544
62545         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
62546
62547 2006-11-23  Jim Meyering  <jim@meyering.net>
62548
62549         * build-aux/announce-gen: New file.  From coreutils.
62550
62551 2006-11-22  Jim Meyering  <jim@meyering.net>
62552
62553         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
62554         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
62555         (fts_read): Use a temporary to narrow the overused st_size member
62556         before using it in a switch statement.  Reported by Matthew Woehlke.
62557
62558         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
62559         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62560
62561 2006-11-20  Bruno Haible  <bruno@clisp.org>
62562
62563         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
62564         changequote instead of pairs of brackets.
62565         Reported by Andreas Schwab <schwab@suse.de>.
62566
62567 2006-11-21  Jim Meyering  <jim@meyering.net>
62568
62569         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
62570         so as to remain compatible with older compilers.
62571         Patch from Michael Deutschmann.
62572
62573 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62574
62575         * MODULES.html.sh (File system functions): Add openat.
62576
62577         * lib/openat.h (rpl_fstatat): New macro, if
62578         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
62579         (fstatat): Define to rpl_fstatat under the same conditions,
62580         unless COMPILING_FSTATAT.
62581         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
62582         seems to have the bug.
62583         * lib/fstatat.c: New file.
62584         * modules/openat (Files): Add it.
62585
62586 2006-11-20  Bruno Haible  <bruno@clisp.org>
62587
62588         * Makefile: New file.
62589
62590 2006-11-20  Jim Meyering  <jim@meyering.net>
62591
62592         The beginnings of syntax-related checks for gnulib.
62593         * lib/Makefile: New file.
62594         * lib/t-idcache: New script.  Ensure that the two halves of
62595         idcache.c stay in sync.
62596
62597         * lib/idcache.c: Adjust comments in user- and group- portions to
62598         be more accurate, and to be consistent with one another.
62599
62600 2006-11-20  Jim Meyering  <jim@meyering.net>
62601
62602         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
62603         continue using the flexible array member (thus, this module performs
62604         half as many malloc calls), with the addition that...
62605         (getgroup, getuser): Consistently record a non-match via an empty
62606         "name" string, and map an empty string match to a NULL return value.
62607         * modules/idcache (Depends-on): Re-add flexmember.
62608
62609         * lib/idcache.c (getuser): Remove all uses of the register keyword.
62610         (getuidbyname, getgroup, getgidbyname): Likewise.
62611
62612         Use cleaner syntax: NULL rather than 0.
62613         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
62614
62615 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62616
62617         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
62618         It mishandled the case where the group was missing.
62619         Problem reported by Greg Schafer.
62620         * modules/idcache: Likewise.
62621
62622 2006-11-18  Jim Meyering  <jim@meyering.net>
62623
62624         * check-module (%exempt_header): Add exception for some
62625         conditionally-included headers.
62626
62627         * modules/i-ring (Depends-on): Add verify.
62628         (License): Change to LGPL.
62629
62630 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62631
62632         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
62633         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
62634         and inttostr.h.  Use snprintf rather than uinttostr, so that
62635         LGPLed code doesn't depend on GPLed.
62636
62637 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62638
62639         * modules/inline (License): Change from GPL to LGPL.
62640
62641 2006-11-17  Jim Meyering  <jim@meyering.net>
62642
62643         * modules/d-type (License): Switch to LGPL.
62644
62645 2006-11-15  Bruno Haible  <bruno@clisp.org>
62646
62647         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
62648
62649 2006-11-15  Eric Blake  <ebb9@byu.net>
62650
62651         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
62652         the module dependency.
62653
62654 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62655             Bruno Haible  <bruno@clisp.org>
62656
62657         * gnulib-tool (func_create_testdir): Add license consistency check.
62658
62659 2006-11-15  Eric Blake  <ebb9@byu.net>
62660
62661         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
62662         random "(cached)" in configure output.
62663
62664 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62665
62666         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
62667         test for conforming inttypes.h is both announced and cached.
62668
62669         * MODULES.html.sh (seen_modules, seen_files): New variables.
62670         (func_module): Rewrite to use a few less gnulib-tool and sed
62671         invocations.  Avoid a couple of quadratic algorithms for ...
62672         (missed_modules, missed_files): ... these, with ...
62673         (func_append, func_tmpdir): ... these new functions, from
62674         gnulib-tool.  Analogously, install traps for cleanup.
62675
62676         * tests/test-gc.c (main): Remove unused variables.
62677         * tests/test-read-file.c: Include stdlib.h, for 'free'.
62678
62679 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
62680
62681         * modules/inttostr (License): Change to LGPL.
62682
62683 2006-11-14  Eric Blake  <ebb9@byu.net>
62684
62685         * modules/tempname (License): Change to LGPL.
62686
62687 2006-11-14  Eric Blake  <ebb9@byu.net>
62688
62689         * doc/functions.texi (Function Portability): *printf functions on
62690         Cygwin now understand all POSIX size specifiers.
62691
62692 2006-11-14  Bruno Haible  <bruno@clisp.org>
62693
62694         * modules/c-ctype (License): Change to LGPL.
62695
62696 2006-11-12  Bruno Haible  <bruno@clisp.org>
62697
62698         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62699         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
62700         for GNOME libraries, for which the include files are installed in
62701         subdirectories of $prefix/include.
62702
62703 2006-11-12  Bruno Haible  <bruno@clisp.org>
62704
62705         * m4/lib-link.m4: Require at least autoconf-2.54.
62706         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
62707         name to underscores for the --with option.
62708
62709 2006-11-13  Bruno Haible  <bruno@clisp.org>
62710
62711         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
62712         the tests directory.
62713         Reported by Ralf Wildenhues.
62714
62715 2006-11-13  Bruno Haible  <bruno@clisp.org>
62716
62717         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
62718         (func_emit_initmacro_end): Undo the override here.
62719         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
62720         Works around the famous automake error in coreutils.
62721
62722 2006-11-13  Eric Blake  <ebb9@byu.net>
62723
62724         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
62725         element, not its node.
62726
62727 2006-11-12  Bruno Haible  <bruno@clisp.org>
62728
62729         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
62730         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
62731
62732 2006-11-12  Bruno Haible  <bruno@clisp.org>
62733
62734         * gnulib-tool: New option --local-symlink.
62735         (func_usage): Document it.
62736         (lsymbolic): New variable.
62737         (func_import, func_create_testdir): If --symlink was not specified,
62738         test whether --local-symlink was specified and the file comes from
62739         the local_gnulib_dir.
62740
62741 2006-11-12  Bruno Haible  <bruno@clisp.org>
62742
62743         * gnulib-tool (func_ln): New function.
62744         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
62745
62746 2006-11-12  Bruno Haible  <bruno@clisp.org>
62747
62748         Finish support for source files in subdirectories.
62749         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
62750         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
62751         AUTOMAKE_OPTIONS.
62752         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
62753
62754 2006-11-12  Bruno Haible  <bruno@clisp.org>
62755
62756         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62757         EXTRA_lib_SOURCES augmentation.
62758         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
62759
62760 2006-11-12  Jim Meyering  <jim@meyering.net>
62761
62762         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
62763         file descriptors.  This also averts a failure on systems with
62764         native openat support when a traversed directory lacks "x" access.
62765         * lib/fts_.h: Include "i-ring.h"
62766         (struct FTS) [fts_fd_ring]: New member.
62767         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
62768         (FCHDIR): Add parentheses.
62769         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
62770         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
62771         When descending, rather than simply closing the previous
62772         fts_cwd_fd value, push that file descriptor onto the ring.
62773         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
62774         (fts_open): Initialize the new fd_ring member.
62775         (fts_close): Clear the ring.
62776         (fts_safe_changedir): When possible, use our new fd_ring to skip
62777         the diropen and fstat and dev/ino comparison that would normally
62778         accompany a virtual `chdir ("..")'.
62779
62780         * modules/fts (Depends-on): Add i-ring.
62781         * modules/i-ring: New module.
62782         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
62783         * m4/i-ring.m4: New file.
62784
62785 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62786
62787         * gnulib-tool (func_create_testdir): Fix replacement of
62788         `build-aux' in configure.ac.  Run autotools in gltests
62789         subdirectory.
62790         (func_create_testdir, func_create_megatestdir, test): There is
62791         no need for '--force' in most autotool invocations in a new
62792         tree.  Actually fail the whole test if any of the tools, or the
62793         configure or make stages fail.
62794
62795         Sync from Automake.
62796         * build-aux/gnupload: Revert last change.  Add pointer to upload
62797         instructions of the GNU Maintenance Instructions.
62798         Suggestion by Karl Berry.
62799
62800 2006-11-10  Jim Meyering  <jim@meyering.net>
62801
62802         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
62803
62804 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62805
62806         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
62807         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
62808         (bind_textdomain_codeset) [! ENABLE_NLS]:
62809         Evaluate all the arguments.  That way, callers get compatible behavior
62810         if the arguments have side effects.  Also, it avoids some GCC
62811         diagnostics in some cases; Joel E. Denny reported problems when Bison
62812         was configured with --enable-gcc-warnigs.
62813
62814 2006-11-10  Jim Meyering  <jim@meyering.net>
62815
62816         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
62817         relevant options in CFLAGS (like -O, -fno-inline) are taken into
62818         account.
62819
62820 2006-11-10  Jim Meyering  <jim@meyering.net>
62821
62822         * modules/inline: New file/module.
62823         * modules/xalloc (Files): Remove m4/inline.m4.
62824         (Depends-on): Add inline, instead.
62825         * modules/oset: Likewise.
62826         * modules/list: Likewise.
62827
62828 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62829
62830         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
62831         Problem reported by Matthew Woehlke.
62832
62833 2006-11-09  Bruno Haible  <bruno@clisp.org>
62834
62835         * lib/tempname.c (gen_tempname): Remove variant that invokes
62836         __gen_tempname.
62837         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
62838         __gen_tempname.
62839
62840 2006-11-08  Bruno Haible  <bruno@clisp.org>
62841
62842         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
62843         to 'yes' instead of 'cross-compiling'.
62844
62845 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
62846
62847         * lib/quotearg.h (quotearg_free): New decl.
62848         * lib/quotearg.c (quotearg_free): New function.
62849         (slot0, nslots, slotvec0, slotvec):
62850         Now file-scope so that quotearg_free can get at them.
62851
62852 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62853
62854         Sync from Automake.
62855         * build-aux/gnupload: Add missing 'gnu' to example URL.
62856         Report by Karl Berry.
62857
62858 2006-11-08  Bruno Haible  <bruno@clisp.org>
62859
62860         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
62861         Suggested by Paul Eggert.
62862
62863 2006-11-08  Jim Meyering  <jim@meyering.net>
62864
62865         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
62866         It's already included if !_LIBC.
62867         (fts_safe_changedir): Add a comment.
62868
62869 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62870
62871         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
62872         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
62873         Matthew Woehlke.
62874
62875         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
62876         definitions up, to avoid colliding with change below.
62877         (static_inline) [HAVE_INLINE]: New macro.
62878         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
62879         Provide extern decls when !HAVE_INLINE.  Do not define unless
62880         static_inline is defined, either by us or by xmalloc.c.  Use
62881         static_inline rather than static inline.
62882         (XCALLOC): Optimize sizeof(T) = 1 case.
62883         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
62884
62885 2006-11-07  Bruno Haible  <bruno@clisp.org>
62886
62887         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
62888         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
62889         AC_C_INLINE.
62890         * modules/xalloc (Files): Add m4/inline.m4.
62891
62892 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62893
62894         * README: Fix typo.
62895         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
62896         (Miscellanous Notes): ...from this.
62897
62898 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62899
62900         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
62901         Mention that offsetof should be used instead of sizeof.
62902         From Bruno Haible.
62903
62904 2006-11-07  Bruno Haible  <bruno@clisp.org>
62905
62906         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
62907
62908 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62909
62910         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62911         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
62912         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62913         (gl_tree_add_before, gl_tree_add_after):
62914         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
62915         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
62916         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62917         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
62918         (gl_linked_add_after, gl_linked_add_at): Likewise.
62919         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
62920         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62921         (gl_tree_add_before, gl_tree_add_after): Likewise.
62922         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
62923         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
62924         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
62925
62926 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62927
62928         * lib/gl_oset.h: Use C comment style, not C++ comment style.
62929
62930 2006-11-06  Bruno Haible  <bruno@clisp.org>
62931
62932         * m4/inline.m4: New file.
62933         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
62934         * modules/list (Files): Add m4/inline.m4.
62935         * modules/oset (Files): Likewise.
62936
62937 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62938
62939         * lib/idcache.c: Include <stddef.h>, for offsetof.
62940         (struct userid.name): Change from char * to a flexible array member.
62941         All uses changed.
62942         * modules/idcache (Depends-on): Add flexmember.
62943
62944         * MODULES.html.sh (Core language properties): New module flexmember.
62945         * modules/flexmember, m4/flexmember.m4: New files.
62946
62947         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
62948         inline functions that are identical with the old xnmalloc_inline,
62949         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
62950         that we can avoid some unnecessary integer multiplications and
62951         divisions in the common case where the element size is known at
62952         compile time.
62953         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
62954         needed.
62955         (xnboundedmalloc): Remove.
62956         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
62957         arguments, for consistency with rest of this header.
62958         (xcharalloc): Rewrite using XNMALLOC.
62959         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
62960         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
62961         versions have been moved to lib/xalloc.h and renamed to be the
62962         non-*_inline versions.
62963         (xmalloc, xrealloc): Implement without reference to the xnmalloc
62964         and xnrealloc functions, since those functions are now inline and
62965         now call us.
62966         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
62967         renaming described above.
62968         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
62969         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
62970         captures the dependency in AC_C_INLINE.
62971
62972         New module canonicalize-lgpl, proposed by Charles Wilson in
62973         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
62974         with a few small changes afterwards.
62975         * MODULES.html.sh (File system functions): New module
62976         canonicalize-lgpl.
62977         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
62978         and canonicalize_file_name.
62979         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
62980         * modules/canonicalize-lgpl: New files.
62981
62982 2006-11-05  Bruno Haible  <bruno@clisp.org>
62983
62984         * gnulib-tool (func_import, func_create_testdir): Create directories
62985         also for files in subdirectories of lib/.
62986
62987 2006-11-05  Bruno Haible  <bruno@clisp.org>
62988
62989         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
62990         ANSI C compliant.
62991
62992 2006-11-03  Bruno Haible  <bruno@clisp.org>
62993
62994         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62995         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
62996         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
62997         (xnboundedmalloc): New inline function.
62998         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
62999         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
63000         xmalloc.
63001         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
63002         xmalloc.
63003         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
63004         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
63005         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
63006         xmalloc.
63007         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
63008         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
63009         xmalloc.
63010         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
63011         gl_tree_add_after): Use XMALLOC instead of xmalloc.
63012         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
63013         xmalloc.
63014         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
63015         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
63016         gl_tree_add_after): Use XMALLOC instead of xmalloc.
63017         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
63018         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
63019         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
63020         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
63021
63022 2006-11-03  Bruno Haible  <bruno@clisp.org>
63023
63024         * lib/c-ctype.h [C++]: Define functions without name mangling.
63025         * lib/fwriteerror.h [C++]: Likewise.
63026         * lib/gcd.h [C++]: Likewise.
63027         * lib/linebreak.h [C++]: Likewise.
63028
63029 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
63030
63031         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
63032         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
63033         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
63034         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63035         Check for functions and headers just once.
63036         Check for declaration of canonicalize_file_name.
63037         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
63038
63039 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63040
63041         * gnulib-tool (func_import): Fix typo in actioncmd.
63042
63043 2006-11-02  Bruno Haible  <bruno@clisp.org>
63044
63045         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
63046         newline sequence in the Makefile.am snippet as a space, like "make"
63047         does.
63048         Reported by Roger Persson <perrog@gmail.com>.
63049
63050 2006-11-01  Bruno Haible  <bruno@clisp.org>
63051
63052         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
63053         already declared in <string.h>.
63054         * lib/strcase.h (strncasecmp): Don't declare it if yes.
63055
63056 2006-11-01  Bruno Haible  <bruno@clisp.org>
63057
63058         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
63059         * lib/strcase.h: Include <string.h>.
63060         (strcasecmp): Define to rpl_strcasecmp here.
63061
63062 2006-11-01  Bruno Haible  <bruno@clisp.org>
63063
63064         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
63065
63066 2006-11-01  Eric Blake  <ebb9@byu.net>
63067
63068         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
63069
63070         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
63071
63072 2006-10-29  Bruno Haible  <bruno@clisp.org>
63073
63074         Make it compile in C++ mode.
63075         * lib/full-write.c (full_rw): Add a cast.
63076
63077 2006-11-01  Bruno Haible  <bruno@clisp.org>
63078
63079         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
63080         be POSIX compliant.
63081         Reported by Roger Persson <perrog@gmail.com>.
63082
63083 2006-11-01  Eric Blake  <ebb9@byu.net>
63084
63085         * lib/getopt_.h: Fix comments.
63086
63087 2006-10-31  Eric Blake  <ebb9@byu.net>
63088
63089         * modules/tmpdir (Depends-on): Add sys_stat.
63090         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
63091         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
63092         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
63093         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
63094         tempname.
63095
63096 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
63097
63098         Avoid some C++ diagnostics reported by Bruno Haible.
63099         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
63100         xmalloc.
63101         (quotearg_alloc): Use xcharalloc rather than xmalloc.
63102         (struct slotvec): Move to top level.
63103         (quotearg_n_options): Rewrite to avoid xmalloc.
63104         * lib/xalloc.h (xcharalloc): New function.
63105         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
63106         [defined __cplusplus]: Add function template that provides result
63107         type propagation.  This part of the change is from Bruno Haible.
63108
63109 2006-10-29  Bruno Haible  <bruno@clisp.org>
63110
63111         Make it compile in C++ mode.
63112         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
63113         * lib/strnlen1.c (strnlen1): Cast memchr result.
63114         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
63115         * lib/clean-temp.c (string_equals, string_hash): Add casts.
63116         (create_temp_dir): Rename local variable 'template'.
63117         (compile_csharp_using_sscli): Add cast.
63118         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
63119         * lib/findprog.c (find_in_path): Likewise.
63120         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
63121         * lib/wait-process.c (register_slave_subprocess): Likewise.
63122
63123 2006-10-22  Bruno Haible  <bruno@clisp.org>
63124
63125         * modules/tsearch: New file.
63126         * lib/tsearch.h: New file.
63127         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
63128         * m4/tsearch.m4: New file.
63129         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
63130
63131 2006-10-29  Eric Blake  <ebb9@byu.net>
63132
63133         * lib/arcfour.c: Assume config.h.
63134         * lib/arctwo.c: Likewise.
63135         * lib/base64.c: Likewise.
63136         * lib/check-version.c: Likewise.
63137         * lib/crc.c: Likewise.
63138         * lib/des.c: Likewise.
63139         * lib/gc-gnulib.c: Likewise.
63140         * lib/gc-libgcrypt.c: Likewise.
63141         * lib/gc-pbkdf2-sha1.c: Likewise.
63142         * lib/getaddrinfo.c: Likewise.
63143         * lib/getdelim.c: Likewise.
63144         * lib/getline.c: Likewise.
63145         * lib/hmac-md5.c: Likewise.
63146         * lib/hmac-sha1.c: Likewise.
63147         * lib/iconvme.c: Likewise.
63148         * lib/md2.c: Likewise.
63149         * lib/md4.c: Likewise.
63150         * lib/memxor.c: Likewise.
63151         * lib/read-file.c: Likewise.
63152         * lib/readline.c: Likewise.
63153         * lib/rijndael-alg-fst.c: Likewise.
63154         * lib/rijndael-api-fst.c: Likewise.
63155         * lib/xgetdomainname.c: Likewise.
63156
63157 2006-10-28  Eric Blake  <ebb9@byu.net>
63158
63159         * lib/xstrndup.c: Assume config.h.
63160
63161 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
63162
63163         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
63164         stat-macros.h is now for our own macros, whereas stat_h is for
63165         macros in the <sys/stat.h> name space.
63166         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
63167         (STAT_MACROS_H): Remove.
63168         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
63169         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
63170         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
63171         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
63172         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
63173         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
63174         Move these macros to ...
63175         * lib/stat_.h: here.  Don't include stat-macros.h.
63176         * lib/canonicalize.c: Don't include stat-macros.h.
63177         * lib/chown.c: Likewise.
63178         * lib/euidaccess.c: Likewise.
63179         * lib/file-type.c: Likewise.
63180         * lib/filemode.c: Likewise.
63181         * lib/glob.c: Likewise.
63182         * lib/isapipe.c: Likewise.
63183         * lib/lchown.c: Likewise.
63184         * lib/lstat.c: Likewise.
63185         * lib/mkdir-p.c: Likewise.
63186         * lib/rmdir.c: Likewise.
63187         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
63188         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
63189         unless mkdir isn't declared, to speed up 'configure'.
63190         Always create sys/stat.h, since it's unlikely any real sys/stat.h
63191         would define all the S_* symbols.
63192         * modules/canonicalize (Depends-on):
63193         Depend on sys_stat, not stat-macros.
63194         * modules/chown: Likewise.
63195         * modules/euidaccess: Likewise.
63196         * modules/filemode: Likewise.
63197         * modules/file-type: Likewise.
63198         * modules/glob: Likewise.
63199         * modules/isapipe: Likewise.
63200         * modules/lchown: Likewise.
63201         * modules/lstat: Likewise.
63202         * modules/mkancesdirs: Likewise.
63203         * modules/rmdir: Likewise.
63204         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
63205         * modules/modechange: Likewise.
63206         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
63207         (configure.ac): Remove gl_STAT_MACROS.
63208         * modules/sys_stat (Depends-on): Remove stat-macros.
63209
63210 2006-10-27  Bruno Haible  <bruno@clisp.org>
63211
63212         * m4/signed.m4: Remove file.
63213         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
63214         invocation.
63215         * modules/vasnprintf (Files): Remove m4/signed.m4.
63216
63217 2006-10-27  Bruno Haible  <bruno@clisp.org>
63218
63219         Update to GNU gettext 0.16.
63220         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
63221         m4/inttypes-h.m4, m4/signed.m4.
63222         * m4/gettext.m4: Update to GNU gettext 0.16.
63223         * m4/intl.m4: New file, from GNU gettext.
63224         * m4/intldir.m4: New file, from GNU gettext.
63225         * config/srclist.txt: Update
63226
63227 2006-10-27  Eric Blake  <ebb9@byu.net>
63228
63229         * MODULES.html.sh: Document tempname.
63230         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
63231         dependencies.
63232         (Files): Move lib/tempname.c...
63233         * modules/tempname: ...to this new module.
63234         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
63235         (gl_PREREQ_TEMPNAME): Move...
63236         * m4/tempname.m4: ...to this new file.
63237         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
63238         * modules/sys_stat (Depends-on): Add stat-macros.
63239         * lib/stat_.h (includes): Pick up stat macros.
63240         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
63241         if stat macros are broken.
63242         * lib/tempname.c (includes): No need to include "stat-macros.h".
63243         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
63244         (direxists, __path_search) [!_LIBC]: Don't compile these in
63245         gnulib; the tmpdir module covers that.
63246         * lib/tempname.h: New file.
63247
63248 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
63249
63250         * COPYING: Explain how gnulib-tool converts licence headers.
63251         Almost all wording by Eric Blake.
63252
63253 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
63254
63255         * lib/mbchar.h (is_basic_table): Make read-only.
63256         * lib/mbchar.c (is_basic_table): Likewise.
63257         Reported by John Darrington.
63258
63259 2006-10-25  Bruno Haible  <bruno@clisp.org>
63260
63261         * lib/progname.h (set_program_name): Undefine before defining.
63262
63263 2006-10-25  Bruno Haible  <bruno@clisp.org>
63264
63265         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
63266         false for non-gcc C++ compilers.
63267         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
63268
63269 2006-10-24  Bruno Haible  <bruno@clisp.org>
63270
63271         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
63272         iconv implementations like Irix iconv.
63273
63274 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63275
63276         * modules/vararrays: New file.
63277         * m4/vararrays.m4: New file, taken from diffutils.
63278         * MODULES.html.sh: New module vararrays.
63279
63280 2006-10-24  Karl Berry  <karl@gnu.org>
63281
63282         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
63283         Don't call GNU Unix.
63284
63285 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63286
63287         * users.txt: Add Libtool.
63288
63289         Sync from Libtool:
63290
63291         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63292
63293         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
63294         to gnulib's policy of including config.h unconditionally.
63295
63296 2006-10-24  Bruno Haible  <bruno@clisp.org>
63297
63298         * modules/wcwidth (Files): Add m4/wint_t.m4.
63299         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
63300         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
63301
63302 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63303
63304         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
63305         to pacify GCC with some -W flags enabled.  Problem reported by
63306         Bruno Haible.
63307
63308 2006-10-24  Jim Meyering  <jim@meyering.net>
63309
63310         * MODULES.html.sh: Remove uinttostr.  It's not a module.
63311         Reported by Karl Berry.
63312
63313 2006-10-23  Bruno Haible  <bruno@clisp.org>
63314
63315         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
63316
63317 2006-10-24  Bruno Haible  <bruno@clisp.org>
63318
63319         * lib/gl_list.h: Use C comment style, not C++ comment style.
63320
63321 2006-10-23  Eric Blake  <ebb9@byu.net>
63322
63323         * lib/getaddrinfo.c (includes): Add missing include.
63324
63325 2006-10-23  Bruno Haible  <bruno@clisp.org>
63326             Paul Eggert  <eggert@cs.ucla.edu>
63327
63328         Ability to rename obstack_free.
63329         * lib/obstack.h (__obstack_free): New macro. Declare instead of
63330         obstack_free.
63331         (obstack_free): Invoke the __obstack_free macro.
63332         * lib/obstack.c (obstack_free): Use __obstack_free macro.
63333
63334 2006-10-23  Bruno Haible  <bruno@clisp.org>
63335             Paul Eggert  <eggert@cs.ucla.edu>
63336
63337         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
63338         __argc, __argv from the declaration. (They are defined as macros on
63339         mingw.)
63340
63341 2006-10-22  Bruno Haible  <bruno@clisp.org>
63342
63343         * doc/gnulib-intro.texi: New file.
63344         * doc/gnulib.texi: Include it.
63345
63346 2006-10-21  Bruno Haible  <bruno@clisp.org>
63347
63348         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
63349         "Introduction", "Miscellanous Notes", "Particular Modules".
63350
63351 2006-10-21  Bruno Haible  <bruno@clisp.org>
63352
63353         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63354         Change mostlyclean-local rule to avoid sh syntax error from bash
63355         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
63356
63357 2006-10-23  Jim Meyering  <jim@meyering.net>
63358
63359         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
63360         in place of snprintf.
63361
63362         * modules/inttostr (Files): Add lib/uinttostr.c.
63363         * lib/uinttostr.c (inttostr): New file/function.
63364         * lib/inttostr.h (uinttostr): Declare.
63365         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
63366         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63367         Add uinttostr.
63368         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
63369
63370 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63371
63372         * lib/canonicalize.c (ELOOP): Define if not already defined.
63373         Problem reported by Bruno Haible in
63374         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
63375
63376 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63377
63378         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
63379         Problem reported by Perry Smith and Ville Laurikari.
63380
63381         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
63382         uses.
63383
63384 2006-10-19  Bruno Haible  <bruno@clisp.org>
63385
63386         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
63387         for mingw.
63388
63389 2006-10-19  Bruno Haible  <bruno@clisp.org>
63390
63391         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
63392         Needed for mingw.
63393
63394 2006-10-19  Bruno Haible  <bruno@clisp.org>
63395
63396         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
63397
63398 2006-10-19  Bruno Haible  <bruno@clisp.org>
63399
63400         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
63401         it.
63402
63403 2006-10-19  Bruno Haible  <bruno@clisp.org>
63404
63405         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
63406         invocation.
63407
63408 2006-10-19  Bruno Haible  <bruno@clisp.org>
63409
63410         * gnulib-tool (func_create_testdir): Don't include ftruncate and
63411         mountlist by default.
63412
63413 2006-10-16  Bruno Haible  <bruno@clisp.org>
63414
63415         * lib/c-strstr.c: Include c-strstr.h.
63416
63417 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63418
63419         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
63420         in a slash.
63421
63422 2006-10-18  Bruno Haible  <bruno@clisp.org>
63423
63424         * lib/lock.h [C++]: Wrap definitions in extern "C".
63425
63426 2006-10-18  Bruno Haible  <bruno@clisp.org>
63427
63428         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
63429         gl_LIBOBJS list.
63430
63431 2006-10-18  Bruno Haible  <bruno@clisp.org>
63432
63433         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
63434
63435 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
63436
63437         * lib/xstrtol.h: Include gettext.h.
63438         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
63439         Problem reported by Eric Blake.
63440         * modules/xstrtol (Depends-on): Add gettext-h.
63441
63442 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
63443
63444         * lib/strftime.c (advance): New macro.
63445         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
63446         incomplete type, so you can't add 0 to it.  Problem and patch
63447         reported by Eelco Dolstra for dietlibc.
63448
63449 2006-10-18  Jim Meyering  <jim@meyering.net>
63450
63451         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
63452         type for a local, and rename it: s/up/user_proc/.
63453
63454 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63455
63456         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
63457         READ_UTMP_USER_PROCESS.
63458         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
63459
63460 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63461
63462         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
63463         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
63464
63465 2006-10-17  Eric Blake  <ebb9@byu.net>
63466
63467         * lib/sigprocmask.c (sigprocmask): Fix typo.
63468
63469         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
63470
63471         * modules/clean-temp (Makefile.am): Don't add to make output...
63472         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
63473         config.h.
63474
63475 2006-10-17  Bruno Haible  <bruno@clisp.org>
63476
63477         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
63478         differently if DEFAULT_TEXT_DOMAIN is set.
63479
63480 2006-10-16  Bruno Haible  <bruno@clisp.org>
63481
63482         * lib/clean-temp.c: Include fwriteerror.h.
63483
63484 2006-10-16  Bruno Haible  <bruno@clisp.org>
63485
63486         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
63487
63488 2006-10-16  Bruno Haible  <bruno@clisp.org>
63489
63490         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
63491         * lib/sigprocmask.h: Include <sys/types.h>.
63492         (sigset_t): Use the system's definition if present.
63493
63494 2006-10-17  Eric Blake  <ebb9@byu.net>
63495
63496         * lib/xvasprintf.c (includes): Assume config.h.
63497         * lib/xasprintf.c (includes): Likewise.
63498
63499 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63500
63501         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
63502         at least as wide as intmax_t.
63503
63504 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
63505
63506         (Imported from Automake.)
63507         * build-aux/gnupload: Update to version 1.1 of directive file.
63508
63509 2006-10-16  Eric Blake  <ebb9@byu.net>
63510
63511         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
63512         match Automake 1.10a.
63513
63514 2006-10-14  Bruno Haible  <bruno@clisp.org>
63515
63516         * modules/sigprocmask: New file.
63517         * lib/sigprocmask.h: New file.
63518         * lib/sigprocmask.c: New file.
63519         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
63520         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
63521         request sigprocmask.o.
63522         (gl_PREREQ_SIGPROCMASK): New macro.
63523         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
63524         (Depends-on): Add sigprocmask.
63525         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
63526         gt_SIGNALBLOCKING. Test for 'raise' only once.
63527         * lib/fatal-signal.c: Include sigprocmask.h.
63528         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
63529         unblock_fatal_signals): Define always.
63530         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63531         sigprocmask.
63532
63533 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63534
63535         Sync from Automake.
63536         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
63537         which incorrectly sets the mode of an existing destination
63538         directory.  In some cases the unpatched install-sh could do the
63539         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
63540         system.  We hope this is rare in practice, but it's clearly worth
63541         fixing.  Problem reported by Alex Unleashed in
63542         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
63543         Also, don't bother to check for -m bugs unless we're using -m;
63544         suggested by Stepan Kasal.
63545
63546 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63547
63548         Sync from Automake.
63549         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
63550         `-c' flag, so they appear at the same position as in %FASTDEP%
63551         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
63552         which ignores unknown options only after the first non-option.
63553         Bug report against M4 by Nelson H. F. Beebe.
63554
63555 2006-10-13  Jim Meyering  <jim@meyering.net>
63556
63557         Fix a bug in yesterday's change.
63558         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
63559         p->fts_statp->st_dev would be used uninitialized.
63560         Ensures that we always call fts_stat on the very first entry.
63561         Miklos Szeredi reported that find -xdev stopped working.
63562
63563 2006-10-12  Bruno Haible  <bruno@clisp.org>
63564
63565         * gnulib-tool (func_get_automake_snippet): Append an automatically
63566         computed EXTRA_DIST augmentation.
63567         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
63568         * modules/alloca-opt (Makefile.am): Likewise.
63569         * modules/allocsa (Makefile.am): Likewise.
63570         * modules/arcfour (Makefile.am): Likewise.
63571         * modules/arctwo (Makefile.am): Likewise.
63572         * modules/argmatch (Makefile.am): Likewise.
63573         * modules/argz (Makefile.am): Likewise.
63574         * modules/atexit (Makefile.am): Likewise.
63575         * modules/backupfile (Makefile.am): Likewise.
63576         * modules/byteswap (Makefile.am): Likewise.
63577         * modules/c-strtod (Makefile.am): Likewise.
63578         * modules/c-strtold (Makefile.am): Likewise.
63579         * modules/calloc (Makefile.am): Likewise.
63580         * modules/canon-host (Makefile.am): Likewise.
63581         * modules/canonicalize (Makefile.am): Likewise.
63582         * modules/chdir-long (Makefile.am): Likewise.
63583         * modules/chdir-safer (Makefile.am): Likewise.
63584         * modules/check-version (Makefile.am): Likewise.
63585         * modules/chown (Makefile.am): Likewise.
63586         * modules/cloexec (Makefile.am): Likewise.
63587         * modules/close-stream (Makefile.am): Likewise.
63588         * modules/closeout (Makefile.am): Likewise.
63589         * modules/crc (Makefile.am): Likewise.
63590         * modules/csharpexec (Makefile.am): Likewise.
63591         * modules/cycle-check (Makefile.am): Likewise.
63592         * modules/des (Makefile.am): Likewise.
63593         * modules/dev-ino (Makefile.am): Likewise.
63594         * modules/dirfd (Makefile.am): Likewise.
63595         * modules/dirname (Makefile.am): Likewise.
63596         * modules/dup2 (Makefile.am): Likewise.
63597         * modules/eealloc (Makefile.am): Likewise.
63598         * modules/error (Makefile.am): Likewise.
63599         * modules/euidaccess (Makefile.am): Likewise.
63600         * modules/exclude (Makefile.am): Likewise.
63601         * modules/exitfail (Makefile.am): Likewise.
63602         * modules/fcntl-safer (Makefile.am): Likewise.
63603         * modules/fcntl (Makefile.am): Likewise.
63604         * modules/file-type (Makefile.am): Likewise.
63605         * modules/fileblocks (Makefile.am): Likewise.
63606         * modules/filemode (Makefile.am): Likewise.
63607         * modules/filenamecat (Makefile.am): Likewise.
63608         * modules/fnmatch (Makefile.am): Likewise.
63609         * modules/fopen-safer (Makefile.am): Likewise.
63610         * modules/fpending (Makefile.am): Likewise.
63611         * modules/fprintftime (Makefile.am): Likewise.
63612         * modules/free (Makefile.am): Likewise.
63613         * modules/fsusage (Makefile.am): Likewise.
63614         * modules/ftruncate (Makefile.am): Likewise.
63615         * modules/fts (Makefile.am): Likewise.
63616         * modules/gc-arcfour (Makefile.am): Likewise.
63617         * modules/gc-des (Makefile.am): Likewise.
63618         * modules/gc-hmac-md5 (Makefile.am): Likewise.
63619         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
63620         * modules/gc-md4 (Makefile.am): Likewise.
63621         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63622         * modules/gc-sha1 (Makefile.am): Likewise.
63623         * modules/gc (Makefile.am): Likewise.
63624         * modules/getaddrinfo (Makefile.am): Likewise.
63625         * modules/getcwd (Makefile.am): Likewise.
63626         * modules/getdelim (Makefile.am): Likewise.
63627         * modules/getdomainname (Makefile.am): Likewise.
63628         * modules/getgroups (Makefile.am): Likewise.
63629         * modules/gethostname (Makefile.am): Likewise.
63630         * modules/gethrxtime (Makefile.am): Likewise.
63631         * modules/getline (Makefile.am): Likewise.
63632         * modules/getloadavg (Makefile.am): Likewise.
63633         * modules/getlogin_r (Makefile.am): Likewise.
63634         * modules/getndelim2 (Makefile.am): Likewise.
63635         * modules/getopt (Makefile.am): Likewise.
63636         * modules/getpagesize (Makefile.am): Likewise.
63637         * modules/getpass-gnu (Makefile.am): Likewise.
63638         * modules/getpass (Makefile.am): Likewise.
63639         * modules/getsubopt (Makefile.am): Likewise.
63640         * modules/gettime (Makefile.am): Likewise.
63641         * modules/gettimeofday (Makefile.am): Likewise.
63642         * modules/getugroups (Makefile.am): Likewise.
63643         * modules/getusershell (Makefile.am): Likewise.
63644         * modules/glob (Makefile.am): Likewise.
63645         * modules/group-member (Makefile.am): Likewise.
63646         * modules/hard-locale (Makefile.am): Likewise.
63647         * modules/hash (Makefile.am): Likewise.
63648         * modules/hmac-md5 (Makefile.am): Likewise.
63649         * modules/hmac-sha1 (Makefile.am): Likewise.
63650         * modules/human (Makefile.am): Likewise.
63651         * modules/idcache (Makefile.am): Likewise.
63652         * modules/imaxabs (Makefile.am): Likewise.
63653         * modules/imaxdiv (Makefile.am): Likewise.
63654         * modules/inet_ntop (Makefile.am): Likewise.
63655         * modules/inet_pton (Makefile.am): Likewise.
63656         * modules/intprops (Makefile.am): Likewise.
63657         * modules/inttostr (Makefile.am): Likewise.
63658         * modules/inttypes (Makefile.am): Likewise.
63659         * modules/isapipe (Makefile.am): Likewise.
63660         * modules/javaversion (Makefile.am): Likewise.
63661         * modules/lchmod (Makefile.am): Likewise.
63662         * modules/lchown (Makefile.am): Likewise.
63663         * modules/localcharset (Makefile.am): Likewise.
63664         * modules/long-options (Makefile.am): Likewise.
63665         * modules/lstat (Makefile.am): Likewise.
63666         * modules/malloc (Makefile.am): Likewise.
63667         * modules/mathl (Makefile.am): Likewise.
63668         * modules/mbchar (Makefile.am): Likewise.
63669         * modules/md2 (Makefile.am): Likewise.
63670         * modules/md4 (Makefile.am): Likewise.
63671         * modules/md5 (Makefile.am): Likewise.
63672         * modules/memcasecmp (Makefile.am): Likewise.
63673         * modules/memchr (Makefile.am): Likewise.
63674         * modules/memcmp (Makefile.am): Likewise.
63675         * modules/memcoll (Makefile.am): Likewise.
63676         * modules/memcpy (Makefile.am): Likewise.
63677         * modules/memmem (Makefile.am): Likewise.
63678         * modules/memmove (Makefile.am): Likewise.
63679         * modules/mempcpy (Makefile.am): Likewise.
63680         * modules/memrchr (Makefile.am): Likewise.
63681         * modules/memset (Makefile.am): Likewise.
63682         * modules/memxor (Makefile.am): Likewise.
63683         * modules/mkancesdirs (Makefile.am): Likewise.
63684         * modules/mkdir-p (Makefile.am): Likewise.
63685         * modules/mkdir (Makefile.am): Likewise.
63686         * modules/mkdtemp (Makefile.am): Likewise.
63687         * modules/mkstemp (Makefile.am): Likewise.
63688         * modules/mktime (Makefile.am): Likewise.
63689         * modules/modechange (Makefile.am): Likewise.
63690         * modules/mountlist (Makefile.am): Likewise.
63691         * modules/nanosleep (Makefile.am): Likewise.
63692         * modules/obstack (Makefile.am): Likewise.
63693         * modules/openat (Makefile.am): Likewise.
63694         * modules/pagealign_alloc (Makefile.am): Likewise.
63695         * modules/pathmax (Makefile.am): Likewise.
63696         * modules/physmem (Makefile.am): Likewise.
63697         * modules/poll (Makefile.am): Likewise.
63698         * modules/posixtm (Makefile.am): Likewise.
63699         * modules/posixver (Makefile.am): Likewise.
63700         * modules/putenv (Makefile.am): Likewise.
63701         * modules/quote (Makefile.am): Likewise.
63702         * modules/quotearg (Makefile.am): Likewise.
63703         * modules/raise (Makefile.am): Likewise.
63704         * modules/read-file (Makefile.am): Likewise.
63705         * modules/readline (Makefile.am): Likewise.
63706         * modules/readlink (Makefile.am): Likewise.
63707         * modules/readtokens (Makefile.am): Likewise.
63708         * modules/readutmp (Makefile.am): Likewise.
63709         * modules/realloc (Makefile.am): Likewise.
63710         * modules/regex (Makefile.am): Likewise.
63711         * modules/rename-dest-slash (Makefile.am): Likewise.
63712         * modules/rename (Makefile.am): Likewise.
63713         * modules/rijndael (Makefile.am): Likewise.
63714         * modules/rmdir (Makefile.am): Likewise.
63715         * modules/rpmatch (Makefile.am): Likewise.
63716         * modules/safe-read (Makefile.am): Likewise.
63717         * modules/safe-write (Makefile.am): Likewise.
63718         * modules/same-inode (Makefile.am): Likewise.
63719         * modules/same (Makefile.am): Likewise.
63720         * modules/save-cwd (Makefile.am): Likewise.
63721         * modules/savedir (Makefile.am): Likewise.
63722         * modules/setenv (Makefile.am): Likewise.
63723         * modules/settime (Makefile.am): Likewise.
63724         * modules/sha1 (Makefile.am): Likewise.
63725         * modules/sig2str (Makefile.am): Likewise.
63726         * modules/snprintf (Makefile.am): Likewise.
63727         * modules/stat-macros (Makefile.am): Likewise.
63728         * modules/stat-time (Makefile.am): Likewise.
63729         * modules/stdbool (Makefile.am): Likewise.
63730         * modules/stdint (Makefile.am): Likewise.
63731         * modules/stdlib-safer (Makefile.am): Likewise.
63732         * modules/stpcpy (Makefile.am): Likewise.
63733         * modules/stpncpy (Makefile.am): Likewise.
63734         * modules/strcase (Makefile.am): Likewise.
63735         * modules/strcasestr (Makefile.am): Likewise.
63736         * modules/strchrnul (Makefile.am): Likewise.
63737         * modules/strcspn (Makefile.am): Likewise.
63738         * modules/strdup (Makefile.am): Likewise.
63739         * modules/strerror (Makefile.am): Likewise.
63740         * modules/strftime (Makefile.am): Likewise.
63741         * modules/strndup (Makefile.am): Likewise.
63742         * modules/strnlen (Makefile.am): Likewise.
63743         * modules/strpbrk (Makefile.am): Likewise.
63744         * modules/strsep (Makefile.am): Likewise.
63745         * modules/strstr (Makefile.am): Likewise.
63746         * modules/strtod (Makefile.am): Likewise.
63747         * modules/strtoimax (Makefile.am): Likewise.
63748         * modules/strtok_r (Makefile.am): Likewise.
63749         * modules/strtol (Makefile.am): Likewise.
63750         * modules/strtoll (Makefile.am): Likewise.
63751         * modules/strtoul (Makefile.am): Likewise.
63752         * modules/strtoull (Makefile.am): Likewise.
63753         * modules/strtoumax (Makefile.am): Likewise.
63754         * modules/strverscmp (Makefile.am): Likewise.
63755         * modules/sys_socket (Makefile.am): Likewise.
63756         * modules/sys_stat (Makefile.am): Likewise.
63757         * modules/sysexits (Makefile.am): Likewise.
63758         * modules/time_r (Makefile.am): Likewise.
63759         * modules/timegm (Makefile.am): Likewise.
63760         * modules/timespec (Makefile.am): Likewise.
63761         * modules/tmpfile-safer (Makefile.am): Likewise.
63762         * modules/trim (Makefile.am): Likewise.
63763         * modules/unistd-safer (Makefile.am): Likewise.
63764         * modules/unlinkdir (Makefile.am): Likewise.
63765         * modules/unlocked-io (Makefile.am): Likewise.
63766         * modules/userspec (Makefile.am): Likewise.
63767         * modules/utime (Makefile.am): Likewise.
63768         * modules/utimecmp (Makefile.am): Likewise.
63769         * modules/utimens (Makefile.am): Likewise.
63770         * modules/vasnprintf (Makefile.am): Likewise.
63771         * modules/vasprintf (Makefile.am): Likewise.
63772         * modules/vsnprintf (Makefile.am): Likewise.
63773         * modules/xalloc (Makefile.am): Likewise.
63774         * modules/xgetcwd (Makefile.am): Likewise.
63775         * modules/xnanosleep (Makefile.am): Likewise.
63776         * modules/xreadlink (Makefile.am): Likewise.
63777         * modules/xstrtod (Makefile.am): Likewise.
63778         * modules/xstrtol (Makefile.am): Likewise.
63779         * modules/xstrtold (Makefile.am): Likewise.
63780         * modules/yesno (Makefile.am): Likewise.
63781         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
63782
63783 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63784
63785         * modules/error (Makefile.am): Distribute files through
63786         EXTRA_DIST, not lib_SOURCES.
63787
63788 2006-10-12  Eric Blake  <ebb9@byu.net>
63789
63790         * modules/error (Makefile.am): Distribute files in /lib.
63791         * modules/obstack (Makefile.am): Likewise.
63792
63793 2006-10-12  Bruno Haible  <bruno@clisp.org>
63794
63795         * modules/acl (Makefile.am): Distribute all files in lib/ through
63796         EXTRA_DIST.
63797         * modules/arcfour (Makefile.am): Likewise.
63798         * modules/arctwo (Makefile.am): Likewise.
63799         * modules/argmatch (Makefile.am): Likewise.
63800         * modules/argz (Makefile.am): Likewise.
63801         * modules/atexit (Makefile.am): Likewise.
63802         * modules/backupfile (Makefile.am): Likewise.
63803         * modules/c-strtod (Makefile.am): Likewise.
63804         * modules/c-strtold (Makefile.am): Likewise.
63805         * modules/calloc (Makefile.am): Likewise.
63806         * modules/canon-host (Makefile.am): Likewise.
63807         * modules/canonicalize (Makefile.am): Likewise.
63808         * modules/chdir-long (Makefile.am): Likewise.
63809         * modules/chdir-safer (Makefile.am): Likewise.
63810         * modules/check-version (Makefile.am): Likewise.
63811         * modules/chown (Makefile.am): Likewise.
63812         * modules/cloexec (Makefile.am): Likewise.
63813         * modules/close-stream (Makefile.am): Likewise.
63814         * modules/closeout (Makefile.am): Likewise.
63815         * modules/crc (Makefile.am): Likewise.
63816         * modules/cycle-check (Makefile.am): Likewise.
63817         * modules/des (Makefile.am): Likewise.
63818         * modules/dirfd (Makefile.am): Likewise.
63819         * modules/dirname (Makefile.am): Likewise.
63820         * modules/dup2 (Makefile.am): Likewise.
63821         * modules/euidaccess (Makefile.am): Likewise.
63822         * modules/exclude (Makefile.am): Likewise.
63823         * modules/exitfail (Makefile.am): Likewise.
63824         * modules/fcntl-safer (Makefile.am): Likewise.
63825         * modules/file-type (Makefile.am): Likewise.
63826         * modules/fileblocks (Makefile.am): Likewise.
63827         * modules/filemode (Makefile.am): Likewise.
63828         * modules/filenamecat (Makefile.am): Likewise.
63829         * modules/fnmatch (Makefile.am): Likewise.
63830         * modules/fopen-safer (Makefile.am): Likewise.
63831         * modules/fpending (Makefile.am): Likewise.
63832         * modules/fprintftime (Makefile.am): Likewise.
63833         * modules/free (Makefile.am): Likewise.
63834         * modules/fsusage (Makefile.am): Likewise.
63835         * modules/ftruncate (Makefile.am): Likewise.
63836         * modules/fts (Makefile.am): Likewise.
63837         * modules/gc (Makefile.am): Likewise.
63838         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63839         * modules/getaddrinfo (Makefile.am): Likewise.
63840         * modules/getcwd (Makefile.am): Likewise.
63841         * modules/getdelim (Makefile.am): Likewise.
63842         * modules/getdomainname (Makefile.am): Likewise.
63843         * modules/getgroups (Makefile.am): Likewise.
63844         * modules/gethostname (Makefile.am): Likewise.
63845         * modules/gethrxtime (Makefile.am): Likewise.
63846         * modules/getline (Makefile.am): Likewise.
63847         * modules/getloadavg (Makefile.am): Likewise.
63848         * modules/getlogin_r (Makefile.am): Likewise.
63849         * modules/getopt (Makefile.am): Likewise.
63850         * modules/getpass (Makefile.am): Likewise.
63851         * modules/getpass-gnu (Makefile.am): Likewise.
63852         * modules/getsubopt (Makefile.am): Likewise.
63853         * modules/gettime (Makefile.am): Likewise.
63854         * modules/gettimeofday (Makefile.am): Likewise.
63855         * modules/getugroups (Makefile.am): Likewise.
63856         * modules/getusershell (Makefile.am): Likewise.
63857         * modules/glob (Makefile.am): Likewise.
63858         * modules/group-member (Makefile.am): Likewise.
63859         * modules/hard-locale (Makefile.am): Likewise.
63860         * modules/hash (Makefile.am): Likewise.
63861         * modules/hmac-md5 (Makefile.am): Likewise.
63862         * modules/hmac-sha1 (Makefile.am): Likewise.
63863         * modules/human (Makefile.am): Likewise.
63864         * modules/idcache (Makefile.am): Likewise.
63865         * modules/imaxabs (Makefile.am): Likewise.
63866         * modules/imaxdiv (Makefile.am): Likewise.
63867         * modules/inet_ntop (Makefile.am): Likewise.
63868         * modules/inet_pton (Makefile.am): Likewise.
63869         * modules/inttostr (Makefile.am): Likewise.
63870         * modules/isapipe (Makefile.am): Likewise.
63871         * modules/lchown (Makefile.am): Likewise.
63872         * modules/long-options (Makefile.am): Likewise.
63873         * modules/lstat (Makefile.am): Likewise.
63874         * modules/malloc (Makefile.am): Likewise.
63875         * modules/mathl (Makefile.am): Likewise.
63876         * modules/mbchar (Makefile.am): Likewise.
63877         * modules/md2 (Makefile.am): Likewise.
63878         * modules/md4 (Makefile.am): Likewise.
63879         * modules/md5 (Makefile.am): Likewise.
63880         * modules/memcasecmp (Makefile.am): Likewise.
63881         * modules/memchr (Makefile.am): Likewise.
63882         * modules/memcmp (Makefile.am): Likewise.
63883         * modules/memcoll (Makefile.am): Likewise.
63884         * modules/memcpy (Makefile.am): Likewise.
63885         * modules/memmem (Makefile.am): Likewise.
63886         * modules/memmove (Makefile.am): Likewise.
63887         * modules/mempcpy (Makefile.am): Likewise.
63888         * modules/memrchr (Makefile.am): Likewise.
63889         * modules/memset (Makefile.am): Likewise.
63890         * modules/memxor (Makefile.am): Likewise.
63891         * modules/mkancesdirs (Makefile.am): Likewise.
63892         * modules/mkdir (Makefile.am): Likewise.
63893         * modules/mkdir-p (Makefile.am): Likewise.
63894         * modules/mkdtemp (Makefile.am): Likewise.
63895         * modules/mkstemp (Makefile.am): Likewise.
63896         * modules/mktime (Makefile.am): Likewise.
63897         * modules/modechange (Makefile.am): Likewise.
63898         * modules/mountlist (Makefile.am): Likewise.
63899         * modules/nanosleep (Makefile.am): Likewise.
63900         * modules/openat (Makefile.am): Likewise.
63901         * modules/pagealign_alloc (Makefile.am): Likewise.
63902         * modules/physmem (Makefile.am): Likewise.
63903         * modules/poll (Makefile.am): Likewise.
63904         * modules/posixtm (Makefile.am): Likewise.
63905         * modules/posixver (Makefile.am): Likewise.
63906         * modules/putenv (Makefile.am): Likewise.
63907         * modules/quote (Makefile.am): Likewise.
63908         * modules/quotearg (Makefile.am): Likewise.
63909         * modules/raise (Makefile.am): Likewise.
63910         * modules/read-file (Makefile.am): Likewise.
63911         * modules/readline (Makefile.am): Likewise.
63912         * modules/readlink (Makefile.am): Likewise.
63913         * modules/readtokens (Makefile.am): Likewise.
63914         * modules/readutmp (Makefile.am): Likewise.
63915         * modules/realloc (Makefile.am): Likewise.
63916         * modules/regex (Makefile.am): Likewise.
63917         * modules/rename (Makefile.am): Likewise.
63918         * modules/rename-dest-slash (Makefile.am): Likewise.
63919         * modules/rijndael (Makefile.am): Likewise.
63920         * modules/rmdir (Makefile.am): Likewise.
63921         * modules/rpmatch (Makefile.am): Likewise.
63922         * modules/safe-read (Makefile.am): Likewise.
63923         * modules/safe-write (Makefile.am): Likewise.
63924         * modules/same (Makefile.am): Likewise.
63925         * modules/save-cwd (Makefile.am): Likewise.
63926         * modules/savedir (Makefile.am): Likewise.
63927         * modules/setenv (Makefile.am): Likewise.
63928         * modules/settime (Makefile.am): Likewise.
63929         * modules/sha1 (Makefile.am): Likewise.
63930         * modules/sig2str (Makefile.am): Likewise.
63931         * modules/snprintf (Makefile.am): Likewise.
63932         * modules/stdlib-safer (Makefile.am): Likewise.
63933         * modules/stpcpy (Makefile.am): Likewise.
63934         * modules/stpncpy (Makefile.am): Likewise.
63935         * modules/strcase (Makefile.am): Likewise.
63936         * modules/strcasestr (Makefile.am): Likewise.
63937         * modules/strchrnul (Makefile.am): Likewise.
63938         * modules/strcspn (Makefile.am): Likewise.
63939         * modules/strdup (Makefile.am): Likewise.
63940         * modules/strerror (Makefile.am): Likewise.
63941         * modules/strftime (Makefile.am): Likewise.
63942         * modules/strndup (Makefile.am): Likewise.
63943         * modules/strnlen (Makefile.am): Likewise.
63944         * modules/strpbrk (Makefile.am): Likewise.
63945         * modules/strsep (Makefile.am): Likewise.
63946         * modules/strstr (Makefile.am): Likewise.
63947         * modules/strtod (Makefile.am): Likewise.
63948         * modules/strtoimax (Makefile.am): Likewise.
63949         * modules/strtok_r (Makefile.am): Likewise.
63950         * modules/strtol (Makefile.am): Likewise.
63951         * modules/strtoll (Makefile.am): Likewise.
63952         * modules/strtoul (Makefile.am): Likewise.
63953         * modules/strtoull (Makefile.am): Likewise.
63954         * modules/strtoumax (Makefile.am): Likewise.
63955         * modules/strverscmp (Makefile.am): Likewise.
63956         * modules/time_r (Makefile.am): Likewise.
63957         * modules/timegm (Makefile.am): Likewise.
63958         * modules/tmpfile-safer (Makefile.am): Likewise.
63959         * modules/unistd-safer (Makefile.am): Likewise.
63960         * modules/unlinkdir (Makefile.am): Likewise.
63961         * modules/userspec (Makefile.am): Likewise.
63962         * modules/utime (Makefile.am): Likewise.
63963         * modules/utimecmp (Makefile.am): Likewise.
63964         * modules/utimens (Makefile.am): Likewise.
63965         * modules/vasnprintf (Makefile.am): Likewise.
63966         * modules/vasprintf (Makefile.am): Likewise.
63967         * modules/vsnprintf (Makefile.am): Likewise.
63968         * modules/xalloc (Makefile.am): Likewise.
63969         * modules/xgetcwd (Makefile.am): Likewise.
63970         * modules/xnanosleep (Makefile.am): Likewise.
63971         * modules/xreadlink (Makefile.am): Likewise.
63972         * modules/xstrtod (Makefile.am): Likewise.
63973         * modules/xstrtol (Makefile.am): Likewise.
63974         * modules/xstrtold (Makefile.am): Likewise.
63975         * modules/yesno (Makefile.am): Likewise.
63976
63977 2006-10-12  Jim Meyering  <jim@meyering.net>
63978
63979         * m4/getloadavg.m4: Revert the change below.
63980
63981         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
63982         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
63983         fail with a symlink, which is what coreutils' ./bootstrap now
63984         creates by default.
63985
63986 2006-10-12  Bruno Haible  <bruno@clisp.org>
63987
63988         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
63989         mingw.
63990         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
63991         MSVC and mingw explicitly.
63992
63993 2006-10-11  Simon Josefsson  <jas@extundo.com>
63994             Bruno Haible  <bruno@clisp.org>
63995
63996         Add support for multiple gnulib-tool invocations in the scope of a
63997         single configure.ac file.
63998         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
63999         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
64000         with the same contents as the _LIBADD variable.
64001         (func_emit_initmacro_start, func_emit_initmacro_end,
64002         func_emit_initmacro_done): New functions.
64003         (func_import, func_create_testdir): Invoke them. Allow the identifiers
64004         gl_LIBOBJS and gl_LTLIBOBJS.
64005
64006 2006-10-11  Bruno Haible  <bruno@clisp.org>
64007
64008         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
64009         (func_create_testdir): Don't create po/Makefile.am, don't invoke
64010         autoreconf. Instead, invoke autopoint explicitly but move back the
64011         *.m4 files from gnulib.
64012
64013 2006-10-11  Bruno Haible  <bruno@clisp.org>
64014
64015         * gnulib-tool (func_usage): Make module names after --create-testdir
64016         optional.
64017         (func_create_testdir): If no module was specified, use nearly all
64018         modules.
64019
64020 2006-10-12  Jim Meyering  <jim@meyering.net>
64021
64022         Big performance improvement for fts-based tools that use FTS_NOSTAT.
64023         Avoid spurious inode-mismatch problems on non-POSIX file systems.
64024         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
64025         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
64026         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
64027         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
64028         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
64029         (fts_set_stat_required): New function.
64030         (fts_open): Defer the calls to fts_stat, if possible or requested.
64031         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
64032         into fts_stat itself.
64033         (fts_read): Perform any required (deferred) fts_stat call.
64034         (fts_build): Likewise, for the directory we're about to open and read.
64035         In the readdir loop, carefully decide whether each entry will require
64036         an eventual call to fts_stat, using dirent.d_type info if available.
64037         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
64038         a command line argument into this function.  Update all callers.
64039         Map a return value of FTS_DOT to FTS_D for a command line argument.
64040         * modules/fts (Depends-on): Add d-type.  Alphabetize.
64041         Thanks to Miklos Szeredi for his tenacity and for the initial
64042         bug report about "find" failing on a FUSE-based file system.
64043
64044         * lib/fts.c (fts_open): Use consistent indentation.
64045
64046 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64047
64048         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
64049         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
64050         reported by Jim Meyering.  All uses of cache variables renamed
64051         to match Autoconf's.
64052         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
64053         the other one.
64054
64055         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
64056         Fix misspelling in diagnostic.
64057
64058 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64059
64060         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
64061         defined.  Problem reported by Matthew Woehlke.
64062
64063         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
64064         Add support for Tandem NonStop R series.
64065         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
64066         Use new macro.
64067
64068         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
64069         (has_trailing_slash): Omit size arg; all callers changed.
64070         Omit 'inline', since it doesn't help performance and we'd
64071         need to configure it.
64072         Don't count //, ///, etc. as having a trailing slash.
64073         As a side effect, this removes a C99ism reported by Matthew Woehlke.
64074         (rpl_rename_dest_slash): On failure, use rename's errno rather
64075         than (in some cases) an incorrect or junk errno.
64076         Simplify code by removing need to compute length; this does
64077         cause it to make two passes instead of one over the file name,
64078         but it's worth it.
64079
64080         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
64081         change, since Autoconf's version may no longer be appropriate now
64082         that we are using CVS Autoconf's version.  Add support for Tandem.
64083
64084 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64085             Bruno Haible  <bruno@clisp.org>
64086
64087         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
64088         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
64089         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
64090         gl_AC_TYPE_LONG_LONG.
64091
64092         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
64093         instead of HAVE_LONG_LONG.
64094         * lib/printf-args.c (printf_fetchargs): Likewise.
64095         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
64096         * lib/vasnprintf.c (VASNPRINTF): Likewise.
64097         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
64098         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
64099         gl_AC_TYPE_LONG_LONG.
64100
64101 2006-10-11  Bruno Haible  <bruno@clisp.org>
64102
64103         * m4/longlong.m4: Add comments.
64104         * m4/ulonglong.m4: Likewise.
64105
64106 2006-10-10  Bruno Haible  <bruno@clisp.org>
64107
64108         Make it possible to #define stpcpy, strdup to aliases.
64109         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
64110         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
64111
64112 2006-10-10  Bruno Haible  <bruno@clisp.org>
64113
64114         Make it possible to #define gcd to an alias.
64115         * lib/gcd.c: Include config.h.
64116
64117 2006-10-10  Bruno Haible  <bruno@clisp.org>
64118
64119         Make it possible to #define c_isascii to an alias.
64120         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
64121         defined. Undefine the macros before defining them, to avoid gcc
64122         warnings.
64123         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
64124         define NO_C_CTYPE_MACROS early.
64125
64126 2006-10-10  Bruno Haible  <bruno@clisp.org>
64127
64128         Make it possible to #define set_program_name to an alias.
64129         * lib/progname.c: Don't undefine set_program_name; instead, undefine
64130         ENABLE_RELOCATABLE early.
64131
64132 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64133
64134         Port to Tandem NSK OSS, which has 64-bit signed int but at most
64135         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
64136         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
64137         More generally, don't assume that 64-bit signed int is available
64138         if unsigned int is, and vice versa.
64139         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
64140         unsigned symbols, not on their signed counterparts.
64141         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
64142         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
64143         (UINT64_C, UINTMAX_C):
64144         Likewise.
64145         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
64146         unsigned counterparts.
64147         (Have_long_long, Unsigned): New macros.
64148         (Int): Renamed from INT.
64149         (strtoimax): Use the new macros.
64150         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
64151         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
64152         * modules/inttypes (inttypes.h): Substitute
64153         HAVE_UNSIGNED_LONG_LONG_INT.
64154         * modules/stdint (stdint.h): Likewise.
64155         (Files): Add m4/ulonglong.m4.
64156
64157 2006-10-10  Bruno Haible  <bruno@clisp.org>
64158
64159         Fix a gcc -Wshadow warning.
64160         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
64161         to 'bucket'.
64162         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
64163         gl_linked_indexof_from_to): Likewise.
64164         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
64165         Likewise.
64166         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
64167         Likewise.
64168         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
64169         Reported by Eric Blake.
64170
64171 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
64172
64173         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
64174         for NetBSD.  Problem reported by Bruno Haible.
64175
64176 2006-10-09  Jim Meyering  <jim@meyering.net>
64177
64178         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
64179         Patch from Bruno Haible.
64180
64181 2006-10-09  Jim Meyering  <jim@meyering.net>
64182
64183         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
64184         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
64185         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
64186
64187 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64188
64189         Don't include <config.h> twice; this doesn't work in some cases,
64190         e.g., when config.h has "#define intmax_t long long int" and
64191         we include <config.h>, <inttypes.h>, <config.h> in that order.
64192         Problem reported by Matthew Woehlke in:
64193         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
64194         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
64195         * lib/fts-cycle.c: Don't include config.h.
64196         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
64197         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
64198         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
64199         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
64200         inttypes.h.
64201         * lib/xstrtoumax.c: Likewise.
64202         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
64203         __strtol and the like, so that this module is more like its siblings.
64204         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
64205         Remove; no longer needed now that we assume gnulib inttypes.h.
64206
64207 2006-10-08  Bruno Haible  <bruno@clisp.org>
64208
64209         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
64210         option.
64211
64212 2006-10-07  Jim Meyering  <jim@meyering.net>
64213
64214         * modules/inttypes (inttypes.h): Revert what seems to have been
64215         an inadvertent part of today's change: use "|", not "/" in the
64216         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
64217
64218 2006-10-07  Bruno Haible  <bruno@clisp.org>
64219
64220         * modules/sublist: New file.
64221
64222 2006-10-07  Bruno Haible  <bruno@clisp.org>
64223
64224         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
64225         * modules/argz (argz.h): Likewise.
64226         * modules/arpa_inet (arpa/inet.h): Likewise.
64227         * modules/byteswap (byteswap.h): Likewise.
64228         * modules/configmake (configmake.h): Likewise.
64229         * modules/fcntl (fcntl.h): Likewise.
64230         * modules/fnmatch (fnmatch.h): Likewise.
64231         * modules/getopt (getopt.h): Likewise.
64232         * modules/glob (glob.h): Likewise.
64233         * modules/inttypes (inttypes.h): Likewise.
64234         * modules/netinet_in (netinet/in.h): Likewise.
64235         * modules/poll (poll.h): Likewise.
64236         * modules/stdbool (stdbool.h): Likewise.
64237         * modules/stdint (stdint.h): Likewise.
64238         * modules/sys_select (sys/select.h): Likewise.
64239         * modules/sys_socket (sys/socket.h): Likewise.
64240         * modules/sys_stat (sys/stat.h): Likewise.
64241         * modules/sysexits (sysexits.h): Likewise.
64242         * modules/unistd (unistd.h): Likewise.
64243         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64244         Add a "DO NOT EDIT" comment to the generated file.
64245         (func_import): Likewise for gnulib-comp.m4.
64246
64247 2006-10-07  Bruno Haible  <bruno@clisp.org>
64248
64249         * lib/gl_sublist.h: New file.
64250         * lib/gl_sublist.c: New file.
64251
64252 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64253
64254         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
64255         name (relative to the original working directory) and the file
64256         name component (relative to the temporary working directory).  All
64257         callers changed.
64258         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
64259         * lib/mkdir-p.c (make_dir_parents): Likewise.
64260         * lib/mkdir-p.h (make_dir_parents): Likewise.
64261
64262 2006-10-06  Eric Blake  <ebb9@byu.net>
64263
64264         Define several macros for use by the clean-temp module.
64265         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
64266         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
64267         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
64268
64269         * lib/clean-temp.h (close_stream_temp): New declaration.
64270         * lib/clean-temp.c (includes): Pull in headers according to what
64271         other modules are in use.
64272         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
64273
64274 2006-10-06  Bruno Haible  <bruno@clisp.org>
64275
64276         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
64277         instead of fopen, fwriteerror.
64278
64279 2006-10-06  Bruno Haible  <bruno@clisp.org>
64280
64281         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
64282         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
64283         int.
64284         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
64285         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
64286         Return an error indicator.
64287         Suggested by Eric Blake.
64288
64289 2006-10-06  Bruno Haible  <bruno@clisp.org>
64290
64291         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
64292         Reported by Eric Blake.
64293
64294 2006-10-06  Bruno Haible  <bruno@clisp.org>
64295
64296         * modules/closeout (Description): Mention stderr too.
64297
64298 2006-10-06  Bruno Haible  <bruno@clisp.org>
64299         and Paul Eggert  <eggert@cs.ucla.edu>
64300
64301         * lib/closeout.c (close_stdout): Also close stderr.
64302         * lib/closeout.h: Update comment.
64303
64304 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64305
64306         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
64307         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
64308         * lib/dirchownmod.c: Include lchown.h.
64309         * lib/lchown.c: Don't include files that lchown.h now includes.
64310         Don't declare chown, since lchown.h now does that.
64311         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
64312         (lchown): Define to rpl_chown if lchown is declared but
64313         does not exist.  Declare using a prototype if lchown is not
64314         declared.  Add a copyright notice.
64315         * lib/mkstemp.h: Include <unistd.h>.
64316         * lib/openat.c: Include lchown.h.
64317
64318         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
64319         we now test for that separately.
64320         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
64321         rather than O_NOFOLLOW, when testing whether it's possible to
64322         avoid a race condition reliably.
64323         * lib/savewd.c (savewd_chdir): Likewise.
64324
64325         Remove macros that are no longer needed now that stdint.h is
64326         reliable.
64327         * lib/fsusage.c (UINTMAX_MAX): Remove.
64328         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
64329         * lib/utimecmp.c (SIZE_MAX): Remove.
64330
64331         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
64332
64333         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
64334         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
64335         O_NOATIME works.
64336
64337 2006-10-05  Bruno Haible  <bruno@clisp.org>
64338
64339         * lib/gl_list.h (gl_sortedlist_search_from_to,
64340         gl_sortedlist_indexof_from_to): New declarations.
64341         (gl_list_implementation): New fields sortedlist_search_from_to,
64342         sortedlist_indexof_from_to.
64343         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
64344         inline functions.
64345         * lib/gl_list.c (gl_sortedlist_search_from_to,
64346         gl_sortedlist_indexof_from_to): New functions.
64347         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
64348         function.
64349         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
64350         (gl_array_sortedlist_search_from_to): New function.
64351         (gl_array_list_implementation): Update.
64352         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
64353         function.
64354         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
64355         (gl_carray_sortedlist_search_from_to): New function.
64356         (gl_carray_list_implementation): Update.
64357         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
64358         gl_linked_sortedlist_indexof_from_to): New functions.
64359         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64360         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64361         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
64362         gl_tree_sortedlist_indexof_from_to): New functions.
64363         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64364         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64365         Update.
64366         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64367         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
64368         Update.
64369
64370 2006-10-05  Bruno Haible  <bruno@clisp.org>
64371
64372         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
64373         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
64374         (struct gl_list_implementation): Add fields search_from_to,
64375         indexof_from_to. Remove fields search, indexof.
64376         (gl_list_search): Use the search_from_to method.
64377         (gl_list_search_from, gl_list_search_from_to): New functions.
64378         (gl_list_indexof): Use the indexof_from_to method.
64379         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64380         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
64381         (gl_list_search_from, gl_list_search_from_to): New functions.
64382         (gl_list_indexof): Use the indexof_from_to method.
64383         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64384         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
64385         gl_array_indexof. Add start_index, end_index arguments.
64386         (gl_array_search_from_to): Renamed from gl_array_search. Add
64387         start_index, end_index arguments.
64388         (gl_array_remove, gl_array_list_implementation): Update.
64389         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
64390         gl_carray_indexof. Add start_index, end_index arguments.
64391         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
64392         start_index, end_index arguments.
64393         (gl_carray_remove, gl_carray_list_implementation): Update.
64394         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
64395         gl_linked_search. Add start_index, end_index arguments.
64396         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
64397         start_index, end_index arguments.
64398         (gl_linked_remove): Update.
64399         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64400         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64401         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
64402         field to 'size_t'.
64403         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
64404         gl_tree_search. Add start_index, end_index arguments.
64405         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64406         start_index, end_index arguments.
64407         (gl_tree_remove): Update.
64408         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64409         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64410         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
64411         function.
64412         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
64413         gl_tree_search. Add start_index, end_index arguments.
64414         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64415         start_index, end_index arguments.
64416         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64417         Update.
64418         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
64419
64420 2006-10-05  Bruno Haible  <bruno@clisp.org>
64421
64422         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
64423
64424         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
64425         fwriteerror_temp): New declarations.
64426         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
64427         (descriptors): New variable.
64428         (cleanup): First, close the descriptors.
64429         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
64430         fclose_temp, fwriteerror_temp): New functions.
64431
64432 2006-10-04  Jim Meyering  <jim@meyering.net>
64433
64434         * lib/fts.c (fts_open): Tiny comment change.
64435
64436 2006-10-04  Bruno Haible  <bruno@clisp.org>
64437
64438         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
64439         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
64440         gl_LOCK_BODY.
64441         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
64442         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
64443         gl_LOCK_EARLY_BODY.
64444         (gl_LOCK): Require gl_LOCK_BODY.
64445
64446 2006-10-04  Bruno Haible  <bruno@clisp.org>
64447
64448         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
64449         (gl_oset_search_atleast): New declaration.
64450         (struct gl_oset_implementation): Add field 'search_atleast'.
64451         (gl_oset_search_atleast): New inline function.
64452         * lib/gl_oset.c (gl_oset_search_atleast): New function.
64453         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
64454         (gl_array_oset_implementation): Update.
64455         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
64456         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
64457         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
64458
64459 2006-10-04  Bruno Haible  <bruno@clisp.org>
64460
64461         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
64462
64463 2006-10-03  Bruno Haible  <bruno@clisp.org>
64464
64465         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
64466         from gl_avltreehash_list_implementation.
64467
64468 2006-10-03  Bruno Haible  <bruno@clisp.org>
64469
64470         * lib/gl_oset.c (gl_oset_add): Fix return type.
64471
64472 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
64473
64474         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
64475
64476 2006-10-02  Eric Blake  <ebb9@byu.net>
64477
64478         * modules/strnlen (Depends-on): Add extensions.
64479
64480 2006-10-02  Eric Blake  <ebb9@byu.net>
64481
64482         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
64483         definition in 2.60+.
64484
64485 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
64486
64487         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
64488         checks.
64489
64490 2006-10-02  Bruno Haible  <bruno@clisp.org>
64491
64492         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
64493         to the AUTOMAKE_OPTIONS.
64494         Reported by Jim Meyering.
64495
64496 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64497
64498         Work around bug in Solaris 10 /proc file system:
64499         /proc/self/fd/NNN/.. isn't the parent directory of
64500         the directory whose file descriptor is NNN.  This needs to
64501         be worked around at run time, not compile time, since a
64502         program might be built on Solaris 8, where things work, and
64503         run on Solaris 10.
64504         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
64505         to use the following interface instead:
64506         (OPENAT_BUFFER_SIZE): New macro.
64507         (openat_proc_name): New function.
64508         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
64509         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
64510         Likewise.
64511         * lib/openat-proc.c: New file.
64512         * modules/openat (Files): Add lib/openat-proc.c.
64513         (Depends-on): Add same-inode, stdbool.
64514         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
64515
64516 2006-09-29  Bruno Haible  <bruno@clisp.org>
64517
64518         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
64519         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
64520         argument. Set stdout_closed before testing for ferror, not after.
64521         (fwriteerror, fwriteerror_no_ebadf): New functions.
64522
64523 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64524
64525         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
64526
64527 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
64528
64529         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
64530         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
64531
64532 2006-09-28  Jim Meyering  <jim@meyering.net>
64533
64534         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
64535         Include <unistd.h>.
64536
64537 2006-09-28  Bruno Haible  <bruno@clisp.org>
64538
64539         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
64540         * modules/linkedhash-list (Depends-on): Likewise.
64541         * modules/rbtreehash-list (Depends-on): Likewise.
64542
64543 2006-09-28  Bruno Haible  <bruno@clisp.org>
64544
64545         * lib/strndup.h: Simplify the redefinition of strndup.
64546         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
64547         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
64548
64549 2006-09-28  Bruno Haible  <bruno@clisp.org>
64550
64551         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
64552         * lib/gl_linkedhash_list.c: Likewise.
64553         * lib/gl_rbtreehash_list.c: Likewise.
64554
64555 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64556
64557         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
64558         getaddrinfo.
64559
64560         * lib/__fpending.h: Don't include <stdio_ext.h> unless
64561         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
64562         it causes <stdio_ext.h> to cause a compile-time error.
64563         Problem reported by Nelson H. F. Beebe.
64564         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
64565         of HAVE_DECL___PENDING.
64566
64567         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
64568         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
64569         declaration.
64570
64571 2006-09-27  Jim Meyering  <jim@meyering.net>
64572
64573         This file could end up with a definition for a function
64574         named __strndup, rather than rpl_strndup on a system with
64575         incomplete weak_alias support.
64576         * lib/strndup.c (strndup): Rename from __strndup.
64577         Remove #defines that used to map __strndup to strndup.
64578         Don't use K&R prototypes.
64579         Remove LIBC-related code, since this file is not sync'd with glibc.
64580         * lib/strndup.h: Revamp, accordingly.
64581         * m4/strndup.m4: Modernize.
64582
64583 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64584
64585         * modules/savewd (Depends-on): Add 'raise'.
64586         * lib/savewd.c: Include <signal.h>, for 'raise'.
64587
64588 2006-09-26  Jim Meyering  <jim@meyering.net>
64589
64590         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
64591         when we detect Darwin 8.7.0's acl_get_file bug.
64592         Rearrange to perform the new (below) run-test while $LIBS
64593         contains any acl-related library.  Set USE_ACL at the end.
64594         (gl_ACL_GET_FILE): New function.
64595
64596 2006-09-26  Eric Blake  <ebb9@byu.net>
64597
64598         * lib/verror.c: Include <config.h> unconditionally.
64599
64600 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
64601
64602         * modules/clock-time (Maintainer): Add self.
64603         * modules/getlogin_r (Depends-on): Add extensions.
64604
64605 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64606
64607         * modules/clock-time: New module.
64608         * modules/nanosleep (Depends-on): Add clock-time.
64609         * modules/gethrxtime (Depends-on): Likewise.
64610         * modules/gettime (Depends-on): Likewise.
64611         * modules/settime (Depends-on): Likewise.
64612
64613         * modules/fts-lgpl: Depend on openat.
64614         * modules/mkancesdirs: Depend on savewd.
64615         * modules/mkdir-p: Likewise.
64616
64617 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64618
64619         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
64620
64621         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
64622         `gl_have_arbitrary_file_name_length_limit' to
64623         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
64624         actually works between configure runs.
64625
64626 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64627             Bruno Haible  <bruno@clisp.org>
64628
64629         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
64630
64631 2006-09-25  Jim Meyering  <jim@meyering.net>
64632
64633         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
64634         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
64635
64636 2006-09-25  Eric Blake  <ebb9@byu.net>
64637
64638         * gnulib-tool (func_import, func_create_testdir): Fix typos in
64639         exec's in 2006-09-18 patch when shuffling fds.
64640
64641 2006-09-25  Bruno Haible  <bruno@clisp.org>
64642
64643         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
64644         Reported by Jim Meyering.
64645
64646 2006-09-24  Jim Meyering  <jim@meyering.net>
64647
64648         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
64649         compare a pointer against a literal "0".  That caused failures with
64650         at least HP-UX's hpcc.
64651
64652 2006-09-22  Simon Josefsson  <jas@extundo.com>
64653
64654         * modules/gc-sha1:
64655         * modules/gc-md4:
64656         * modules/gc-hmac-sha1:
64657         * modules/gc-hmac-md5:
64658         * modules/gc-des:
64659         * modules/gc-arcfour: Distribute more files.
64660
64661 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64662
64663         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
64664         (gl_linked_iterator_from_to): Initialize struct completely.
64665         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
64666         (gl_tree_iterator_from_to): Likewise
64667         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
64668         * lib/gl_array_list.c [lint] (gl_array_iterator)
64669         (gl_array_iterator_from_to): Likewise.
64670         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
64671         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
64672         (gl_carray_iterator_from_to): Likewise.
64673
64674         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
64675         * lib/md4.c (md4_process_block): Remove unused variable.
64676         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
64677         parentheses for clarity.
64678
64679 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64680
64681         * modules/bison-i18n (Depends-on): Add gettext.
64682
64683 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64684
64685         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
64686         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64687         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
64688         also add missing comma that caused broken test.
64689         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
64690         stdlib.h, for `abort'.
64691         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
64692         variables.
64693         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
64694         include unistd.h if present, for `rmdir'.
64695         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
64696         variables.
64697         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
64698         in the process include standard headers for prototypes.
64699         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
64700         gets declared on GNU/Linux.
64701         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
64702         unistd.h, for `rmdir'.
64703         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
64704
64705         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
64706         always true.
64707         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
64708
64709         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
64710
64711 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64712
64713         * gnulib-tool (func_version): Create output all at once.  This
64714         may help avoid triggering unnecessary SIGPIPEs, and at any
64715         rate it doesn't hurt.
64716
64717 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64718             Bruno Haible  <bruno@clisp.org>
64719
64720         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
64721         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64722         * m4/signed.m4 (bh_C_SIGNED): Likewise.
64723
64724         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
64725         (gl_FUNC_VASPRINTF): Invoke it.
64726
64727 2006-09-22  Bruno Haible  <bruno@clisp.org>
64728
64729         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
64730         getloadavg.c as first argument.
64731
64732 2006-09-22  Bruno Haible  <bruno@clisp.org>
64733
64734         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
64735         at the beginning of the gl_INIT macro.
64736         * modules/getloadavg (configure.ac): Pass $gl_source_base to
64737         gl_GETLOADAVG.
64738
64739 2006-09-22  Bruno Haible  <bruno@clisp.org>
64740
64741         * gnulib-tool (func_create_megatestdir): Don't include the config-h
64742         module.
64743         Suggested by Ralf Wildenhues.
64744
64745 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64746
64747         Import this patch from libc:
64748
64749         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
64750
64751         * lib/regex_internal.c (re_string_reconstruct): Handle
64752         offset < pstr->valid_raw_len && pstr->offsets_needed case.
64753         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
64754         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
64755         re_string_context_at.
64756
64757         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
64758         now requires it.
64759         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
64760         gl_REGEX now does it for us.
64761         (gl_REGEX): Add test taken from
64762         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
64763
64764         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
64765         Check that large offsets work.  Modernize Autoconf usages.
64766         Prefer "yes" to mean a good thing rather than a bad.
64767         Don't put "#define mkstemp" in config.h, as this might interfere
64768         with standard system headers that "#define mkstemp mkstemp64".
64769
64770         * modules/mkstemp (Depends-on): Add extensions, so that
64771         mkstemp is visible on some platforms.
64772         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
64773         (Include): Change to "mkstemp.h" from <stdlib.h>.
64774         (Files): Add mkstemp.h.
64775
64776         * lib/mkstemp.h: New file, since some standard headers
64777         #define mkstemp.
64778         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
64779         Include "mkstemp.h".
64780         Make the _LIBC code resemble glibc original more,
64781         e.g., use K&R style.
64782         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
64783         (mkstemp): Remove, since mkstemp.h does this for us.
64784         * lib/stdlib--.h: Include mkstemp.h.
64785
64786         Import this patch from libc:
64787
64788         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64789
64790         * lib/tempname.c (__gen_tempname): Change attempts_min
64791         into a macro.  Use preprocessor to decide how to initialize
64792         attempts [Coverity CID 67].
64793
64794 2006-09-20  Bruno Haible  <bruno@clisp.org>
64795
64796         * lib/mkdtemp.c: Import from libc.
64797         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64798                 * sysdeps/posix/tempname.c (__gen_tempname): Change
64799                 attempts_min into a macro.  Use preprocessor to decide how to
64800                 initialize attempts [Coverity CID 67].
64801         2001-11-27  Paul Eggert  <eggert@twinsun.com>
64802                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
64803                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
64804
64805 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64806
64807         * gnulib-tool (func_exit): New function, to allow to pass the
64808         exit status portably through the trap.  Use everywhere.
64809         (--help, --version): Signal a write error.
64810         (trap): catch SIGPIPE, for write errors.
64811         Exit at the end of the trap, with the correct exit status.
64812
64813 2006-09-19  Karl Berry  <karl@gnu.org>
64814
64815         * doc/gnulib.texi: note about the license texinfo files.
64816
64817 2006-09-19  Eric Blake  <ebb9@byu.net>
64818
64819         * gnulib-tool: Avoid space-tab.
64820
64821 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64822
64823         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
64824         that prevented coreutils 6.1 from building.  Problem reported
64825         by Petter Reinholdtsen.
64826
64827 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64828
64829         * gnulib-tool (avoidlist): Fix typo that broke options like
64830         --avoid=lock that are used by coreutils bootstrap.
64831
64832 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
64833
64834         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
64835         more systematically.
64836
64837 2006-09-18  Jim Meyering  <jim@meyering.net>
64838
64839         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
64840
64841 2006-09-18  Bruno Haible  <bruno@clisp.org>
64842
64843         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
64844
64845 2006-09-18  Bruno Haible  <bruno@clisp.org>
64846
64847         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
64848         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
64849         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
64850         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
64851         * m4/gettext.m4: Require autoconf >= 2.52.
64852         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
64853         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
64854         of gl_cv_header_inttypes_h.
64855
64856 2006-09-18  Bruno Haible  <bruno@clisp.org>
64857
64858         * lib/javaversion.c: Include configmake.h.
64859
64860 2006-09-18  Bruno Haible  <bruno@clisp.org>
64861
64862         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
64863         avoid that the while loops be executed in a subshell.
64864
64865 2006-09-18  Bruno Haible  <bruno@clisp.org>
64866
64867         * MODULES.html.sh (func_module): Break long lines.
64868         Suggested by Bruce Korb <bkorb@gnu.org>.
64869
64870 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64871
64872         Speed up by a factor of 1.12.
64873         * gnulib-tool (nl): New variable.
64874         (func_import): Rewrite include directive extraction to only read each
64875         directive once.
64876
64877 2006-09-17  Bruno Haible  <bruno@clisp.org>
64878
64879         * modules/javaversion (Makefile.am): Remove DEFS setting.
64880         (Depends-on): Add configmake, for PKGDATADIR definition.
64881
64882 2006-09-17  Bruno Haible  <bruno@clisp.org>
64883
64884         * gnulib-tool (func_create_testdir): Rewrite all files at once.
64885
64886 2006-09-17  Bruno Haible  <bruno@clisp.org>
64887
64888         * gnulib-tool (func_append): New function, stolen from libtool.m4.
64889         (func_modules_transitive_closure, func_modules_add_dummy,
64890         func_modules_to_filelist, func_import, func_create_testdir,
64891         func_create_megatestdir, ...): Use it wherever possible.
64892         Suggested by Ralf Wildenhues.
64893
64894 2006-09-16  Karl Berry  <karl@gnu.org>
64895
64896         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
64897         to avoid sectioning errors.
64898         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
64899         [ifinfo]: blank line after @center-ed titles.
64900         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
64901         Spell FSF address consistently with others.
64902         (These changes approved by rms.)
64903
64904 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64905
64906         Speed up by a factor of 1.61.
64907         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
64908         already checked module names again.
64909
64910 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64911
64912         Speed up by a factor of 1.13.
64913         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
64914         for new_files, and the input to func_add_or_update.
64915
64916 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64917
64918         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
64919         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
64920
64921 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64922
64923         * modules/mkancesdirs (Depends-on): Add fcntl.
64924         * modules/savewd: New file.
64925         * MODULES.html.sh (File system functions): Add savewd.
64926
64927         * modules/configmake (Makefile.am): Add support for the
64928         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
64929
64930 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64931
64932         * m4/savewd.m4: New file.
64933
64934 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64935
64936         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
64937         (dirchownmod): New arg FD.  All callers changed.
64938         Use FD rather than opening the directory ourself, as opening is
64939         now the caller's responsibility.
64940         * lib/dirchownmod.h: Likewise.
64941         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
64942         hosts that require <sys/types.h> before <sys/stat.h>.  Include
64943         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
64944         (test_dir): Remove.
64945         (mkancesdirs): Return length of prefix of FILE that has already
64946         been made, or -2 if there is a child doing the work.  Redo
64947         algorithm so that it is O(N) rather than O(N**2).  Optimize away
64948         ".", and treat ".." specially since it might stray back into
64949         already-created areas.  Use a subprocess if necessary.  New arg
64950         WD; all users changed.  MAKE_DIR function should now return 1
64951         if it creates a directory that is not readable.  Return -2 if
64952         a child process is spun off.
64953         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
64954         Adjust signature to match code.
64955         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
64956         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
64957         all users changed.
64958         * lib/savewd.c, lib/savewd.h: New files.
64959
64960 2006-09-15  Jim Meyering  <jim@meyering.net>
64961
64962         * modules/rename-dest-slash: New module.
64963         * MODULES.html.sh (posix_compat): Add it here.
64964
64965         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
64966
64967 2006-09-15  Jim Meyering  <jim@meyering.net>
64968
64969         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
64970         file.
64971
64972         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
64973
64974 2006-09-15  Jim Meyering  <jim@meyering.net>
64975
64976         * lib/rename-dest-slash.c (has_trailing_slash): Use
64977         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
64978         (rpl_rename_dest_slash): Perform the cheaper trailing slash
64979         test before testing whether SRC is a directory.
64980         Suggestions from Bruno Haible.
64981
64982         Avoid a warning about an unused variable.
64983         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
64984         into the #ifdef block where it's used.
64985
64986         * lib/rename-dest-slash.c: New file.
64987
64988 2006-09-14  Bruno Haible  <bruno@clisp.org>
64989
64990         * lib/allocsa.c: Include <config.h> unconditionally.
64991         * lib/asnprintf.c: Likewise.
64992         * lib/asprintf.c: Likewise.
64993         * lib/c-strcasecmp.c: Likewise.
64994         * lib/c-strcasestr.c: Likewise.
64995         * lib/c-strncasecmp.c: Likewise.
64996         * lib/c-strstr.c: Likewise.
64997         * lib/classpath.c: Likewise.
64998         * lib/clean-temp.c: Likewise.
64999         * lib/concatpath.c: Likewise.
65000         * lib/copy-file.c: Likewise.
65001         * lib/csharpcomp.c: Likewise.
65002         * lib/csharpexec.c: Likewise.
65003         * lib/execute.c: Likewise.
65004         * lib/fatal-signal.c: Likewise.
65005         * lib/findprog.c: Likewise.
65006         * lib/fwriteerror.c: Likewise.
65007         * lib/gl_array_list.c: Likewise.
65008         * lib/gl_array_oset.c: Likewise.
65009         * lib/gl_avltree_list.c: Likewise.
65010         * lib/gl_avltree_oset.c: Likewise.
65011         * lib/gl_avltreehash_list.c: Likewise.
65012         * lib/gl_carray_list.c: Likewise.
65013         * lib/gl_linked_list.c: Likewise.
65014         * lib/gl_linkedhash_list.c: Likewise.
65015         * lib/gl_list.c: Likewise.
65016         * lib/gl_oset.c: Likewise.
65017         * lib/gl_rbtree_list.c: Likewise.
65018         * lib/gl_rbtree_oset.c: Likewise.
65019         * lib/gl_rbtreehash_list.c: Likewise.
65020         * lib/imaxabs.c: Likewise.
65021         * lib/imaxdiv.c: Likewise.
65022         * lib/javacomp.c: Likewise.
65023         * lib/javaexec.c: Likewise.
65024         * lib/javaversion.c: Likewise.
65025         * lib/linebreak.c: Likewise.
65026         * lib/localcharset.c: Likewise.
65027         * lib/lock.c: Likewise.
65028         * lib/mbchar.c: Likewise.
65029         * lib/mbswidth.c: Likewise.
65030         * lib/mkdtemp.c: Likewise.
65031         * lib/pipe.c: Likewise.
65032         * lib/printf-args.c: Likewise.
65033         * lib/printf-parse.c: Likewise.
65034         * lib/progname.c: Likewise.
65035         * lib/progreloc.c: Likewise.
65036         * lib/readlink.c: Likewise.
65037         * lib/sh-quote.c: Likewise.
65038         * lib/stpcpy.c: Likewise.
65039         * lib/stpncpy.c: Likewise.
65040         * lib/strcasecmp.c: Likewise.
65041         * lib/strcasestr.c: Likewise.
65042         * lib/strcspn.c: Likewise.
65043         * lib/striconv.c: Likewise.
65044         * lib/strncasecmp.c: Likewise.
65045         * lib/strnlen1.c: Likewise.
65046         * lib/strstr.c: Likewise.
65047         * lib/strtok_r.c: Likewise.
65048         * lib/tls.c: Likewise.
65049         * lib/tmpdir.c: Likewise.
65050         * lib/unicodeio.c: Likewise.
65051         * lib/unsetenv.c: Likewise.
65052         * lib/vasnprintf.c: Likewise.
65053         * lib/vasprintf.c: Likewise.
65054         * lib/wait-process.c: Likewise.
65055         * lib/xallocsa.c: Likewise.
65056         * lib/xsetenv.c: Likewise.
65057         * lib/xstriconv.c: Likewise.
65058
65059 2006-09-13  Simon Josefsson  <jas@extundo.com>
65060
65061         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
65062         that internally, suggested by Ralf Wildenhues
65063         <Ralf.Wildenhues@gmx.de>.
65064
65065 2006-09-13  Simon Josefsson  <jas@extundo.com>
65066
65067         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
65068         @LIBOBJS@.
65069         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65070
65071 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65072
65073         * lib/_fpending.c: Include <config.h> unconditionally, since we no
65074         longer worry about uses that don't define HAVE_CONFIG_H.
65075         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
65076         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
65077         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
65078         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
65079         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
65080         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
65081         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
65082         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
65083         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
65084         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
65085         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
65086         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
65087         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
65088         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
65089         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
65090         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
65091         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
65092         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
65093         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
65094         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
65095         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
65096         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
65097         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
65098         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
65099         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
65100         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
65101         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
65102         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
65103         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
65104         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
65105         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
65106         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
65107         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
65108         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
65109         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
65110         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
65111         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
65112         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
65113         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
65114         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
65115         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
65116         Likewise.
65117
65118 2006-09-13  Eric Blake  <ebb9@byu.net>
65119
65120         * lib/getopt.c: Fix typo in last commit.
65121
65122 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65123
65124         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
65125         dgettext.
65126
65127 2006-09-12  Jim Meyering  <jim@meyering.net>
65128
65129         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
65130         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
65131         Reported by Nelson H. F. Beebe.
65132
65133 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65134
65135         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
65136         program_invocation_name and program_invocation_short_name are
65137         initialized.
65138         * lib/argp-namefrob.h: Move declarations of program_invocation_name
65139         and program_invocation_short_name to argp.h, so they are visible
65140         to user programs.
65141         * lib/argp.h: Likewise
65142
65143 2006-09-10  Bruno Haible  <bruno@clisp.org>
65144
65145         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65146         m4/inttypes_h.m4, m4/uintmax_t.m4.
65147
65148 2006-09-10  Bruno Haible  <bruno@clisp.org>
65149
65150         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
65151         gl_AC_TYPE_UINTMAX_T.
65152
65153 2006-09-10  Bruno Haible  <bruno@clisp.org>
65154
65155         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
65156
65157 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65158
65159         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
65160         convention.  Text proposed by Bruno Haible.
65161         (struct argp_option): Document the use of N_() wrappers.
65162
65163         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
65164         '\v', and translate the two parts separately, instead of feeding
65165         the whole string to gettext.  This allows to exclude
65166         '\v' from the strings visible to the translator by writing doc
65167         strings as N_("..") "\v" N_("..").
65168
65169 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
65170
65171         * config/srclist.txt: Undo latest change; the bug was fixed.
65172
65173 2006-09-09  Bruno Haible  <bruno@clisp.org>
65174
65175         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
65176         assignments if building a library without libtool.
65177         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
65178         in func_emit_lib_Makefile_am.
65179         (func_import): When building a static library libfoo.a, arrange to
65180         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
65181         (func_create_testdir): Likewise.
65182         * modules/gc (configure.ac, Makefile.am): If building statically,
65183         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
65184         * modules/iconvme (configure.ac, Makefile.am): Likewise.
65185         * modules/striconv (configure.ac, Makefile.am): Likewise.
65186         Based on a suggestion by Ralf Wildenhues.
65187
65188 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65189
65190         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65191         Check for unistd.h too, since Autoconf doesn't assume POSIX.
65192         Also:
65193
65194         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65195         Add year_2050_test to catch glibc bug 2821
65196         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65197
65198         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65199         Prefer #ifdef to #if.
65200
65201         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
65202         Return from 'main' instead of calling 'exit'.
65203
65204 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65205
65206         * lib/mktime.c (guess_time_tm): Fix bug where mktime
65207         returned the maximum time_t value rather than (time_t) -1.
65208         Problem originally reported by William Bardwell
65209         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65210
65211         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65212         Moved to here ...
65213         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65214         ... from here.
65215
65216 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65217
65218         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
65219         2821 is fixed.
65220
65221 2006-09-08  Jim Meyering  <jim@meyering.net>
65222
65223         Don't make generated files read-only.  That would bother too many
65224         people.  However, do retain the ability to work when targets are
65225         read-only: remove the destination and temporary files before writing
65226         them (when generated via sed or echo), or by using the -f option for
65227         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
65228         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65229         * modules/byteswap, modules/configmake, modules/fcntl:
65230         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65231         * modules/localcharset, modules/netinet_in, modules/poll:
65232         * modules/stdbool, modules/stdint, modules/sys_select:
65233         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65234
65235 2006-09-08  Jim Meyering  <jim@meyering.net>
65236
65237         Avoid new build failure on FreeBSD 6.0.
65238         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
65239         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
65240         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
65241
65242 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65243
65244         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
65245
65246 2006-09-07  Jim Meyering  <jim@meyering.net>
65247
65248         Fix global typo in last change: use chmod u-w, not chmod u-x.
65249         Spotted by Paul Eggert and Bruce Korb.
65250         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65251         * modules/byteswap, modules/configmake, modules/fcntl:
65252         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65253         * modules/localcharset, modules/netinet_in, modules/poll:
65254         * modules/stdbool, modules/stdint, modules/sys_select:
65255         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65256
65257 2006-09-06  Jim Meyering  <jim@meyering.net>
65258
65259         Make generated files be read-only.
65260         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
65261         Ensure that each generated file is now read-only.
65262         * modules/argz: Likewise.
65263         * modules/arpa_inet: Likewise.
65264         * modules/byteswap: Likewise.
65265         * modules/configmake: Likewise.
65266         * modules/fcntl: Likewise.
65267         * modules/fnmatch: Likewise.
65268         * modules/getopt: Likewise.
65269         * modules/glob: Likewise.
65270         * modules/inttypes: Likewise.
65271         * modules/netinet_in: Likewise.
65272         * modules/poll: Likewise.
65273         * modules/stdbool: Likewise.
65274         * modules/stdint: Likewise.
65275         * modules/sys_select: Likewise.
65276         * modules/sys_socket: Likewise.
65277         * modules/sys_stat: Likewise.
65278         * modules/sysexits: Likewise.
65279         * modules/localcharset: Same as above, but continue using temporary
65280         file named "t-$@" (why different?) rather than the "$@-t" used
65281         everywhere else.
65282
65283         * modules/sysexits (Makefile.am): Replace literal occurrences
65284         of "sysexit.h" more readable, and more consistent, "$@".
65285
65286 2006-09-06  Bruno Haible  <bruno@clisp.org>
65287
65288         * modules/striconv: New file.
65289         * modules/xstriconv: New file.
65290         * MODULES.html.sh (Internationalization functions): Add striconv,
65291         xstriconv.
65292
65293 2006-09-06  Bruno Haible  <bruno@clisp.org>
65294
65295         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
65296         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
65297         not using libtool correctly.
65298
65299 2006-09-06  Bruno Haible  <bruno@clisp.org>
65300
65301         * lib/striconv.h: New file.
65302         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
65303         iconvstring.c.
65304         * lib/xstriconv.h: New file.
65305         * lib/xstriconv.c: New file.
65306
65307 2006-09-06  Bruno Haible  <bruno@clisp.org>
65308
65309         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65310         lib_..._LDFLAGS.
65311
65312 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65313
65314         * lib/argz_.h: Sync from Libtool.
65315
65316         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
65317                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65318
65319         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
65320
65321 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65322
65323         * modules/trim: New file.
65324
65325 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65326
65327         * lib/trim.h: New file.
65328         * lib/trim.c: New file.
65329
65330 2006-09-05  Bruno Haible  <bruno@clisp.org>
65331
65332         * MODULES.html.sh (String handling): Add trim.
65333
65334 2006-09-04  Karl Berry  <karl@gnu.org>
65335
65336         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
65337         until next release.
65338
65339 2006-09-03  Bruno Haible  <bruno@clisp.org>
65340
65341         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
65342         correctly.
65343
65344 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65345
65346         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
65347         not gl_GETLOADAVG.  Omit unneeded semicolons.
65348         Problems reported by Ralf Wildenhues in
65349         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65350         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
65351         at the end, which is the usual gnulib style.
65352
65353         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
65354         of doing all the work ourselves.
65355         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
65356         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
65357
65358 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65359
65360         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
65361         Problem reported by Ralf Wildenhues in
65362         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65363
65364         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
65365         HAVE_STRUCT_STATFS_F_FSTYPENAME.
65366
65367 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65368
65369         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
65370         yesterday's patch by changing test -n to test -z.
65371
65372 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65373
65374         * modules/getloadavg (Files): Add m4/getloadavg.m4.
65375         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
65376         the former is now obsolescent.
65377
65378         * modules/chdir-long (Depends-on): Add fcntl.
65379
65380 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65381
65382         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
65383         obsolescent, and programs should use gnulib instead.
65384         * m4/getloadavg.m4: New file, with contents taken from Autoconf
65385         but with prefixes changed.
65386
65387 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65388
65389         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
65390         or stdbool.h, because they might not exist while configuring.
65391
65392         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
65393         Don't include unistd.h or limits.h; not needed, since chdir-long.h
65394         does that for us.
65395         (O_DIRECTORY): Remove.
65396
65397 2006-08-31  Eric Blake  <ebb9@byu.net>
65398
65399         * gnulib-tool: Don't let emacs change spaces to TAB.
65400
65401 2006-08-31  Bruno Haible  <bruno@clisp.org>
65402
65403         * gnulib-tool: When calling func_import more than once, do it in a
65404         subshell.
65405         Reported by Eric Blake <ebb9@byu.net>.
65406
65407 2006-08-31  Bruno Haible  <bruno@clisp.org>
65408
65409         * gnulib-tool (nl): Remove variable.
65410         (sed_transform_lib_file): Use more robust test for config-h module.
65411         (func_import): Fix typo in 2006-08-25 patch.
65412
65413 2006-08-31  Bruno Haible  <bruno@clisp.org>
65414
65415         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
65416         specified, augment Makefile.am variables instead of assigning them.
65417
65418 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65419
65420         Work around a bug in both the Linux and SunOS 64-bit kernels:
65421         nanosleep mishandles sleeps for longer than 2**31 seconds.
65422         Problem reported by Frank v Waveren in
65423         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65424         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
65425         Check for nanosleep bug.
65426         (LIB_NANOSLEEP): Append clock_gettime library if needed.
65427
65428 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65429
65430         Work around a bug in both the Linux and SunOS 64-bit kernels:
65431         nanosleep mishandles sleeps for longer than 2**31 seconds.
65432         Problem reported by Frank v Waveren in
65433         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65434         * lib/nanosleep.c (BILLION): New constant.
65435         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
65436         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
65437         implementation.
65438
65439 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65440
65441         * modules/nanosleep (Depends-on): Add gettime.
65442
65443 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65444         and Simon Josefsson  <jas@extundo.com>
65445         and Oskar Liljeblad  <oskar@osk.mine.nu>
65446
65447         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
65448         * gnulib-tool (func_import): New license type 'unmodifiable license
65449         text'.
65450         * modules/fdl: Use it.  Longer description.
65451         * module/gpl, module/lgpl: New files.
65452
65453 2006-08-30  Jim Meyering  <jim@meyering.net>
65454
65455         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
65456         shadowing the parameter.
65457
65458 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65459
65460         Sync from Libtool:
65461
65462         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65463
65464         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
65465         sharing with gnulib.  Report by Eric Blake.
65466
65467 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65468
65469         * modules/isapipe: New file.
65470         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
65471
65472 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65473
65474         * modules/configmake (Makefile.am): Add a comment, and omit
65475         the CONFIGMAKE_ prefix from generated macro names.  Suggested
65476         by Bruno Haible.
65477
65478 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65479
65480         * m4/isapipe.m4: New file.
65481
65482 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65483
65484         * lib/isapipe.c, lib/isapipe.h: New files.
65485
65486 2006-08-29  Jim Meyering  <jim@meyering.net>
65487
65488         * modules/configmake (Makefile.am): Make configmake.h depend on
65489         Makefile.  Otherwise, a stale configmake.h could hang around.
65490
65491 2006-08-29  Eric Blake  <ebb9@byu.net>
65492
65493         * lib/error.c (error_at_line, print_errno_message): Match libc, after
65494         resolution of upstream bug 3044.
65495
65496 2006-08-29  Bruno Haible  <bruno@clisp.org>
65497
65498         * modules/localcharset (Depends-on): Add configmake.
65499         (Makefile.am): Remove setting of LIBDIR through DEFS.
65500
65501 2006-08-29  Bruno Haible  <bruno@clisp.org>
65502
65503         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
65504         defined.
65505
65506 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65507
65508         * modules/fcntl: New file.
65509         * modules/chdir-safer (Depends-on): Add fcntl.
65510         * modules/fts: Likewise.
65511         * modules/mkdir-p: Likewise.
65512
65513         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
65514         This undoes the most recent change, since we're now addressing the
65515         problem in a different way.
65516
65517         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
65518         into output, since the output might be called Makefile.am even
65519         if $makefile_name is something different.
65520         (func_import): Use $makefile_am rather than
65521         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
65522         empty.
65523
65524         * modules/inttypes (Files): Add m4/inttypes-h.m4.
65525
65526 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65527
65528         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
65529         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
65530         recent change to stdint.m4, since we're now addressing the problem in a
65531         different way.
65532
65533 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65534
65535         * m4/fcntl_h.m4: New file.
65536
65537 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65538
65539         * lib/fcntl_.h: New file.
65540         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
65541         the fcntl module.
65542         * lib/dirchownmod.c: Likewise.
65543         * lib/fts.c: Likewise.
65544
65545         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
65546         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
65547         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
65548         just before including <inttypes.h>, to avoid circular inclusion.
65549
65550 2006-08-28  Jim Meyering  <jim@meyering.net>
65551
65552         * doc/visibility.texi: Actually read and correct the grammar of the
65553         sentence affected by yesterday's change.
65554
65555 2006-08-28  Eric Blake  <ebb9@byu.net>
65556
65557         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
65558         needs wrapper.
65559
65560 2006-08-28  Eric Blake  <ebb9@byu.net>
65561
65562         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
65563
65564 2006-08-28  Eric Blake  <ebb9@byu.net>
65565
65566         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
65567
65568 2006-08-28  Bruno Haible  <bruno@clisp.org>
65569
65570         * modules/c-strstr: New file, from GNU gettext.
65571         * MODULES.html.sh (String handling): Add c-strstr.
65572
65573 2006-08-28  Bruno Haible  <bruno@clisp.org>
65574
65575         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
65576         macros.
65577         Reported by Eric Blake.
65578
65579 2006-08-28  Bruno Haible  <bruno@clisp.org>
65580
65581         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
65582         (VASNPRINTF): Return a string of length > INT_MAX without failing.
65583         * lib/vasprintf.c: Include errno.h, limits.h.
65584         (EOVERFLOW): New fallback definition.
65585         (vasprintf): Test here whether the string length is > INT_MAX.
65586         * lib/vsnprintf.c: Include errno.h, limits.h.
65587         (EOVERFLOW): New fallback definition.
65588         (vsnprintf): Fix bug when generated string was too long for the buffer.
65589         Test here whether the string length is > INT_MAX.
65590
65591 2006-08-28  Bruno Haible  <bruno@clisp.org>
65592
65593         * lib/inttypes_.h (SCNX*): Remove definitions.
65594         Reported by Eric Blake.
65595
65596 2006-08-28  Bruno Haible  <bruno@clisp.org>
65597
65598         * lib/c-strstr.h: New file, from GNU gettext.
65599         * lib/c-strstr.c: New file, from GNU gettext.
65600
65601 2006-08-28  Bruno Haible  <bruno@clisp.org>
65602
65603         * gnulib-tool: Reorder some statements.
65604
65605 2006-08-28  Bruno Haible  <bruno@clisp.org>
65606
65607         * gnulib-tool: New option --makefile-name.
65608         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
65609         $makefile_name.
65610         (func_import): Write $makefile_name to the cache file, and read it from
65611         there unless explicitly specified. Use $makefile_name as file name
65612         instead of Makefile.am. Adjust the recommendations accordingly.
65613
65614 2006-08-28  Bruno Haible  <bruno@clisp.org>
65615
65616         * gnulib-tool (func_verify_module): Check against misapplying patch.
65617
65618 2006-08-28  Bruno Haible  <bruno@clisp.org>
65619
65620         * gnulib-tool (func_relativize, func_relconcat): New functions.
65621         Give an error if --local-dir is given with --update.
65622         Remove trailing slashes from $local_gnulib_dir.
65623         (func_import): Store the relativized $local_gnulib_dir in
65624         gnulib-cache.m4, and read it from there if not specified explicitly.
65625
65626 2006-08-28  Bruno Haible  <bruno@clisp.org>
65627
65628         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
65629         is the current directory. Respect also $local_gnulib_dir.
65630
65631 2006-08-28  Bruno Haible  <bruno@clisp.org>
65632             Simon Josefsson  <jas@extundo.com>
65633
65634         BeOS portability.
65635         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
65636
65637 2006-08-27  Jim Meyering  <jim@meyering.net>
65638
65639         * doc/visibility.texi: Remove duplicate word: "pointer".
65640
65641 2006-08-26  Bruno Haible  <bruno@clisp.org>
65642
65643         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
65644         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
65645         (Makefile.am): Create inttypes.h from inttypes_.h.
65646         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
65647
65648         * modules/imaxabs: New file.
65649
65650         * modules/imaxdiv: New file.
65651
65652 2006-08-26  Bruno Haible  <bruno@clisp.org>
65653
65654         * m4/inttypes.m4: New file.
65655         * m4/_inttypes_h.m4: Remove file.
65656         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
65657         PRI_MACROS_BROKEN.
65658         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
65659
65660         * m4/imaxabs.m4: New file.
65661
65662         * m4/imaxdiv.m4: New file.
65663
65664 2006-08-26  Bruno Haible  <bruno@clisp.org>
65665
65666         * lib/inttypes_.h: New file.
65667         * lib/inttypes.h: Remove file.
65668         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
65669
65670         * lib/imaxabs.c: New file.
65671
65672         * lib/imaxdiv.c: New file.
65673
65674 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65675
65676         New config-h module, so that "make" output needn't be cluttered
65677         by -DHAVE_CONFIG_H.
65678         * MODULES.html.sh (Support for building libraries and executables):
65679         Add config-h.
65680         * modules/config-h: New file.
65681         * gnulib-tool (nl, sed_transform_lib_file): New vars.
65682         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
65683         the config-h module is used.
65684
65685         New configmake module, so that "make" output needn't be cluttered
65686         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
65687         * MODULES.html.sh (Support for building libraries and executables):
65688         Add configmake.
65689         * modules/configmake: New file.
65690
65691 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65692
65693         * m4/config-h.m4: New file.
65694
65695 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65696
65697         * config/srclist.txt: Add elisp-comp.
65698
65699 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65700
65701         * MODULES.html.sh (Support for building libraries and executables):
65702         Add elisp-comp.
65703         * build-aux/elisp-comp: New file.
65704         * modules/elisp-comp: New file.
65705
65706 2006-08-24  Bruno Haible  <bruno@clisp.org>
65707
65708         * gnulib-tool (func_create_testdir): Use non-default values of
65709         sourcebase and m4base.
65710
65711 2006-08-24  Bruno Haible  <bruno@clisp.org>
65712
65713         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
65714         HTML structure.
65715
65716 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65717
65718         * modules/openat (Depends-on): Add lchown.
65719
65720 2006-08-23  Bruno Haible  <bruno@clisp.org>
65721
65722         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
65723         of gl_LOCK_EARLY instead of gl_LOCK.
65724
65725 2006-08-23  Bruno Haible  <bruno@clisp.org>
65726
65727         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
65728         on OSF/1 to no.
65729         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
65730
65731 2006-08-23  Bruno Haible  <bruno@clisp.org>
65732
65733         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
65734         as unusable.
65735
65736         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
65737         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
65738         (gl_LOCK): New macro.
65739
65740 2006-08-22  Simon Josefsson  <jas@extundo.com>
65741
65742         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
65743         to md5 module.
65744
65745 2006-08-22  Simon Josefsson  <jas@extundo.com>
65746
65747         * MODULES.html.sh: Add "Support for maintaining and release
65748         projects".
65749
65750         * build-aux/gnupload: New file, from coreutils.
65751
65752 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65753
65754         Avoid the need for AC_LIBSOURCES in m4 macros.
65755         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
65756         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
65757         * modules/check-version (EXTRA_DIST): Add check-version.h.
65758         * modules/crc (EXTRA_DIST): Add crc.h.
65759         * modules/des (EXTRA_DIST): Add des.h.
65760         * modules/gc (EXTRA_DIST): Add gc.h.
65761         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
65762         * modules/getline (EXTRA_DIST): Add getline.h.
65763         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
65764         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
65765         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
65766         * modules/md2 (EXTRA_DIST): Add md2.h.
65767         * modules/md4 (EXTRA_DIST): Add md4.h.
65768         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
65769         * modules/read-file (EXTRA_DIST): Add read-file.h.
65770         * modules/readline (EXTRA_DIST): Add readline.h.
65771         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
65772         rijndael-api-fst.h.
65773
65774 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65775
65776         * m4/rijndael.m4 (gl_ARCFOUR):
65777         * m4/arctwo.m4 (gl_ARCTWO):
65778         * m4/check-version.m4 (gl_CHECK_VERSION):
65779         * m4/crc.m4 (gl_CRC):
65780         * m4/des.m4 (gl_DES):
65781         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
65782         * m4/gc.m4 (gl_GC):
65783         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
65784         * m4/getline.m4 (gl_FUNC_GETLINE):
65785         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
65786         * m4/hmac-md5.m4 (gl_HMAC_MD5):
65787         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
65788         * m4/md2.m4 (gl_MD2):
65789         * m4/md4.m4 (gl_MD4):
65790         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
65791         * m4/read-file.m4 (gl_FUNC_READ_FILE):
65792         * m4/readline.m4 (gl_FUNC_READLINE):
65793         * m4/rijndael.m4 (gl_RIJNDAEL):
65794         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65795         to get the necessary .h files and whatnot.
65796
65797 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65798
65799         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
65800         gnulib rather than the other way around.
65801         * config/srclistvars.sh (COREUTILS): Remove.
65802
65803 2006-08-22  Jim Meyering  <jim@meyering.net>
65804
65805         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
65806
65807         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
65808
65809 2006-08-22  Eric Blake  <ebb9@byu.net>
65810
65811         * modules/regexprops-generic: New file.
65812         * MODULES.html.sh (Support for building documentation): List it.
65813
65814 2006-08-22  Eric Blake  <ebb9@byu.net>
65815
65816         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
65817         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65818         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
65819         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
65820
65821 2006-08-22  Bruno Haible  <bruno@clisp.org>
65822
65823         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
65824         and lib_LTLIBRARIES like the other lib_* variables.
65825
65826 2006-08-22  Bruno Haible  <bruno@clisp.org>
65827
65828         * build-aux/x-to-1.in: New file, from GNU gettext.
65829
65830 2006-08-22  Bruno Haible  <bruno@clisp.org>
65831
65832         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
65833         <utmpx.h> exists.
65834
65835 2006-08-22  Bruno Haible  <bruno@clisp.org>
65836
65837         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
65838         <utmpx.h> exists.
65839
65840 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65841
65842         BeOS portability.
65843         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
65844         exist.
65845         Problem reported by Bruno Haible.
65846
65847 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65848
65849         Avoid the need for AC_LIBSOURCES in m4 macros.
65850         * modules/acl (EXTRA_DIST): Add acl.h.
65851         * modules/argmatch (Files): Add m4/argmatch.m4.
65852         (configure.ac): Add gl_ARGMATCH.
65853         (EXTRA_DIST): Renamed from lib_SOURCES, for
65854         consistency with the other modules.  Remove argmatch.c.
65855         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
65856         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
65857         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
65858         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
65859         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
65860         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
65861         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
65862         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
65863         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
65864         * modules/closeout (EXTRA_DIST): Add closeout.h.
65865         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
65866         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
65867         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
65868         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
65869         dirname.h; remove basename.c and stripslash.c.
65870         * modules/exclude (EXTRA_DIST): Add exclude.h.
65871         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
65872         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
65873         * modules/file-type (EXTRA_DIST): Add file-type.h.
65874         * modules/filemode (EXTRA_DIST): Add filemode.h.
65875         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
65876         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65877         * modules/fpending (EXTRA_DIST): Add __fpending.h.
65878         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
65879         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
65880         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
65881         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
65882         * modules/getdate (EXTRA_DIST): Add getdate.c.
65883         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
65884         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
65885         * modules/getpass (EXTRA_DIST): Add getpass.h.
65886         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
65887         * modules/group-member (EXTRA_DIST): Add group-member.h.
65888         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
65889         * modules/hash (EXTRA_DIST): Add hash.h.
65890         * modules/human (EXTRA_DIST): Add human.h.
65891         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
65892         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
65893         * modules/lchown (EXTRA_DIST): Add lchown.h.
65894         * modules/long-options (EXTRA_DIST): Add long-options.h.
65895         * modules/lstat (EXTRA_DIST): Add lstat.h.
65896         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
65897         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
65898         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
65899         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
65900         * modules/memxor (EXTRA_DIST): Add memxor.h.
65901         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
65902         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
65903         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
65904         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
65905         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
65906         * modules/physmem (EXTRA_DIST): Add physmem.h.
65907         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
65908         * modules/posixver (EXTRA_DIST): Add posixver.h.
65909         * modules/quote (EXTRA_DIST): Add quote.h.
65910         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
65911         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
65912         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
65913         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
65914         regex_internal.h regexec.c.
65915         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
65916         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
65917         * modules/same (EXTRA_DIST): Add same.h.
65918         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
65919         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
65920         * modules/savedir (EXTRA_DIST): Add savedir.h.
65921         * modules/sha1 (EXTRA_DIST): Add sha1.h.
65922         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
65923         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
65924         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
65925         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
65926         * modules/strdup (EXTRA_DIST): Add strdup.h.
65927         * modules/strftime (EXTRA_DIST): Add strftime.h.
65928         * modules/strndup (EXTRA_DIST): Add strndup.h.
65929         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
65930         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
65931         * modules/time_r (EXTRA_DIST): Add time_r.h.
65932         * modules/timespec (EXTRA_DIST): Add timespec.h.
65933         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65934         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
65935         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
65936         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
65937         * modules/userspec (EXTRA_DIST): Add userspec.h.
65938         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
65939         * modules/utimens (EXTRA_DIST): Add utimens.h.
65940         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
65941         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
65942         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
65943         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
65944         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
65945         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
65946         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
65947         * modules/yesno (EXTRA_DIST): Add yesno.h.
65948
65949 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65950
65951         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
65952
65953         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
65954         * m4/dev-ino.m4, same-inode.m4: Remove.
65955
65956         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
65957         * m4/acl.m4 (AC_FUNC_ACL):
65958         * m4/backupfile.m4 (gl_BACKUPFILE):
65959         * m4/c-strtod.m4 (gl_C99_STRTOLD):
65960         * m4/canon-host.m4 (gl_CANON_HOST):
65961         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65962         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
65963         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
65964         * m4/cloexec.m4 (gl_CLOEXEC):
65965         * m4/close-stream.m4 (gl_CLOSE_STREAM):
65966         * m4/closeout.m4 (gl_CLOSEOUT):
65967         * m4/dirfd.m4 (gl_FUNC_DIRFD):
65968         * m4/dirname.m4 (gl_DIRNAME):
65969         * m4/exclude.m4 (gl_EXCLUDE):
65970         * m4/exitfail.m4 (gl_EXITFAIL):
65971         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
65972         * m4/file-type.m4 (gl_FILE_TYPE):
65973         * m4/filemode.m4 (gl_FILEMODE):
65974         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
65975         * m4/fpending.m4 (gl_FUNC_FPENDING):
65976         * m4/fprintftime.m4 (gl_FPRINTFTIME):
65977         * m4/fts.m4 (gl_FUNC_FTS):
65978         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
65979         * m4/getdate.m4 (gl_GETDATE):
65980         * m4/gethrxtime.m4 (gl_GETHRXTIME):
65981         * m4/getpagesize.m4 (gl_GETPAGESIZE):
65982         * m4/getpass.m4 (gl_FUNC_GETPASS):
65983         * m4/gettime.m4 (gl_GETTIME):
65984         * m4/getugroups.m4 (gl_GETUGROUPS):
65985         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
65986         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
65987         * m4/hard-locale.m4 (gl_HARD_LOCALE):
65988         * m4/hash.m4 (gl_HASH):
65989         * m4/idcache.m4 (gl_IDCACHE):
65990         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
65991         * m4/lchown.m4 (gl_FUNC_LCHOWN):
65992         * m4/long-options.m4 (gl_LONG_OPTIONS):
65993         * m4/lstat.m4 (gl_FUNC_LSTAT):
65994         * m4/md5.m4 (gl_MD5):
65995         * m4/memcasecmp.m4 (gl_MEMCASECMP):
65996         * m4/memcoll.m4 (gl_MEMCOLL):
65997         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
65998         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
65999         * m4/memxor.m4 (gl_MEMXOR):
66000         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
66001         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
66002         * m4/modechange.m4 (gl_MODECHANGE):
66003         * m4/mountlist.m4 (gl_MOUNTLIST):
66004         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66005         * m4/openat.m4 (gl_FUNC_OPENAT):
66006         * m4/pathmax.m4 (gl_PATHMAX):
66007         * m4/physmem.m4 (gl_PHYSMEM):
66008         * m4/posixtm.m4 (gl_POSIXTM):
66009         * m4/posixver.m4 (gl_POSIXVER):
66010         * m4/quote.m4 (gl_QUOTE):
66011         * m4/quotearg.m4 (gl_QUOTEARG):
66012         * m4/readtokens.m4 (gl_READTOKENS):
66013         * m4/readutmp.m4 (gl_READUTMP):
66014         * m4/regex.m4 (gl_REGEX):
66015         * m4/safe-read.m4 (gl_SAFE_READ):
66016         * m4/safe-write.m4 (gl_SAFE_WRITE):
66017         * m4/same.m4 (gl_SAME):
66018         * m4/save-cwd.m4 (gl_SAVE_CWD):
66019         * m4/savedir.m4 (gl_SAVEDIR):
66020         * m4/settime.m4 (gl_SETTIME):
66021         * m4/sha1.m4 (gl_SHA1):
66022         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
66023         * m4/stat-macros.m4 (gl_STAT_MACROS):
66024         * m4/stat-time.m4 (gl_STAT_TIME):
66025         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
66026         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
66027         * m4/strdup.m4 (gl_FUNC_STRDUP):
66028         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
66029         * m4/strndup.m4 (gl_FUNC_STRNDUP):
66030         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
66031         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
66032         * m4/time_r.m4 (gl_TIME_R):
66033         * m4/timespec.m4 (gl_TIMESPEC):
66034         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
66035         * m4/unlinkdir.m4 (gl_UNLINKDIR):
66036         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
66037         * m4/userspec.m4 (gl_USERSPEC):
66038         * m4/utimecmp.m4 (gl_UTIMECMP):
66039         * m4/utimens.m4 (gl_UTIMENS):
66040         * m4/xalloc.m4 (gl_XALLOC):
66041         * m4/xgetcwd.m4 (gl_XGETCWD):
66042         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
66043         * m4/xreadlink.m4 (gl_XREADLINK):
66044         * m4/xstrtod.m4 (gl_XSTRTOD):
66045         * m4/yesno.m4 (gl_YESNO):
66046         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
66047         to get the necessary .h files and whatnot.
66048
66049 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
66050             Bruno Haible  <bruno@clisp.org>
66051
66052         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
66053         /bin/sh understanding of '!' conditional negation.
66054
66055 2006-08-21  Jim Meyering  <jim@meyering.net>
66056
66057         * modules/openat (Depends-on): Really alphabetize.
66058
66059         * modules/acl (Depends-on): Add error and quote.
66060
66061         * check-module (find_included_lib_files): Add at-func.c to the
66062         ok-to-include-more-than-once white list.
66063
66064         * modules/openat (Depends-on): Add lstat.  Alphabetize.
66065
66066 2006-08-21  Bruno Haible  <bruno@clisp.org>
66067
66068         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66069         Emit a pkgdata_DATA variable only if some snippets add contents to it.
66070         Reported by Martin Lambers <marlam@marlam.de>.
66071
66072 2006-08-21  Bruno Haible  <bruno@clisp.org>
66073
66074         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
66075         specify an installation location, don't emit a noinst_LIBRARIES or
66076         noinst_LTLIBRARIES assignment.
66077
66078 2006-08-21  Bruno Haible  <bruno@clisp.org>
66079
66080         BeOS portability.
66081         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
66082         BeOS has mbrtowc() but no <wctype.h>.
66083
66084 2006-08-21  Bruno Haible  <bruno@clisp.org>
66085
66086         BeOS portability.
66087         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
66088         exist.
66089
66090 2006-08-21  Bruno Haible  <bruno@clisp.org>
66091
66092         BeOS portability.
66093         * lib/mbchar.h: Include <wctype.h> only if it exists.
66094
66095 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66096
66097         Remove files that are no longer needed by their respective modules.
66098         * m4/obstack.m4: Remove.
66099         * m4/strerror_r.m4: Remove.
66100         * m4/uint32_t.m4: Remove.
66101         * m4/uintptr_t.m4: Remove.
66102         * m4/ullong_max.m4: Remove.
66103         * m4/xstrtoimax.m4: Remove.
66104         * m4/xstrtoumax.m4: Remove.
66105
66106         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
66107         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
66108         dependencies now capture this.
66109
66110         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
66111         Do not use AC_LIBSOURCES, since gnulib modules now do this.
66112         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
66113         * m4/human.m4 (gl_HUMAN): Likewise.
66114         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
66115         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
66116
66117         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
66118
66119         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
66120         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
66121         stdint.
66122         * m4/human.m4 (gl_HUMAN): Likewise.
66123         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
66124         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
66125         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
66126         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
66127         * m4/xstrtol (gl_XSTRTOL): Likewise.
66128
66129         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
66130         AC_TYPE_LONG_LONG_INT.
66131         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
66132         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
66133         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
66134         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
66135
66136         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
66137         on stdbool.
66138
66139         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
66140         (gl_PREREQ_XSTRTOUL): Remove.
66141
66142         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
66143
66144         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
66145         mode.
66146
66147 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66148
66149         Add and change modules to make it easier for coreutils to use
66150         gnulib-tool.
66151         * modules/backupfile (Files): Remove m4/d-ino.m4.
66152         (Depends-on): Add d-ino.
66153         * modules/cycle-check (Depends-on): Add stdint.
66154         (lib_SOURCES): Add cycle-check.h.
66155         * modules/d-ino: New module.
66156         * modules/d-type: New module.
66157         * modules/error (Files): Remove m4/strerror_r.m4.
66158         * modules/filemode (Files): Add m4/st_dm_mode.m4.
66159         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
66160         m4/inttypes_h.m4, m4/uintmax_t.m4.
66161         (Depends-on): Add stdint.
66162         (lib_SOURCES): Add fsusage.h.
66163         * modules/getcwd (Files): Remove d-ino.m4.
66164         (Depends-on): Add d-ino.
66165         * modules/getndelim2 (Depends-on): Add stdint.
66166         * modules/glob (Files): Remove m4/d-type.m4.
66167         (Depends-on): Add d-type.
66168         * modules/host-os: New module.
66169         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
66170         m4/inttypes_h.m4, m4/uintmax_t.m4.
66171         * Depends-on: Add stdint.
66172         (lib_SOURCES): Add human.h.
66173         * modules/inttostr (Files): Remove m4/intmax_t.m4,
66174         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
66175         m4/uintmax_t.m4, m4/ulonglong.m4.
66176         (Depends-on): Add stdint.
66177         (EXTRA_DIST): Add inttostr.h.
66178         * modules/lchmod: New module.
66179         * modules/link-follow: New module.
66180         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
66181         (Depends-on): Add lchmod.
66182         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
66183         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
66184         (Depends-on): Add stdint.
66185         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
66186         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
66187         (Depends-on): Add stdint.
66188         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
66189         * modules/perl: New module.
66190         * modules/regex (Depends-on): Add stdint.
66191         * modules/rmdir-errno: New module.
66192         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66193         m4/intmax_t.m4.
66194         (Depends-on): Add stdint.
66195         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66196         m4/uintmax_t.m4.
66197         (Depends-on): Add stdint.
66198         * modules/unlink-busy: New module.
66199         * modules/utimecmp (Depends-on): Add stdint.
66200         * modules/uptime: New module.
66201         * modules/winsz-ioctl: New module.
66202         * modules/winsz-termios: New module.
66203         * modules/xnanosleep (Depends-on): Add nanosleep.
66204         * modules/ullong_max: Remove.
66205         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
66206         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
66207         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
66208         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
66209         (Depends-on): Add inttypes.
66210         (lib_SOURCES): Add xstrtol.h.
66211         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
66212         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
66213         * MODULES.html.sh: Move 'assert' into the assert section.
66214         Move 'dummy' into the linking section.
66215         Remove ullong_max.
66216         Add section for compatibility checks for POSIX:2001 functions,
66217         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
66218         winsz-ioctl, and winsz-termios into it.
66219         Add lchmod.
66220         Add top-level Misc section and put host-os, perl, and uptime
66221         into it.
66222
66223 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66224
66225         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
66226         now assume the stdint module.  Do not include inttypes.h.
66227         * lib/fsusage.h: Likewise.
66228         * lib/getndelim2.c: Likewise.
66229         * lib/human.h: Likewise.
66230         * lib/inttostr.h: Likewise.
66231         * lib/obstack.c: Likewise.
66232         * lib/regex_internal.h: Likewise.
66233         * lib/tempname.c: Likewise.
66234         * lib/utimecmp.c: Likewise.
66235         * lib/xstrtol.h: Likewise.
66236
66237         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
66238
66239         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
66240         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
66241         * lib/xtime.h: Likewise.
66242
66243 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66244
66245         * modules/openat (Files): Add lib/fchmodat.c.
66246         Fixes problem reported by Jay Youngman.
66247
66248 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66249
66250         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
66251         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
66252
66253 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
66254             Bruno Haible  <bruno@clisp.org>
66255
66256         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
66257         and is a script that invokes bison. Tighten the code. Add comments.
66258
66259 2006-08-18  Jim Meyering  <jim@meyering.net>
66260
66261         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
66262         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
66263         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
66264         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
66265
66266 2006-08-18  Bruno Haible  <bruno@clisp.org>
66267
66268         * modules/bison-i18n: New file.
66269         * MODULES.html.sh (Internationalization functions): Add it.
66270
66271 2006-08-18  Bruno Haible  <bruno@clisp.org>
66272
66273         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
66274         sys/statvfs.h. When getmntinfo was found, check its declaration and
66275         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
66276
66277 2006-08-18  Bruno Haible  <bruno@clisp.org>
66278
66279         * m4/bison-i18n.m4: New file, from bison.
66280
66281 2006-08-18  Bruno Haible  <bruno@clisp.org>
66282
66283         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
66284         (ME_DUMMY): Treat "kernfs" as a dummy.
66285         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
66286
66287 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66288
66289         Update from coreutils.
66290
66291         2006-08-15  Jim Meyering  <jim@meyering.net>
66292
66293         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
66294
66295         2006-01-17  Jim Meyering  <jim@meyering.net>
66296
66297         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
66298
66299         2006-01-11  Jim Meyering  <jim@meyering.net>
66300
66301         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
66302         Check for the lchmod function.
66303
66304 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66305
66306         Update from coreutils.
66307
66308         * lib/__fpending.h: Add copyright notice.
66309         * lib/fprintftime.h: Likewise.
66310         * lib/savedir.c: Use (C) in copyright notice.
66311         * lib/savedir.h: Likewise.
66312
66313         2006-08-15  Jim Meyering  <jim@meyering.net>
66314
66315         * lib/at-func.c: New file, with the logic of all emulated at-functions.
66316         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
66317         in support of the EXPECTED_ERRNO macro.
66318         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
66319         definitions.  Instead, define the appropriate symbols and include
66320         "at-func.c".
66321         * lib/mkdirat.c (mkdirat): Likewise.
66322         * lib/fchmodat.c (fchmodat): Likewise.
66323         (ENOSYS): Remove definition.
66324         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
66325         it.  Don't include "unistd--.h" -- it wasn't ever used.
66326
66327         2006-01-17  Jim Meyering  <jim@meyering.net>
66328
66329         Rewrite fts.c not to change the current working directory,
66330         by using openat, fstatat, fdopendir, etc..
66331
66332         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
66333         (HAVE_OPENAT_SUPPORT): Define.
66334         [_LIBC] (fchdir): Don't undef or define; no longer used.
66335         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
66336         Now, this `function' always succeeds, and consumes its file descriptor
66337         parameter -- so callers must not close such FDs.  Update callers.
66338         (diropen_fd, opendirat, cwd_advance_fd): New functions.
66339         (diropen): Add parameter, SP.  Adjust all callers.
66340         Implement using diropen_fd, rather than open.
66341         (fts_open): Initialize new member, fts_cwd_fd.
66342         Remove fts_rft-setting code.
66343         (fts_close): Close fts_cwd_fd, if necessary.
66344         (__opendir2): Define in terms of opendir or opendirat,
66345         depending on whether the FST_NOCHDIR flag is set.
66346         (fts_build): Since fts_safe_changedir consumes its FD, and since
66347         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
66348         and close the dup'd file descriptor upon failure.
66349         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
66350         (fts_safe_changedir): Tweak semantics to reflect that this function
66351         now calls cwd_advance_fd and hence consumes its FD argument.
66352         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
66353         [struct FTS] (fts_rft): Remove now-unused member.
66354         [struct FTS] (fts_cycle.state): Improve comment.
66355
66356         * lib/openat.c (openat_needs_fchdir): New function.
66357         * lib/openat.h (openat_needs_fchdir): Declare it.
66358
66359 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
66360
66361         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
66362         Problem and fix reported by Pádraig Brady in
66363         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
66364
66365 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66366
66367         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
66368
66369 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66370
66371         * lib/memcoll.c (memcoll): Optimize for the common case where the
66372         arguments are bytewise equal.
66373
66374 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66375
66376         * doc/regexprops-generic.texi: Add a copyright notice.
66377
66378 2006-08-15  Bruno Haible  <bruno@clisp.org>
66379
66380         * modules/tmpdir (License): Change to LGPL.
66381
66382 2006-08-15  Bruno Haible  <bruno@clisp.org>
66383
66384         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
66385         module.
66386
66387 2006-08-14  Simon Josefsson  <jas@extundo.com>
66388
66389         * config/srclist.txt: Add gnupload.
66390
66391 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66392
66393         Change copyright notice from LGPL 2 to GPL 2, since that's the
66394         standard form used in the gnulib repository.
66395         * tests/test-lock.c: Likewise.
66396         * tests/test-stdint.c: Likewise.
66397         * tests/test-tls.c: Likewise.
66398
66399         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
66400         prelude-manager.  User shorter URLs for GNU projects, without '?'.
66401         Add copyright notice.
66402
66403         * check-module: Add copyright notice.  Output a copyright
66404         notice if "--version" is specified.
66405         * modules/COPYING: New file.
66406         * tests/test-getaddrinfo.c: Add copyright notice.
66407         * tests/test-verify.c: Likewise.
66408
66409 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66410
66411         Change copyright notice from LGPL 2 to GPL 2, since that's the
66412         standard form used in the gnulib repository.
66413         * lib/lock.c: LGPL -> GPL.
66414         * lib/lock.h: Likewise.
66415         * lib/strnlen1.c: Likewise.
66416         * lib/strnlen1.h: Likewise.
66417         * lib/tls.c: Likewise.
66418         * lib/tls.h: Likewise.
66419         * lib/tmpdir.c: Likewise.
66420
66421         * lib/TODO: Remove; this belongs only in coreutils.
66422
66423 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66424
66425         Add copyright notices to long-enough files that lack them, since
66426         otherwise the files aren't clearly free.  Use the same notice that
66427         getdate.texi already uses.
66428         * doc/alloca-opt.texi: Add copyright notice.
66429         * doc/alloca.texi: Likewise.
66430         * doc/ctime.texi: Likewise.
66431         * doc/functions.texi: Likewise.
66432         * doc/gcd.texi: Likewise.
66433         * doc/gnulib-tool.texi: Likewise.
66434         * doc/inet_ntoa.texi: Likewise.
66435         * doc/visibility.texi: Likewise.
66436
66437         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
66438         * doc/quote.texi: Add copyright notice.
66439
66440         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
66441         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
66442         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
66443         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
66444         is now obsolete, and give a pointer to the Sun list.
66445         Add copyright notice.
66446
66447 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66448
66449         * config/srclistvars.sh: Add copyright notice.
66450
66451 2006-08-14  Eric Blake  <ebb9@byu.net>
66452
66453         Import the following change from libc:
66454
66455         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
66456
66457         Upstream bug 2997.
66458         * lib/misc/error.c: Add space between program name and message if file
66459         name is missing.
66460
66461 2006-08-12  Karl Berry  <karl@gnu.org>
66462
66463         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
66464         remove, these originate in gnulib now.
66465
66466 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66467
66468         * doc/Makefile (standards.info standards.html standards.dvi):
66469         Also depend on make-stds.texi.
66470
66471 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
66472
66473         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
66474         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
66475
66476         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
66477         in wchar_t.  Problem reported by Eric Blake.
66478
66479         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
66480         LEN is smaller than SIZE.  Suggested by Bruno Haible.
66481         Also, help the compiler to keep LEN in a register.
66482
66483 2006-08-11  Eric Blake  <ebb9@byu.net>
66484
66485         * users.txt: Sort.  Add tar.
66486
66487 2006-08-11  Bruno Haible  <bruno@clisp.org>
66488
66489         * users.txt: New file.
66490
66491 2006-08-11  Bruno Haible  <bruno@clisp.org>
66492
66493         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
66494         before <wchar.h>. Needed for OSF/1 and BSD/OS.
66495
66496 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66497
66498         * modules/snprintf (Depends-on): Remove minmax.
66499         (Maintainer): Add self and Bruno.
66500
66501 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66502
66503         * lib/.cppi-disable: Add snprintf.h, socket_.h.
66504         * lib/snprintf.c: Include <errno.h> and <limits.h>.
66505         (EOVERFLOW): Define if the system does not.
66506         Do not include "minmax.h"; it wasn't used.
66507         (snprintf): Don't assume size_t promotes to an unsigned type.
66508         Fix bug when generated string was too long for the buffer: the
66509         buffer's contents are supposed to be the initial prefix of the
66510         output.  Don't assume vasnprintf returns EOVERFLOW if the size
66511         exceeds INT_MAX; do the check ourselves.
66512
66513         Import the following changes from libc:
66514
66515         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
66516
66517         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
66518         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
66519         set wc to the byte which couldn't be converted.
66520         (re_string_reconstruct): Don't clear valid_raw_len before calling
66521         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
66522         tip_context using re_string_context_at.
66523
66524         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
66525
66526         * lib/posix/regex.h: g++ still cannot handled [restrict].
66527
66528         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
66529
66530         * lib/posix/regex.h: Remove special handling for VMS.
66531
66532 2006-08-10  Jim Meyering  <jim@meyering.net>
66533
66534         * modules/same-inode: New module.
66535         * modules/dev-ino: New module.
66536         * modules/cycle-check: Depend on these modules, rather than simply
66537         including their .h files.
66538         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
66539         required via m4/cycle-check.m4.
66540         * modules/same: Depend on new same-inode module, rather than
66541         including same-inode.h.
66542         * modules/chdir-safer: New file.
66543
66544         * modules/chown (Depends-on): Add stat-macros.
66545
66546 2006-08-10  Jim Meyering  <jim@meyering.net>
66547
66548         * m4/cycle-check.m4: New file.
66549         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
66550         * m4/dev-ino.m4, m4/same-inode.m4: New files.
66551
66552 2006-08-10  Eric Blake  <ebb9@byu.net>
66553
66554         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
66555         in from original proposal.
66556
66557 2006-08-10  Eric Blake  <ebb9@byu.net>
66558         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
66559
66560         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
66561         namespace.
66562
66563 2006-08-10  Bruno Haible  <bruno@clisp.org>
66564
66565         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
66566         as well.
66567
66568 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66569
66570         Sync from coreutils.
66571
66572         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
66573
66574         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
66575         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
66576
66577 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66578
66579         * modules/restrict: Remove; no longer needed now that we assume
66580         Autoconf 2.59 or later.
66581         * MODULES.html.sh: Remove 'restrict'.
66582         * modules/argp (Depends-on): Remove 'restrict'.
66583         * modules/base64 (Depends-on): Likewise.
66584         * modules/gc (Depends-on): Likewise.
66585         * modules/getaddrinfo (Depends-on): Likewise.
66586         * modules/glob (Depends-on): Likewise.
66587         * modules/inet_ntop (Depends-on): Likewise.
66588         * modules/inet_pton (Depends-on): Likewise.
66589         * modules/memxor (Depends-on): Likewise.
66590         * modules/regex (Depends-on): Likewise.
66591         * modules/strtok_r (Depends-on): Likewise.
66592         * modules/time_r (Depends-on): Likewise.
66593
66594 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66595
66596         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
66597         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
66598         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66599         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
66600         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
66601         * m4/memxor.m4 (gl_MEMXOR): Likewise.
66602         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
66603         gl_C_RESTRICT replaced by AC_C_RESTRICT.
66604
66605         Merge from coreutils.
66606         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
66607         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
66608         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66609         * m4/time_r.m4 (gl_TIME_R): Likewise.
66610
66611 2006-08-09  Karl Berry  <karl@gnu.org>
66612
66613         * config/srclist.txt: no more gettext-tools, per Bruno.
66614
66615 2006-08-08  Eric Blake  <ebb9@byu.net>
66616
66617         * modules/verror: New module.
66618         * MODULES.html.sh: Document it.
66619
66620 2006-08-08  Eric Blake  <ebb9@byu.net>
66621
66622         * lib/verror.h, lib/verror.c: New files.
66623
66624 2006-08-08  Eric Blake  <ebb9@byu.net>
66625
66626         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
66627         verror_at_line output complies with GNU Coding Standards even when
66628         file is NULL.
66629
66630 2006-08-07  Bruno Haible  <bruno@clisp.org>
66631
66632         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
66633         versions of AIX.
66634         Reported by Ralf Wildenhues.
66635
66636 2006-08-07  Bruno Haible  <bruno@clisp.org>
66637
66638         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
66639         in an AC_DEFUN. Needed so that the autoconf snippets can use
66640         AC_REQUIRE.
66641
66642 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66643
66644         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66645         Initialize pkgdata_DATA.
66646         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
66647         overriding it.
66648
66649 2006-08-06  Eric Blake  <ebb9@byu.net>
66650
66651         * lib/error.h: Fold in some upstream changes from glibc.
66652         * lib/error.c: Likewise.
66653
66654 2006-08-04  Bruno Haible  <bruno@clisp.org>
66655
66656         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66657         Make the mostlyclean-local rule depend on mostlyclean-generic.
66658         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
66659
66660 2006-07-31  Bruno Haible  <bruno@clisp.org>
66661
66662         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
66663         <stdlib.h>, <string.h>.
66664
66665 2006-07-30  Bruno Haible  <bruno@clisp.org>
66666
66667         * modules/readlink (License): Change to LGPL.
66668
66669 2006-07-30  Bruno Haible  <bruno@clisp.org>
66670
66671         * modules/javaversion (Makefile.am): Distribute javaversion.java and
66672         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
66673         set PKGDATADIR to point to it.
66674
66675 2006-07-30  Bruno Haible  <bruno@clisp.org>
66676
66677         * modules/csharpexec (configure.ac): Comment out macro invocation.
66678         * modules/javaexec (configure.ac): Likewise.
66679         * modules/javacomp-script (configure.ac): Likewise.
66680
66681         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
66682
66683 2006-07-30  Bruno Haible  <bruno@clisp.org>
66684
66685         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
66686         linked-list.
66687
66688 2006-07-30  Bruno Haible  <bruno@clisp.org>
66689
66690         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
66691
66692 2006-07-30  Bruno Haible  <bruno@clisp.org>
66693
66694         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66695         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
66696         get removed.
66697
66698 2006-07-29  Bruno Haible  <bruno@clisp.org>
66699
66700         Make it possible for gnulib-tool to work with locally modified or
66701         augmented gnulib repositories.
66702         * gnulib-tool (func_usage): Document --local-dir option.
66703         (local_gnulib_dir): New variable.
66704         Handle --local-dir option.
66705         (func_lookup_file): New function.
66706         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
66707         (func_get_description, func_get_filelist, func_get_description,
66708         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
66709         func_get_automake_snippet, func_get_include_directive,
66710         func_get_license, func_get_maintainer): Use func_lookup_file.
66711         (func_import, func_create_testdir): Use func_lookup_file.
66712
66713 2006-07-29  Bruno Haible  <bruno@clisp.org>
66714
66715         * modules/setenv (Depends-on): Add unistd.
66716
66717 2006-07-29  Bruno Haible  <bruno@clisp.org>
66718
66719         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
66720
66721 2006-07-29  Bruno Haible  <bruno@clisp.org>
66722
66723         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
66724
66725 2006-07-29  Bruno Haible  <bruno@clisp.org>
66726
66727         * gnulib-tool (import, update): If there is no Makefile.am, look at
66728         aclocal.m4, instead of bailing out.
66729
66730 2006-07-29  Bruno Haible  <bruno@clisp.org>
66731
66732         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
66733         Categorize the options by when they are useful.
66734
66735 2006-07-29  Bruno Haible  <bruno@clisp.org>
66736
66737         * gnulib-tool (func_usage): Document option --no-libtool.
66738         Handle option --no-libtool.
66739         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
66740         for changed semantics of $libtool variable.
66741         (func_import): Likewise. If libtool is not used, show this through
66742         an option --no-libtool.
66743         (func_create_testdir): Update.
66744
66745 2006-07-29  Bruno Haible  <bruno@clisp.org>
66746
66747         * gnulib-tool (func_import): Extend error message about missing
66748         --doc-base.
66749
66750 2006-07-29  Bruno Haible  <bruno@clisp.org>
66751
66752         * gnulib-tool (func_import): Don't create the $docbase directory if
66753         there is no file to store there.
66754
66755 2006-07-29  Bruno Haible  <bruno@clisp.org>
66756
66757         * gnulib-tool (autoconf_minversion): If a --dir option is given and
66758         relevant, look for configure.ac there, not in the current directory.
66759         Also use a simple search for AC_PREREQ, not "autoconf --trace".
66760
66761 2006-07-29  Bruno Haible  <bruno@clisp.org>
66762
66763         * gnulib-tool (SORT): New variable.
66764         (func_usage): Undocument --assume-autoconf option.
66765         Remove --assume-autoconf option handling.
66766         (autoconf_minversion): Determine from the contents of configure.ac.
66767         (func_import): Remove autoconf_minversion handling.
66768         Suggested by Eric Blake.
66769
66770 2006-07-29  Bruno Haible  <bruno@clisp.org>
66771
66772         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
66773
66774 2006-07-29  Bruno Haible  <bruno@clisp.org>
66775
66776         * config/srclist.txt (*setenv.[ch]): Remove rules.
66777
66778 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66779
66780         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
66781
66782 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66783
66784         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
66785         arpa/inet.h.
66786
66787 2006-07-28  Simon Josefsson  <jas@extundo.com>
66788
66789         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
66790         * modules/inet_pton (Depends-on): Likewise.
66791
66792 2006-07-28  Simon Josefsson  <jas@extundo.com>
66793
66794         * m4/netinet_in_h.m4: New file.
66795
66796 2006-07-28  Simon Josefsson  <jas@extundo.com>
66797
66798         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
66799         #include's.
66800
66801 2006-07-28  Simon Josefsson  <jas@extundo.com>
66802
66803         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
66804         #include's.
66805
66806 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
66807
66808         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
66809         setgid on directories only if they set these bits.
66810         * lib/modechange.h: Remove obsolete comment about masks.
66811
66812 2006-07-28  Eric Blake  <ebb9@byu.net>
66813
66814         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
66815         macro expansion.
66816
66817 2006-07-28  Bruno Haible  <bruno@clisp.org>
66818
66819         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
66820
66821 2006-07-28  Bruno Haible  <bruno@clisp.org>
66822
66823         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
66824
66825 2006-07-28  Bruno Haible  <bruno@clisp.org>
66826
66827         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
66828         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
66829         Define fallbacks.
66830         Avoids link error on FreeBSD 4.x.
66831         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66832
66833         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
66834         encoding.
66835         * lib/mbswidth.c (iswcntrl): Likewise.
66836
66837 2006-07-27  Bruno Haible  <bruno@clisp.org>
66838
66839         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
66840         test.
66841
66842 2006-07-27  Bruno Haible  <bruno@clisp.org>
66843
66844         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
66845         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
66846         defined.
66847
66848 2006-07-26  Eric Blake  <ebb9@byu.net>
66849
66850         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
66851
66852 2006-07-26  Eric Blake  <ebb9@byu.net>
66853
66854         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
66855         like mingw that lack mkstemp.
66856         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
66857         avoid compilation warning on mingw.
66858
66859 2006-07-26  Bruno Haible  <bruno@clisp.org>
66860
66861         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
66862         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
66863         INT_FAST*_MIN, INTPTR_MIN.
66864
66865 2006-07-25  Bruno Haible  <bruno@clisp.org>
66866
66867         * modules/version-etc (Depends-on): Add stdarg.
66868
66869 2006-07-25  Bruno Haible  <bruno@clisp.org>
66870
66871         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
66872         complex commands.
66873
66874 2006-07-25  Bruno Haible  <bruno@clisp.org>
66875
66876         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
66877         defined in <stdarg.h> or config.h.
66878
66879 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66880
66881         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
66882         (gl_STDIO_SAFER): Remove.
66883
66884 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66885
66886         * MODULES.html.sh (File stream based Input/Output):
66887         Add fopen-safer, tmpfile-safer; remove stdio-safer.
66888         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
66889         * modules/fopen-safer, modules/tmpfile-safer: New files.
66890         * modules/stdio-safer: Remove.
66891
66892 2006-07-24  Bruno Haible  <bruno@clisp.org>
66893
66894         * modules/tmpdir: New file.
66895         * MODULES.html.sh (File system functions): Add it.
66896
66897 2006-07-24  Bruno Haible  <bruno@clisp.org>
66898
66899         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
66900         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
66901
66902 2006-07-24  Bruno Haible  <bruno@clisp.org>
66903
66904         * modules/clean-temp: New file.
66905
66906 2006-07-24  Bruno Haible  <bruno@clisp.org>
66907
66908         * m4/tmpdir.m4: New file, from GNU gettext.
66909
66910 2006-07-24  Bruno Haible  <bruno@clisp.org>
66911
66912         * lib/tmpdir.h: New file, from GNU gettext.
66913         * lib/tmpdir.c: New file, from GNU gettext.
66914
66915 2006-07-24  Bruno Haible  <bruno@clisp.org>
66916
66917         * lib/clean-temp.h: New file, from GNU gettext.
66918         * lib/clean-temp.c: New file, from GNU gettext.
66919
66920 2006-07-23  Eric Blake  <ebb9@byu.net>
66921
66922         * modules/stdio-safer (Files): Add tmpfile-safer.c.
66923         (Depends-on): Add binary-io.
66924
66925 2006-07-23  Eric Blake  <ebb9@byu.net>
66926
66927         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
66928
66929 2006-07-23  Eric Blake  <ebb9@byu.net>
66930
66931         * lib/tmpfile-safer.c: New file.
66932         * lib/stdio-safer.h (fopen_safer): Add prototype.
66933         * lib/stdio--.h (tmpfile): Make safer.
66934
66935 2006-07-23  Bruno Haible  <bruno@clisp.org>
66936
66937         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
66938         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
66939         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
66940         gl_linked_remove_at): Use it.
66941
66942 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66943         and Simon Josefsson <jas@extundo.com>
66944
66945         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
66946
66947         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
66948
66949 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66950
66951         * modules/close-stream: New file.
66952         * modules/closeout (Description): Make it clear that it exits
66953         with a diagnostic on error.
66954         (Depends-on): Add close-stream.  Remove fpending, stdbool.
66955         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
66956
66957 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66958
66959         * m4/close-stream.m4: New file.
66960
66961 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66962
66963         * lib/close-stream.c, lib/close-stream.h: New files.
66964
66965 2006-07-22  Bruno Haible  <bruno@clisp.org>
66966
66967         Merge from GNU gettext 0.15.
66968
66969         2006-05-01  Bruno Haible  <bruno@clisp.org>
66970
66971                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
66972
66973         2006-07-22  Bruno Haible  <bruno@clisp.org>
66974
66975                 * modules/javaversion: New file.
66976                 * MODULES.html.sh (Java): Add javaversion.
66977
66978         2006-03-12  Bruno Haible  <bruno@clisp.org>
66979
66980                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
66981
66982         2005-12-04  Bruno Haible  <bruno@clisp.org>
66983
66984                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
66985                 (untested).
66986
66987         2006-06-21  Bruno Haible  <bruno@clisp.org>
66988
66989                 Avoid warnings from recent versions of mcs.
66990                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
66991                 -o, -L, -r any more. Use options documented since mcs-1.0
66992                 instead. Similarly for -g.
66993
66994         2005-12-04  Bruno Haible  <bruno@clisp.org>
66995
66996                 * build-aux/csharpcomp.sh.in: Suffix for resources is
66997                 .resources, not .resource.
66998
66999         2005-07-09  Bruno Haible  <bruno@clisp.org>
67000
67001                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
67002                 add a .dll suffix.
67003                 Reported by Mark Junker <mjscod@gmx.de>.
67004
67005         2006-07-22  Bruno Haible  <bruno@clisp.org>
67006
67007                 * modules/gettext: Upgrade to gettext-0.15.
67008                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
67009                 m4/visibility.m4.
67010                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
67011
67012 2006-07-22  Bruno Haible  <bruno@clisp.org>
67013
67014         Merge from GNU gettext 0.15.
67015
67016         2006-03-25  Bruno Haible  <bruno@clisp.org>
67017
67018                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
67019
67020         2006-07-21  Bruno Haible  <bruno@clisp.org>
67021
67022                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
67023                 "1.1".
67024
67025         2006-05-09  Bruno Haible  <bruno@clisp.org>
67026
67027                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
67028                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
67029                 for the conftestver execution.
67030
67031         2006-05-01  Bruno Haible  <bruno@clisp.org>
67032
67033                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
67034                 optional target-version argument. Verify that the compiler
67035                 groks source of the specified source-version, or add -source
67036                 option as necessary. Verify that the compiler produces
67037                 bytecode in the specified target-version, or add -target and
67038                 -source options as necessary. Make the result of the test
67039                 available as variable CONF_JAVAC. Also log error output in
67040                 config.log.
67041
67042         2006-03-11  Bruno Haible  <bruno@clisp.org>
67043
67044                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
67045
67046         2006-05-09  Bruno Haible  <bruno@clisp.org>
67047
67048                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
67049                 CLASSPATH_SEPARATOR to a semicolon.
67050
67051         2006-03-12  Bruno Haible  <bruno@clisp.org>
67052
67053                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
67054                 available as variable CONF_JAVA, for subsequent autoconf
67055                 tests. Also log error output in config.log.
67056
67057         2006-07-19  Bruno Haible  <bruno@clisp.org>
67058
67059                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
67060                 that getline works on glibc2 systems. Needed to avoid trouble
67061                 in relocatable.c.
67062                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
67063
67064         2005-12-04  Bruno Haible  <bruno@clisp.org>
67065
67066                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
67067                 launcher (untested).
67068
67069         2005-12-04  Bruno Haible  <bruno@clisp.org>
67070
67071                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
67072
67073         2006-07-22  Bruno Haible  <bruno@clisp.org>
67074
67075                 * gettext.m4: Update from GNU gettext-0.15.
67076                 * nls.m4: Likewise.
67077                 * po.m4: Likewise.
67078                 * inttypes-pri.m4: Likewise.
67079                 * inttypes-h.m4: Renamed from inttypes.m4.
67080                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
67081
67082 2006-07-22  Bruno Haible  <bruno@clisp.org>
67083
67084         Merge from GNU gettext 0.15.
67085
67086         2005-07-05  Bruno Haible  <bruno@clisp.org>
67087
67088                 * printf-args.c (printf_fetchargs): Work around broken
67089                 definition of wint_t on mingw.
67090
67091         2005-02-12  Bruno Haible  <bruno@clisp.org>
67092
67093                 * xallocsa.h: Add extern "C" for C++.
67094
67095         2006-05-17  Bruno Haible  <bruno@clisp.org>
67096
67097                 Cygwin portability.
67098                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
67099
67100         2006-04-30  Bruno Haible  <bruno@clisp.org>
67101
67102                 * progreloc.c: Include <mach-o/dyld.h> if available.
67103                 (find_executable): Use _NSGetExecutablePath when possible.
67104
67105         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67106
67107                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
67108                 function.
67109
67110         2005-12-29  Bruno Haible  <bruno@clisp.org>
67111
67112                 * progreloc.c (set_program_name_and_installdir): Fix
67113                 compilation error.
67114
67115         2005-12-04  Bruno Haible  <bruno@clisp.org>
67116
67117                 Cygwin portability.
67118                 * progreloc.c: Include <windows.h> also on Cygwin.
67119                 (find_executable): Add support for Cygwin.
67120                 (set_program_name_and_installdir): Handle also platforms with
67121                 nonempty EXEEXT.
67122
67123         2006-07-11  Bruno Haible  <bruno@clisp.org>
67124
67125                 * javacomp.c: Fix a comment.
67126                 Reported by Jim Meyering.
67127
67128         2006-04-30  Bruno Haible  <bruno@clisp.org>
67129
67130                 * javacomp.h (compile_java_class): Add source_version,
67131                 target_version arguments.
67132                 * javacomp.c: Rewritten to choose only a compiler that
67133                 respects the specified source_version and target_version.
67134
67135         2006-06-27  Bruno Haible  <bruno@clisp.org>
67136
67137                 Assume correct S_ISDIR macro.
67138                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
67139
67140         2006-07-22  Bruno Haible  <bruno@clisp.org>
67141
67142                 * javaversion.h: New file, from GNU gettext.
67143                 * javaversion.c: New file, from GNU gettext.
67144                 * javaversion.java: New file, from GNU gettext.
67145                 * javaversion.class: New file, from GNU gettext.
67146
67147         2006-05-17  Bruno Haible  <bruno@clisp.org>
67148
67149                 Cygwin portability.
67150                 * javaexec.c (execute_java_class): Test for jview program
67151                 also on Cygwin.
67152
67153         2006-04-09  Bruno Haible  <bruno@clisp.org>
67154
67155                 * fatal-signal.c: Don't include string.h.
67156                 (at_fatal_signal): Use a copying loop instead of memcpy.
67157
67158         2005-12-04  Bruno Haible  <bruno@clisp.org>
67159
67160                 * csharpexec.c: Add support for 'clix' launcher (untested).
67161                 (execute_csharp_using_sscli): New function.
67162                 (execute_csharp_program): Call it.
67163
67164         2006-06-21  Bruno Haible  <bruno@clisp.org>
67165
67166                 Avoid warnings from recent versions of mcs.
67167                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
67168                 -o, -L, -r any more. Use options documented since mcs-1.0
67169                 instead. Similarly for -g.
67170
67171         2005-07-09  Bruno Haible  <bruno@clisp.org>
67172
67173                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
67174                 add a .dll suffix.
67175                 Reported by Mark Junker <mjscod@gmx.de>.
67176
67177         2006-06-17  Bruno Haible  <bruno@clisp.org>
67178
67179                 * config.charset: Update for NetBSD 3.0.
67180
67181         2006-05-17  Bruno Haible  <bruno@clisp.org>
67182
67183                 Cygwin portability.
67184                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
67185
67186         2006-05-16  Bruno Haible  <bruno@clisp.org>
67187
67188                 * localcharset.c [CYGWIN]: Include <windows.h>.
67189                 (get_charset_aliases): For Cygwin, return the same CPxxx
67190                 aliases list as under WIN32.
67191                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
67192                 the environment variables. Fall back to GetACP().
67193
67194         2006-04-05  Bruno Haible  <bruno@clisp.org>
67195
67196                 * config.charset: Update Juan Manuel Guerrero's address.
67197
67198         2005-02-12  Bruno Haible  <bruno@clisp.org>
67199
67200                 * allocsa.h: Add extern "C" for C++.
67201
67202         2005-02-10  Bruno Haible  <bruno@clisp.org>
67203
67204                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
67205                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
67206
67207         2006-07-22  Bruno Haible  <bruno@clisp.org>
67208
67209                 * gettext.h: Update to GNU gettext-0.15.
67210
67211 2006-07-22  Bruno Haible  <bruno@clisp.org>
67212
67213         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
67214         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
67215         lib-prefix.m4, longdouble.m4, ssize_t.m4.
67216
67217 2006-07-21  Eric Blake  <ebb9@byu.net>
67218
67219         * modules/stdlib-safer: New file.
67220         * MODULES.html.sh (File stream based Input/Output): Add
67221         stdlib-safer.
67222
67223 2006-07-21  Eric Blake  <ebb9@byu.net>
67224
67225         * lib/stdlib-safer.h: New file from coreutils, required by
67226         stdlib--.h.
67227
67228 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
67229
67230         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
67231
67232 2006-07-20  Bruno Haible  <bruno@clisp.org>
67233
67234         * gnulib-tool: Recognize new option --assume-autoconf.
67235         (autoconf_minversion): New variable.
67236         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
67237
67238 2006-07-20  Bruno Haible  <bruno@clisp.org>
67239
67240         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
67241
67242 2006-07-19  Derek R. Price  <derek@ximbiot.com>
67243
67244         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
67245         Reindent and repaginate.
67246
67247 2006-07-19  Derek Price  <derek@ximbiot.com>
67248
67249         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
67250         Correct grammar.
67251
67252 2006-07-17  Bruno Haible  <bruno@clisp.org>
67253
67254         * modules/list: New file.
67255         * modules/array-list: New file.
67256         * modules/carray-list, modules/carray-list-tests: New files.
67257         * modules/linked-list, modules/linked-list-tests: New files.
67258         * modules/avltree-list, modules/avltree-list-tests: New files.
67259         * modules/rbtree-list, modules/rbtree-list-tests: New files.
67260         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
67261         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
67262         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
67263         * modules/oset: New file.
67264         * modules/array-oset: New file.
67265         * modules/avltree-oset, modules/avltree-oset-tests: New files.
67266         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
67267         * tests/test-carray_list.c: New file.
67268         * tests/test-linked_list.c: New file.
67269         * tests/test-avltree_list.c: New file.
67270         * tests/test-rbtree_list.c: New file.
67271         * tests/test-linkedhash_list.c: New file.
67272         * tests/test-avltreehash_list.c: New file.
67273         * tests/test-rbtreehash_list.c: New file.
67274         * tests/test-avltree_oset.c: New file.
67275         * tests/test-rbtree_oset.c: New file.
67276         * MODULES.html.sh (Container data structures): New section.
67277
67278 2006-07-17  Bruno Haible  <bruno@clisp.org>
67279
67280         * m4/gl_list.m4: New file.
67281
67282 2006-07-17  Bruno Haible  <bruno@clisp.org>
67283
67284         * lib/gl_list.h: New file.
67285         * lib/gl_list.c: New file.
67286         * lib/gl_array_list.h: New file.
67287         * lib/gl_array_list.c: New file.
67288         * lib/gl_carray_list.h: New file.
67289         * lib/gl_carray_list.c: New file.
67290         * lib/gl_linked_list.h: New file.
67291         * lib/gl_linked_list.c: New file.
67292         * lib/gl_anylinked_list1.h: New file.
67293         * lib/gl_anylinked_list2.h: New file.
67294         * lib/gl_avltree_list.h: New file.
67295         * lib/gl_avltree_list.c: New file.
67296         * lib/gl_anyavltree_list1.h: New file.
67297         * lib/gl_anyavltree_list2.h: New file.
67298         * lib/gl_rbtree_list.h: New file.
67299         * lib/gl_rbtree_list.c: New file.
67300         * lib/gl_anyrbtree_list1.h: New file.
67301         * lib/gl_anyrbtree_list2.h: New file.
67302         * lib/gl_anytree_list1.h: New file.
67303         * lib/gl_anytree_list2.h: New file.
67304         * lib/gl_linkedhash_list.h: New file.
67305         * lib/gl_linkedhash_list.c: New file.
67306         * lib/gl_anyhash_list1.h: New file.
67307         * lib/gl_anyhash_list2.h: New file.
67308         * lib/gl_avltreehash_list.h: New file.
67309         * lib/gl_avltreehash_list.c: New file.
67310         * lib/gl_rbtreehash_list.h: New file.
67311         * lib/gl_rbtreehash_list.c: New file.
67312         * lib/gl_anytreehash_list1.h: New file.
67313         * lib/gl_anytreehash_list2.h: New file.
67314
67315         * lib/gl_oset.h: New file.
67316         * lib/gl_oset.c: New file.
67317         * lib/gl_array_oset.h: New file.
67318         * lib/gl_array_oset.c: New file.
67319         * lib/gl_avltree_oset.h: New file.
67320         * lib/gl_avltree_oset.c: New file.
67321         * lib/gl_rbtree_oset.h: New file.
67322         * lib/gl_rbtree_oset.c: New file.
67323         * lib/gl_anytree_oset.h: New file.
67324
67325 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67326
67327         * m4/mkancesdirs.m4: New file.
67328         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
67329         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
67330         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
67331         it.
67332
67333 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67334
67335         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
67336         * lib/mkancesdirs.h: New files.
67337         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
67338         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
67339         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
67340         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
67341         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
67342         callers changed.  Revamp internals significantly, by not
67343         attempting to create directories that are temporarily more
67344         permissive than the final results.  Do not attempt to use
67345         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
67346         This removes some race conditions, fixes some bugs, and simplifies
67347         things.  Use new dirchownmod function to do owner and mode changes.
67348         * lib/mkdir-p.h: Likewise.
67349         * lib/modechange.c (octal_to_mode): New function.
67350         (struct mode_change): New member mentioned.
67351         (make_node_op_equals): New arg mentioned.  All callers changed.
67352         (mode_compile): Keep track of which mode bits the user has explicitly
67353         mentioned.
67354         (mode_adjust): New arg DIR, so that we implement the X op correctly.
67355         New arg PMODE_BITS, to keep track of which mode bits the user
67356         mentioned; it treats S_ISUID and S_ISGID speciall.
67357         All callers changed.
67358         * lib/modechange.h: Likewise.
67359
67360 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67361
67362         * MODULES.html.sh: Add mkancestors.
67363         * modules/mkancesdirs: New module.
67364         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
67365         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
67366         The chdir-safer and afs files are now orphans; I'll remove them
67367         unless someone speaks up.
67368         Add lib/dirchownmod.c, lib/dirchownmod.h.
67369         (Depends-on): Remove alloca, chown, save-cwd, dirname.
67370         Add lchown, mkancesdirs.
67371         (Maintainer): Add self.
67372
67373 2006-07-15  Karl Berry  <karl@gnu.org>
67374
67375         * gnulib-tool: help message wording/arrangement.
67376
67377 2006-07-14  Simon Josefsson  <jas@extundo.com>
67378
67379         * doc/gnulib.texi (Libtool and Windows): New section.
67380
67381 2006-07-12  Simon Josefsson  <jas@extundo.com>
67382
67383         * modules/gendocs (License): Fix license, approved by Karl.
67384
67385 2006-07-12  Eric Blake  <ebb9@byu.net>
67386
67387         * MODULES.html.sh: Add gendocs.
67388
67389 2006-07-11  Eric Blake  <ebb9@byu.net>
67390
67391         * modules/fdl: New module, to install doc/fdl.texi.
67392         * MODULES.html.sh: Add new section for documentation modules.
67393         * gnulib-tool: Avoid space-tab.
67394         (--doc-base): New option, to manage files from doc.
67395
67396 2006-07-11  Eric Blake  <ebb9@byu.net>
67397
67398         * m4/absolute-header.m4: Fix comments to match recent change.
67399
67400 2006-07-11  Eric Blake  <ebb9@byu.net>
67401
67402         * gnulib-tool: List --doc-base before --tests-base.
67403
67404 2006-07-11  Derek R. Price  <derek@ximbiot.com>
67405
67406         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
67407
67408 2006-07-11  Bruno Haible  <bruno@clisp.org>
67409
67410         * README: Mention where to put documentation.
67411
67412 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67413
67414         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
67415
67416 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67417
67418         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
67419         to stdint.m4.
67420
67421 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67422
67423         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
67424         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
67425         "no/such/file/stdint.h" when there is no such file, so that
67426         the resulting C code can be parsed by dodgy compilers.
67427         Problems reported by Bob Proulx.
67428
67429 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67430
67431         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
67432         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67433         macros into the GNU _D_EXACT_NAMLEN.
67434         * lib/savedir.c:  Likewise.
67435         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
67436
67437 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67438         and Paul Eggert  <eggert@cs.ucla.edu>
67439
67440         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
67441         * m4/savedir.m4:
67442         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67443         macros into the GNU _D_EXACT_NAMLEN.
67444
67445 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67446
67447         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
67448         around the absolute name, to work around a problem with the HP-UX
67449         11.23 native C compiler, reported by Bob Proulx.
67450
67451 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67452
67453         * doc/maintain.texi, make-stds.texi: Sync from
67454         <http://savannah.gnu.org/projects/gnustandards>.
67455
67456 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67457
67458         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
67459
67460 2006-07-09  Jim Meyering  <jim@meyering.net>
67461
67462         * m4/glob.m4: Remove a doubled word in a comment.
67463
67464 2006-07-09  Jim Meyering  <jim@meyering.net>
67465
67466         * lib/argp-pv.c: Remove a doubled word in a comment.
67467         * lib/check-version.c (check_version): Likewise.
67468         * lib/javacomp.c (compile_java_class): Likewise.
67469
67470 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67471
67472         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
67473         for the benefit of people using Autoconf 2.60.  If you want to
67474         support older Autoconf versions you can copy m4/onceonly_2_57.m4
67475         (or m4/onceonly.m4, if pre-2.57) manually.
67476
67477 2006-07-08  Jim Meyering  <jim@meyering.net>
67478
67479         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
67480         comment.
67481         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
67482         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
67483         comment.
67484
67485 2006-07-08  Jim Meyering  <jim@meyering.net>
67486
67487         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
67488
67489 2006-07-07  Simon Josefsson  <jas@extundo.com>
67490
67491         * tests/test-crc.c: Change expected crc value, the test vector
67492         were probably computed using the old broken crc.c?
67493
67494 2006-07-06  Simon Josefsson  <jas@extundo.com>
67495
67496         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
67497         now the canonical place for the M4 file).
67498
67499         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
67500         from the sys_socket dependency now.
67501
67502         * modules/inet_pton (Files): Ditto.
67503
67504         * modules/inet_ntop (Files): Ditto.
67505
67506 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67507
67508         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
67509         not gl_PREREQ_GETUSERSHELL.
67510
67511 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67512
67513         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
67514         with only one argument, for Autoconf 2.60.
67515         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
67516         expand to nothing, so add a shell command to avoid syntax error.
67517         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
67518
67519 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67520
67521         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
67522
67523 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67524
67525         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
67526         no longer needed.  Check for isblank decl.
67527         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
67528         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
67529         of existence.
67530
67531 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67532
67533         * lib/getloadavg.c: Use __VMS, not VMS.
67534         * lib/getopt.c: Likewise.
67535         * lib/getpagesize.h: Likewise.
67536         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
67537         and probably does not work.
67538
67539 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67540
67541         * lib/.cppi-disable: Add wcwidth.
67542         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
67543         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
67544         (ISGRAPH): Remove.  All uses changed to isgraph.
67545         (FOLD) [!defined _LIBC]: Remove special case.
67546         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
67547         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
67548         HAVE_ISBLANK.
67549         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
67550         case.
67551
67552 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67553
67554         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
67555         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
67556         brackets.  Other minor changes to suppress some compiler
67557         warnings.
67558
67559 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67560         and Paul Eggert  <eggert@cs.ucla.edu>
67561
67562         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
67563         of invoking obsolescent AC_HEADER_DIRENT macro.
67564         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
67565         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
67566         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
67567         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
67568         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
67569         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67570         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
67571         * m4/readdir.m4: Remove; no longer needed.
67572
67573 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67574         and Paul Eggert  <eggert@cs.ucla.edu>
67575
67576         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
67577         Don't worry about this obsolete case any more.
67578         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
67579         directories.
67580         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
67581         worry about this obsolete case any more.
67582         * lib/fts.c: Likewise.
67583         * lib/getcwd.c: Likewise.
67584         * lib/glob.h: Likewise.
67585         * lib/savedir.c: Likewise.
67586
67587 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67588
67589         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
67590         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
67591         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
67592         needed.
67593         All uses removed.
67594         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67595         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67596         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
67597         needed.
67598         * m4/getdate.m4 (gl_GETDATE): Likewise.
67599         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67600         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67601         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67602         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67603         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67604         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67605         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
67606         needed.
67607
67608 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67609
67610         * lib/memcasecmp.c: Include <limits.h>.
67611         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
67612         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
67613         Don't assume isdigit succeeds only on '0' through '9'.
67614
67615 2006-07-05  Eric Blake  <ebb9@byu.net>
67616
67617         * modules/getaddrinfo (Depends-on): Add snprintf.
67618
67619 2006-07-05  Eric Blake  <ebb9@byu.net>
67620
67621         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
67622         to avoid 'header present but could not be compiled' on cygwin.
67623
67624 2006-07-05  Eric Blake  <ebb9@byu.net>
67625
67626         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
67627         missing from netdb.h.
67628         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
67629
67630 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67631
67632         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
67633         no longer needed.
67634         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
67635         * m4/getdate.m4 (gl_GETDATE): Likewise.
67636         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67637         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67638         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67639         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67640         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67641
67642 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67643
67644         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
67645         All uses of is_space replaced by isspace.
67646         * lib/exit.h: Don't talk about STDC_HEADERS.
67647         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
67648         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
67649         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
67650         replaced by isprint etc.
67651         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
67652         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67653         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
67654         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
67655         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
67656         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67657
67658 2006-07-05  Bruno Haible  <bruno@clisp.org>
67659
67660         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
67661         the function exists, before testing against AIX.
67662         Reported by Martin Lambers <marlam@marlam.de>.
67663
67664 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67665
67666         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
67667         From Mark D. Baushke.
67668
67669 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67670
67671         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
67672         to the absolute name, not just one, to bypass Sun C 5.8's
67673         "warning: #include of /usr/include/... may be non-portable".
67674
67675 2006-07-04  Eric Blake  <ebb9@byu.net>
67676
67677         * modules/dirname-tests: New test module.
67678         * tests/test-dirname.c: New file, replacing dirname.c
67679         TEST_DIRNAME section that was recently deleted.
67680
67681 2006-07-04  Bruno Haible  <bruno@clisp.org>
67682
67683         Assume ANSI C header files and <ctype.h> functions.
67684         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
67685         (mbsnwidth): Use isprint, iscntrl instead.
67686
67687 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67688
67689         Merge from coreutils.
67690         * MODULES.html.sh: Add xstrtold.
67691         * modules/xstrtold: New file.
67692         * modules/cycle-check (Files): Add lib/same-inode.h.
67693         * modules/dirname (Files): Add m4/double-slash-root.m4.
67694         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
67695         * modules/mkdir-p (Files): Add lib/same-inode.h.
67696         * modules/same (Files): Add lib/same-inode.h.
67697
67698 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67699
67700         * m4/absolute-header.m4: Renamed from full-header-path.m4.
67701         This is to keep the terminology clean; POSIX talks about
67702         "absolute pathnames", not "full pathnames", but the GNU
67703         Coding Standards say to use "path" for something else;
67704         so use "absolute" to keep both sides happy.
67705         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
67706         Set gl_absolute_header, not gl_full_header_path.
67707         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
67708         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
67709         All uses changed.
67710
67711         Merge from coreutils.
67712
67713         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67714
67715         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
67716         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
67717         want to require the building of c-strtod.o.
67718         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
67719         needs -lm directly.
67720         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
67721
67722         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67723
67724         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
67725         --as-needed option if available.  Problem reported by Albert Chin in
67726         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
67727         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
67728         cc merely issues a bunch of annoying warnings for --as-needed
67729         (this problem was reported by Bob Proulx).  Also, try linking with
67730         -lm to detect a bug in binutils 2.16 (this problem was reported
67731         by Ralf Wildenhues).
67732
67733         2006-06-18  Jim Meyering  <jim@meyering.net>
67734
67735         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
67736         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
67737         macro.
67738         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
67739         also check for glibc-2.4's abort-inducing bug.
67740
67741         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
67742         Low-probability clean-up should be to use rmdir to get rid of
67743         the just-created directory, not unlink.
67744
67745         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
67746         configure fail, and request a bug report to inform us about it.
67747         Add a comment that, barring reports to the contrary, in 2007 we'll
67748         assume ftruncate is universally available.
67749
67750         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67751
67752         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
67753
67754         2006-03-12  Jim Meyering  <jim@meyering.net>
67755
67756         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
67757         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
67758         * m4/same.m4 (gl_SAME): Likewise.
67759         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
67760
67761         2006-03-11  Eric Blake  <ebb9@byu.net>
67762
67763         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
67764         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
67765         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
67766         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
67767
67768 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67769
67770         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
67771         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
67772         reported by Mark D. Baushke, one in
67773         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
67774
67775         Merge from coreutils.
67776
67777         * lib/.cppi-disable: Add stdint_.h.
67778         * lib/.cvsignore: Add stdint.h.
67779
67780         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67781
67782         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
67783         both double and long double versions.
67784         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
67785         * lib/xstrtold.c: New file.
67786         * lib/xstrtod.h (xstrtold): New decl.
67787
67788         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67789
67790         * lib/filemode.c (setst): Remove.
67791         (strmode): Rewrite to avoid setst.  This makes the code shorter,
67792         (arguably) clearer, and the generated code is a bit smaller on my
67793         Debian GNU/Linux stable x86 host.
67794
67795         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67796
67797         * lib/filemode.c: Include "filemode.h" first, to test the interface.
67798         Assume that filemode.h includes sys/types.h and sys/stat.h.
67799         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
67800         (ftypelet): Reorder to put common cases first, for efficiency.
67801         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
67802         to do 'M'.
67803         (strmode): Renamed from mode_string, and now stores 12 bytes instead
67804         of 10, for compatibility with FreeBSD.  All callers changed.
67805         (filemodestring): Now stores 12 bytes instead of 10, and sets file
67806         types that can't be deduced solely from st_mode.  First arg is now a
67807         const pointer.
67808         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
67809         (strmode): Renamed from mode_string.
67810         (filemodestring): New decl.
67811         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
67812         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
67813         needed.
67814         (S_ISPORT, S_ISWHT): New macros, if not already defined.
67815
67816         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67817
67818         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
67819         fsusage.h now does that.  Include fsusage.h first, to test interface.
67820         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
67821         at most one method (the old code could have generated decls that
67822         didn't conform to C89, not that this was ever exercised).
67823         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
67824
67825         2006-03-19  Jim Meyering  <jim@meyering.net>
67826
67827         Work even in a chroot where d_ino values for entries in "/"
67828         don't match the stat.st_ino values for the same names.
67829         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
67830         number, iterate through all entries again, using lstat instead.
67831         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
67832         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
67833
67834         * lib/getcwd.c (__getcwd): Clarify a comment.
67835         Use memcpy in place of a call to strcpy.
67836
67837         2006-03-12  Jim Meyering  <jim@meyering.net>
67838
67839         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
67840         matches that of the current directory (which we're about to chdir ".."
67841         out of), then save the dev-ino of the parent, instead.
67842
67843         * lib/same-inode.h (SAME_INODE): New file/macro.
67844         * lib/chdir-safer.c (SAME_INODE): Remove definition.
67845         Include "same-inode.h", instead.
67846         * lib/same.c: Likewise.
67847         * lib/cycle-check.h: Include "same-inode.h".
67848         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
67849         * lib/cycle-check.c (SAME_INODE): Remove definition.
67850         * lib/root-dev-ino.h: Include "same-inode.h".
67851
67852         2006-03-11  Eric Blake  <ebb9@byu.net>
67853
67854         * lib/same.c (same_name): s/base_name/last_component/
67855         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
67856         * lib/filenamecat.c (file_name_concat): Likewise.
67857
67858         2006-03-11  Eric Blake  <ebb9@byu.net>,
67859                     Paul Eggert  <eggert@cs.ucla.edu>
67860
67861         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
67862         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
67863         drive prefix.
67864         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
67865         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
67866         (last_component): New method.
67867         * lib/dirname.c (dir_len): Determine when drive letters need a
67868         subsequent slash.  Preserve // when it is special.
67869         (dir_name): Don't append dot when drive letter is absolute.
67870         [TEST_DIRNAME]: Move into a full-blown gnulib test.
67871         * lib/basename.c (base_name): New semantics - malloc the result.
67872         Preserve // when it is special.  Preserve relative files that look
67873         like drive letters.
67874         (base_len): Preserve // when it is special.
67875         (last_component): New method, similar to old base_name semantics.
67876         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
67877         base_name.  Strip redundant slashes from ///.
67878
67879 2006-07-03  Jim Meyering  <jim@meyering.net>
67880
67881         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
67882         macro is used before the first cycle_check call.
67883
67884 2006-07-03  Eric Blake  <ebb9@byu.net>
67885
67886         * modules/dirname (Depends-on): Add xstrndup.
67887
67888 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67889
67890         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
67891         test cases, so that config.log is a bit easier to follow.
67892
67893 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67894
67895         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
67896         both are 64 bits, since this seems to be the tradition, and this
67897         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
67898         we ever run into a host that prefers long long to long in this
67899         case, we'll need another configure-time test.  Problem reported by
67900         Jim Meyering.
67901
67902 2006-07-02  Eric Blake  <ebb9@byu.net>
67903
67904         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
67905
67906 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67907
67908         * modules/inttypes (Depends-on): No longer depends on stdint.
67909         * modules/stdint (Description): Say more about assumptions.
67910         Say that the fast types might differ.  Say macros are used.
67911         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
67912         (Makefile.am): Revise list of substituted symbols to match
67913         new stdint.m4.
67914         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
67915         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
67916         * tests/test-stdint.c (verify_same_types)
67917         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
67918         the code conforms to C99/C89.
67919         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
67920         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
67921
67922 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67923
67924         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
67925         but fix a bug, by requiring at least 64 bits.
67926         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
67927         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
67928         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
67929         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67930
67931         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
67932         changes.  Make 2.59 a prerequisite.  Check and substitute for
67933         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
67934         inttypes.h.  Do not use special include files; just use the
67935         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
67936         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
67937         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
67938         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
67939         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
67940         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
67941         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
67942         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
67943         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
67944         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
67945         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
67946         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
67947         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
67948         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
67949         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
67950         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
67951         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
67952         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
67953         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
67954         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
67955         WINT_MAX.  Check for C99 conformance more strictly, by detecting
67956         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
67957         not check for things that C99 does not require, e.g., int8_t.  If
67958         a test isn't needed unless <stdint.h> isn't working, and is
67959         unlikely to be needed for any other reason, then don't do it
67960         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
67961         size_t, since we assume C89 freestanding at least.  Do not check
67962         for sig_atomic_t, wchar_t, or wint_t, since the code now does
67963         the right thing even if the types are not defined.  Instead use:
67964         (gl_STDINT_TYPE_PROPERTIES): New macro.
67965         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
67966         testing whether <sys/types.h> clashes, as Autoconf does this for
67967         us now.  All uses removed.
67968         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
67969         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
67970         (gl_CHECK_TYPE_SAME):
67971         Remove; no longer needed.
67972         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
67973         exists, since we'll return 0 anyway in that case.
67974         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
67975
67976 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67977
67978         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
67979         possible collision with system files.
67980         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
67981         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
67982         WCHAR_MIN and WCHAR_MAX in this case.
67983         (<stddef.h>): Do not include; no longer needed.
67984         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
67985         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
67986         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
67987         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
67988         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
67989         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
67990         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
67991         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
67992         !defined(__c99))]: Include in this case too, since it's harmless
67993         now.
67994         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
67995         dangerous to do so.
67996         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
67997         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
67998         (_STDINT_MIN, _STDINT_MAX): New macros.
67999         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
68000         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
68001         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
68002         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
68003         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
68004         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
68005         macros, not typedefs; this simplifies things quite a bit.
68006         Use long int for all types narrower than int64_t.
68007         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
68008         Define in terms of long long int or int64_t or long int,
68009         not int64_t or int32_t.  This saves some compile-time testing.
68010         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
68011         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
68012         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
68013         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
68014         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
68015         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
68016         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
68017         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
68018         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
68019         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
68020         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
68021         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
68022         undef any previous version and define our own version, for
68023         simplicity and consistency with the new macros for types.
68024         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
68025         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
68026         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
68027         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
68028         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
68029         @WINT_T_SUFFIX@ to keep things simple here.
68030         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
68031         Simplify by assuming typical 8/16/32/64 host, since we're
68032         already doing that elsewhere anyway.
68033         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
68034         and assume long long int is 64 bits if available.  This
68035         speeds up 'configure'.
68036
68037 2006-07-01  Eric Blake  <ebb9@byu.net>
68038
68039         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
68040         Reported by Andreas Buening.
68041
68042 2006-07-01  Eric Blake  <ebb9@byu.net>
68043
68044         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
68045
68046 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
68047
68048         * lib/getaddrinfo.c: fixed typo
68049
68050 2006-06-29  Jim Meyering  <jim@meyering.net>
68051
68052         * modules/strftime (Maintainer): Add my name, since with the
68053         FPRINTFTIME changes strftime.c has forked from glibc.
68054
68055 2006-06-29  Eric Blake  <ebb9@byu.net>
68056
68057         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
68058
68059 2006-06-29  Eric Blake  <ebb9@byu.net>
68060
68061         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
68062
68063 2006-06-29  Eric Blake  <ebb9@byu.net>
68064
68065         * lib/stat_.h: New file.
68066
68067 2006-06-29  Eric Blake  <ebb9@byu.net>
68068
68069         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
68070         unused static function.
68071
68072 2006-06-29  Eric Blake  <ebb9@byu.net>
68073
68074         * doc/functions.texi (Function Portability): Document missing lstat
68075         on mingw.
68076
68077 2006-06-29  Eric Blake  <ebb9@byu.net>
68078
68079         * MODULES.html.sh: Add sys_stat.
68080         * modules/sys_stat: New module.
68081         * modules/mkstemp (Depends-on): Add sys_stat.
68082
68083 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68084
68085         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
68086
68087 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68088
68089         * m4/c-bs-a.m4: Removed.
68090
68091 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68092
68093         * lib/strftime.c: Assume strftime() exists.
68094
68095 2006-06-29  Derek Price  <derek@ximbiot.com>
68096
68097         * modules/c-bs-a: Removed - \a is C89.
68098         * MODULES.html.sh: Remove c-bs-a.
68099
68100 2006-06-29  Bruno Haible  <bruno@clisp.org>
68101
68102         * modules/wcwidth (License): Change to LGPL.
68103
68104 2006-06-28  Simon Josefsson  <jas@extundo.com>
68105
68106         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
68107         on _WIN32.
68108
68109         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
68110         getnameinfo.
68111
68112 2006-06-28  Simon Josefsson  <jas@extundo.com>
68113
68114         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
68115
68116 2006-06-28  Simon Josefsson  <jas@extundo.com>
68117
68118         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
68119         functions there.  It will succeed on Windows XP, but on Windows
68120         2000 and (presumably) earlier, it will fail, and use the internal
68121         re-implementation.
68122         (use_win32_p): New function.
68123         (getaddrinfo): Use strtoul on servname, to support numeric ports.
68124         Support AI_NUMERICSERV to disable getservbyname.
68125         (getnameinfo): New function, only supports
68126         NI_NUMERICHOST|NI_NUMERICSERV for now.
68127
68128         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
68129         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
68130         getnameinfo.
68131
68132 2006-06-28  Eric Blake  <ebb9@byu.net>
68133
68134         * modules/wcwidth: New file.
68135         * modules/mbchar (Depends-on): Add wcwidth.
68136         * modules/mbswidth (Depends-on): Add wcwidth.
68137         * MODULES.html.sh: Add wcwidth.
68138
68139 2006-06-28  Eric Blake  <ebb9@byu.net>
68140
68141         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
68142         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
68143
68144 2006-06-28  Eric Blake  <ebb9@byu.net>
68145
68146         * lib/xvasprintf.h: Fix comments.
68147
68148 2006-06-28  Eric Blake  <ebb9@byu.net>
68149
68150         * lib/mbchar.h (wcwidth): Include wcwidth.h.
68151         * lib/mbswidth.c (wcwidth): Move from here...
68152         * lib/wcwidth.h: ...to this new file.
68153
68154 2006-06-28  Derek R. Price  <derek@ximbiot.com>
68155
68156         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
68157
68158         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
68159         it's obsolete.
68160         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
68161
68162 2006-06-28  Derek R. Price  <derek@ximbiot.com>
68163
68164         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
68165         Autoconf 2.60 says this stuff was obsolete.
68166
68167 2006-06-28  Bruno Haible  <bruno@clisp.org>
68168
68169         * modules/wcwidth (Files): Add m4/wchar_t.m4.
68170
68171 2006-06-28  Bruno Haible  <bruno@clisp.org>
68172
68173         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
68174         gt_TYPE_WCHAR_T.
68175
68176 2006-06-28  Bruno Haible  <bruno@clisp.org>
68177
68178         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
68179         declaration for wcwidth.
68180         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
68181
68182 2006-06-28  Bruno Haible  <bruno@clisp.org>
68183
68184         * lib/mkdtemp.c [MINGW]: Include <io.h>.
68185         (mkdir): Define using _mkdir.
68186
68187 2006-06-28  Bruno Haible  <bruno@clisp.org>
68188
68189         * lib/getaddrinfo.h: Fix POSIX URL.
68190         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
68191         _WIN32.
68192         (use_win32_p): Make static.
68193         (getaddrinfo): Reject service name if it is empty or does not consist
68194         solely of decimal digits, or if its value is > 65535.
68195         (getnameinfo): Remove useless casts.
68196
68197 2006-06-27  Simon Josefsson  <jas@extundo.com>
68198
68199         * modules/sys_select: New file, suggested by Bruno Haible, Paul
68200         Eggert and Martin Lambers.
68201
68202 2006-06-27  Simon Josefsson  <jas@extundo.com>
68203
68204         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
68205         Eggert and Martin Lambers.
68206
68207 2006-06-27  Bruno Haible  <bruno@clisp.org>
68208
68209         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
68210         result to 0, not to empty.
68211         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
68212
68213 2006-06-27  Bruno Haible  <bruno@clisp.org>
68214
68215         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
68216
68217 2006-06-26  Simon Josefsson  <jas@extundo.com>
68218
68219         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
68220         present.
68221
68222 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
68223
68224         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
68225         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
68226         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
68227
68228 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
68229
68230         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
68231
68232 2006-06-26  Bruno Haible  <bruno@clisp.org>
68233
68234         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
68235
68236 2006-06-26  Bruno Haible  <bruno@clisp.org>
68237
68238         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
68239
68240 2006-06-26  Bruno Haible  <bruno@clisp.org>
68241
68242         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
68243         SGI C compiler in pre-C99 mode.
68244         Suggested by Mark D. Baushke and Larry Jones.
68245
68246 2006-06-26  Bruno Haible  <bruno@clisp.org>
68247
68248         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
68249         WCHAR_MAX.
68250         Reported by Mark D. Baushke and Larry Jones.
68251
68252 2006-06-26  Bruno Haible  <bruno@clisp.org>
68253
68254         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
68255         in pre-C99 mode.
68256         Suggested by Mark D. Baushke and Larry Jones.
68257
68258 2006-06-23  Simon Josefsson  <jas@extundo.com>
68259             Bruno Haible  <bruno@clisp.org>
68260
68261         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
68262         Emit mostlyclean-local rule.
68263         (func_emit_tests_Makefile_am): Likewise.
68264         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
68265
68266 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
68267
68268         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
68269
68270 2006-06-23  Bruno Haible  <bruno@clisp.org>
68271
68272         * tests/test-stdint.c: Update to match ISO C 99 Technical
68273         Corrigendum 1.
68274
68275 2006-06-23  Bruno Haible  <bruno@clisp.org>
68276
68277         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
68278
68279 2006-06-23  Bruno Haible  <bruno@clisp.org>
68280
68281         * lib/stdint_.h: Treat IRIX like OpenBSD.
68282
68283 2006-06-23  Bruno Haible  <bruno@clisp.org>
68284
68285         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
68286         ISO C 99 Technical Corrigendum 1.
68287
68288 2006-06-22  Simon Josefsson  <jas@extundo.com>
68289
68290         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
68291         MinGW.
68292
68293 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68294
68295         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
68296         needed.  Some compiler complained about some of them.  Problem reported
68297         by Larry Jones in
68298         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
68299
68300 2006-06-21  Simon Josefsson  <jas@extundo.com>
68301
68302         * tests/test-getaddrinfo.c: New file.
68303
68304         * modules/getaddrinfo-tests: New file.
68305
68306         * MODULES.html.sh: Add inet_pton.
68307
68308         * modules/inet_pton: New file.
68309
68310 2006-06-21  Simon Josefsson  <jas@extundo.com>
68311
68312         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
68313         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
68314         of using the (limited) gnulib implementation on Windows XP.
68315
68316         * m4/inet_pton.m4: New file.
68317
68318 2006-06-21  Simon Josefsson  <jas@extundo.com>
68319
68320         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
68321         variable.
68322
68323         * lib/socket_.h: Don't define WINVER.
68324
68325         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
68326         slightly modified to work in gnulib.
68327
68328 2006-06-21  Simon Josefsson  <jas@extundo.com>
68329
68330         * doc/gnulib.texi (Windows sockets): Add.
68331
68332 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68333
68334         * lib/read-file.c (fread_file): Start with buffer allocation of
68335         0 bytes rather than 1 byte; this simplifies the code.
68336         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
68337         code to free buffer and save/restore errno.
68338         (internal_read_file): Remove unused local.
68339
68340 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68341
68342         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
68343         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
68344         Problem reported by Denis Excoffier in
68345         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
68346
68347 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68348
68349         * modules/sys_socket, modules/socklen: Include sys/types since
68350         FreeBSD 4.x's sys/socket.h needs it.
68351
68352 2006-06-19  Simon Josefsson  <jas@extundo.com>
68353
68354         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
68355
68356 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
68357
68358         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
68359
68360 2006-06-19  Bruno Haible  <bruno@clisp.org>
68361
68362         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
68363         and FULL_PATH_INTTYPES_H in angle brackets.
68364         Reported by Mark D. Baushke <mdb@gnu.org>.
68365
68366 2006-06-17  Eric Blake  <ebb9@byu.net>
68367
68368         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
68369         errno.
68370
68371 2006-06-17  Bruno Haible  <bruno@clisp.org>
68372
68373         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
68374         <sys/inttypes.h>.
68375
68376 2006-06-17  Bruno Haible  <bruno@clisp.org>
68377
68378         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
68379         whether errno is declared. Assume <errno.h> declares errno.
68380
68381 2006-06-17  Bruno Haible  <bruno@clisp.org>
68382
68383         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
68384
68385 2006-06-17  Bruno Haible  <bruno@clisp.org>
68386
68387         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
68388         problem on Solaris 2.5.1.
68389
68390 2006-06-16  Eric Blake  <ebb9@byu.net>
68391
68392         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
68393         * lib/unicodeio.c [!defined errno]: Likewise.
68394         * lib/strtol.c [!defined errno]: Likewise.
68395         * lib/strtod.c [!defined errno]: Likewise.
68396
68397 2006-06-15  Eric Blake  <ebb9@byu.net>
68398
68399         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
68400
68401 2006-06-15  Eric Blake  <ebb9@byu.net>
68402
68403         * config/srclist.txt (ssize_t.m4): Lose sync.
68404
68405 2006-06-15  Bruno Haible  <bruno@clisp.org>
68406
68407         * modules/stdint (Files): Include m4/full-header-path.m4,
68408         m4/size_max.m4, m4/wchar_t.m4.
68409         (Makefile.am): Many more substitutions.
68410         * modules/stdint-tests: New file.
68411         * tests/test-stdint.c: New file.
68412
68413 2006-06-15  Bruno Haible  <bruno@clisp.org>
68414
68415         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
68416         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
68417         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
68418         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
68419         gl_CHECK_TYPE_SAME): New macros.
68420
68421 2006-06-15  Bruno Haible  <bruno@clisp.org>
68422
68423         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
68424
68425 2006-06-15  Bruno Haible  <bruno@clisp.org>
68426
68427         * lib/stdint_.h: Rewritten to be fully auto-configured.
68428         Fixes bug on HP-UX/IA64.
68429
68430 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
68431
68432         * lib/getdate.y (__attribute__): Don't define if already defined.
68433         Problem reported by Larry Jones.
68434         * lib/utimens.c (__attribute__): Likewise.
68435
68436 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
68437
68438         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
68439         reported by Andreas Schwab.
68440
68441 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68442             Bruno Haible  <bruno@clisp.org>
68443
68444         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
68445         check for the declaration of strnlen and a run test that exposes the
68446         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
68447         rpl_strndup.
68448
68449 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68450             Bruno Haible  <bruno@clisp.org>
68451
68452         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
68453
68454 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68455
68456         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
68457         compile test, for Tru64 4.0D.
68458
68459 2006-05-28  Karl Berry  <karl@gnu.org>
68460
68461         * config/srclist.txt (printf-args.c): lose sync.
68462
68463 2006-05-26  Martin Lambers  <marlam@marlam.de>
68464
68465         * lib/getpass.c: Updates the test for the native W32 API, and adds
68466         missing includes, thus fixing compilation warnings.
68467
68468 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68469
68470         * lib/exclude.c (exclude_fnmatch): New function.
68471         (excluded_file_name): Call exclude_fnmatch.
68472         * lib/exclude.h (excluded_file_name): New prototype
68473
68474 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
68475
68476         * lib/tempname.c (small_open, large_open): New macros.
68477         (__open, __open64) [!_LIBC]: Remove.
68478         (__gen_tempname): Use small_open and large_open instead of __open
68479         and __open64.  This fixes a portability bug on HP-UX 11.11i
68480         reported by Simon Wing-Tang in
68481         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
68482
68483 2006-05-24  Bruno Haible  <bruno@clisp.org>
68484
68485         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
68486         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
68487         Reported by Thorsten Maerz <torte@netztorte.de> via
68488         Aaron Stone <aaron@serendipity.cx>.
68489
68490 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68491
68492         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
68493         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
68494         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
68495         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
68496         not really conditional on the cache.
68497         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
68498
68499 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68500
68501         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
68502         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
68503         (my_usleep): Don't mishandle maximum value.
68504
68505 2006-05-19  Jim Meyering  <jim@meyering.net>
68506
68507         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
68508
68509 2006-05-17  Bruno Haible  <bruno@clisp.org>
68510
68511         Cygwin portability.
68512         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
68513
68514 2006-05-17  Bruno Haible  <bruno@clisp.org>
68515
68516         * lib/stdint_.h: Fix recognition of Cygwin.
68517
68518 2006-05-15  Bruno Haible  <bruno@clisp.org>
68519
68520         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
68521         on libtool patch by Ralf Wildenhues.
68522
68523 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68524
68525         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
68526         test for C99 conformance; (bool) 0.5 is an integer constant
68527         expression, but (bool) -0.5 is not.  Problem reported by Fedor
68528         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
68529
68530 2006-05-11  Simon Josefsson  <jas@extundo.com>
68531
68532         * m4/xvasprintf.m4: Fix obvious typo.
68533
68534 2006-05-11  Jim Meyering  <jim@meyering.net>
68535
68536         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
68537         James Lemley.
68538
68539 2006-05-10  Simon Josefsson  <jas@extundo.com>
68540
68541         * lib/md4.c: Typo fix, update copyright years.
68542         (K1, K2): Don't use L because it turn computations into 64-bit on
68543         64-bit platforms.
68544
68545 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
68546
68547         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
68548         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
68549         unwanted sign propagation, e.g., on hosts with 64-bit int.
68550         There still are some problems with reeelly weird theoretical hosts
68551         (e.g., 33-bit int) but it's not worth worrying about now.
68552         * lib/sha1.c (rol): Likewise.
68553         (K1, K2, K3, K4): Remove unnecessary L suffix.
68554
68555 2006-05-10  Bruno Haible  <bruno@clisp.org>
68556
68557         * lib/des.c: Cast to avoid warnings.
68558
68559 2006-05-09  Bruno Haible  <bruno@clisp.org>
68560
68561         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
68562         (Depends-on): Depend also on xsize, stdarg.
68563         (configure.ac): Add gl_XVASPRINTF.
68564
68565 2006-05-09  Bruno Haible  <bruno@clisp.org>
68566
68567         * m4/xvasprintf.m4: New file.
68568
68569 2006-05-09  Bruno Haible  <bruno@clisp.org>
68570
68571         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
68572         (EOVERFLOW): Define fallback value.
68573         (xstrcat): New function.
68574         (xvasprintf): Recognize the special case of a string concatenation.
68575
68576 2006-05-08  Eric Blake  <ebb9@byu.net>
68577
68578         * gnulib-tool (func_version): Base copyright year on CVS date.
68579         (func_emit_copyright_notice): New function.
68580         (func_emit_lib_Makefile_am): Use it.
68581         (func_emit_tests_Makefile_am): Likewise.
68582         (func_import): Likewise.
68583
68584 2006-05-08  Bruno Haible  <bruno@clisp.org>
68585
68586         * modules/stdarg: New file.
68587         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
68588
68589 2006-05-08  Bruno Haible  <bruno@clisp.org>
68590
68591         * m4/stdarg.m4: New file, from GNU gettext.
68592
68593 2006-05-08  Bruno Haible  <bruno@clisp.org>
68594
68595         * config/srclist.txt (build-aux/config.rpath): different from latest
68596         release.
68597
68598 2006-05-08  Bruno Haible  <bruno@clisp.org>
68599
68600         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
68601
68602 2006-05-05  Jim Meyering  <jim@meyering.net>
68603
68604         * m4/warning.m4: New file, derived from bison's file by the same name.
68605
68606 2006-05-03  Bruno Haible  <bruno@clisp.org>
68607
68608         * lib/stdint_.h: Shorter URL.
68609         * lib/inttypes.h: Likewise.
68610
68611 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68612
68613         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
68614
68615 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68616
68617         * lib/verify.h: Document the internals better.  Most of this change
68618         was written by Bruno Haible.
68619
68620 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68621
68622         * doc/verify.texi: New file, partly based on a proposal by
68623         Bruno Haible.
68624
68625 2006-05-02  Bruno Haible  <bruno@clisp.org>
68626
68627         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
68628         test from here...
68629         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
68630
68631 2006-04-29  Bruno Haible  <bruno@clisp.org>
68632
68633         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
68634         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
68635
68636 2006-04-29  Bruno Haible  <bruno@clisp.org>
68637
68638         * gnulib-tool: Make --update option actually work.
68639
68640 2006-04-29  Bruno Haible  <bruno@clisp.org>
68641
68642         * doc/gcd.texi: New file.
68643         * doc/gnulib.texi: Include it.
68644
68645 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
68646
68647         * lib/getdate.y (get_date): When adding relative date, start with the
68648         initial time, not with the result of the first mktime call.
68649
68650 2006-04-25  Bruno Haible  <bruno@clisp.org>
68651
68652         * gnulib-tool (func_import): Output the include directives in three
68653         blocks, sorted separately.
68654         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68655
68656 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68657
68658         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
68659         to define main with arguments, for C++.  Reported by Eric Blake.
68660         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
68661         Prefer 'int main ()' to 'int main (void)', for C++.
68662         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
68663         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
68664         for 'main', for C99 and C++.
68665
68666 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68667
68668         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
68669         Don't assume that exit status -1 is valid.
68670         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68671         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
68672         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
68673         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
68674         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
68675         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
68676         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
68677         functions can be used without declaring them, or that you can
68678         exit with status -1.
68679         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
68680
68681 2006-04-24  Karl Berry  <karl@gnu.org>
68682
68683         * config/srclist.txt (longdouble.m4): sync lost.
68684
68685 2006-04-24  Eric Blake  <ebb9@byu.net>
68686
68687         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
68688
68689 2006-04-24  Bruno Haible  <bruno@clisp.org>
68690
68691         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
68692         poll() implementation in AIX.
68693         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68694
68695 2006-04-24  Bruno Haible  <bruno@clisp.org>
68696
68697         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
68698         assigned exactly once.
68699
68700 2006-04-23  Claudio Fontana  <claudio@gnu.org>
68701             Bruno Haible  <bruno@clisp.org>
68702
68703         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
68704         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
68705         for AM_CPPFLAGS.
68706
68707 2006-04-23  Bruno Haible  <bruno@clisp.org>
68708
68709         * modules/copy-file: Depend on unistd.
68710         * modules/execute: Likewise.
68711         * modules/fatal-signal: Likewise.
68712         * modules/findprog: Likewise.
68713         * modules/mkdtemp : Likewise.
68714         * modules/pipe: Likewise.
68715         * modules/wait-process: Likewise.
68716
68717 2006-04-23  Bruno Haible  <bruno@clisp.org>
68718
68719         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
68720         condition was already detected.
68721         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68722
68723 2006-04-23  Bruno Haible  <bruno@clisp.org>
68724
68725         * lib/copy-file.c: Include <unistd.h> unconditionally.
68726         * lib/execute.c: Likewise.
68727         * lib/fatal-signal.c: Likewise.
68728         * lib/findprog.c: Likewise.
68729         * lib/mkdtemp.c: Likewise.
68730         * lib/pipe.h: Likewise.
68731         * lib/pipe.c: Likewise.
68732         * lib/wait-process.h: Likewise.
68733
68734 2006-04-23  Bruno Haible  <bruno@clisp.org>
68735
68736         * gnulib-tool (func_usage): Fix --import description. Document
68737         --update.
68738         (func_import): Create temporary file in a temporary directory, if
68739         --dry-run is specified. Silence errors from 'grep' when there are no
68740         m4 files in $m4dir.
68741         (func_create_testdir): Silence errors from 'grep' when there are no
68742         m4 files in $m4dir.
68743         Reported by Karl Berry <karl@freefriends.org>.
68744
68745 2006-04-20  Bruno Haible  <bruno@clisp.org>
68746
68747         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
68748         one argument, so that the code will be portable to Autoconf 2.60.
68749         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
68750         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
68751         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
68752
68753 2006-04-19  Derek Price  <derek@ximbiot.com>
68754             Eric Blake  <ebb9@byu.net>
68755
68756         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
68757         rather than "/full/path.h".  Update comment to match.  Shorten &
68758         generalize m4_translit call via AS_TR_CPP.
68759
68760 2006-04-19  Derek Price  <derek@ximbiot.com>
68761             Eric Blake  <ebb9@byu.net>
68762
68763         * lib/inttypes.h: Correct grammar in comment.
68764
68765 2006-04-18  Derek Price  <derek@ximbiot.com>
68766             Paul Eggert  <eggert@cs.ucla.edu>
68767
68768         * modules/inttypes: New file.
68769         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
68770
68771 2006-04-18  Derek Price  <derek@ximbiot.com>
68772             Paul Eggert  <eggert@cs.ucla.edu>
68773
68774         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
68775         New files.
68776
68777 2006-04-18  Derek Price  <derek@ximbiot.com>
68778             Paul Eggert  <eggert@cs.ucla.edu>
68779
68780         * lib/inttypes.h: New file.
68781         * lib/strtoimax.c: Assume <inttypes.h>.
68782
68783 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
68784
68785         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
68786         isn't mounted.  Problem reported by Kir Kolyshkin.
68787
68788 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68789
68790         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
68791         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
68792         Derek R. Price.
68793         * lib/regex.h (RE_DUP_MAX): Update comment to match current
68794         implementation.
68795
68796 2006-04-12  Eric Blake  <ebb9@byu.net>
68797
68798         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
68799         is now done automatically by the corresponding Autoconf macro.
68800
68801 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
68802
68803         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
68804         time_r.h.
68805
68806 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68807
68808         Merge regex changes from libc, removing some of our
68809         POSIX-conformance changes that were rejected and redoing them in a
68810         less-intrusive way.
68811
68812         * lib/regcomp.c (re_compile_internal, init_dfa):
68813         Length arg is now size_t, not Idx.  All uses changed.
68814         (peek_token): Forward decl now says internal_function.
68815         (__re_error_msgid, __re_error_msgid_idx):
68816         Now static rather than extern with attribute_hidden.
68817         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
68818         For some reason libc prefers K&R style defns for external functions.
68819         (regerror) [!defined _LIBC]: Likewise.
68820         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
68821         (seek_collating_symbol_entry, lookup_collation_sequence_value):
68822         (build_range_exp, build_collating_symbol):
68823         Use K&R-style defn.
68824         (re_compile_fastmap): Use '\0' to memset, not 0.
68825         (utf8_sb_map): Make the calculations more obvious.
68826         (init_dfa, parse_bracket_exp, build_charclass_op):
68827         Call calloc and cast result, as glibc does.
68828         (init_word_char, fetch_token, peek_token, peek_token_bracket):
68829         (build_range_exp, build_collating_symbol):
68830         Now internal functions.
68831
68832         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
68833
68834         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
68835         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
68836         Don't depend on VMS; depend on __VMS instead, for POSIX
68837         namespace cleanness.
68838         (regoff_t): Define to ssize_t, not long int.
68839
68840         Remove the REG_ macros named below.  Instead, make the old names
68841         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
68842         __USE_GNU_REGEX.
68843         (REG_BACKSLASH_ESCAPE_IN_LISTS):
68844         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
68845         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
68846         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
68847         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
68848         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
68849         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
68850         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
68851         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
68852         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
68853         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
68854         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
68855         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
68856         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
68857         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
68858         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
68859         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
68860         (REG_NREGS):
68861         Remove.  All uses replaced by the old RE_* names.
68862         (RE_BACKSLASH_ESCAPE_IN_LISTS):
68863         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
68864         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
68865         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
68866         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
68867         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
68868         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
68869         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
68870         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
68871         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
68872         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
68873         Don't bother having these macros be independent of each others'
68874         values, since they no longer exist in the POSIX name space.
68875
68876         Rename the following member names back to their old names,
68877         unless !__USE_GNU_REGEX.  All uses changed back.
68878         (buffer): Renamed from re_buffer.
68879         (allocated): Renamed from re_allocated.
68880         (used): Renamed from re_used.
68881         (syntax): Renamed from re_syntax.
68882         (fastmap): Renamed from re_fastmap.
68883         (translate): Renamed from re_translate.
68884         (can_be_null): Renamed from re_can_be_null.
68885         (regs_allocated): Renamed from re_regs_allocated.
68886         (fastmap_accurate): Renamed from re_fastmap_accurate.
68887         (no_sub): Renamed from re_no_sub.
68888         (not_bol): Renamed from re_not_bol.
68889         (not_eol): Renamed from re_not_eol.
68890         (newline_anchor): Renamed from re_newline_anchor.
68891         (num_regs): Renamed from rm_num_regs.
68892         (start): Renamed from rm_start.
68893         (end): Renamed from rm_end.
68894
68895         (free_state): Move up a bit.
68896
68897         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
68898         #define to be empty.
68899         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
68900         when that is what is intended.
68901         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
68902         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
68903         (MAX): New macro.
68904         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
68905         All uses changed back to re_malloc, etc.  It's now the caller's
68906         responsibility to check for overflow; all callers changed.
68907         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
68908         (re_x2nrealloc): Remove.
68909         (free_state): Remove decl.
68910
68911         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
68912         (re_set_registers, re_exec):
68913         Use K&R-style defn.
68914
68915         2006-01-31  Roland McGrath  <roland@redhat.com>
68916
68917         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
68918         Reported by Mike Frysinger <vapier@gentoo.org>.
68919
68920         2006-01-15  Andreas Jaeger  <aj@suse.de>
68921
68922         [BZ #1950]
68923         * lib/regex_internal.c (re_string_reconstruct): Adjust for
68924         build_wcs_upper_buffer change.
68925         (build_wcs_upper_buffer): Change return type.
68926
68927         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
68928
68929         * lib/regex_internal.h: Include <stdint.h> if available.
68930
68931         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
68932
68933         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
68934
68935         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68936
68937         * lib/regcomp.c: Adjust for changed secondary hash function.
68938
68939         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
68940
68941         * lib/regex.h: Pretty printing.
68942         Clean up namespace a bit.
68943
68944         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
68945
68946         * lib/regexec.c (update_cur_sifted_state, check_arrival,
68947         check_arrival_add_next_nodes): Avoid using uninitialized variable.
68948
68949         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68950                     Ulrich Drepper  <drepper@redhat.com>
68951
68952         [BZ #1302]
68953         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
68954         changed.
68955         (bitset_word_t): Renamed from bitset_word.  All uses changed.
68956
68957         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
68958
68959         [BZ #281]
68960         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
68961         * lib/regcomp.c: Remove unnecessary uses of
68962         unsigned RE_TRANSLATE_TYPE.
68963         * lib/regex_internal.h: Likewise.
68964         * lib/regex_internal.c: Likewise.
68965         * lib/regexec.c: Likewise.
68966         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
68967
68968         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
68969
68970         * lib/regexec.c (find_recover_state): Remove unnecessary
68971         initialization.
68972         (transit_state_bkref): Make DFA a const pointer.
68973         (get_subexp): Likewise.
68974         (check_arrival): Likewise.
68975         (update_cur_sifted_state): Likewise.
68976         (re_search_internal): Likewise.
68977         (prune_impossible_nodes): Likewise.
68978         (acquire_init_state_context): Likewise.
68979         (proceed_next_node): Likewise.
68980         (set_regs): Likewise.
68981         (free_fail_stack_return): Likewise.
68982         (check_arrival_expand_ecl): Mark DFA parameter as const.
68983         (check_arrival_expand_ecl_sub): Likewise.
68984         (check_subexp_limits): Likewise.
68985         (sub_epsilon_src_nodes):  Likewise.
68986         (add_epsilon_src_nodes):  Likewise.
68987         (merge_state_array): Likewise.
68988         (update_regs): Likewise.
68989         (build_trtable): Likewise.
68990         (sift_states_backward): Mark MCTX parameter as const.
68991         (build_sifted_states): Likewise.
68992         (update_cur_sifted_state): Likewise.
68993         (sift_states_mkref): Likewise.
68994         (check_arrival_expand_ecl): Mark eclosure as const.
68995         (check_dst_limits_calc_pos_1): Likewise.
68996         * lib/regex_internal.h (re_match_context_t): Make dfa a const
68997         pointer.
68998
68999         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
69000
69001         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
69002         (transit_state_sb): Likewise.
69003         (transit_state_mb): Likewise.
69004         (sift_states_iter_mb): Likewise.
69005         (check_arrival_add_next_nodes): Likewise.
69006         (check_node_accept_bytes): Change first parameter to pointer-to-const.
69007         [_LIBC] (re_search_2_stub): Use mempcpy.
69008
69009         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
69010         mbrtowc for very simple UTF-8 case.
69011
69012         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
69013         a pointer-to-const.
69014         (re_acquire_state_context): Likewise.
69015         * lib/regex_internal.h: Adjust prototypes.
69016
69017         * lib/regex.c: Prevent using C++ compilers.
69018
69019         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
69020         (re_acquire_state_context): Likewise.
69021
69022 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69023
69024         * modules/regex (Depends-on): Add ssize_t.
69025
69026 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69027
69028         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
69029         translation table.
69030
69031 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69032
69033         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
69034
69035 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
69036             Bruno Haible  <bruno@clisp.org>
69037
69038         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
69039         <sys/types.h> and <inttypes.h>.
69040
69041 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69042
69043         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
69044         `__error_t_defined', so argp.h will not typedef the former.
69045
69046 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
69047
69048         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
69049         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
69050         glibc names.  Even if glibc is changed to conform to POSIX, the
69051         traditional names will be available anyway, since regex depends on
69052         the extensions module.  Also, fix a longstanding typo in the
69053         implementation of Spencer ERE test #75 from grep 2.3.  Problems
69054         reported by Emanuele Giaquinta.  Also, change sense of cached
69055         variable, so that the message makes sense.
69056
69057 2006-03-24  Simon Josefsson  <jas@extundo.com>
69058
69059         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
69060         including some doc fixes.
69061         (base64_encode_alloc): Fix +1 bug on allocation failures.
69062
69063 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69064
69065         * lib/base64.c (base64_encode): Do not read past end of array with
69066         unsanitized input on systems with CHAR_BIT > 8.
69067
69068 2006-03-24  Eric Blake  <ebb9@byu.net>
69069
69070         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
69071
69072 2006-03-22  Karl Berry  <karl@gnu.org>
69073
69074         * config/srclist.txt (*setenv.[ch]): get from coreutils.
69075         * config/srclistvars.sh (COREUTILS): new var.
69076
69077 2006-03-17  Jim Meyering  <jim@meyering.net>
69078
69079         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
69080         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
69081
69082 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
69083
69084         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
69085         no longer needs it.  Instead, check that regoff_t is as least
69086         as wide as ptrdiff_t.
69087
69088         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
69089         so that our regex.h stays compatible with the installed regex.
69090         This is helpful for installers who configure --without-included-regex.
69091         Problem reported by Emanuele Giaquinta.
69092
69093 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
69094
69095         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
69096         Typedef to long int, not to off_, as POSIX will likely change
69097         in that direction.
69098
69099 2006-03-15  Eric Blake  <ebb9@byu.net>
69100
69101         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
69102
69103 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69104
69105         * lib/argp-help.c (validate_uparams): Fix typo
69106         * lib/argp-parse.c (argp_default_options): Consistently begin help
69107         messages with a lowercase letter.
69108
69109 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
69110
69111         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
69112         overrun buffers and shouldn't be used (much as gets shouldn't be
69113         used).
69114         * lib/time_r.c (asctime_r, ctime_r): Likewise.
69115
69116 2006-03-08  Simon Josefsson  <jas@extundo.com>
69117
69118         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
69119         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69120
69121 2006-03-08  Simon Josefsson  <jas@extundo.com>
69122
69123         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
69124         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69125
69126 2006-03-08  Simon Josefsson  <jas@extundo.com>
69127
69128         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
69129         signal that configure disabled the device.
69130
69131 2006-03-08  Simon Josefsson  <jas@extundo.com>
69132
69133         * build-aux/maint.mk: Fix refresh-po, to handle no translated
69134         languages.
69135
69136 2006-03-07  Simon Josefsson  <jas@extundo.com>
69137
69138         * modules/getopt (Depends-on): Add unistd.
69139
69140         * modules/unistd: New file.
69141
69142 2006-03-07  Simon Josefsson  <jas@extundo.com>
69143
69144         * modules/gc-random: New file.
69145
69146 2006-03-07  Simon Josefsson  <jas@extundo.com>
69147
69148         * m4/unistd_h.m4: New file.
69149
69150 2006-03-07  Simon Josefsson  <jas@extundo.com>
69151
69152         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
69153         test to be side-effect free by storing the result in the cache
69154         variable gl_cv_lib_readline, and moving the assignment of
69155         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
69156         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69157
69158 2006-03-07  Simon Josefsson  <jas@extundo.com>
69159
69160         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
69161         error on missing devices (the functions will return an error).
69162
69163         * m4/gc.m4: Move random stuff to gc-random.m4
69164
69165 2006-03-07  Simon Josefsson  <jas@extundo.com>
69166
69167         * lib/unistd_.h: New file.
69168
69169 2006-03-07  Simon Josefsson  <jas@extundo.com>
69170
69171         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
69172
69173 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69174
69175         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
69176         Problem reported by Juan Manuel Guerrero.
69177
69178 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69179
69180         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
69181         the unistd module.
69182         * lib/getlogin_r.c: Likewise.
69183         * lib/getlogin_r.h: Likewise.
69184         * lib/glob.c: Likewise.
69185         * lib/pagealign_alloc.c: Likewise.
69186         * lib/unistd_.h: Remove; no longer needed.
69187
69188 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69189
69190         * MODULES.html.sh (Support for systems lacking POSIX:2001):
69191         Add unistd.
69192         * modules/c-stack (Depends-on): Add unistd.
69193         * modules/getlogin_r: Likewise.
69194         * modules/glob: Likewise.
69195         * modules/pagealign_alloc: Likewise.
69196         * modules/unistd (Files): Remove lib/unistd_.h.
69197         (EXTRA_DIST): Remove.
69198         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
69199         need unistd_.h.
69200         (MOSTLYCLEANFILES): Remove unistd.h-t.
69201
69202 2006-03-03  Simon Josefsson  <jas@extundo.com>
69203
69204         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
69205
69206 2006-03-03  Simon Josefsson  <jas@extundo.com>
69207
69208         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
69209         libidn and bison.
69210
69211 2006-03-03  Simon Josefsson  <jas@extundo.com>
69212
69213         * build-aux/maint.mk: Add indent target.
69214
69215 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
69216
69217         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
69218         our replacement poll.h in any case, to avoid a differing
69219         declaration from a system header.  Seen on AIX.
69220
69221 2006-03-01  Simon Josefsson  <jas@extundo.com>
69222
69223         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
69224         <kasal@ucw.cz>.
69225
69226 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69227
69228         * modules/gettime (Depends-on): Add extensions module.
69229         * modules/nanosleep (Depends-on): Likewise.
69230         * modules/settime (Depends-on): Likewise.
69231
69232 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69233
69234         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
69235         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
69236         pedantically.
69237         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69238         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
69239
69240         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
69241         not "==".  Reported by Ralf Wildenhues.
69242
69243 2006-03-01  Karl Berry  <karl@gnu.org>
69244
69245         * doc/Copyright/request-*: new files, synced from gnuorg.
69246
69247 2006-03-01  Karl Berry  <karl@gnu.org>
69248
69249         * config/srclist.txt (Copyright/*): new entries.
69250
69251 2006-02-28  Simon Josefsson  <jas@extundo.com>
69252
69253         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
69254
69255 2006-02-27  Simon Josefsson  <jas@extundo.com>
69256
69257         * lib/base64.h: Indent #define's.  From Jim Meyering
69258         <jim@meyering.net>.
69259
69260 2006-02-27  Jim Meyering  <jim@meyering.net>
69261
69262         Revert the change of 2006-02-24, so these files can continue
69263         to be sync'd from gettext.
69264         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
69265         of `config.h'.
69266
69267 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
69268
69269         * modules/intprops: New file.
69270         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
69271         Add intprops.
69272         * modules/getloadavg (Files): Remove lib/intprops.h.
69273         (Depends-on): Add intprops.
69274         * modules/human: Likewise.
69275         * modules/inttostr: Likewise.
69276         * modules/openat: Likewise.
69277         * modules/sig2str: Likewise.
69278         * modules/userspec: Likewise.
69279         * modules/utimecmp: Likewise.
69280         * modules/xnanosleep: Likewise.
69281         * modules/xstrtol: Likewise.
69282
69283 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
69284
69285         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
69286         * modules/lock-tests (TESTS): Use $(EXEEXT).
69287         * modules/tls-tests: Likewise.
69288         * modules/argp-tests: Likewise.
69289         (check_PROGRAMS): New var, replacing...
69290         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
69291
69292 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69293
69294         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
69295         `config.h'.
69296
69297 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69298
69299         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
69300
69301 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69302
69303         Sync from coreutils.
69304         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
69305         gl_CHDIR_SAFER.
69306
69307 2006-02-22  Jim Meyering  <jim@meyering.net>
69308
69309         Sync from coreutils.
69310         * m4/chdir-safer.m4: New file.
69311
69312 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69313
69314         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
69315         AT_FDCWD exceeds INT_MAX.
69316         * lib/openat.h (AT_FDCWD): Likewise.
69317
69318 2006-02-17  Eric Blake  <address@hidden>
69319
69320         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
69321
69322 2006-02-16  Simon Josefsson  <jas@extundo.com>
69323
69324         * modules/getaddrinfo (Depends-on): Add sys_socket.
69325
69326 2006-02-15  Simon Josefsson  <jas@extundo.com>
69327
69328         * build-aux/maint.mk: Add dsyntax-check rule.
69329
69330 2006-02-15  Eric Blake  <ebb9@byu.net>
69331
69332         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
69333         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
69334         'present but cannot compile' warnings on cygwin.
69335         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
69336         use ws2tcpip.h if sys/socket.h works.
69337         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
69338         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
69339
69340 2006-02-14  Simon Josefsson  <jas@extundo.com>
69341
69342         * modules/maintainer-makefile (Files): Rename.
69343
69344         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
69345         and (the local) Makefile.cfg to maint-cfg.mk.
69346
69347         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
69348         to the latter.
69349
69350         * modules/maintainer-makefile: New module.
69351
69352         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
69353         severaly stripped to make it possible to build it up from scratch
69354         with reliable tests.
69355
69356         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
69357         fixes to permit overriding the default actions when configure and
69358         makefile are not available.
69359
69360 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69361
69362         Sync from coreutils.
69363         * modules/lstat (Depends-on): Don't depend on xalloc.
69364         (License): Change from GPL to LGPL, since this is now simply a
69365         replacement for a libc function.
69366
69367 2006-02-14  Jim Meyering  <jim@meyering.net>
69368
69369         Sync from coreutils.
69370
69371         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
69372         failure on deficient systems, and simplify gnulib lgpl dependencies.
69373         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
69374         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
69375
69376         * lib/xalloc-die.c: Remove unused definition of N_.
69377
69378 2006-02-14  Jim Meyering  <jim@meyering.net>
69379
69380         Sync from coreutils.
69381         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
69382         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
69383         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
69384         double-quote uses of that variable, to accommodate the rare case in
69385         which getmntent is available in none of the libraries checked.  This
69386         happens at least on FreeBSD 5.0.
69387
69388 2006-02-13  Simon Josefsson  <jas@extundo.com>
69389
69390         * gnulib-tool (Usage): Fix --import, from
69391         karl@freefriends.org (Karl Berry).
69392
69393 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69394
69395         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
69396
69397 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
69398
69399         * lib/argp-namefrob.h: Restore changes accidentally lost during the
69400         "autoupdate" on 2005-12-12.
69401
69402 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69403
69404         * modules/closeout (Depends-on): Remove atexit.
69405
69406 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69407
69408         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
69409         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
69410
69411 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69412
69413         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
69414         __EXTENSIONS__ if this causes compilation to fail.  Problem
69415         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
69416         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
69417
69418 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
69419
69420         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
69421         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
69422         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
69423         All uses changed.
69424
69425 2006-01-26  Simon Josefsson  <jas@extundo.com>
69426
69427         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
69428         prototype is visible on mingw32.
69429
69430         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
69431         for mingw32.
69432
69433         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
69434         mingw32).
69435
69436 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69437
69438         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
69439         attempt to open for write; this always fails, at least on POSIX
69440         hosts.  This reinstates the 2006-01-09 change, which was
69441         inadvertently removed.
69442
69443 2006-01-26  Bruno Haible  <bruno@clisp.org>
69444
69445         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
69446         Reported by Paul Eggert.
69447
69448 2006-01-26  Bruno Haible  <bruno@clisp.org>
69449             Paul Eggert  <eggert@cs.ucla.edu>
69450
69451         * lib/stdbool_.h (_Bool)
69452         [(! (defined __cplusplus || defined __BEOS__)
69453           && !defined __GNUC__
69454           && !(defined __HP_cc || defined __xlc__
69455                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
69456                || defined __sgi))]:
69457         #define to signed char in these cases too; this simplifies
69458         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
69459         etc., separately) and makes it more conservative.
69460
69461 2006-01-25  Simon Josefsson  <jas@extundo.com>
69462
69463         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
69464         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
69465         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
69466
69467 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
69468
69469         * lib/argp-namefrob.h: Bugfix. Remove stray #
69470
69471 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
69472
69473         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
69474         so that we test the test.
69475         Check for yet another HP-UX cc bug involving *bool |= bool.
69476
69477 2006-01-25  Karl Berry  <karl@gnu.org>
69478
69479         * config/srclist.txt (vasnprintf.c): sync lost.
69480
69481 2006-01-25  Jim Meyering  <jim@meyering.net>
69482
69483         Sync from the stable (b5) branch of coreutils:
69484
69485         * lib/fts.c (fts_children): Don't let close() clobber errno from
69486         failed fchdir().
69487
69488         * lib/fts.c (fts_stat): When following a symlink-to-directory,
69489         don't necessarily interpret stat-fails+lstat-succeeds as indicating
69490         a dangling symlink.  That can also happen at least for ELOOP.
69491         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
69492         FYI, this bug predates the inclusion of fts.c in coreutils.
69493
69494         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
69495         in their own block, so pre-c99 compilers don't object.
69496
69497         Avoid the double-free (first in fts_read, second in fts_close) that
69498         would occur when an `active' directory is made inaccessible (e.g.,
69499         via chmod a-x) during a traversal.
69500         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69501         before returning.  Reproduce this failure by
69502         mkdir -p a/b; cd a; chmod a-x . b
69503         Reported by Stavros Passas.
69504
69505 2006-01-25  Jim Meyering  <jim@meyering.net>
69506
69507         * lib/fileblocks.c: Remove more useless parentheses.
69508         * lib/readutmp.h: Likewise.
69509
69510 2006-01-25  Bruno Haible  <bruno@clisp.org>
69511
69512         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
69513         warnings.
69514         Reported by Paul Eggert.
69515
69516 2006-01-25  Bruno Haible  <bruno@clisp.org>
69517
69518         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
69519         rid of a trap command. For Solaris sh.
69520         Reported by Mark D. Baushke <mdb@gnu.org>.
69521
69522 2006-01-24  Simon Josefsson  <jas@extundo.com>
69523
69524         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
69525         Bruno.
69526
69527 2006-01-24  Karl Berry  <karl@gnu.org>
69528
69529         * config/srclist.txt (argp-namefrob.h): sync lost.
69530
69531 2006-01-24  Jim Meyering  <jim@meyering.net>
69532
69533         * modules/openat (Files): Add lib/intprops.h.
69534         From Mark D. Baushke.
69535
69536 2006-01-24  Jim Meyering  <jim@meyering.net>
69537
69538         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
69539         Reported by Mark D. Baushke.
69540
69541 2006-01-24  Jim Meyering  <jim@meyering.net>
69542
69543         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
69544
69545 2006-01-24  Bruno Haible  <bruno@clisp.org>
69546
69547         * modules/strnlen (Maintainer): Change from glibc to all.
69548
69549 2006-01-24  Bruno Haible  <bruno@clisp.org>
69550
69551         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
69552         Patch by Paul Eggert.
69553
69554 2006-01-24  Bruno Haible  <bruno@clisp.org>
69555
69556         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
69557         already has it.
69558         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
69559         2005-11-26.
69560
69561         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
69562         'signed char' to avoid problems with the built-in _Bool type.
69563         Reported by Paul Eggert on 2005-11-26.
69564
69565 2006-01-24  Bruno Haible  <bruno@clisp.org>
69566
69567         * gnulib-tool (func_import): Avoid constructing complicated sed
69568         expressions inside backquote.
69569         Report and solution by Mark D. Baushke <mdb@gnu.org>.
69570
69571 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
69572
69573         These changes imported from libc.
69574         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
69575         test and two separate function calls.
69576         * lib/strndup.c (__strndup): Add libc_hidden_def.
69577
69578 2006-01-23  Simon Josefsson  <jas@extundo.com>
69579
69580         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
69581         Remove the test_*_SOURCES variable: automake infers it by default.
69582         * modules/tls-tests: Likewise.
69583
69584 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69585
69586         Work around porting bugs reported by Dieter in
69587         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
69588         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
69589         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
69590         Include "getopt.h" first, to check interface.
69591         (getenv): Declare only if defined HAVE_DECL_GETENV &&
69592         !HAVE_DECL_GETENV.
69593         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
69594         (__strndup): Revert to K&R-style function dfns, the glibc style.
69595         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
69596         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
69597         Include strnlen.h first, to get prototype properly.
69598         (strnlen): Renamed from __strnlen.
69599         Remove weak alias.
69600
69601 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69602
69603         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
69604
69605 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69606
69607         * config/srclist.txt: Adjust to reflect glibc reorganization.
69608         This affects only comments.
69609
69610 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69611
69612          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
69613          Reported by Bruce Korb <bkorb@gnu.org>.
69614
69615 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69616
69617         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
69618         to pacify gcc -Wswitch-default.
69619
69620 2006-01-22  Bruno Haible  <bruno@clisp.org>
69621
69622         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
69623         temporary buffer for sprintf, take into account the precision also
69624         for 'd', 'i', 'u', 'o', 'x', 'X'.
69625
69626 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69627
69628         * modules/argp-tests: New module
69629         * tests/test-argp.c: New file
69630         * tests/test-argp-2.sh: New file
69631
69632 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69633
69634         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
69635         (__argp_base_name): Removed
69636         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
69637         typo.
69638         (__argp_base_name): Provide macro definition or extern declaration
69639         depending on the configuration
69640
69641 2006-01-20  Simon Josefsson  <jas@extundo.com>
69642
69643         * modules/inet_ntop (Depends-on): Depend on sys_socket.
69644
69645 2006-01-20  Simon Josefsson  <jas@extundo.com>
69646
69647         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
69648
69649 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69650
69651         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
69652         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
69653         Suggested by Bruno Haible.
69654
69655 2006-01-20  Karl Berry  <karl@gnu.org>
69656
69657         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
69658         until changes propagate, I guess.
69659
69660 2006-01-19  Simon Josefsson  <jas@extundo.com>
69661
69662         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
69663
69664 2006-01-19  Simon Josefsson  <jas@extundo.com>
69665
69666         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
69667
69668 2006-01-19  Simon Josefsson  <jas@extundo.com>
69669
69670         * gnulib-tool: Set check_PROGRAMS.
69671
69672         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69673         modules/des-tests, modules/gc-arcfour-tests,
69674         modules/gc-arctwo-tests, modules/gc-des-tests,
69675         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69676         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69677         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69678         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69679         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69680         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
69681         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
69682         test_*_SOURCES.
69683
69684 2006-01-18  Simon Josefsson  <jas@extundo.com>
69685
69686         * modules/socklen (Depends-on): Depend on sys_socket.
69687
69688 2006-01-18  Simon Josefsson  <jas@extundo.com>
69689
69690         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69691         modules/des-tests, modules/gc-arcfour-tests,
69692         modules/gc-arctwo-tests, modules/gc-des-tests,
69693         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69694         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69695         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69696         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69697         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69698         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
69699         $(EXEEXT) to automake TESTS variable, for mingw32.
69700
69701 2006-01-17  Simon Josefsson  <jas@extundo.com>
69702
69703         * modules/socklen (Include): Need sys/socket.h.
69704
69705 2006-01-17  Bruno Haible  <bruno@clisp.org>
69706
69707         * modules/ssize_t (Include): Add <sys/types.h>.
69708
69709 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
69710
69711         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
69712         it's not portable and it doesn't work with cross-compiles.
69713         Problem reported by Bruno Haible.  Fix missing-$ typo in
69714         'test "gl_cv_ignore_unused_libraries" ...' that prevented
69715         -zignore from being used with Sun's C compiler.
69716
69717 2006-01-12  Simon Josefsson  <jas@extundo.com>
69718
69719         * lib/base64.c: Fix warning, reported by Bruno Haible
69720         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
69721
69722 2006-01-12  Bruno Haible  <bruno@clisp.org>
69723
69724         * modules/ldd: New file.
69725         * build-aux/ldd.sh.in: New file.
69726         * MODULES.html.sh (Support for building libraries and executables): Add
69727         ldd.
69728
69729 2006-01-12  Bruno Haible  <bruno@clisp.org>
69730
69731         * m4/ldd.m4: New file.
69732
69733 2006-01-12  Bruno Haible  <bruno@clisp.org>
69734
69735         * gnulib-tool (func_import, func_create_testdir): Don't go into an
69736         endless loop while replacing $auxdir with build-aux.
69737
69738 2006-01-11  Simon Josefsson  <jas@extundo.com>
69739
69740         * lib/stdint_.h (SIZE_MAX): Add missing (.
69741
69742 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
69743
69744         Sync from coreutils.
69745         * lib/md5.c: Fix commentary typos.
69746         (alignof, UNALIGNED_P): No need for a GCC-specific version.
69747         * lib/md5.h (__attribute__): Remove; unused.
69748         * lib/sha1.c: Fix commentary to match md5 better.
69749         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
69750         so that we don't need to worry about alignment.  All uses changed.
69751         This merges the 2005-10-28 md5 change into sha1.
69752
69753 2006-01-11  Jim Meyering  <jim@meyering.net>
69754
69755         Sync from coreutils.
69756         * lib/md5.c (OP): Fix spacing.
69757
69758 2006-01-11  Bruno Haible  <bruno@clisp.org>
69759
69760         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69761         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
69762         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
69763
69764 2006-01-11  Bruno Haible  <bruno@clisp.org>
69765
69766         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69767         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
69768         the "early" section as well.
69769
69770 2006-01-11  Bruno Haible  <bruno@clisp.org>
69771
69772         Avoid "ar: no archive members specified" error on MacOS X.
69773         * gnulib-tool (func_modules_add_dummy): New function.
69774         (func_import, func_create_testdir): Invoke it.
69775
69776 2006-01-11  Bruno Haible  <bruno@clisp.org>
69777
69778         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
69779         with $auxdir in AC_CONFIG_FILES statements.
69780
69781 2006-01-11  Bruno Haible  <bruno@clisp.org>
69782
69783         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69784         Initialize also noinst_HEADERS to empty.
69785
69786 2006-01-11  Bruno Haible  <bruno@clisp.org>
69787
69788         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
69789         variables.
69790         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
69791         autoreconf.
69792
69793 2006-01-11  Bruno Haible  <bruno@clisp.org>
69794
69795         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
69796         overridable by the user.
69797         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69798
69799 2006-01-10  Simon Josefsson  <jas@extundo.com>
69800
69801         * modules/sys_socket: New file.
69802
69803 2006-01-10  Simon Josefsson  <jas@extundo.com>
69804
69805         * m4/sys_socket_h.m4: New file.
69806
69807 2006-01-10  Simon Josefsson  <jas@extundo.com>
69808
69809         * lib/socket_.h: New file.
69810
69811 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69812
69813         * modules/readutmp (Maintainer): Add myself.
69814
69815 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69816
69817         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
69818         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
69819         People who are still concerned with buggy memcmp implementations
69820         can invoke gl_FUNC_MEMCMP themselves.
69821
69822 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69823
69824         * lib/regex_internal.h (BITSET_WORD_BITS):
69825         Work around a bug in 64-bit PGC (before version 6.1-2), where the
69826         preprocessor mishandles large unsigned values as if they were signed.
69827         Problem reported by Claudio Fontana in
69828         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
69829
69830 2006-01-10  Jim Meyering  <jim@meyering.net>
69831
69832         Avoid the double-free (first in fts_read, second in fts_close) that
69833         would occur when an `active' directory is made inaccessible (e.g.,
69834         via chmod a-x) during a traversal.
69835         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69836         before returning.  Reproduce this failure by
69837         mkdir -p a/b; cd a; chmod a-x . b
69838         Reported by Stavros Passas.
69839
69840         Sync from coreutils.
69841         * lib/sha1.c: Tweak grammar in a comment.
69842
69843 2006-01-10  Jim Meyering  <jim@meyering.net>
69844
69845         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
69846         Patch by Joerg Sonnenberger.
69847
69848 2006-01-10  Bruno Haible  <bruno@clisp.org>
69849
69850         * modules/readutmp: Depend on module free.
69851         * modules/strtok_r: Depend on module restrict.
69852
69853 2006-01-10  Bruno Haible  <bruno@clisp.org>
69854
69855         * modules/gettext (configure.ac): Add an invocation of
69856         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
69857
69858 2006-01-10  Bruno Haible  <bruno@clisp.org>
69859
69860         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
69861         Reported by Werner Lemberg <wl@gnu.org>.
69862
69863 2006-01-10  Bruno Haible  <bruno@clisp.org>
69864
69865         * lib/localcharset.c: Update from GNU gettext.
69866
69867 2006-01-10  Bruno Haible  <bruno@clisp.org>
69868
69869         * lib/argp.h (__const): Remove macro. Use const instead.
69870         * lib/argp-fmtstream.h (__const): Likewise.
69871         * lib/glob_.h (__const): Remove macro.
69872         * lib/glob-libc.h: Use const instead of __const.
69873
69874 2006-01-10  Bruno Haible  <bruno@clisp.org>
69875
69876         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
69877         variable.
69878         Needed to avoid an automake error regarding the 'gettext' module.
69879
69880 2006-01-09  Simon Josefsson  <jas@extundo.com>
69881
69882         * modules/inet_ntop (Depends-on): Add restrict.
69883
69884 2006-01-09  Simon Josefsson  <jas@extundo.com>
69885
69886         * modules/gc-rijndael-tests (License): Put under LGPL.
69887
69888         * modules/gc-des-tests (License): Likewise.
69889
69890         * modules/gc-arcfour-tests (License): Likewise.
69891
69892         * modules/gc-arctwo-tests (License): Likewise.
69893
69894         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
69895
69896         * modules/gc-hmac-sha1-tests (Files): Likewise.
69897
69898         * modules/gc-hmac-md5-tests (License): Likewise.
69899
69900         * modules/gc-sha1-tests (License): Likewise.
69901
69902         * modules/gc-md5-tests (License): Likewise.
69903
69904         * modules/gc-md4-tests (License): Likewise.
69905
69906         * modules/gc-md2-tests (License): Likewise.
69907
69908         * modules/gc-tests (License): Likewise.
69909
69910         * modules/des-tests (License): Likewise.
69911
69912         * modules/md4-tests (License): Likewise.
69913
69914         * modules/md2-tests (License): Likewise.
69915
69916 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69917
69918         Sync from coreutils:
69919
69920         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
69921         * modules/lib-ignore: New file.
69922         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
69923         chdir-safer.m4, lchmod.m4.
69924         * modules/openat: Add mkdirat.c, openat-priv.h.
69925
69926 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69927
69928         Sync from coreutils.
69929         * m4/lib-ignore.m4: New file.
69930         * m4/lchmod.m4: New file.
69931
69932 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69933
69934         Sync from coreutils.
69935         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
69936         for write access: POSIX says that must fail.
69937         * lib/fts.c (diropen): Likewise.
69938         * lib/save-cwd.c (save_cwd): Likewise.
69939         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
69940         well, for minor improvements on hosts that lack O_DIRECTORY.
69941         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
69942         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
69943         Fall back on chown if open failed with EACCES.
69944
69945         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
69946         Report an error at compile-time if only a 1-second nominal clock
69947         resolution is found.
69948
69949         * lib/lchmod.h: New file.
69950         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
69951         (make_dir_parents): Use lchown rather than chown, and
69952         lchmod rather than chmod.
69953
69954         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
69955         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
69956         "proc" reported by n0dalus.
69957
69958         * lib/mountlist.c: Include <limits.h>.
69959         (dev_from_mount_options)
69960         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
69961         New function.  It no longer assumes "dev=" has the System V meaning
69962         on Linux (since it doesn't).  It also parses "dev=" more carefully.
69963         (read_file_system_list)
69964         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
69965         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
69966         dev= in that case.
69967
69968         * lib/posixtm.h (PDS_PRE_2000): New macro.
69969         * lib/posixtm.c (year): Arg is now syntax_bits rather than
69970         allow_century.  All usages changed.  Reject dates outside the range
69971         1969-1999 if PDS_PRE_2000 is used.
69972
69973 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69974
69975         Sync from coreutils.
69976         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
69977         (Time of day items): Mention the possibility of leap seconds.
69978         Problem reported by Dr. David Alan Gilbert.
69979
69980 2006-01-09  Jim Meyering  <jim@meyering.net>
69981
69982         Sync from coreutils.
69983
69984         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
69985
69986         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
69987
69988         * lib/modechange.c (mode_compile): Reject an invalid mode string
69989         that starts with an octal digit.  From Andreas Gruenbacher.
69990
69991         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
69992         and dup to open_safer and dup_safer, respectively.
69993         (openat_permissive): Fix typo in comment.
69994
69995         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
69996         "gettext.h"; either no longer needed or are guaranteed by openat.h.
69997         (_): Remove; no longer needed.
69998         (openat): Renamed from rpl_openat; no need for rpl_openat
69999         since openat.h renames openat for us.
70000         Replace most of the body with a call to openat_permissive,
70001         to avoid duplicate code.
70002         Port to (probably hypothetical) environments were mode_t is
70003         wider than int.
70004         (openat_permissive): Require mode arg, so that we can check
70005         types better.  Put it just after flags.  Change cwd failure
70006         indicator from pointer-to-bool to pointer-to-errno-value.
70007         All callers changed.
70008         Invoke openat_save_fail and/or openat_restore_fail if
70009         cwd_errno is null, so that openat can call us.
70010         (openat_permissive, fdopendir, fstatat, unlinkat):
70011         Simplify errno handling to avoid some duplicate code,
70012         as it's OK to set errno on success.
70013         * lib/openat.h: Revamp code so that function macros depend on
70014         __OPENAT_PREFIX only, not also on AT_FDCWD.
70015         (openat_ro): Remove.  Caller changed to use openat_permissive.
70016         (openat_permissive): Now a macro, if not a function.
70017         (openat_restore_fail, openat_save_fail): Now always functions,
70018         since mkdirat needs them even if __OPENAT_PREFIX is defined.
70019
70020         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
70021         and openat.c.
70022         * lib/mkdirat.c: Include openat-priv.h.
70023         Remove definitions of macros defined therein.
70024         * lib/openat.c: Likewise.
70025
70026         * lib/mkdirat.c (mkdirat): New file and function.
70027         * lib/openat.h (mkdirat): Declare.
70028
70029         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
70030
70031         * lib/openat.h (openat_permissive): Declare.
70032         (openat_ro): Define.
70033
70034         * lib/openat.c (EXPECTED_ERRNO): New macro.
70035         (openat_permissive): New function -- used in remove.c rewrite.
70036         (all functions): Set errno just before returning, only if there
70037         was an actual failure.
70038         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
70039
70040         Emulate openat-family functions using Linux's procfs, if possible.
70041         Idea and some code based on Ulrich Drepper's glibc changes.
70042
70043         * lib/openat.c: (BUILD_PROC_NAME): New macro.
70044         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
70045         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
70046         before falling back on save_cwd and restore_cwd.
70047         (fdopendir, fstatat, unlinkat): Likewise.
70048
70049         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
70050         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
70051
70052         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
70053         as second argument to va_arg.  Otherwise, some versions of gcc
70054         warn that `if this code is reached, the program will abort'.
70055
70056 2006-01-09  Jim Meyering  <jim@meyering.net>
70057
70058         Sync from coreutils.
70059         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
70060         Require openat-priv.h.
70061
70062 2006-01-09  Bruno Haible  <bruno@clisp.org>
70063
70064         * modules/strnlen (Include): Use strnlen.h.
70065
70066 2006-01-09  Bruno Haible  <bruno@clisp.org>
70067
70068         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
70069
70070 2006-01-09  Bruno Haible  <bruno@clisp.org>
70071
70072         * lib/sysexit_.h (EX_OK): New macro.
70073         Suggested by Martin Lambers <marlam@marlam.de>.
70074
70075 2006-01-09  Bruno Haible  <bruno@clisp.org>
70076
70077         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
70078         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
70079
70080 2006-01-09  Bruno Haible  <bruno@clisp.org>
70081
70082         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
70083         numbers.
70084
70085 2006-01-09  Bruno Haible  <bruno@clisp.org>
70086
70087         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
70088         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
70089         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
70090         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
70091
70092 2006-01-09  Bruno Haible  <bruno@clisp.org>
70093
70094         * build-aux/javacomp.sh.in: New file, moved from lib/.
70095         * modules/javacomp-script (Files): Update.
70096         (configure.ac): Add AC_CONFIG_FILES invocation.
70097         (EXTRA_DIST): Remove variable.
70098
70099         * build-aux/javaexec.sh.in: New file, moved from lib/.
70100         * modules/javaexec (Files): Update.
70101         (configure.ac): Add AC_CONFIG_FILES invocation.
70102         (EXTRA_DIST): Remove javaexec.sh.in.
70103
70104         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
70105         * modules/csharpcomp-script (Files): Update.
70106         (configure.ac): Add AC_CONFIG_FILES invocation.
70107         (EXTRA_DIST): Remove variable.
70108
70109         * build-aux/csharpexec.sh.in: New file, moved from lib/.
70110         * modules/csharpexec (Files): Update.
70111         (configure.ac): Add AC_CONFIG_FILES invocation.
70112         (EXTRA_DIST): Remove csharpexec.sh.in.
70113
70114 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
70115
70116         Sync from coreutils.
70117
70118         Add POSIX ACL support
70119         * lib/acl.h (copy_acl, set_acl): Add declarations.
70120         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
70121         systems other than Linux.
70122         (chmod_or_fchmod): New function: use fchmod when possible,
70123         and chmod otherwise.
70124         (file_has_acl): Add a POSIX ACL implementation, with a
70125         Linux-specific subcase.
70126         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
70127         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
70128         acls are unsupported.
70129         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
70130         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
70131         are unsupported.
70132
70133 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
70134
70135         Sync from coreutils.
70136         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
70137
70138 2006-01-07  Bruno Haible  <bruno@clisp.org>
70139
70140         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
70141         gl_EARLY.
70142
70143 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70144
70145         * lib/strftime.c (tzname): Don't declare if it is already #defined.
70146         Problem reported for Mingw by Mark Junker.
70147
70148 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70149
70150         * README: Gnulib normally doesn't generate a tarball.
70151
70152 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
70153
70154         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
70155         long int, not int, for nanosecond counts, so that people who are
70156         used to POSIX struct timespec won't be surprised.  Reported by Jim
70157         Meyering.
70158
70159 2005-12-28  Bruno Haible  <bruno@clisp.org>
70160
70161         * build-aux/config.rpath: Update from GNU gettext.
70162
70163 2005-12-16  Jim Meyering  <jim@meyering.net>
70164
70165         * modules/fprintftime: New module.
70166         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
70167
70168 2005-12-16  Jim Meyering  <jim@meyering.net>
70169
70170         * m4/fprintftime.m4: New file.
70171
70172 2005-12-16  Jim Meyering  <jim@meyering.net>
70173
70174         * lib/fprintftime.c, lib/fprintftime.h: New files.
70175
70176 2005-12-15  Simon Josefsson  <jas@extundo.com>
70177
70178         * modules/socklen (configure.ac): Fix M4 macro name, to align with
70179         new m4/socklen.m4.
70180
70181 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70182
70183         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
70184         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
70185
70186 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70187
70188         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
70189         * lib/argp-help.c (fill_in_uparams): Check if the constructed
70190         struct uparams is valid. Fall back to the default values if it is
70191         not.
70192
70193 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70194
70195         * modules/argp (Files): Add argp-pin.c
70196         (Depends-on): dirname
70197         (lib_SOURCES): Add argp-pin.c
70198
70199 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70200
70201         * m4/argp.m4:  Check if program_invocation_name and
70202         program_invocation_short_name are declared and define appropriate
70203         macros if they are not.
70204
70205 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70206
70207         * lib/argp-help.c (__argp_base_name): New function
70208         (__argp_short_program_name): Rewrite using __argp_base_name
70209         * lib/argp-namefrob.h: Define program_invocation_name and
70210         program_invocation_short_name if requested
70211         (__argp_base_name): Add prototype
70212         * lib/argp-parse.c (argp_def): Use gettext wrappers
70213         (argp_default_parser): Use __argp_base_name
70214         * lib/argp-pin.c: New file. Defines program_invocation_name and
70215         program_invocation_short_name on systems that lack them.
70216
70217 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70218
70219         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
70220         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70221         porting problem reported by Georg Schwarz in
70222         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70223
70224 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70225
70226         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
70227         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70228         porting problem reported by Georg Schwarz in
70229         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70230
70231 2005-12-05  Bruno Haible  <bruno@clisp.org>
70232
70233         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
70234         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
70235         Reported by Mark Junker <mjscod@gmx.de>.
70236
70237 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
70238
70239         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
70240         Use implementation from Albert Chin, with some
70241         comments/corrections by Stepan Kasal and myself.
70242
70243 2005-12-02  Bruno Haible  <bruno@clisp.org>
70244
70245         * gnulib-tool (func_import): Accept GPLed build tool modules when
70246         --lgpl is given.
70247         * modules/csharpcomp-script: New file.
70248         * modules/csharpcomp: Depend on it.
70249         * modules/javacomp-script: New file.
70250         * modules/javacomp: Depend on it.
70251         Suggested by Simon Josefsson.
70252
70253 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
70254
70255         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
70256         statement, to work around an HP-UX 10.20 compiler bug reported by
70257         Peter O'Gorman.
70258
70259 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70260
70261         * modules/savedir (Depends-on): Add openat.
70262
70263 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70264
70265         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
70266         (uintmax_t) [defined uintmax_t]: Do not declare.
70267         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
70268         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
70269         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
70270         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
70271         sake of portability to weird hosts that C allows (though we don't
70272         know of any practical examples).
70273
70274         * lib/savedir.h (fdsavedir): New decl.
70275         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
70276         contains most of the former guts of savedir.
70277         (savedir): Use savedirstream.
70278         Include "openat.h".
70279
70280 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70281
70282         * modules/obstack (Files): Add m4/ulonglong.m4.
70283         Problem reported by Davide Angelocola.
70284
70285 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
70286
70287         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
70288         coreutils no longer futzes with rounding modes.
70289
70290 2005-11-14  Jim Meyering  <jim@meyering.net>
70291
70292         * lib/mkstemp-safer.c: Include <config.h>, required for possible
70293         replacement of mkstemp.
70294
70295 2005-11-10  Simon Josefsson  <jas@extundo.com>
70296
70297         * lib/readline.c: Remove EOL.
70298
70299 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70300
70301         * modules/gethrxtime (Depends-on): Add gettime.
70302
70303 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70304
70305         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
70306         or gettimeofday; no longer needed.
70307
70308 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70309
70310         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
70311         time business.
70312         (gethrxtime) [! (HAVE_NANOUPTIME
70313         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
70314         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
70315         our own approximation.
70316
70317 2005-11-08  Eric Blake  <ebb9@byu.net>
70318
70319         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70320
70321 2005-11-08  Eric Blake  <ebb9@byu.net>
70322
70323         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70324
70325 2005-11-04  Bruno Haible  <bruno@clisp.org>
70326
70327         * gnulib-tool: Implement --update mode.
70328
70329 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70330
70331         Fix porting problem reported by Theodoros V. Kalamatianos.
70332         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
70333         Don't assume that futimes failing means we must fail.
70334
70335 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70336
70337         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
70338         variables to suggest the intended function of the PATH_MAX check.
70339
70340 2005-10-30  Kean Johnston  <jkj@sco.com>
70341
70342         Trivial changes to support SCO systems.
70343         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
70344         as PATH_MAX.
70345         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
70346         where __ptr is null when no I/O is pending.
70347
70348 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70349
70350         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
70351         leave errno alone.  Problem reported by Dmitry V. Levin.
70352
70353 2005-10-28  Simon Josefsson  <jas@extundo.com>
70354
70355         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
70356         Test more.
70357
70358         * tests/test-gc-md2.c, tests/test-md2.c: New files.
70359
70360         * modules/md2, modules/md2-tests: New files.
70361
70362 2005-10-28  Simon Josefsson  <jas@extundo.com>
70363
70364         * m4/inet_ntop.m4: More tests.
70365
70366         * m4/gc-md2.m4, md2.m4: New file.
70367
70368 2005-10-28  Simon Josefsson  <jas@extundo.com>
70369
70370         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
70371         "restrict" keywords, as per POSIX.  Protect the function
70372         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
70373         Don't use K&R prototypes.  Check the sprintf return values.
70374         Re-define EAFNOSUPPORT if not present.  Indent.
70375
70376         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
70377         suggested by Bruno Haible <bruno@clisp.org>.
70378
70379         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
70380
70381         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
70382
70383         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
70384         libgcrypt).
70385
70386         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
70387
70388         * lib/md2.h, lib/md2.c: New files.
70389
70390 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
70391
70392         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
70393         errno alone.  Problem reported by Frederic Jolliton.
70394
70395 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
70396
70397         * modules/verify (License): Change from GPL to LGPL.  This is a
70398         tiny module and there are apparently near-equivalents that are
70399         under the BSD license.
70400
70401 2005-10-24  Simon Josefsson  <jas@extundo.com>
70402
70403         * modules/sha1: Relicense to LGPL.
70404
70405 2005-10-24  Simon Josefsson  <jas@extundo.com>
70406
70407         * lib/md4.h: Shrink buffer size, now that we changed the type.
70408
70409 2005-10-23  Simon Josefsson  <jas@extundo.com>
70410
70411         * gnulib-tool (func_import): Fix --tests-base.
70412
70413 2005-10-22  Simon Josefsson  <jas@extundo.com>
70414
70415         * modules/arcfour (Depends-on): Need stdint.
70416
70417 2005-10-22  Simon Josefsson  <jas@extundo.com>
70418
70419         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
70420         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
70421
70422 2005-10-22  Simon Josefsson  <jas@extundo.com>
70423
70424         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
70425         suggested by Bruno Haible <bruno@clisp.org>.
70426
70427 2005-10-22  Simon Josefsson  <jas@extundo.com>
70428
70429         * lib/crc.h: Include stddef.h, for size_t.
70430
70431 2005-10-22  Simon Josefsson  <jas@extundo.com>
70432
70433         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
70434         arcfour_context struct (simplify test vector testing in GNU
70435         Shishi).
70436
70437 2005-10-21  Simon Josefsson  <jas@extundo.com>
70438
70439         * modules/des, modules/des-tests: New files.
70440
70441         * modules/gc-des, modules/gc-des-tests: New files.
70442
70443         * tests/test-des.c, tests/test-gc-des.c: New file.
70444
70445 2005-10-21  Simon Josefsson  <jas@extundo.com>
70446
70447         * modules/arctwo, modules/arctwo-tests: New files.
70448
70449         * tests/test-arctwo.c: New file.
70450
70451         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
70452
70453         * tests/test-gc-arctwo.c: New file.
70454
70455 2005-10-21  Simon Josefsson  <jas@extundo.com>
70456
70457         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
70458         Bruno Haible <bruno@clisp.org>.
70459
70460         * m4/gc-des.m4: New file.
70461
70462 2005-10-21  Simon Josefsson  <jas@extundo.com>
70463
70464         * m4/arctwo.m4: New file.
70465
70466         * m4/gc-arctwo.m4: New file.
70467
70468 2005-10-21  Simon Josefsson  <jas@extundo.com>
70469
70470         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
70471         block.
70472
70473 2005-10-21  Simon Josefsson  <jas@extundo.com>
70474
70475         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
70476         <bruno@clisp.org>.
70477
70478         * lib/hmac-sha1.c (hmac_sha1): Likewise.
70479
70480         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
70481         Bruno Haible <bruno@clisp.org>.
70482
70483         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
70484         <bruno@clisp.org>.
70485
70486 2005-10-21  Simon Josefsson  <jas@extundo.com>
70487
70488         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
70489
70490 2005-10-21  Simon Josefsson  <jas@extundo.com>
70491
70492         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
70493
70494 2005-10-21  Simon Josefsson  <jas@extundo.com>
70495
70496         * lib/des.h, lib/des.c: New files.
70497
70498         * lib/gc-gnulib.c: Support DES.c
70499
70500 2005-10-21  Simon Josefsson  <jas@extundo.com>
70501
70502         * lib/arctwo.h, lib/arctwo.c: New files.
70503
70504         * lib/gc-gnulib.c: Support ARCTWO.
70505
70506 2005-10-21  Simon Josefsson  <jas@extundo.com>
70507
70508         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
70509         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70510
70511 2005-10-21  Simon Josefsson  <jas@extundo.com>
70512
70513         * gnulib-tool (func_import, func_create_testdir): Define automake
70514         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
70515         Makefile.am snippet),
70516         suggested by Bruno Haible <bruno@clisp.org>.
70517
70518         * modules/gc (Makefile.am): Use it.
70519
70520 2005-10-21  Bruno Haible  <bruno@clisp.org>
70521
70522         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
70523         patch.
70524
70525 2005-10-19  Simon Josefsson  <jas@extundo.com>
70526
70527         * tests/test-gc-rijndael.c: New file.
70528
70529         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
70530
70531 2005-10-19  Simon Josefsson  <jas@extundo.com>
70532
70533         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
70534         interface too.
70535
70536 2005-10-19  Simon Josefsson  <jas@extundo.com>
70537
70538         * tests/test-gc-arcfour.c: New file.
70539
70540         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
70541
70542 2005-10-19  Simon Josefsson  <jas@extundo.com>
70543
70544         * modules/gc-md4, modules/gc-md4-tests: New file.
70545
70546         * tests/test-gc-md4.c: New file.
70547
70548 2005-10-19  Simon Josefsson  <jas@extundo.com>
70549
70550         * m4/gc-md4.m4: New file.
70551
70552 2005-10-19  Simon Josefsson  <jas@extundo.com>
70553
70554         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
70555         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
70556         <kasal@ucw.cz>.
70557
70558 2005-10-19  Simon Josefsson  <jas@extundo.com>
70559
70560         * m4/gc-arcfour.m4: New file.
70561
70562         * m4/gc-rijndael.m4: New file.
70563
70564 2005-10-19  Simon Josefsson  <jas@extundo.com>
70565
70566         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
70567
70568 2005-10-19  Simon Josefsson  <jas@extundo.com>
70569
70570         * lib/gc-gnulib.c: Support ARCFOUR.
70571
70572 2005-10-19  Simon Josefsson  <jas@extundo.com>
70573
70574         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
70575         support.
70576
70577         * lib/gc.h: Add ECB enum type.
70578
70579         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
70580
70581 2005-10-18  Simon Josefsson  <jas@extundo.com>
70582
70583         * tests/test-md5.c: New file.
70584
70585         * modules/md5-tests: New file.
70586
70587 2005-10-18  Simon Josefsson  <jas@extundo.com>
70588
70589         * tests/test-md4.c: New file.
70590
70591         * modules/md4, modules/md4-tests: New files.
70592
70593 2005-10-18  Simon Josefsson  <jas@extundo.com>
70594
70595         * m4/md4.m4: New file.
70596
70597 2005-10-18  Simon Josefsson  <jas@extundo.com>
70598
70599         * lib/md4.h, lib/md4.c: New files, based on md5.?.
70600
70601 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
70602
70603         * gnulib-tool (func_create_testdir): Omit the second check whether
70604         BUILT_SOURCES in nonempty.
70605
70606 2005-10-17  Simon Josefsson  <jas@extundo.com>
70607
70608         * tests/test-rijndael.c: New file.
70609
70610 2005-10-17  Simon Josefsson  <jas@extundo.com>
70611
70612         * modules/sha1: Depend on stdint instead of md5.
70613
70614         * modules/md5: Depend on stdint, remove uint32_t.
70615
70616 2005-10-17  Simon Josefsson  <jas@extundo.com>
70617
70618         * modules/gc-sha1-tests: New file.
70619
70620         * tests/test-gc-sha1.c: New file.
70621
70622 2005-10-17  Simon Josefsson  <jas@extundo.com>
70623
70624         * m4/md5.m4: Remove call to uint32_t.m4.
70625
70626 2005-10-17  Simon Josefsson  <jas@extundo.com>
70627
70628         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
70629
70630         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
70631         md5.h.
70632
70633         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
70634
70635         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
70636
70637 2005-10-17  Simon Josefsson  <jas@extundo.com>
70638
70639         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
70640
70641 2005-10-17  Simon Josefsson  <jas@extundo.com>
70642
70643         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
70644
70645 2005-10-17  Simon Josefsson  <jas@extundo.com>
70646
70647         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
70648
70649         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
70650
70651 2005-10-17  Bruno Haible  <bruno@clisp.org>
70652
70653         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
70654         that it can also be used in a test.
70655
70656 2005-10-16  Bruno Haible  <bruno@clisp.org>
70657
70658         * gnulib-tool (func_emit_tests_Makefile_am): Also define
70659         TESTS_ENVIRONMENT, so that individual tests can augment it.
70660
70661         * gnulib-tool (func_create_testdir): Use an intermediate target for
70662         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
70663         macros, like $(ALLOCA_H), which cannot be passed through the command
70664         line.
70665
70666 2005-10-15  Simon Josefsson  <jas@extundo.com>
70667
70668         * modules/rijndael-tests: New file.
70669
70670         * modules/rijndael: New file.
70671
70672 2005-10-15  Simon Josefsson  <jas@extundo.com>
70673
70674         * m4/rijndael.m4: New file.
70675
70676 2005-10-15  Simon Josefsson  <jas@extundo.com>
70677
70678         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
70679
70680         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
70681
70682 2005-10-14  Simon Josefsson  <jas@extundo.com>
70683
70684         * tests/test-arcfour.c: New file.
70685
70686         * modules/arcfour, modules/arcfour-tests: New files.
70687
70688 2005-10-14  Simon Josefsson  <jas@extundo.com>
70689
70690         * m4/arcfour.m4: New file.
70691
70692 2005-10-14  Simon Josefsson  <jas@extundo.com>
70693
70694         * lib/arcfour.h, lib/arcfour.c: New files.
70695
70696 2005-10-14  Roland McGrath  <roland@redhat.com>
70697
70698         Import from libc.  [BZ #1331]
70699         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
70700         macro argument.
70701         Reported by Matej Vela <vela@debian.org>.
70702
70703 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70704
70705         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
70706         include <wchar.h>; no longer needed.
70707
70708 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70709
70710         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
70711
70712 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
70713         and  Ulrich Drepper  <drepper@redhat.com>
70714
70715         Import from libc.
70716         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
70717         instead of inline stream orientation test and two separate
70718         function calls.  Pay no attention to USE_IN_LIBIO.
70719
70720 2005-10-13  Simon Josefsson  <jas@extundo.com>
70721
70722         * modules/gc-hmac-md5-tests: New file.
70723
70724         * tests/test-gc-hmac-sha1.c: New file.
70725
70726         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
70727
70728         * modules/gc-hmac-md5-tests: New file.
70729
70730         * tests/test-gc-md5.c: New file.
70731
70732         * modules/gc-md5-tests: New file.
70733
70734 2005-10-13  Simon Josefsson  <jas@extundo.com>
70735
70736         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
70737         Move memory allocation outside of loop.
70738
70739 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
70740
70741         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
70742         intermediate directory is in a read-only file system.  Problem
70743         reported by Eric Blake.
70744
70745 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
70746
70747         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
70748
70749 2005-10-12  Simon Josefsson  <jas@extundo.com>
70750
70751         * tests/test-hmac-sha1.c: New file.
70752
70753         * modules/hmac-sha1-tests: New file.
70754
70755         * modules/hmac-sha1: New file.
70756
70757 2005-10-12  Simon Josefsson  <jas@extundo.com>
70758
70759         * modules/gc-sha1: New file.
70760
70761 2005-10-12  Simon Josefsson  <jas@extundo.com>
70762
70763         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
70764
70765         * tests/test-gc-pbkdf2-sha1.c: New file.
70766
70767 2005-10-12  Simon Josefsson  <jas@extundo.com>
70768
70769         * modules/gc-md5, modules/gc-hmac-md5: New files.
70770
70771         * modules/gc (Files): Remove md5, memxor and hmac files.
70772
70773 2005-10-12  Simon Josefsson  <jas@extundo.com>
70774
70775         * m4/gc-pbkdf2-sha1.m4: New file.
70776
70777         * m4/gc-hmac-sha1.m4: New file.
70778
70779         * m4/gc-sha1: New file.
70780
70781         * m4/hmac-sha1.m4: New file.
70782
70783 2005-10-12  Simon Josefsson  <jas@extundo.com>
70784
70785         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
70786
70787         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
70788
70789 2005-10-12  Simon Josefsson  <jas@extundo.com>
70790
70791         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
70792         suggested by Bruno Haible <bruno@clisp.org>.
70793
70794 2005-10-12  Simon Josefsson  <jas@extundo.com>
70795
70796         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
70797
70798 2005-10-12  Simon Josefsson  <jas@extundo.com>
70799
70800         * lib/gc-pbkdf2-sha1.c: New file.
70801
70802         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
70803
70804 2005-10-12  Simon Josefsson  <jas@extundo.com>
70805
70806         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
70807
70808         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
70809
70810 2005-10-12  Simon Josefsson  <jas@extundo.com>
70811
70812         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
70813         GC_USE_HMAC_MD5, respectively.
70814
70815         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
70816         (gc_md5): Fix typo.
70817
70818         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
70819
70820         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
70821
70822         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
70823
70824 2005-10-12  Bruno Haible  <bruno@clisp.org>
70825
70826         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
70827         Reported by Stepan Kasal <kasal@ucw.cz>.
70828
70829 2005-10-11  Simon Josefsson  <jas@extundo.com>
70830
70831         * tests/test-crc.c: New file.
70832
70833         * modules/crc, modules/crc-tests: New files.
70834
70835 2005-10-11  Simon Josefsson  <jas@extundo.com>
70836
70837         * m4/crc.m4: New file.
70838
70839 2005-10-11  Simon Josefsson  <jas@extundo.com>
70840
70841         * lib/gc.h: Add gc_hash and gc_hash_buffer.
70842
70843         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
70844
70845         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
70846
70847 2005-10-11  Simon Josefsson  <jas@extundo.com>
70848
70849         * lib/crc.h, lib/crc.c: New files.
70850
70851         * lib/gc.h (gc_hash_buffer): Add doc.
70852
70853 2005-10-11  Bruno Haible  <bruno@clisp.org>
70854
70855         * modules/c-strcasestr: New file.
70856         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
70857
70858 2005-10-11  Bruno Haible  <bruno@clisp.org>
70859
70860         * modules/c-strcase: New file.
70861         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
70862
70863 2005-10-11  Bruno Haible  <bruno@clisp.org>
70864
70865         * lib/strcasecmp.c: Include limits.h.
70866         (strcasecmp): Avoid integer overflow on exotic platforms.
70867         * lib/strncasecmp.c: Include limits.h.
70868         (strncasecmp): Avoid integer overflow on exotic platforms.
70869         Reported by Paul Eggert.
70870
70871 2005-10-11  Bruno Haible  <bruno@clisp.org>
70872
70873         * lib/c-strcasestr.h: New file, from GNU gettext.
70874         * lib/c-strcasestr.c: New file, from GNU gettext.
70875
70876 2005-10-11  Bruno Haible  <bruno@clisp.org>
70877
70878         * lib/c-strcase.h: New file, from GNU gettext.
70879         * lib/c-strcasecmp.c: New file, from GNU gettext.
70880         * lib/c-strncasecmp.c: New file, from GNU gettext.
70881
70882 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70883
70884         * modules/mempcpy (License): GPL -> LGPL.
70885         * modules/strchrnul (License): Likewise.
70886         * modules/sysexits (License): Likewise.
70887
70888 2005-10-08  Simon Josefsson  <jas@extundo.com>
70889
70890         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
70891
70892 2005-10-07  Simon Josefsson  <jas@extundo.com>
70893
70894         * m4/memxor.m4: Remove gl_C_RESTRICT call.
70895
70896 2005-10-06  Simon Josefsson  <jas@extundo.com>
70897
70898         * tests/test-hmac-md5.c: New file.
70899
70900         * modules/hmac-md5-tests: New file.
70901
70902         * modules/hmac-md5: New file.
70903
70904 2005-10-06  Simon Josefsson  <jas@extundo.com>
70905
70906         * m4/hmac-md5.m4: New file.
70907
70908         * m4/memxor.m4: Require gl_C_RESTRICT.
70909
70910 2005-10-06  Simon Josefsson  <jas@extundo.com>
70911
70912         * lib/memxor.c (memxor): Avoid casts and warnings.
70913
70914 2005-10-06  Simon Josefsson  <jas@extundo.com>
70915
70916         * lib/hmac-md5.c: New file.
70917
70918         * lib/hmac.h: New file.
70919
70920 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70921
70922         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
70923         promotes to int, not unsigned int, to catch the AIX 5.3
70924         compiler bug.
70925
70926 2005-10-05  Simon Josefsson  <jas@extundo.com>
70927
70928         * modules/memxor: New file.
70929
70930         * modules/iconv (Files): Move config.rpath to havelib, it is used
70931         there.
70932
70933         * modules/havelib (Files): Add config.rpath.
70934
70935 2005-10-05  Simon Josefsson  <jas@extundo.com>
70936
70937         * m4/memxor.m4: New file.
70938
70939 2005-10-05  Simon Josefsson  <jas@extundo.com>
70940
70941         * lib/memxor.c (memxor): Fix compiler error.
70942
70943         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
70944         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
70945
70946         * lib/memxor.h, lib/memxor.c: New files.
70947
70948         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
70949         we assume all systems have it, suggested by Jim Meyering
70950         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
70951         any systems lack sys/socket.h; mingw32 is known to lack it, but we
70952         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
70953         same reasons.
70954
70955 2005-10-05  Simon Josefsson  <jas@extundo.com>
70956
70957         * config/srclist.txt: Add glibc bug 1423 for md5.h.
70958
70959 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70960
70961         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
70962         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
70963         needed, since the source code now assumes these .h files.
70964
70965 2005-10-05  Derek Price  <derek@ximbiot.com>
70966
70967         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
70968
70969 2005-10-05  Bruno Haible  <bruno@clisp.org>
70970
70971         * modules/stdint (License): Change to LGPL.
70972
70973 2005-10-04  Simon Josefsson  <jas@extundo.com>
70974
70975         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
70976         D. Baushke" <mdb@gnu.org>.
70977
70978 2005-10-04  Bruno Haible  <bruno@clisp.org>
70979
70980         * lib/verify.h (verify_true): Provide alternative definition for C++.
70981
70982 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
70983
70984         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
70985         (SSIZE_MAX): New macro, if not already defined.
70986         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
70987         than 2 GiB.
70988
70989 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70990
70991         Sync from coreutils.
70992         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
70993         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
70994         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
70995         ULLONG_MAX doesn't work with 2.7.2.1.
70996
70997 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70998
70999         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
71000         From Ben Pfaff.
71001
71002         * modules/exclude (Depends-on): Depend on verify.
71003         * modules/strtoimax (Depends-on): Likewise.
71004         * modules/utimecmp (Depends-on): Likewise.
71005
71006 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71007
71008         * lib/exclude.c: Include verify.h.
71009         (verify): Remove.  All callers changed to use verify.h's version.
71010         * lib/strtoimax.c: Likewise.
71011         * lib/utimecmp.c: Likewis.e
71012
71013         Sync from coreutils.
71014         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
71015         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
71016         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
71017         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
71018         bother returning ENOSYS if settimeofday or stime fails; just let
71019         them return whatever errno they want to return.
71020         * lib/utimens.c: Include unistd.h, for dup2.
71021         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
71022         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
71023
71024 2005-10-02  Jim Meyering  <jim@meyering.net>
71025
71026         Sync from coreutils.
71027         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
71028         from glibc-2.2.5 that fails for read-only files.
71029
71030 2005-10-02  Jim Meyering  <jim@meyering.net>
71031
71032         Sync from coreutils.
71033         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
71034         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
71035         `#if HAVE_CONFIG_H'.
71036         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
71037         Remove AT_FDCWD test.
71038         Do not consume the fd unless successful.
71039         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
71040         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
71041         block, so that we don't even try to compile it if settimeofday is
71042         available.  This works around a compilation failure on OSF1 V5.1,
71043         due to stime requiring a `long int*' while tv_sec is `int'.
71044
71045 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
71046
71047         Sync from coreutils.
71048         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
71049         against `yes', rather than just testing for nonempty.
71050
71051 2005-10-01  Simon Josefsson  <jas@extundo.com>
71052
71053         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
71054         and Darwin.
71055
71056         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
71057         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
71058         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
71059         freeaddrinfo and gai_strerror are declared by the POSIX headers.
71060         Check if struct addrinfo is declared.
71061
71062 2005-10-01  Simon Josefsson  <jas@extundo.com>
71063
71064         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
71065         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
71066         AI_* and EAI_* definitions.  Protect function declarations.
71067
71068 2005-10-01  Jim Meyering  <jim@meyering.net>
71069
71070         Sync from coreutils.
71071
71072         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
71073         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
71074         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
71075         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
71076         in the inet and nsl libraries.  Required on Solaris 5.7.
71077
71078 2005-10-01  Jim Meyering  <jim@meyering.net>
71079
71080         Sync from coreutils.
71081         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
71082         in the inet and nsl libraries.  Required on Solaris 5.7.
71083
71084 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
71085
71086         * lib/getdelim.c (getdelim): Remove unused variables.
71087
71088 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
71089
71090         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
71091         so that the code works even with ancient cpp.  Portability problem
71092         with GCC 2.7.2.1 reported by Thomas M.Ott.
71093
71094 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
71095
71096         * modules/regex (Depends-on): Add strcase.
71097
71098         * modules/gethostname (Licence): Change from GPL to LGPL, since
71099         gethostname.c is a trivial implementation of a standard library
71100         function.
71101         * modules/poll (License): Change from GPL to LGPL, since it's
71102         derived from LGPL code.
71103
71104 2005-09-27  Jim Meyering  <jim@meyering.net>
71105
71106         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
71107         HAVE_CONFIG_H.
71108
71109         * lib/intprops.h (signed_type_or_expr__): Define.
71110         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
71111         for unsigned types.
71112
71113 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
71114
71115         * lib/verify.h (verify_expr): Remove, replacing with:
71116         (verify_true): New macro that returns true instead of void.
71117         (verify_type__): Remove.
71118         (verify): Use verify_true rather than verify_type__.
71119
71120 2005-09-26  Bruno Haible  <bruno@clisp.org>
71121
71122         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
71123         is necessary.
71124         (lib_SOURCES): Remove mbchar.c.
71125         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
71126         (Files): Add m4/mbrtowc.m4.
71127         * modules/mbiter: Likewise.
71128         * modules/mbuiter: Likewise.
71129
71130 2005-09-26  Bruno Haible  <bruno@clisp.org>
71131
71132         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
71133         compile mbchar.c if they are not both present.
71134         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
71135         * m4/mbiter.m4 (gl_MBITER): Likewise.
71136         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
71137         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
71138         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
71139
71140 2005-09-25  Jim Meyering  <jim@meyering.net>
71141
71142         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
71143         also uses socklen_t.
71144
71145 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
71146
71147         * lib/utimens.c (ENOSYS): Define if not already defined.
71148         (futimens): Support having a null PATH if the file descriptor
71149         is nonnegative.
71150
71151         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
71152         Remove.
71153         (__attribute): Define to empty unless GCC 3.1 or later.
71154         This works around a core dump on OpenBSD 3.4, which has GCC
71155         2.95.3, which dumps core when given __attribute__(()).  It also
71156         simplifies other tests, since we really don't want to bother with
71157         worrying about which ancient version of GCC supported what.
71158         Original problem reported by Yoann Vandoorselaere, with part of
71159         the fix suggested by Derek Price.
71160
71161 2005-09-24  Jim Meyering  <jim@meyering.net>
71162
71163         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
71164         so we can once again use a positive bitfield width of 1 -- now we
71165         don't have to explain why we were using a bitfield width of 2.
71166
71167 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
71168
71169         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
71170         and similarly for the other external symbols.  Problem reported
71171         by James Gallager.
71172
71173         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
71174         bug reported by Jim Meyering.
71175
71176         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
71177         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
71178         not needed, since socklen is a prerequisite module.
71179
71180 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
71181
71182         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
71183         Problem reported by Eric Blake.
71184         (getaddrinfo): Initialize se so that it's not garbage.
71185         Redo internal storage allocation so that it doesn't make unportable
71186         assumptions about alignment.
71187         Fix a memory leak.
71188
71189         * lib/utimens.c (futimens): Use futimesat if available.
71190         Prefer it to futimes since it doesn't have the futimes bug.
71191
71192         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
71193         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
71194         Instead, declare a function that returns a pointer to an array,
71195         and use verify_type__ to declare the size of the array.
71196         Problem and germ of a solution reported by Bruno Haible.
71197         (verify_type__): Use 2, not 1, for bitfield size, to avoid
71198         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
71199
71200 2005-09-23  Jim Meyering  <jim@meyering.net>
71201
71202         Sync from coreutils.
71203         Correct build failure (socklen_t not defined) on at least
71204         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
71205         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
71206
71207 2005-09-23  Jim Meyering  <jim@meyering.net>
71208
71209         * modules/getaddrinfo (Depends-on): Add socklen.
71210
71211 2005-09-23  Bruno Haible  <bruno@clisp.org>
71212
71213         * tests/test-verify.c: New file.
71214
71215 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71216
71217         Sync from coreutils.
71218
71219         * modules/argmatch (Depends-on): Add verify.
71220         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
71221         unistd-safer.
71222         * modules/save-cwd (Depends-on): Likewise.
71223
71224         * modules/openat (Files): Add lib/openat-die.c.
71225         (Depends-on): Remove error, exitfail.
71226         Add dirname.
71227
71228         * modules/verify: New file.
71229         * MODULES.html.sh (Diagnostics <assert.h>): New section,
71230         with "verify" module.
71231
71232 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71233
71234         Sync from coreutils.
71235
71236         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
71237         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
71238         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
71239         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
71240         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
71241         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
71242         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
71243         Don't bother checking for string.h, stdlib.h, unistd.h.
71244         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
71245         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
71246         module's job.
71247         * m4/jm-macros.m4 (gl_MACROS): Likewise.
71248         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
71249
71250         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
71251         (gl_GETDATE): Use it.
71252
71253         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
71254
71255 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71256
71257         Sync from coreutils.
71258
71259         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
71260         stat-time.h.
71261         * lib/argmatch.h: Include verify.h
71262         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
71263         (ARGMATCH_ASSERT): Remove; unused.
71264         * lib/canonicalize.c: Assume STDC_HEADERS.
71265         * lib/exclude.c: Include "strcase.h".
71266         * lib/regex_internal.h [!defined _LIBC]: Likewise.
71267         * lib/getusershell.c: Include stdio--.h rather than stdio.h
71268         and stdio-safer.h.
71269         (getusershell): Call fopen, not fopen_safer.
71270         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
71271         Do not include unistd-safer.h.
71272         (save_cwd): Don't call fd_safer; no longer needed
71273         now that we include fcntl--.h.
71274
71275         * lib/getdate.y (relative_time): New type.
71276         (RELATIVE_TIME_0): New constant.
71277         (parser_control): Use relative_time instead of doing it ourselves.
71278         (%union): Add new relative_time rel member.
71279         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
71280         Now typeless.
71281         (relunit, relunit_snumber): Now of type rel.
71282         (zone, rel, relunit, get_date): Adjust to above changes.
71283
71284         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
71285         Do not include unistd-safer.h.
71286         (getloadavg): Don't call fd_safer; no longer needed
71287         now that we include fcntl--.h.
71288
71289         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
71290         (make_dir_parents): Treat ENOSYS like EEXIST.
71291
71292         Improve quality of diagnostics on restore_cwd failure.
71293         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
71294         (make_dir_parents): Last arg is now int * (for errno), not bool *.
71295         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
71296         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
71297         each time through the loop.  Do not diagnose restore_cwd failure;
71298         that is the caller's job (and perhaps the caller does not care).
71299
71300         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
71301         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
71302         If the file already exists but is not a directory, don't bother
71303         to try to make its parents.
71304         Close potential file descriptor leak if we can't chdir("/") (!).
71305         Don't always return true if chdir($PWD) fails; return true only
71306         if the requested action was done successfully (except for the
71307         chdir($PWD)).
71308         Don't log final directory unless we actually made it.
71309         Refactor to avoid duplicate code to fix up permissions.
71310         Don't attempt to fix up parent permissions if chdir($PWD) fails.
71311
71312         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
71313         to make it a bit faster and (I hope) clearer.
71314         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
71315         Fix bug in formats like %2N.
71316
71317         * lib/verify.h: New file.
71318
71319 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71320
71321         Sync from coreutils.
71322         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
71323
71324 2005-09-22  Jim Meyering  <jim@meyering.net>
71325
71326         Sync from coreutils.
71327
71328         * m4/lstat.m4 (gl_FUNC_LSTAT):
71329         Use AC_LIBSOURCES to require lstat.c and lstat.h.
71330         Remove obsolete comment.
71331         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
71332         * m4/xstrtod.m4: Likewise.
71333
71334         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
71335
71336 2005-09-22  Jim Meyering  <jim@meyering.net>
71337
71338         Sync from coreutils.
71339
71340         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
71341
71342         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
71343         the .tm_year member, since otherwise gcc-4.0 would now warn about
71344         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
71345
71346         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
71347         order to avoid an unsuppressible warning from gcc on 64-bit systems.
71348
71349         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
71350         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
71351         when run in a time zone for which daylight savings time is in effect
71352         for the starting date.
71353
71354         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
71355         stop us from restricting permissions of just-created absolute-named
71356         directories.
71357         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
71358         to restore initial working directory.
71359         * lib/mkdir-p.c (make_dir_parents): New parameter:
71360         different_working_dir, to tell caller if/when we change the working
71361         directory and are unable to return to the initial one.
71362         * lib/mkdir-p.h (make_dir_parents): Update prototype.
71363         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
71364         `return false'.  This fixes a bug introduced on 2004-07-30.
71365
71366         * lib/openat.c (fdopendir): Be sure to close the supplied
71367         file descriptor before returning.  This makes our replacement
71368         implementation a little closer to Solaris's, where fdopendir
71369         ties the file descriptor to the returned DIR* pointer.
71370         * lib/openat.c (unlinkat): New function.
71371         * lib/openat.h (unlinkat): Add prototype.
71372         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
71373         (openat_restore_fail): Rename from openat_restore_die.
71374         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
71375
71376         Provide an alternative to exiting immediately upon save_cwd or
71377         restore_cwd failure.  Now, an application can arrange e.g.,
71378         to perform a longjump in that case.
71379         * lib/openat.c: Include dirname.h.
71380         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
71381         (rpl_openat, fdopendir, fstatat): Call openat_save_die
71382         and openat_restore_die rather than calling error directly.
71383         Don't include "error.h" or "exitfail.h"; they're no longer needed.
71384
71385         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
71386         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
71387         define.
71388
71389         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
71390         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
71391                             int utc, int nanoseconds);
71392         Background:
71393         date should not have to allocate a megabyte of virtual memory to
71394         handle a format argument like +%1048575T.  When implemented with
71395         strftime, it must allocate such a buffer, use strftime to fill it
71396         in, print it, then free it.
71397         With fprintftime, it simply prints everything and exits.
71398         With no need for memory allocation, that's one fewer way to fail.
71399         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
71400         optional field width, not before, so we accept %9:z, not %:9z.
71401         (my_strftime): Be sure to use L_('x') for literals.
71402
71403         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
71404         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
71405         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
71406         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
71407         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
71408         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
71409         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
71410         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
71411         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
71412         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
71413         * lib/xgethostname.c, lib/xreadlink.c:
71414         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
71415
71416         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
71417         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
71418         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
71419         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71420         and don't include <sys/file.h>).
71421
71422 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
71423
71424         Sync from coreutils.
71425
71426         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
71427         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
71428         [!LDAV_DONE]: Avoid unused variable warning.
71429
71430 2005-09-21  Bruno Haible  <bruno@clisp.org>
71431
71432         * lib/unicodeio.h (unicode_to_mb): New declaration.
71433
71434 2005-09-20  Derek Price  <derek@ximbiot.com>
71435
71436         * lib/getaddrinfo.c: Don't include <netdb.h> included from
71437         getaddrinfo.h.
71438
71439 2005-09-20  Bruno Haible  <bruno@clisp.org>
71440
71441         * gnulib-tool: Remove trailing slashes from the values specified for
71442         --source-base, --m4-base, --tests-base, --aux-dir.
71443         Suggested by Simon Josefsson <jas@extundo.com>.
71444
71445 2005-09-20  Bruno Haible  <bruno@clisp.org>
71446
71447         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
71448         func_modules_to_filelist, func_import, func_create_testdir): Make all
71449         sorting results locale-independent, so that gnulib-cache.m4 doesn't
71450         change when gnulib-tool is invoked in a different locale.
71451
71452 2005-09-19  Simon Josefsson  <jas@extundo.com>
71453
71454         * m4/socklen.m4: Fix typo.
71455
71456 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71457
71458         Use a consistent style for including <config.h>.
71459         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
71460         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
71461         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
71462         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
71463         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
71464         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
71465         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
71466         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
71467         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
71468         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
71469         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
71470         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
71471         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
71472         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
71473         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
71474         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
71475         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
71476         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
71477         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
71478         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
71479         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
71480         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
71481         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
71482         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
71483         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
71484         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
71485         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
71486         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
71487         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
71488         lib/xstrtoumax.c, lib/yesno.c:
71489         Standardize inclusion of config.h.
71490         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
71491         lib/inttostr.h:  Removed inclusion of config.h from header files.
71492         * lib/inttostr.c:  Adjusted in-tree users.
71493         * lib/timespec.h: Remove superfluous warning to include config.h.
71494         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
71495         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
71496         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
71497         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
71498         config.h with HAVE_CONFIG_H.
71499
71500 2005-09-19  Jim Meyering  <jim@meyering.net>
71501
71502         * modules/pathmax (License): Change to LGPL.
71503
71504 2005-09-19  Derek Price  <derek@ximbiot.com>
71505
71506         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
71507
71508 2005-09-19  Bruno Haible  <bruno@clisp.org>
71509
71510         * gnulib-tool (import): Provide default for --tests-base.
71511
71512 2005-09-19  Bruno Haible  <bruno@clisp.org>
71513
71514         * doc/quote.texi: New file, extracted from gnulib.texi.
71515         * doc/ctime.texi: New file, extracted from gnulib.texi.
71516         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
71517         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
71518         * doc/gnulib.texi: Include them.
71519
71520 2005-09-18  Bruno Haible  <bruno@clisp.org>
71521
71522         Portability fix.
71523         * gnulib-tool (func_readlink): New function.
71524         (func_ln_if_changed): Use it.
71525
71526 2005-09-18  Bruno Haible  <bruno@clisp.org>
71527
71528         * gnulib-tool: Support --with-tests also with --import.
71529         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
71530         (func_import): Use variables $testsbase and $inctests. Emit a
71531         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
71532         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
71533         SUBDIRS += $testsdir.
71534         (func_create_testdir): Update.
71535
71536 2005-09-18  Bruno Haible  <bruno@clisp.org>
71537
71538         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
71539         instead of $dry_run.
71540         (func_cp_if_changed, func_mv_if_changed): Remove functions.
71541         (func_ln_if_changed): Don't handle dry-run here.
71542         (func_import): In dry-run mode, detect more precisely which actions
71543         would be performed, and don't use "...ing" verbs.
71544
71545 2005-09-18  Bruno Haible  <bruno@clisp.org>
71546
71547         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
71548         (func_import): Use join on two temporary files instead of three nested
71549         loops, in order to determine which files are new or old.
71550
71551 2005-09-18  Bruno Haible  <bruno@clisp.org>
71552
71553         * gnulib-tool (func_import): Comment out code that spits out the
71554         new files with --dry-run.
71555
71556 2005-09-18  Bruno Haible  <bruno@clisp.org>
71557
71558         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
71559
71560 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71561
71562         * lib/stat-time.h: New file.
71563         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
71564         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
71565         in a different way.
71566         (timespec_cmp): New function.
71567         * lib/utimecmp.c: Include stat-time.h.
71568         (SYSCALL_RESOLUTION): Depend on whether various struct stat
71569         members exist, not on the obsolescent ST_MTIM_NSEC.
71570         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
71571
71572 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71573
71574         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
71575
71576 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71577
71578         * MODULES.html.sh (File system functions): Add stat-time.
71579         * modules/stat-time: New file.
71580         * modules/timespec (Files): Remove m4/st_mtim.m4; this
71581         is now done in a different way, by the stat-time module.
71582         * modules/utimecmp (Depends-on): Add stat-time.
71583
71584 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71585
71586         * m4/st_mtim.m4: Remove.  Superseded by...
71587         * m4/stat-time.m4: New file.
71588         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
71589         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
71590
71591 2005-09-15  Derek Price  <derek@ximbiot.com>
71592
71593         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
71594
71595 2005-09-15  Derek Price  <derek@ximbiot.com>
71596
71597         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
71598         * lib/regex_internal.c: Ditto, using this...
71599         (__GNUC_PREREQ): ...new macro.
71600         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
71601         using...
71602         (__GNUC_PREREQ): ...this new macro.
71603
71604         * lib/strstr.h: Include string.h. Define strstr as a macro here.
71605
71606 2005-09-15  Derek Price  <derek@ximbiot.com>
71607             Paul Eggert  <eggert@cs.ucla.edu>
71608
71609         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
71610         changes, consolidating in...
71611         * lib/regex_internal.h: ...this file.
71612
71613 2005-09-13  Jim Meyering  <jim@meyering.net>
71614
71615         * lib/canon-host.c: Filter through gnu indent and reword comments
71616         slightly.
71617         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
71618
71619 2005-09-13  Derek Price  <derek@ximbiot.com>
71620
71621         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
71622         failure.
71623         Reported by Jim Meyering  <jim@meyering.net>.
71624
71625 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71626
71627         * lib/base64.c: Typo.
71628         (base64_encode): Put b64str in initialized data section.
71629
71630 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
71631
71632         Merge glibc and coreutils changes into gnulib, plus a few
71633         extra fixes.
71634         * lib/md5.c: Use #error rather than a string.
71635         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
71636         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
71637         (__attribute__): Define to empty for non recent-GCC.
71638         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
71639         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
71640         Renamed from their non-__ counterparts, with new macros replacing
71641         them if not _LIBC.  Add __THROW attribute.
71642         (rol): Remove.
71643         (struct md5_ctx): Align buffer if using GCC.
71644         * lib/sha1.h (struct sha1_ctx): Likewise.
71645         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
71646         The old name was backwards.
71647         (NOTSWAP): Remove; not used.
71648         (rol): New macro, moved here from md5.h.
71649         (sha1_process_block): Remove a FIXME that doesn't make sense.
71650
71651 2005-09-12  Derek Price  <derek@ximbiot.com>
71652
71653         Return usable errors from canon-host.
71654         * lib/canon-host.h: New file.
71655         * lib/canon-host.c (canon_host): Wrap...
71656         (canon_host_r): ...this new function, which now relies exclusively on
71657         getaddrinfo.
71658         (ch_strerror): New function.
71659         (last_cherror): New global.
71660         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
71661         interface.
71662         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
71663         void *.
71664         (freeaddrinfo): Free ai->ai_canonname when set.
71665
71666 2005-09-12  Derek Price  <derek@ximbiot.com>
71667
71668         Make canon-host require getaddrinfo.
71669         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
71670         AC_LIBSOURCE canon-host.h.  Call...
71671         (gl_PREREQ_CANON_HOST): ...this new function, which requires
71672         gl_GETADDRINFO.
71673         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
71674
71675 2005-09-12  Derek Price  <derek@ximbiot.com>
71676
71677         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
71678         LGPL.
71679         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
71680
71681 2005-09-12  Derek Price  <derek@ximbiot.com>
71682
71683         * lib/gai_strerror.c: Include config.h when available.  Include
71684         getaddrinfo.h before other headers to test interface.
71685         Reported by Larry Jones <lawrence.jones@ugs.com>.
71686
71687 2005-09-12  Derek Price  <derek@ximbiot.com>
71688             Paul Eggert  <eggert@cs.ucla.edu>
71689
71690         * modules/glob (Files): Add glob-libc.h.
71691
71692 2005-09-12  Derek Price  <derek@ximbiot.com>
71693             Paul Eggert  <eggert@cs.ucla.edu>
71694
71695         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
71696         glob_.h, glob-libc.h.
71697         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
71698
71699 2005-09-12  Derek Price  <derek@ximbiot.com>
71700             Paul Eggert  <eggert@cs.ucla.edu>
71701
71702         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
71703         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
71704         protecting things that should be done only in gnulib contexts.
71705         * lib/glob_.h: New file, containing only the glob things needed for
71706         gnulib.
71707         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
71708         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
71709         (glob, globfree, glob_pattern_p): Now defined simply in terms of
71710         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
71711         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
71712         and to respect the namespace rules better.
71713
71714 2005-09-08  Simon Josefsson  <jas@extundo.com>
71715
71716         * modules/socklen: New file.
71717
71718 2005-09-08  Simon Josefsson  <jas@extundo.com>
71719
71720         * m4/socklen.m4: New file.
71721
71722 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71723
71724         * modules/utimens (Files): Add m4/utimbuf.m4, since
71725         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
71726         Reported by Sergey Poznyakoff.
71727
71728 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71729
71730         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
71731         definitions, since that's the preferred style in glibc.
71732         Fix a minor spacing issue, and update copyright notice to match
71733         glibc's.
71734
71735 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71736
71737         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
71738
71739 2005-09-06  Simon Josefsson  <jas@extundo.com>
71740
71741         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
71742         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
71743
71744 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71745
71746         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
71747         warning.
71748
71749 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71750
71751         * config/srclist.txt: Add glibc bug 1302.
71752
71753 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
71754
71755         Change bitset word type from unsigned int to unsigned long int,
71756         as this has better performance on typical 64-bit hosts.
71757         Port bitset code to hosts with unusual word sizes.
71758         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
71759         (build_collating_symbol):
71760         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
71761         argument is a bitset.  This is merely a style issue, but it makes
71762         it clearer that an entire array is expected.
71763         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
71764         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
71765         Port to the case where bitset_word is not the same as unsigned int.
71766         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71767         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
71768         Likewise.
71769         * lib/regexec.c (check_dst_limits_calc_pos_1,
71770         check_subexp_matching_top):
71771         (build_trtable, group_nodes_into_DFAstates):
71772         Likewise.
71773         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
71774         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
71775         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
71776         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
71777         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
71778         * lib/regcomp.c (optimize_subexps, lower_subexp):
71779         Work even if bitset_word has holes in its bitwise representation.
71780         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
71781         * lib/regexec.c (check_dst_limits_calc_pos_1,
71782         check_subexp_matching_top):
71783         Likewise.
71784         * lib/regex_internal.c (re_string_reconstruct):
71785         Don't assume UCHAR_MAX == 255.
71786         * lib/regex_internal.h (bitset_set_all): Likewise.
71787         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
71788         All uses changed.
71789         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
71790         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
71791         All uses changed.
71792         (BITSET_WORD_MAX): New macro.
71793         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
71794         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
71795         (bitset_empty, bitset_copy):
71796         Prefer sizeof (bitset) to multiplying it out ourselves.
71797         (bitset_not_merge): Remove; unused.
71798         (bitset_contain): Return bool, not unsigned int with one bit on.
71799         All callers changed.
71800         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
71801         alignment than re_node_set; do this by defining a new internal
71802         type struct dests_alloc and using it to allocate memory.
71803
71804 2005-09-05  Bruno Haible  <bruno@clisp.org>
71805
71806         * gnulib-tool (func_import): Fix comparison in handling of symbolic
71807         links.
71808
71809 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
71810
71811         * modules/size_max (Makefile.am): Add size_max.h
71812
71813 2005-09-04  Derek Price  <derek@ximbiot.com>
71814
71815         * gnulib-tool (func_import): Fix reversed $symbolic logic.
71816
71817 2005-09-03  Simon Josefsson  <jas@extundo.com>
71818
71819         * gnulib-tool: Fix typo.
71820
71821 2005-09-03  Simon Josefsson  <jas@extundo.com>
71822
71823         * config/srclist.txt: Add glibc bug 1293.
71824
71825 2005-09-03  Derek Price  <derek@ximbiot.com>
71826
71827         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
71828         From Larry Jones <lawrence.jones@ugs.com>.
71829
71830 2005-09-02  Simon Josefsson  <jas@extundo.com>
71831
71832         * modules/socklen: New file.
71833
71834 2005-09-02  Simon Josefsson  <jas@extundo.com>
71835
71836         * modules/havelib: New module.
71837
71838         * modules/gettext, modules/iconv, modules/lock, modules/readline:
71839         Use havelib.
71840
71841 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71842
71843         Check for arithmetic overflow when calculating sizes, to prevent
71844         some buffer-overflow issues.  These patches are conservative, in the
71845         sense that when I couldn't determine whether an overflow was possible,
71846         I inserted a run-time check.
71847         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
71848         macros.
71849         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
71850         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
71851         (re_xnrealloc, re_x2nrealloc): New inline functions.
71852         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
71853         parse_bracket_exp):
71854         (build_equiv_class, build_charclass): Check for arithmetic overflow
71855         in size expression calculations.
71856         * lib/regex_internal.c (re_string_realloc_buffers):
71857         (build_wcs_upper_buffer, re_node_set_add_intersect):
71858         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
71859         (re_dfa_add_node, register_state): Likewise.
71860         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
71861         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
71862         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
71863         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
71864
71865 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71866
71867         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71868         m4/ulonglong.m4.  Problem reported by Martin Lambers.
71869
71870 2005-09-02  Bruno Haible  <bruno@clisp.org>
71871
71872         Support for lib vs. lib64 distinction on biarch platforms.
71873         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
71874         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
71875         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
71876
71877 2005-09-02  Bruno Haible  <bruno@clisp.org>
71878
71879         * gnulib-tool (import): In the other first-use case, provide defaults
71880         as well.
71881
71882 2005-09-02  Bruno Haible  <bruno@clisp.org>
71883
71884         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
71885         patches not yet found in the latest gettext release.
71886
71887 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71888
71889         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
71890         to avoid a collision with bits/local_lim.h in glibc.
71891         All uses changed.  Problem reported by Dmitry V. Levin in
71892         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
71893
71894         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
71895         bugs in int versus size_t comparisons.
71896         (re_string_context_at): Fix bug where the code assumed that
71897         Idx is signed.
71898
71899         Use bool where appropriate.
71900         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
71901         All callers changed.
71902         (calc_eclosure_iter): Likewise, for ROOT arg.
71903         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
71904         (build_charclass_op): Likewise, for NON_MATCH arg.
71905         * lib/regex_internal.c (re_string_allocate, re_string_construct):
71906         (re_string_construct_common): Likewise, for ICASE arg.
71907         * lib/regexec.c (re_search_2_stub, re_search_stub):
71908         Likewise, for RET_LEN arg.
71909         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
71910         (set_regs): Likewise, for FL_BACKTRACK arg.
71911         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
71912         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
71913         (calc_eclosure_iter, parse_bracket_exp):
71914         Use bool for internal variables that are booleans.
71915         * lib/regexec.c (re_search_internal, check_matching,
71916         proceed_next_node):
71917         (set_regs, build_sifted_states, sift_states_bkref):
71918         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
71919         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71920         (find_collation_sequence_value):
71921         Likewise.
71922         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
71923         (re_node_set_compare):
71924         Return bool, not int. All callers changed.
71925         * lib/regexec.c (check_halt_node_context, check_dst_limits):
71926         (build_trtable, check_node_accept): Likewise.
71927         * lib/regex_internal.h: Include stdbool.h.
71928
71929         Fix bugs uncovered when converting to bool.
71930         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
71931         failure instead of charging ahead blindly.
71932         * lib/regex_internal.c (register_state): Likewise.
71933         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
71934         for freeing internal storage.
71935         (group_nodes_into_DFA_states): Use unsigned int, not int, for
71936         bitset pieces used as boolean, to avoid undefined behavior
71937         on hosts that do int overflow checking.
71938
71939 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71940
71941         * config/srclist.txt: Add glibc bugs 1285-1287.
71942
71943 2005-09-01  Jim Meyering  <jim@meyering.net>
71944
71945         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
71946         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
71947         Require gl_STAT_MACROS, too.
71948
71949 2005-09-01  Bruno Haible  <bruno@clisp.org>
71950
71951         * gnulib-tool (import): In the first-use case, provide defaults.
71952
71953 2005-09-01  Bruno Haible  <bruno@clisp.org>
71954
71955         * gnulib-tool (func_import): Remove the .tmp files.
71956
71957 2005-09-01  Bruno Haible  <bruno@clisp.org>
71958
71959         * gnulib-tool (func_import): Fix handling of symbolic links.
71960
71961 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71962
71963         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
71964         old glibc regex code mishandles strings longer than 2**31 bytes.
71965         This patch fixes this when the regex code is used in gnulib
71966         (i.e., outside glibc).
71967
71968         This patch should not affect the use of the regex code inside
71969         glibc.  No doubt this problem also needs to be handled for glibc
71970         as well, but the result will be an incompatible change to the
71971         glibc ABI, and the old ABI will have to be supported too.  That
71972         can be the the subject for another patch.
71973
71974         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
71975         governing whether the rest of this patch is active.  By default,
71976         the macro is disabled and the patch has no effect.
71977         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
71978         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
71979         (struct re_pattern_buffer, re_search, re_search_2, re_match):
71980         (re_match_2, re_set_registers): Use the new types.
71981         * lib/regex_internal.h (Idx, re_hashval_t): New types.
71982         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
71983         New macros.
71984         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
71985         (re_string_context_at, bin_tree_t, re_dfastate_t):
71986         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
71987         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
71988         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
71989         (re_string_char_size_at, re_string_wchar_at):
71990         (re_string_elem_size_at):
71991         Use the new types and macros to port to 64-bit hosts.
71992         Use unsigned types for internal values, so that the code
71993         mostly works even for arrays larger than SSIZE_MAX.
71994         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
71995         (search_duplicated_node, calc_eclosure_iter, fetch_number):
71996         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
71997         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
71998         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
71999         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
72000         (calc_inveclosure, parse_dup_op, build_range_exp):
72001         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
72002         (fetch_number, create_token_tree, mark_opt_subexp):
72003         Likewise.
72004         * lib/regex_internal.c (re_string_construct_common,
72005         create_ci_newstate):
72006         (create_cd_newstate, re_string_allocate, re_string_construct):
72007         (re_string_realloc_buffers, build_wcs_upper_buffer):
72008         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72009         (re_string_reconstruct, re_string_peek_byte_case):
72010         (re_string_fetch_byte_case, re_string_context_at):
72011         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72012         (re_node_set_init_copy, re_node_set_add_intersect):
72013         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72014         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72015         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72016         (re_acquire_state, re_acquire_state_context, register_state):
72017         Likewise.
72018         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
72019         search_cur_bkref_entry):
72020         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
72021         (re_search_internal, re_search_2_stub, re_search_stub)
72022         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
72023         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
72024         (update_cur_sifted_state, check_dst_limits):
72025         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
72026         (check_subexp_limits, sift_states_bkref, merge_state_array):
72027         (check_subexp_matching_top, get_subexp, get_subexp_sub):
72028         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
72029         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72030         (expand_bkref_cache, check_node_accept_bytes):
72031         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
72032         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
72033         (acquire_init_state_context, check_halt_node_context):
72034         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
72035         (sift_states_backward, clean_state_log_if_needed):
72036         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
72037         (find_recover_state, transit_state_sb, transit_state_mb):
72038         (transit_state_bkref, build_trtable, match_ctx_clean):
72039         Likewise.
72040         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
72041         to work around an assumption that REG_MISSING is negative.
72042
72043         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
72044         (seek_collating_symbol_entry) [defined _LIBC]:
72045         (lookup_collation_sequence_value) [defined _LIBC]:
72046         (build_range_exp, build_collating_symbol) [defined _LIBC]:
72047         Use prototypes rather than old-style function definitions.
72048         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
72049         (transit_state_sb) [0]:
72050         (find_collation_sequence_value) [defined _LIBC]: Likewise.
72051
72052         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
72053         rm_eo.
72054
72055         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
72056         (optimize_subexps, lower_subexp):
72057         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
72058         since the signed shift might overflow.  Use 1u<<31 instead.
72059         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
72060         Likewise.
72061         * lib/regexec.c (check_dst_limits_calc_pos_1,
72062         check_subexp_matching_top): Likewise.
72063
72064         * lib/regcomp.c (optimize_subexps, lower_subexp):
72065         Use CHAR_BIT rather than 8, for clarity.
72066         * lib/regexec.c (check_dst_limits_calc_pos_1):
72067         (check_subexp_matching_top): Likewise.
72068         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
72069         have to worry about portability issues when shifting it left.
72070         Remove no-longer-needed test for table_size > 0.
72071         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
72072         in a word, as the resulting behavior is undefined.
72073         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
72074         in one case, a <= should have been an <, and in another case the
72075         whole test was missing.
72076         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
72077         the standard name CHAR_BIT.
72078         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
72079         this is not true on one's complement and signed-magnitude hosts.
72080
72081         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
72082         next_last_offset.
72083         (struct re_dfa_t): Remove unused member states_alloc.
72084         * lib/regcomp.c (init_dfa): Don't initialize unused members.
72085
72086 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72087
72088         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
72089         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
72090         and large-file glibc and in 32-bit large-file Solaris.
72091
72092 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72093
72094         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
72095         lengths fit in regoff_t; this isn't true if regoff_t is the same
72096         width as size_t.
72097         * lib/regex.c (re_search_internal): 5th arg is LAST_START
72098         (= START + RANGE) instead of RANGE.  This avoids overflow
72099         problems when regoff_t is the same width as size_t.
72100         All callers changed.
72101         (re_search_2_stub): Check for overflow when adding the
72102         sizes of the two strings.
72103         (re_search_stub): Check for overflow when adding START
72104         to RANGE; if it occurs, substitute the extreme value.
72105
72106 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72107
72108         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
72109
72110 2005-08-31  Jim Meyering  <jim@meyering.net>
72111
72112         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
72113         a pointer-to-const.
72114         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
72115         (register_state): Likewise.
72116         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
72117         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
72118         (group_nodes_into_DFAstates): Likewise.
72119
72120 2005-08-31  Jim Meyering  <jim@meyering.net>
72121
72122         * check-module: Add a FIXME comment.
72123
72124 2005-08-31  Eric Blake  <ebb9@byu.net>
72125
72126         * modules/unistd-safer (Files): Add unistd--.h.
72127         * modules/stdio-safer (Files): Add stdio--.h.
72128
72129 2005-08-31  Derek Price  <derek@ximbiot.com>
72130
72131         * lib/getdelim.c (getdelim): Return EOF on EOF.
72132         Reported by Larry Jones <lawrence.jones@ugs.com>.
72133
72134 2005-08-31  Bruno Haible  <bruno@clisp.org>
72135
72136         Avoid unnecessary diffs in the generated lib/Makefile.am.
72137         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
72138         the generated files.
72139         (func_import): Don't set cmd.
72140
72141 2005-08-31  Bruno Haible  <bruno@clisp.org>
72142
72143         * lib/strstr.c: Include <stddef.h>, for NULL.
72144         * lib/strcasestr.c: Likewise.
72145         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72146
72147 2005-08-31  Bruno Haible  <bruno@clisp.org>
72148
72149         * gnulib-tool: New option --macro-prefix.
72150         (func_import): Use macro_prefix.
72151         (import): Handle option --macro-prefix.
72152
72153 2005-08-31  Bruno Haible  <bruno@clisp.org>
72154
72155         * gnulib-tool (import): Rename most ac_* variables to cached_*.
72156         Also use new variables cached_lgpl, cached_libtool.
72157
72158 2005-08-31  Bruno Haible  <bruno@clisp.org>
72159
72160         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
72161         always instantiating them.
72162
72163 2005-08-31  Bruno Haible  <bruno@clisp.org>
72164
72165         * gnulib-tool (func_import): Read the previous cached settings
72166         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
72167         earlier added by gnulib but are now dropped. Warn when a gnulib file
72168         overwrites a non-gnulib file.
72169
72170 2005-08-31  Bruno Haible  <bruno@clisp.org>
72171
72172         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
72173         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
72174         projects that don't keep autogenerated files in CVS. Put into
72175         actioncmd only the specified modules, not the transitive closure.
72176
72177 2005-08-31  Bruno Haible  <bruno@clisp.org>
72178
72179         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
72180         Create directories that shall be filled.
72181         (import): Don't look for gl_* macros in configure.ac. Recurse across
72182         all directories containing a gnulib-cache.m4 files, if meaningful.
72183
72184 2005-08-31  Bruno Haible  <bruno@clisp.org>
72185
72186         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
72187         (import): Set seen_libtool when we see gl_LIBTOOL.
72188
72189 2005-08-31  Bruno Haible  <bruno@clisp.org>
72190
72191         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
72192         declaration macro definitions from generated gnulib.m4.
72193
72194 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
72195
72196         * lib/iconvme.h: Add prototype for iconv_alloc.
72197
72198 2005-08-29  Simon Josefsson  <jas@extundo.com>
72199
72200         * lib/iconvme.c: Fix errno.
72201
72202 2005-08-29  Bruno Haible  <bruno@clisp.org>
72203
72204         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
72205         that it works when the directory contains spaces.
72206
72207 2005-08-29  Bruno Haible  <bruno@clisp.org>
72208
72209         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
72210
72211 2005-08-29  Bruno Haible  <bruno@clisp.org>
72212
72213         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
72214         Emit more advice.
72215
72216 2005-08-29  Bruno Haible  <bruno@clisp.org>
72217         and Stepan Kasal  <kasal@ucw.cz>
72218
72219         * check-module: If more parameters are given, check each of them
72220         separately; add more exceptions, as noted by Jim Meyering.
72221         (check_module): New procedure.
72222         (%exempt_header): Now contains all exceptions.
72223
72224 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
72225
72226         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
72227
72228 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
72229
72230         * lib/iconvme.c: Split iconv_string into iconv_alloc.
72231
72232 2005-08-28  Bruno Haible  <bruno@clisp.org>
72233
72234         * m4/gnulib-tool.m4: New file.
72235
72236 2005-08-27  Jim Meyering  <jim@meyering.net>
72237
72238         * modules/unistd-safer (Files): Add pipe-safer.c.
72239         * modules/fcntl-safer (Files): Add creat-safer.c.
72240
72241 2005-08-27  Jim Meyering  <jim@meyering.net>
72242
72243         * m4/stdlib-safer.m4: New file.  From coreutils.
72244         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
72245         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
72246         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
72247         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
72248         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
72249
72250 2005-08-27  Jim Meyering  <jim@meyering.net>
72251
72252         * lib/fopen-safer.c: Merge minor changes from coreutils.
72253         * lib/dup-safer.c: Likewise.
72254         * lib/fd-safer.c: Likewise.
72255
72256         Merge from coreutils.
72257         * lib/stdio--.h: New file.
72258         * lib/stdlib--.h: New file.
72259         * lib/mkstemp-safer.c: New file.
72260
72261         GNU tar needs these.
72262         * lib/pipe-safer.c: New file.
72263         * lib/creat-safer.c: New file.
72264         * lib/fcntl--.h (creat): Define to creat_safer.
72265         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
72266         * lib/unistd--.h (pipe): Define to pipe_safer.
72267         * lib/unistd-safer.h: Declare pipe_safer.
72268
72269 2005-08-26  Simon Josefsson  <jas@extundo.com>
72270
72271         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
72272         Haible <bruno@clisp.org>.
72273
72274 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
72275
72276         * lib/regex_internal.h: Remove all references to
72277         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
72278         or better.
72279         (bitset_not, bitset_merge, bitset_not_merge):
72280         (bitset_mask, re_string_allocate, re_string_construct):
72281         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
72282         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
72283         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
72284         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
72285         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72286         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72287         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
72288         (re_acquire_state_context):
72289         Remove unnecessary forward decls.
72290         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
72291         Put __attribute at function definition,
72292         now that the function decl has been removed.
72293         * lib/regex_internal.c (re_string_peek_byte_case):
72294         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
72295         Likewise.
72296
72297 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
72298
72299         * m4/regex.m4: Add AC_PREREQ(2.50).
72300         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
72301
72302 2005-08-25  Simon Josefsson  <jas@extundo.com>
72303
72304         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
72305         __fsetlocking.
72306
72307 2005-08-25  Simon Josefsson  <jas@extundo.com>
72308
72309         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
72310         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
72311         GLIBC specific code.
72312
72313 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72314
72315         Make regex safe for g++.  This fixes one real bug (an "err"
72316         that should have been "*err").  g++ problem reported by
72317         Sam Steingold.
72318         * lib/regex_internal.h (re_calloc): New macro, consistent with
72319         re_malloc etc.  All callers of calloc changed to use re_calloc.
72320         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
72321         not int.  All callers changed.
72322         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
72323         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
72324         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
72325         (find_recover_state): Change "err" to "*err"; this fixes what
72326         appears to be a real bug.
72327         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
72328         versus int.
72329
72330 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72331
72332         * modules/regex (Depends-on): Add malloc, since the code
72333         assumes that !malloc(0) means failure.
72334
72335 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72336
72337         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
72338
72339         alloca modernization/simplification for regex.
72340         * lib/regex.c: Remove portability cruft for alloca.  This no longer
72341         needs to be at the start of the file, and can be moved into
72342         regex_internal.h and simplified.
72343         * lib/regex_internal.h: Include <alloca.h>.
72344         (__libc_use_alloca) [!defined _LIBC]: New macro.
72345         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
72346         now works outside glibc.
72347
72348 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72349
72350         * config/srclist.txt: Add glibc bugs 1241, 1245.
72351
72352 2005-08-25  Jim Meyering  <jim@meyering.net>
72353
72354         * lib/open-safer.c: Include <config.h>.
72355         Otherwise, we'd lose LARGEFILE support in any file using
72356         e.g. "fcntl--.h"
72357
72358 2005-08-25  Bruno Haible  <bruno@clisp.org>
72359
72360         * m4/minmax.m4: Require autoconf 2.52.
72361         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
72362         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
72363         alternatives of translit over the alphabet.
72364         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
72365
72366 2005-08-24  Simon Josefsson  <jas@extundo.com>
72367
72368         * tests/test-getpass.c: New file.
72369
72370 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72371
72372         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
72373         for GNU regex features.
72374
72375 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72376
72377         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
72378         * lib/regex.h (regerror): Likewise.
72379
72380         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
72381         requires this.  (The code never needed it.)
72382
72383         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
72384         All uses of recently-renamed identifiers changed to use the new,
72385         POSIX-compliant names.  The code will build and run just fine
72386         without these changes, but it's better to eat our own dog food
72387         and use the standard-conforming names.
72388
72389         * lib/regex.h: Fix a multitude of POSIX name space violations.
72390         These changes have an effect only for programs that define
72391         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
72392         do not change anything for programs compiled in the normal way.
72393         Also, there is no effect on the ABI.
72394
72395         (_REGEX_SOURCE): New macro.
72396         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
72397         defined and _GNU_SOURCE is not; this fixes a name space violation.
72398
72399         Rename the following macros to obey POSIX requirements.
72400         The old names are still visible as macros if _REGEX_SOURCE is defined.
72401         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
72402         RE_BACKSLASH_ESCAPE_IN_LISTS.
72403         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
72404         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
72405         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
72406         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
72407         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
72408         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
72409         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
72410         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
72411         (REG_INTERVALS): renamed from RE_INTERVALS.
72412         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
72413         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
72414         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
72415         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
72416         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
72417         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
72418         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
72419         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
72420         RE_UNMATCHED_RIGHT_PAREN_ORD.
72421         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
72422         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
72423         (REG_DEBUG): renamed from RE_DEBUG.
72424         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
72425         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
72426         unusual, since we can't clash with the POSIX REG_ICASE.
72427         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
72428         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
72429         (REG_NO_SUB): renamed from RE_NO_SUB.
72430         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
72431         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
72432         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
72433         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
72434         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
72435         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
72436         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
72437         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
72438         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
72439         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
72440         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
72441         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
72442         RE_SYNTAX_POSIX_MINIMAL_BASIC.
72443         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
72444         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
72445         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
72446         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
72447         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
72448         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
72449         (REG_FIXED): Renamed from REGS_FIXED.
72450         (REG_NREGS): Renamed from RE_NREGS.
72451
72452         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
72453         of other REG_* macros, since POSIX says the user is allowed to
72454         #undef these macros selectively.
72455
72456         (reg_errcode_t): Update comment stating what other tables need
72457         to be consistent.
72458
72459         Rename the following enum values to obey POSIX requirements.
72460         The old names are still visible as macros.
72461         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
72462         is not defined, since GNU is supposed to be a superset of POSIX as
72463         much as possible, and since we want reg_errcode_t to be a signed
72464         type for implementation consistency.
72465         (_REG_NOERROR): Renamed from REG_NOERROR.
72466         (_REG_NOMATCH): Renamed from REG_NOMATCH.
72467         (_REG_BADPAT): Renamed from REG_BADPAT.
72468         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
72469         (_REG_ECTYPE): Renamed from REG_ECTYPE.
72470         (_REG_EESCAPE): Renamed from REG_EESCAPE.
72471         (_REG_ESUBREG): Renamed from REG_ESUBREG.
72472         (_REG_EBRACK): Renamed from REG_EBRACK.
72473         (_REG_EPAREN): Renamed from REG_EPAREN.
72474         (_REG_EBRACE): Renamed from REG_EBRACE.
72475         (_REG_BADBR): Renamed from REG_BADBR.
72476         (_REG_ERANGE): Renamed from REG_ERANGE.
72477         (_REG_ESPACE): Renamed from REG_ESPACE.
72478         (_REG_BADRPT): Renamed from REG_BADRPT.
72479         (_REG_EEND): Renamed from REG_EEND.
72480         (_REG_ESIZE): Renamed from REG_ESIZE.
72481         (_REG_ERPAREN): Renamed from REG_ERPAREN.
72482         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
72483         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
72484         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
72485         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
72486
72487         (_REG_RE_NAME, _REG_RM_NAME): New macros.
72488         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
72489         changed.  But support the old name if the new one is not defined
72490         and if _REGEX_SOURCE.
72491
72492         Change the following member names in struct re_pattern_buffer.
72493         The old names are still supported if !_REGEX_SOURCE.
72494         The new names are always supported, regardless of _REGEX_SOURCE.
72495         (re_buffer): Renamed from buffer.
72496         (re_allocated): Renamed from allocated.
72497         (re_used): Renamed from used.
72498         (re_syntax): Renamed from syntax.
72499         (re_fastmap): Renamed from fastmap.
72500         (re_translate): Renamed from translate.
72501         (re_can_be_null): Renamed from can_be_null.
72502         (re_regs_allocated): Renamed from regs_allocated.
72503         (re_fastmap_accurate): Renamed from fastmap_accurate.
72504         (re_no_sub): Renamed from no_sub.
72505         (re_not_bol): Renamed from not_bol.
72506         (re_not_eol): Renamed from not_eol.
72507         (re_newline_anchor): Renamed from newline_anchor.
72508
72509         Change the following member names in struct re_registers.
72510         The old names are still supported if !_REGEX_SOURCE.
72511         The new names are always supported, regardless of _REGEX_SOURCE.
72512         (rm_num_regs): Renamed from num_regs.
72513         (rm_start): Renamed from start.
72514         (rm_end): Renamed from end.
72515
72516         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
72517         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
72518         Prepend __ to parameter names.
72519
72520         Undo yesterday's changes.
72521
72522 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72523
72524         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
72525         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
72526         lib/regex.c.
72527
72528 2005-08-24  Jim Meyering  <jim@meyering.net>
72529
72530         Sync from coreutils.
72531         * m4/fcntl-safer.m4: New file.
72532
72533         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
72534         and object files for this module.
72535
72536 2005-08-24  Jim Meyering  <jim@meyering.net>
72537
72538         Sync from coreutils.
72539         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
72540
72541 2005-08-24  Jim Meyering  <jim@meyering.net>
72542
72543         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
72544         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
72545
72546 2005-08-24  Jim Meyering  <jim@meyering.net>
72547
72548         * modules/fcntl-safer: New module.
72549         * modules/fts (Depends-on): Add fcntl-safer.
72550         * MODULES.html.sh (File descriptor based Input/Output):
72551         Add fcntl-safer.
72552
72553 2005-08-24  Bruno Haible  <bruno@clisp.org>
72554
72555         Support for unit test modules.
72556         * modules/README: Mention tests modules.
72557         * modules/TEMPLATE-TESTS: New file.
72558         * gnulib-tool: New options --extract-tests-module, --with-tests and
72559         --tests-base (unused for the moment).
72560         (testsbase, inctests): New variables.
72561         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
72562         (func_verify_module): Exclude TEMPLATE-TESTS.
72563         (func_verify_nontests_module, func_verify_tests_module): New functions.
72564         (func_get_dependencies): Add implicit dependency for tests modules.
72565         (func_get_tests_module): New function.
72566         (func_modules_transitive_closure): When --with-tests was specified,
72567         include the unit tests as well, unless explicitly avoided.
72568         (func_emit_lib_Makefile_am): Ignore the tests modules here.
72569         (func_emit_tests_Makefile_am): New function.
72570         (func_create_testdir): When --with-tests was specified, emit a
72571         tests/ directory.
72572         * MODULES.html.sh (Future developments): Update.
72573
72574 2005-08-24  Bruno Haible  <bruno@clisp.org>
72575
72576         * modules/tls-tests: New file.
72577         * tests/test-tls.c: New file, from GNU gettext.
72578
72579 2005-08-24  Bruno Haible  <bruno@clisp.org>
72580
72581         * modules/lock-tests: New file.
72582         * tests/test-lock.c: New file, from GNU gettext.
72583
72584 2005-08-24  Bruno Haible  <bruno@clisp.org>
72585
72586         * lib/lock.h: Add multiple inclusion guard.
72587         * lib/tls.h: Add multiple inclusion guard.
72588
72589 2005-08-24  Bruno Haible  <bruno@clisp.org>
72590
72591         * gnulib-tool: Add support for the --aux-dir option to
72592         --create-testdir, --create-megatestdir, --test, --megatest.
72593         (func_create_testdir, func_create_megatestdir): Optionally emit a
72594         AC_CONFIG_AUX_DIR directive.
72595         (create-testdir, create-megatestdir, test, megatest): Provide a
72596         default value for $auxdir.
72597
72598 2005-08-24  Bruno Haible  <bruno@clisp.org>
72599
72600         * gnulib-tool (import): Use compound statement instead of subshell
72601         where possible.
72602
72603 2005-08-24  Bruno Haible  <bruno@clisp.org>
72604
72605         * gnulib-tool (import): Change --aux-dir default to "build-aux".
72606
72607 2005-08-24  Bruno Haible  <bruno@clisp.org>
72608
72609         * gnulib-tool (func_version): Update.
72610
72611 2005-08-24  Bruno Haible  <bruno@clisp.org>
72612
72613         * gnulib-tool (func_import, func_create_testdir,
72614         func_create_megatestdir): Quote all autoconf macro arguments.
72615
72616 2005-08-24  Bruno Haible  <bruno@clisp.org>
72617
72618         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
72619         option --force, because --force causes the aclocal.m4 of each
72620         subdirectory to be newer than the corresponding config.h.in.
72621
72622 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72623
72624         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
72625         All contents moved to gl_REGEX.
72626         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
72627         assume that it does.
72628
72629 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72630
72631         * lib/regex.h (REG_NOSYS)
72632         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
72633         Define, since POSIX requires it as of 2001.
72634         (_REG_ENOSYS)
72635         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
72636         New private symbol, used to keep the enum signed in all cases.
72637         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
72638         Youngman in
72639         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
72640
72641         * lib/regex_internal.c (re_string_skip_chars, register_state):
72642         (calc_state_hash):
72643         Remove forward decls; no longer needed now that we use prototypes.
72644         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
72645         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
72646         (clean_state_log_if_needed): Likewise.
72647
72648 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72649
72650         * config/srclist.txt: Add glibc bugs 1231-1233.
72651
72652 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72653
72654         Fix problems reported by Sam Steingold in
72655         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
72656         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
72657         assumed that reg_errcode_t is a signed type, which is not
72658         necessarily true if _XOPEN_SOURCE is not defined.
72659         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
72660         since some compilers warn about it otherwise.
72661
72662 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72663
72664         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
72665         (init_word_char, create_initial_state, duplicate_node_closure):
72666         (fetch_token, peek_token_bracket, build_range_exp):
72667         (build_collating_symbol): Remove forward decls; no longer needed
72668         now that we use prototypes.
72669
72670         * lib/regcomp.c:
72671         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
72672         (re_compile_fastmap_iter, regcomp, regerror, regfree):
72673         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
72674         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
72675         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
72676         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
72677         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
72678         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
72679         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
72680         (build_range_exp, build_collating_symbol, parse_bracket_exp):
72681         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
72682         (build_charclass, build_charclass_op, fetch_number, create_tree):
72683         (create_token_tree, mark_opt_subexp, duplicate_tree):
72684         Use prototypes rather than old-style definitions.
72685
72686         * lib/regex_internal.c:
72687         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
72688         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
72689         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72690         (re_string_reconstruct, re_string_peek_byte_case):
72691         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
72692         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72693         (re_node_set_init_copy, re_node_set_add_intersect):
72694         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72695         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72696         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72697         (re_acquire_state, re_acquire_state_context, register_state):
72698         (create_ci_newstate, create_cd_newstate, free_state):
72699         Likewise.
72700         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
72701         re_search_2):
72702         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
72703         (re_search_internal, prune_impossible_nodes):
72704         (acquire_init_state_context, check_matching, static):
72705         (check_halt_node_context, check_halt_state_context, proceed_next_node):
72706         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
72707         (update_regs, sift_states_backward, build_sifted_states):
72708         (clean_state_log_if_needed, merge_state_array):
72709         (update_cur_sifted_state, add_epsilon_src_nodes):
72710         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
72711         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
72712         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
72713         (find_recover_state, check_subexp_matching_top, transit_state_mb):
72714         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
72715         (check_arrival, check_arrival_add_next_nodes):
72716         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72717         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
72718         (check_node_accept_bytes, check_node_accept, extend_buffers):
72719         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
72720         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
72721         (sift_ctx_init):
72722         Likewise.
72723
72724         * lib/regex_internal.h:
72725         (re_string_allocate, re_string_construct, re_string_reconstruct):
72726         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
72727         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
72728         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
72729         (re_string_context_at, re_string_peek_byte_case):
72730         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
72731         is defined, since we now use prototypes always.
72732
72733         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
72734         C89 or better.  All uses removed.
72735
72736 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72737
72738         * config/srclist.txt: Add glibc bugs 1220-1227.
72739
72740 2005-08-20  Jim Meyering  <jim@meyering.net>
72741
72742         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
72743         of unused local, dfa.
72744
72745 2005-08-20  Bruno Haible  <bruno@clisp.org>
72746
72747         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
72748
72749 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72750
72751         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
72752         (re_node_set_insert_last, re_dfa_add_node):
72753         Rename local variables to avoid GCC shadowing warnings.
72754
72755 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72756
72757         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
72758         [defined lint]: Suppress bogus uninitialized-variable warnings.
72759
72760         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
72761         and let the caller return REG_ESPACE if out of space.  This
72762         removes an uninitialied-variable warning with GCC 4.0.1, and also
72763         avoids taking the address of a local variable.  All callers
72764         changed.
72765
72766 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72767
72768         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
72769         $LIBCSRC/posix/regexec.c.
72770         Add glibc bug 1217 for regcomp.c.
72771
72772 2005-08-19  Jim Meyering  <jim@meyering.net>
72773
72774         * lib/regexec.c (proceed_next_node): Redo local variables to
72775         avoid GCC shadowing warnings.
72776
72777 2005-08-18  Bruno Haible  <bruno@clisp.org>
72778
72779         * lib/strstr.c (strstr): Fix return value in multibyte case.
72780         * lib/strcasestr.c (strcasestr): Likewise.
72781
72782 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72783
72784         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
72785
72786 2005-08-17  Jim Meyering  <jim@meyering.net>
72787
72788         Make the %s format (seconds since the epoch) work for a negative
72789         number and when used with a zero-padded field width, e.g. %015s.
72790
72791         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
72792         label so that it precedes the code to set `digits'.  Otherwise,
72793         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
72794         print `00-22'.  Now, it prints `-0022', as it should.
72795
72796 2005-08-17  Bruno Haible  <bruno@clisp.org>
72797
72798         * modules/strstr (Files): Add m4/mbrtowc.m4.
72799         (Depends-on): Add mbuiter.
72800
72801 2005-08-17  Bruno Haible  <bruno@clisp.org>
72802
72803         * modules/strcasestr: New file.
72804         * MODULES.html.sh (String handling, based on ANSI C 89): Add
72805         strcasestr.
72806
72807 2005-08-17  Bruno Haible  <bruno@clisp.org>
72808
72809         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
72810
72811 2005-08-17  Bruno Haible  <bruno@clisp.org>
72812
72813         * modules/mbuiter: New file.
72814         * MODULES.html.sh (Extended multibyte and wide character utilities):
72815         Add mbuiter.
72816
72817 2005-08-17  Bruno Haible  <bruno@clisp.org>
72818
72819         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
72820         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
72821
72822 2005-08-17  Bruno Haible  <bruno@clisp.org>
72823
72824         * m4/strcasestr.m4: New file.
72825
72826 2005-08-17  Bruno Haible  <bruno@clisp.org>
72827
72828         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
72829         * lib/strstr.c: Completely rewritten, with multibyte locale support.
72830
72831 2005-08-17  Bruno Haible  <bruno@clisp.org>
72832
72833         * lib/strcasestr.h: New file.
72834         * lib/strcasestr.c: New file.
72835
72836 2005-08-17  Bruno Haible  <bruno@clisp.org>
72837
72838         * lib/strcasecmp.c: Use mbuiter.h.
72839
72840 2005-08-17  Bruno Haible  <bruno@clisp.org>
72841
72842         * lib/mbuiter.h: New file.
72843
72844 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72845
72846         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
72847         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
72848         and gl_GETOPT are both invoked via different paths (as happens
72849         with GNU tar CVS because it uses both argp and getopt), the former
72850         wins.
72851
72852 2005-08-16  Bruno Haible  <bruno@clisp.org>
72853
72854         * modules/tls: New file.
72855         * MODULES.html.sh (Multithreading): Add tls.
72856
72857 2005-08-16  Bruno Haible  <bruno@clisp.org>
72858
72859         * modules/strnlen1: New file.
72860         * MODULES.html.sh (String handling): Add strnlen1.
72861
72862 2005-08-16  Bruno Haible  <bruno@clisp.org>
72863
72864         * modules/strcase (Files): Add m4/mbrtowc.m4.
72865         (Depends-on): Add strnlen1, mbchar.
72866
72867 2005-08-16  Bruno Haible  <bruno@clisp.org>
72868
72869         * modules/mbiter: New file.
72870         * MODULES.html.sh (Extended multibyte and wide character utilities):
72871         Add mbiter.
72872
72873 2005-08-16  Bruno Haible  <bruno@clisp.org>
72874
72875         * modules/mbfile: New file.
72876         * MODULES.html.sh (Extended multibyte and wide character utilities):
72877         Add mbfile.
72878
72879 2005-08-16  Bruno Haible  <bruno@clisp.org>
72880
72881         * modules/mbchar: New file.
72882         * MODULES.html.sh (Extended multibyte and wide character utilities):
72883         New section.
72884
72885 2005-08-16  Bruno Haible  <bruno@clisp.org>
72886
72887         * m4/tls.m4: New file, from GNU gettext.
72888
72889 2005-08-16  Bruno Haible  <bruno@clisp.org>
72890
72891         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
72892         always.
72893         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
72894
72895 2005-08-16  Bruno Haible  <bruno@clisp.org>
72896
72897         * m4/mbiter.m4: New file.
72898
72899 2005-08-16  Bruno Haible  <bruno@clisp.org>
72900
72901         * m4/mbfile.m4: New file.
72902
72903 2005-08-16  Bruno Haible  <bruno@clisp.org>
72904
72905         * m4/mbchar.m4: New file.
72906
72907 2005-08-16  Bruno Haible  <bruno@clisp.org>
72908
72909         * lib/tls.h: New file, from GNU gettext.
72910         * lib/tls.c: New file, from GNU gettext.
72911
72912 2005-08-16  Bruno Haible  <bruno@clisp.org>
72913
72914         * lib/strnlen1.h: New file.
72915         * lib/strnlen1.c: New file.
72916
72917 2005-08-16  Bruno Haible  <bruno@clisp.org>
72918
72919         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
72920         (mbi_init): Update.
72921         (mbi_avail, mbi_advance): Let the iteration end before the terminating
72922         NUL byte, not after it.
72923
72924 2005-08-16  Bruno Haible  <bruno@clisp.org>
72925
72926         * lib/strcase.h (strcasecmp): Add note in comments.
72927         * lib/strncasecmp.c: Use code from strcasecmp.c.
72928         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
72929         (strcasecmp): Work correctly in multibyte locales.
72930
72931 2005-08-16  Bruno Haible  <bruno@clisp.org>
72932
72933         * lib/mbiter.h: New file.
72934
72935 2005-08-16  Bruno Haible  <bruno@clisp.org>
72936
72937         * lib/mbfile.h: New file.
72938
72939 2005-08-16  Bruno Haible  <bruno@clisp.org>
72940
72941         * lib/mbchar.h: New file.
72942         * lib/mbchar.c: New file.
72943
72944 2005-08-16  Bruno Haible  <bruno@clisp.org>
72945
72946         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
72947         the valid ones. Makes the comparison operations transitive:
72948         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
72949         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
72950
72951 2005-08-15  Simon Josefsson  <jas@extundo.com>
72952
72953         * modules/ssize_t (License): Change to 'unlimited'.
72954
72955         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
72956
72957 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72958
72959         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
72960         Add comments for each pending glibc patch.
72961
72962 2005-08-15  Bruno Haible  <bruno@clisp.org>
72963
72964         * lib/regex.h (__restrict_arr): Don't define to __restrict if
72965         __cplusplus is defined.
72966
72967 2005-08-14  Jim Meyering  <jim@meyering.net>
72968
72969         Sync from coreutils.
72970
72971         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
72972         Use the hash-table-based cycle-detection code not just when
72973         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
72974         Reported by James Youngman in
72975         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
72976         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
72977         FTS_TIGHT_CYCLE_CHECK.
72978         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
72979         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
72980         once again.
72981         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
72982         * lib/fts.c (fd_safer): Remove decl.
72983         Include fcntl--.h rather than unistd-safer.h
72984         (fts_safe_changedir): Don't call fd_safer; no longer needed
72985         now that we include fcntl--.h.
72986
72987 2005-08-12  Simon Josefsson  <jas@extundo.com>
72988
72989         * modules/getndelim2: Use ssize_t module.
72990         * modules/getnline: Likewise.
72991         * modules/safe-read: Likewise.
72992         * modules/xreadlink: Likewise.
72993
72994         * modules/ssize_t: New file.
72995
72996 2005-08-12  Simon Josefsson  <jas@extundo.com>
72997
72998         * m4/readline.m4: Look for termcap, curses or ncurses if required.
72999
73000 2005-08-12  Simon Josefsson  <jas@extundo.com>
73001
73002         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73003         ssize_t.
73004
73005 2005-08-12  Simon Josefsson  <jas@extundo.com>
73006
73007         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
73008         readline, getdelim and check_version.
73009         (Support for systems lacking ISO C 99: Sizes of integer types):
73010         Add size_max.
73011
73012 2005-08-12  Bruno Haible  <bruno@clisp.org>
73013
73014         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
73015
73016 2005-08-11  Simon Josefsson  <jas@extundo.com>
73017
73018         * modules/readline: New file.
73019
73020         * modules/strnlen (Files): Add strnlen.h.
73021
73022 2005-08-11  Simon Josefsson  <jas@extundo.com>
73023
73024         * m4/readline.m4: New file.
73025
73026 2005-08-11  Simon Josefsson  <jas@extundo.com>
73027
73028         * lib/readline.h, readline.c: New file.
73029
73030 2005-08-11  Simon Josefsson  <jas@extundo.com>
73031
73032         * doc/gnulib.texi (Initial import, Finishing touches): Mention
73033         gl_AVOID.
73034
73035 2005-08-11  Bruno Haible  <bruno@clisp.org>
73036
73037         * lib/strnlen.h (strnlen): Change parameter name to match comment.
73038
73039 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
73040
73041         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
73042
73043 2005-08-10  Simon Josefsson  <jas@extundo.com>
73044
73045         * tests/test-iconvme.c: New file.
73046
73047 2005-08-10  Simon Josefsson  <jas@extundo.com>
73048
73049         * m4/strnlen.m4: New file.
73050
73051         * m4/strndup.m4: Don't check for strnlen declaration, done in
73052         strnlen.m4.
73053
73054 2005-08-10  Simon Josefsson  <jas@extundo.com>
73055
73056         * lib/strndup.c: Use strnlen.h.
73057
73058         * lib/strnlen.h: New file.
73059
73060 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73061
73062         * README: Typos.
73063
73064 2005-08-02  Simon Josefsson  <jas@extundo.com>
73065
73066         * modules/readline: New file.
73067
73068 2005-08-02  Simon Josefsson  <jas@extundo.com>
73069
73070         * modules/getdelim: New file.
73071
73072         * modules/getline: Rewrite, don't use getndelim2.
73073
73074 2005-08-02  Simon Josefsson  <jas@extundo.com>
73075
73076         * m4/getline.m4: Separate out getdelim stuff into separate module.
73077
73078         * m4/getdelim.m4: New file.
73079
73080 2005-08-02  Simon Josefsson  <jas@extundo.com>
73081
73082         * lib/getline.h, getline.c: Rewrite.
73083
73084         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
73085
73086 2005-07-31  Bruno Haible  <bruno@clisp.org>
73087
73088         * lib/lock.h (gl_lock_initializer): New macro.
73089         (gl_lock_define_initialized): Use it.
73090         (gl_rwlock_initializer): New macro.
73091         (gl_rwlock_define_initialized): Use it.
73092         (gl_recursive_lock_initializer): New macro.
73093         (gl_recursive_lock_define_initialized): Use it.
73094
73095 2005-07-30  Karl Berry  <karl@gnu.org>
73096
73097         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
73098         Report from Ben Pfaff, regarding getopt.
73099
73100 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
73101
73102         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
73103         normal way.
73104         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
73105         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
73106         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
73107         (gl_GETOPT): Use the new macros.  Most of the implementation
73108         is moved to the new macros.  This is for programs like Emacs
73109         that don't want all the functionality of gl_GETOPT.
73110
73111 2005-07-26  Bruno Haible  <bruno@clisp.org>
73112
73113         * m4/lock.m4: Update from GNU gettext.
73114
73115 2005-07-26  Bruno Haible  <bruno@clisp.org>
73116
73117         * lib/lock.h: Update from GNU gettext.
73118         * lib/lock.c: Update from GNU gettext.
73119
73120 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
73121
73122         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
73123         obsolescent AC_TRY_RUN.  Include the default includes files, for
73124         'exit'.
73125
73126 2005-07-24  Bruno Haible  <bruno@clisp.org>
73127
73128         * modules/visibility: New file.
73129         * MODULES.html.sh (Misc): Add visibility.
73130
73131 2005-07-24  Bruno Haible  <bruno@clisp.org>
73132
73133         * m4/visibility.m4: New file.
73134
73135 2005-07-24  Bruno Haible  <bruno@clisp.org>
73136
73137         * doc/visibility.texi: New file.
73138
73139 2005-07-22  Bruno Haible  <bruno@clisp.org>
73140
73141         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
73142         $(ALLOCA_H), redundant through BUILT_SOURCES.
73143         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
73144         redundant through BUILT_SOURCES.
73145         * modules/byteswap (Makefile.am): Remove explicit dependency on
73146         $(BYTESWAP_H), redundant through BUILT_SOURCES.
73147         * modules/fnmatch (Makefile.am): Remove explicit dependency on
73148         $(FNMATCH_H), redundant through BUILT_SOURCES.
73149         * modules/getopt (Makefile.am): Remove explicit dependency on
73150         $(GETOPT_H), redundant through BUILT_SOURCES.
73151         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
73152         redundant through BUILT_SOURCES.
73153         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
73154         redundant through BUILT_SOURCES.
73155         * modules/stdbool (Makefile.am): Remove explicit dependency on
73156         $(STDBOOL_H), redundant through BUILT_SOURCES.
73157         * modules/stdint (Makefile.am): Remove explicit dependency on
73158         $(STDINT_H), redundant through BUILT_SOURCES.
73159         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
73160         Remove explicit dependency on $(SYSEXITS_H).
73161         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
73162
73163 2005-07-18  Simon Josefsson  <jas@extundo.com>
73164
73165         * lib/check-version.c (check_version): Accept identical versions too.
73166
73167 2005-07-18  Bruno Haible  <bruno@clisp.org>
73168
73169         * modules/lock: New file.
73170         * MODULES.html.sh (Multithreading): New section.
73171
73172 2005-07-18  Bruno Haible  <bruno@clisp.org>
73173
73174         * m4/lock.m4: New file, from GNU gettext.
73175
73176 2005-07-18  Bruno Haible  <bruno@clisp.org>
73177
73178         * lib/lock.h: New file, from GNU gettext.
73179         * lib/lock.c: New file, from GNU gettext.
73180
73181 2005-07-18  Bruno Haible  <bruno@clisp.org>
73182
73183         * lib/lock.h (gl_once_t): New type.
73184         (gl_once_define, gl_once): New macros.
73185         * lib/lock.c (fresh_once): New variable.
73186         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
73187         functions.
73188
73189 2005-07-16  Simon Josefsson  <jas@extundo.com>
73190
73191         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
73192         workaround, suggested by Bruno.
73193
73194 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73195
73196         * modules/xalloc (Depends-on): Add xalloc-die.
73197         * modules/xvasprintf (Depends-on): Add xalloc-die.
73198
73199 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73200
73201         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
73202         with a minor change.
73203
73204 2005-07-15  Bruno Haible  <bruno@clisp.org>
73205
73206         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
73207         When using lib/poll.c, define poll as rpl_poll.
73208
73209 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
73210
73211         * modules/argp (Depends-on): Remove unlocked-io.
73212
73213 2005-07-14  Derek Price  <derek@ximbiot.com>
73214
73215         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
73216         for glob symlink bug.
73217
73218 2005-07-14  Bruno Haible  <bruno@clisp.org>
73219
73220         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
73221         Instead, test for *_unlocked function declarations directly.
73222
73223 2005-07-11  Simon Josefsson  <jas@extundo.com>
73224
73225         * modules/size_max: New file.
73226
73227         * modules/xsize: Depend on size_max module for size_max.m4.
73228
73229 2005-07-11  Simon Josefsson  <jas@extundo.com>
73230
73231         * lib/size_max.h: New file.
73232
73233 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
73234
73235         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
73236         copyright symbol and the year.
73237         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
73238         (version_etc_va): Use parameterized copyright notice.
73239         Reword to conform to the current GNU coding standards.
73240
73241 2005-07-11  Karl Berry  <karl@gnu.org>
73242
73243         * doc/gnulib.texi (Quoting): new node.
73244         (Initial import): more info, from Patrice.
73245
73246 2005-07-11  Bruno Haible  <bruno@clisp.org>
73247
73248         * gnulib-tool (func_usage): Document option --avoid.
73249         (Command line options): Handle --avoid.
73250         (func_acceptable): New function.
73251         (func_modules_transitive_closure): Use it.
73252
73253 2005-07-11  Bruno Haible  <bruno@clisp.org>
73254
73255         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
73256         Reported by Jim Meyering.
73257
73258 2005-07-10  Bruno Haible  <bruno@clisp.org>
73259
73260         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
73261         Needed when size_t is smaller than 'unsigned int'.
73262         Reported by Paul Eggert.
73263
73264 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73265
73266         * modules/argp (Depends-on): Add unlocked-io
73267
73268 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73269
73270         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
73271         block of defines.
73272
73273 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
73274
73275         * config/srclist.txt: Comment out regcomp.c, since we have a porting
73276         fix now.
73277
73278 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
73279         and Paul Eggert  <eggert@cs.ucla.edu>
73280
73281         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
73282         in wint_t, not wchar_t.  Remove now-unnecessary cast.
73283
73284 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73285
73286         * modules/regex (Files): Add lib/regex_internal.c,
73287         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
73288         (Depends-on): Add extensions.
73289         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
73290
73291 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73292
73293         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
73294         pathconf.
73295         * m4/same.m4 (gl_SAME): Likewise.
73296         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
73297
73298         * m4/regex.m4: Adjust to new libc regex implementation.
73299         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
73300         all the .c and .h parts of (the new) regex.
73301         Quote the m4 stuff better.
73302         Check for RE_ICASE bug of old gnulib.
73303         Check for REG_STARTEND of recent libc.
73304         Rename local variables from jm_* to gl_*.
73305         Quote operand of "test -f".
73306         Say "recent enough" version of libc, not "version 2".
73307         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
73308         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
73309         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
73310         Remove check for btowc, isascii.
73311         Require AM_LANGINFO_CODESET.
73312
73313 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73314
73315         * lib/regex.c, regex.h: Sync from libc.
73316         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
73317         * lib/regexec.c:
73318         New files, synced from libc, except that regex_internal.h
73319         currently has a small porting fix.
73320
73321 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73322
73323         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
73324         regex_internal.c, regexec.c.
73325         Add regex_internal.h too, but as a comment, since the libc version
73326         is currently broken in gnulib mode.
73327
73328 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73329
73330         Support programs like Emacs that use gnulib but not gettext.
73331         * MODULES.html.sh (Internationalization functions): Add gettext-h.
73332         * modules/gettext-h: New file.
73333         * modules/gettext (Files): Remove lib/gettext.h.
73334         (Depends-on): Add gettext-h.
73335         (Makefile.am): Remove lib_SOURCES.
73336         * modules/argmatch, modules/c-stack, modules/closeout:
73337         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
73338         * modules/execute, modules/file-type, modules/getaddrinfo:
73339         * modules/getopt, modules/human, modules/javacomp:
73340         * modules/javaexec, modules/mkdir-p, modules/obstack:
73341         * modules/openat, modules/pagealign_alloc, modules/pipe:
73342         * modules/quotearg, modules/regex, modules/rpmatch:
73343         * modules/unicodeio, modules/userspec, modules/version-etc:
73344         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
73345         * modules/xsetenv:
73346         Depend on gettext-h, not gettext.
73347
73348 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73349
73350         * gnulib-tool (func_import): Add support for 'public domain' license.
73351         * modules/alloca, modules/atexit, modules/memmove:
73352         Now public domain, not GPL.
73353         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
73354         * modules/realloc, modules/strerror, modules/strtod:
73355         Now LGPL, not GPL.
73356
73357 2005-07-05  Bruno Haible  <bruno@clisp.org>
73358
73359         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
73360         autoconf CVS. Needed for mingw.
73361
73362 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73363
73364         Remove the dependency of the strftime module on the tzset module.
73365         * modules/strftime (Depends-on): Remove dependency on tzset.
73366
73367 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73368
73369         Remove the dependency of the strftime module on the tzset module.
73370         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
73371         gl_FUNC_TZSET_CLOBBER.
73372
73373 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73374
73375         Remove the dependency of the strftime module on the tzset module.
73376         * lib/strftime.c (my_strftime)
73377         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
73378         Copy the input structure, to work around some of the bug with
73379         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
73380         Solaris releases, you should also use the tzset module, but we won't
73381         require it as a dependency any more since we don't want LGPLed code
73382         to depend on GPLed code.
73383
73384 2005-07-02  Jim Meyering  <jim@meyering.net>
73385
73386         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
73387         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
73388         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
73389         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
73390
73391 2005-07-02  Jim Meyering  <jim@meyering.net>
73392
73393         * lib/backupfile.c (backup_args): Change a `0' to NULL.
73394
73395 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73396
73397         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
73398         declares only 'struct timespec;' (!).
73399
73400 2005-07-01  Jim Meyering  <jim@meyering.net>
73401
73402         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
73403         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
73404         * lib/save-cwd.c, tempname.c:
73405         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73406         and don't include <sys/file.h>).
73407
73408 2005-06-29  Jim Meyering  <jim@meyering.net>
73409
73410         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
73411         type name.  Use the variable name instead.
73412         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
73413         Likewise.
73414
73415 2005-06-28  Simon Josefsson  <jas@extundo.com>
73416
73417         * modules/check-version (Files): Add check-version.m4.
73418
73419 2005-06-28  Simon Josefsson  <jas@extundo.com>
73420
73421         * m4/check-version.m4: New file, suggested by Jim Meyering
73422         <jim@meyering.net>.
73423
73424 2005-06-28  Simon Josefsson  <jas@extundo.com>
73425
73426         * lib/check-version.h, lib/check-version.c: New files.
73427
73428 2005-06-28  Simon Josefsson  <jas@extundo.com>
73429
73430         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
73431         collision with global variable.  Better indentation.  Don't
73432         increment buffer pointer beyond buffer end.  Based on comments
73433         from Paul Eggert <eggert@cs.ucla.edu>.
73434
73435         * lib/base64.h: Indent.
73436
73437 2005-06-28  Simon Josefsson  <jas@extundo.com>
73438
73439         * doc/gnulib.texi (Library version handling): New section.
73440
73441 2005-06-28  Jim Meyering  <jim@meyering.net>
73442
73443         * check-module (find_included_lib_files): Hard-code another
73444         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
73445         but modules/fts-lgpl (correctly) does not list those files.
73446
73447         * modules/canonicalize (Files): Add lib/pathmax.h.
73448
73449 2005-06-25  Simon Josefsson  <jas@extundo.com>
73450
73451         * modules/check-version: New file.
73452
73453 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
73454
73455         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
73456         initializer of struct addrinfo, as an indication that we don't
73457         care how many members the structure has.
73458
73459 2005-06-24  Derek Price  <derek@ximbiot.com>
73460         and Bruno Haible  <bruno@clisp.org>
73461
73462         Remove stat module & update lstat.
73463         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
73464         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73465         * m4/stat.m4: Remove this file.
73466
73467 2005-06-24  Derek Price  <derek@ximbiot.com>
73468         and Bruno Haible  <bruno@clisp.org>
73469
73470         Remove stat module & update lstat.
73471         * lib/stat.c: Remove this file...
73472         (slash_aware_lstat): ...moving this content and its support...
73473         * lib/lstat.c (rpl_lstat): ...into here.
73474         * lib/lstat.h: New file.
73475
73476 2005-06-24  Derek Price  <derek@ximbiot.com>
73477         and Bruno Haible  <bruno@clisp.org>
73478
73479         Remove stat module & update lstat.
73480         * config/srclist.txt (libc sources): Remove stat.
73481
73482 2005-06-24  Derek Price  <derek@ximbiot.com>
73483         and Bruno Haible  <bruno@clisp.org>
73484
73485         Remove stat module & update lstat.
73486         * MODULES.html.sh (stat): Remove.
73487         * MODULES.html: Regenerated.
73488         * modules/lstat (Description): Correct function name.
73489         (Files): Add "lstat.h".
73490         (Depends-on): Remove stat, add xalloc, stat-macros.
73491         * modules/stat: Remove this file.
73492         (Include): Add "lstat.h", remove <sys/stat.h>.
73493
73494 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
73495
73496         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
73497         (ranged_convert): Don't save conversion in a temporary struct.
73498         This causes a warning with GCC 4.0.0, and anyway in the typical
73499         case it's not worth the extra 100 bytes or so of code.
73500         (ranged_convert, __mktime_internal): When calling a function via a
73501         pointer P, use P () rather than (*P) (), as we now assume C89 or
73502         better.
73503
73504 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73505
73506         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
73507         "who -r" failed to give output.  Problem reported by Tim Waugh.
73508
73509         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
73510         (xcalloc): Use it to avoid needless tests.
73511         Problem reported by Jim Meyering.
73512
73513 2005-06-20  Derek Price  <derek@ximbiot.com>
73514
73515         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
73516         unnecessary for Autoconfs > 2.59c.
73517
73518 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73519
73520         * lib/argp.h (__option_is_short): Check upper limit of
73521         __key. Isprint() requires its argument to have the value
73522         of an unsigned char or EOF.
73523
73524 2005-06-16  Jim Meyering  <jim@meyering.net>
73525
73526         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
73527         when either N or S is zero.
73528
73529 2005-06-16  Derek Price  <derek@ximbiot.com>
73530
73531         * m4/bison.m4: Declare YACC & YFLAGS precious.
73532
73533 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
73534
73535         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
73536         multibyte string or pattern, fall back on unibyte matching.
73537         Problem reported by James Youngman.
73538
73539 2005-06-08  Bruno Haible  <bruno@clisp.org>
73540
73541         * modules/csharpcomp: New file.
73542         * MODULES.html.sh (C#): Add csharpcomp.
73543
73544 2005-06-08  Bruno Haible  <bruno@clisp.org>
73545
73546         * m4/csharpcomp.m4: New file, from GNU gettext.
73547
73548 2005-06-08  Bruno Haible  <bruno@clisp.org>
73549
73550         * lib/csharpcomp.h: New file, from GNU gettext.
73551         * lib/csharpcomp.c: New file, from GNU gettext.
73552         * lib/csharpcomp.sh.in: New file, from GNU gettext.
73553
73554 2005-06-08  Bruno Haible  <bruno@clisp.org>
73555
73556         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
73557         warning on mingw.
73558
73559 2005-06-07  Derek Price  <derek@ximbiot.com>
73560
73561         Sync from CVS.
73562         * lib/glob_.h: Indent nested #ifdef.
73563
73564 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73565
73566         Sync from coreutils.
73567         Use "file name" when talking about file names, instead of "filename"
73568         or "path", as per the GNU coding standards.
73569         * lib/mkdir-p.c: Renamed from makepath.c.
73570         (make_dir_parents): Renamed from make_path.  All callers changed.
73571         * lib/mkdir-p.h: Likewise.  All includers changed.
73572         * lib/filenamecat.c: Renamed from path-concat.c.
73573         (file_name_concat): Renamed from path_concat.  All callers changed.
73574         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
73575         * lib/filenamecat.h: Likewise.  All includers changed.
73576         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
73577         in comments or local variable names.
73578         * lib/basename.c: Likewise.
73579         * lib/canonicalize.c, canonicalize.h: Likewise.
73580         * lib/dirname.c, dirname.h: Likewise.
73581         * lib/euidaccess.c: Likewise.
73582         * lib/exclude.c: Likewise
73583         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
73584         * lib/fsusage.c, fsuage.h: Likewise.
73585         * lib/fts.c, fts_.h: Likewise.
73586         * lib/getcwd.c: Likewise.
73587         * lib/getloadavg.c: Likewise.
73588         * lib/mkstemp.c: Likewise.
73589         * lib/mountlist.c, mountlist.h: Likewise.
73590         * lib/openat.c, openat.h: Likewise.
73591         * lib/readlink-stub.c: Likewise.
73592         * lib/readutmp.c, readutmp.h: Likewise.
73593         * lib/rename.c: Likewise.
73594         * lib/rmdir.c: Likewise.
73595         * lib/same.c: Likewise.
73596         * lib/savedir.c: Likewise.
73597         * lib/stripslash.c: Likewise.
73598         * lib/tempname.c: Likewise.
73599         * lib/xreadlink.c: Likewise.
73600         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
73601         All uses changed.
73602         * lib/exclude.h: Likewise.
73603
73604         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
73605         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73606         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
73607         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73608         * lib/pathmax.h: Include <limits.h> unconditionally, since other
73609         files have been getting away with it for years (MORE/BSD 4.3
73610         is extinct now).
73611         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
73612         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73613
73614         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
73615         Define to 256, not 255, as per modern POSIX.
73616
73617 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73618
73619         Sync from coreutils.
73620         Use "file name" when talking about file names, instead of "filename"
73621         or "path", as per the GNU coding standards.
73622         * MODULES.html.sh: mkdir-p renamed from makepath.
73623         filenamecat renamed from path-concat.
73624         * modules/filenamecat: Renamed from modules/path-concat.
73625         (Files): filenamecat.h and filenamecat.c renamed from
73626         path-concat.h and path-concat.c.
73627         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
73628         (Include): filenamecat.h, not path-concat.h.
73629         * modules/mkdir-p: Renamed from modules/makepath.
73630         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
73631         makepath.c.
73632         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
73633         (Include): mkdir-p.h, not makepath.h.
73634
73635 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73636
73637         Sync from coreutils.
73638         * m4/mkdir-p.m4: Renamed from makepath.m4.
73639         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
73640         Rename files from makepath.c to mkdir-p.c, and from
73641         makepath.h to mkdir-p.h.
73642         * m4/filenamecat.m4: Renamed from path-concat.m4.
73643         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
73644         Rename files from path-concat.c to filenamecat.c,
73645         and from path-concat.h to filenamecat.h.
73646         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
73647         "file name" in local variables or comments.
73648         * m4/rename.m4: Likewise.
73649
73650 2005-06-01  Bruno Haible  <bruno@clisp.org>
73651
73652         * modules/csharpexec: New file.
73653         * MODULES.html.sh (C#): New section.
73654
73655 2005-06-01  Bruno Haible  <bruno@clisp.org>
73656
73657         * m4/csharp.m4: New file, from GNU gettext.
73658         * m4/csharpexec.m4: New file, from GNU gettext.
73659
73660 2005-06-01  Bruno Haible  <bruno@clisp.org>
73661
73662         * lib/csharpexec.h: New file, from GNU gettext.
73663         * lib/csharpexec.c: New file, from GNU gettext.
73664         * lib/csharpexec.sh.in: New file, from GNU gettext.
73665
73666 2005-05-31  Derek Price  <derek@ximbiot.com>
73667             Paul Eggert  <eggert@cs.ucla.edu>
73668
73669         Sync from cvs.
73670         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73671
73672 2005-05-31  Derek Price  <derek@ximbiot.com>
73673             Paul Eggert  <eggert@cs.ucla.edu>
73674
73675         Sync from cvs.
73676         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73677
73678 2005-05-29  Derek Price  <derek@ximbiot.com>
73679
73680         * config/srclist.txt (glob_.h, glob.c): Add these files.
73681
73682 2005-05-29  Derek Price  <derek@ximbiot.com>
73683
73684         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
73685         * modules/glob: New file.
73686         * modules/getlogin_r: Add link to POSIX spec in description.
73687
73688 2005-05-29  Derek Price  <derek@ximbiot.com>
73689             Paul Eggert  <eggert@cs.ucla.edu>
73690
73691         * m4/glob.m4: New file.
73692
73693 2005-05-29  Derek Price  <derek@ximbiot.com>
73694             Paul Eggert  <eggert@cs.ucla.edu>
73695
73696         * lib/glob_.h, lib/glob.c: New files.
73697
73698 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73699
73700         * modules/fts (Files): Remove m4/inttypes-pri.m4.
73701         * modules/fts-lgpl (Depends-on): Remove gettext.
73702
73703 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73704
73705         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
73706         and don't require gt_INTTYPES_PRI.
73707
73708 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73709
73710         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
73711
73712         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
73713         the configuration hassle isn't worth it.
73714         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
73715         (LONGEST_MODIFIER, PRIuMAX): Remove.
73716
73717 2005-05-27  Bruno Haible  <bruno@clisp.org>
73718
73719         * lib/getlogin_r.h: Remove second include of <stddef.h>.
73720
73721 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
73722
73723         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
73724         _POSIX_PTHREAD_SEMANTICS for Solaris.
73725
73726 2005-05-25  Derek Price  <derek@ximbiot.com>
73727
73728         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
73729
73730 2005-05-25  Derek Price  <derek@ximbiot.com>
73731             Paul Eggert  <eggert@cs.ucla.edu>
73732
73733         * modules/getlogin_r, m4/getlogin_r.m4: New files.
73734         * lib/getlogin_r.c, getlogin_r.h: New files.
73735
73736 2005-05-25  Bruno Haible  <bruno@clisp.org>
73737             Derek Price  <derek@ximbiot.com>
73738
73739         * lib/getlogin_r.h: Simplify API documentation.
73740
73741 2005-05-23  Derek Price  <derek@ximbiot.com>
73742
73743         * modules/minmax (Files): Add m4/minmax.m4.
73744         (configure.ac): Add gl_MINMAX.
73745
73746 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73747
73748         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
73749         so that unistd-safer.h (GPL'ed code) need not be included.
73750
73751 2005-05-22  Bruno Haible  <bruno@clisp.org>
73752
73753         * m4/minmax.m4: New file.
73754         Based on a patch by Derek Price <derek@ximbiot.com>.
73755
73756 2005-05-22  Bruno Haible  <bruno@clisp.org>
73757
73758         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
73759         (INT64_MIN): Fix definition.
73760         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
73761
73762         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
73763         NEED_SIGNED_INT_TYPES.
73764
73765         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
73766         HAVE_SYSTEM_INTTYPES.
73767
73768 2005-05-22  Bruno Haible  <bruno@clisp.org>
73769
73770         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
73771         Also include <sys/param.h> if it defines MIN, MAX.
73772         Based on a patch by Derek Price <derek@ximbiot.com>.
73773
73774 2005-05-21  Jim Meyering  <jim@meyering.net>
73775
73776         * modules/fts (Files): Add m4/inttypes-pri.m4.
73777         (Depends-on): Add lstat and remove gettext.  Alphabetize.
73778
73779 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73780
73781         New fts module.
73782         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
73783         (setup_dir, free_dir): New functions.
73784         (enter_dir, leave_dir): Define trivial
73785         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
73786         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
73787         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
73788         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
73789         Move to fts-cycle.c.
73790         (fts_open): Use setup_dir.
73791         (fts_close): Use free_dir.
73792         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
73793         This adds a label and some gotos, but the alternatives were messier.
73794         Check for memory allocation failure when entering a dir.
73795         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
73796         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
73797         (FTS): New member fts_cycle, that is a union that contains the
73798         old active_dir_ht and cycle_state.  All uses changed to mention
73799         fts_cycle.ht and fts_cycle.state.
73800         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
73801         fts.c, with the following changes:
73802         (setup_dir, free_dir): New functions.
73803         (enter_dir): Now returns bool.  Return true if successful, false
73804         if memory exhausted.  All callers changed.
73805         Do not bother partly cleaning up on
73806         memory allocation failure; that is free_dir's job.
73807         However, free ad if hash_insert fails, to avoid memory leak.
73808         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
73809         fts->fts_options to see which union member to use.
73810
73811 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73812
73813         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
73814         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
73815
73816 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73817
73818         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
73819
73820 2005-05-20  Jim Meyering  <jim@meyering.net>
73821
73822         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
73823         Now a macro, to pacify GCC.
73824
73825 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73826
73827         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
73828         of -1.
73829
73830 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73831
73832         * lib/chown.c (rpl_chown): Return -1 on failure.
73833
73834 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73835
73836         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
73837         Don't check for stddef.h.
73838         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
73839         don't use its results.
73840         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
73841         since we include them unconditionally.  Don't require
73842         AM_STDBOOL_H, since stdbool is a prerequisite.
73843         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
73844         since we assume C89 or better.
73845         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
73846         as we don't use their results.
73847         Don't check for fchdir, memmove, memset, strrchr, as we use
73848         them unconditionally.
73849         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
73850         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
73851
73852 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73853
73854         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
73855         Include <stddef.h> unconditionally, since we assume C89 now.
73856         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
73857         * lib/fts.c: Include fts_.h first, to check interface.
73858         Do not include intprops.h; no longer needed.
73859         Include cycle-check.h and hash.h, since fts_.h no longer does.
73860         Remove unnecessary casts of closedir to void.
73861         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
73862         decide whether to decrement nlinks.
73863         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
73864         (FTS): Use struct hash_table * instead of Hash_table, so that
73865         we no longer need to include hash.h here.
73866
73867 2005-05-18  Jim Meyering  <jim@meyering.net>
73868
73869         * modules/dirfd (License): Change to LGPL.  Most of the code
73870         is already in the public domain.
73871
73872 2005-05-18  Jim Meyering  <jim@meyering.net>
73873
73874         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
73875         Reported by Yoann Vandoorselaere.
73876
73877 2005-05-17  Jim Meyering  <jim@meyering.net>
73878
73879         * m4/fts.m4: New file, from coreutils.
73880
73881 2005-05-17  Jim Meyering  <jim@meyering.net>
73882
73883         * lib/fts.c, lib/fts_.h: New files, from coreutils.
73884
73885 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73886
73887         Sync from coreutils.
73888         * m4/unlinkdir.m4: New file.
73889
73890 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73891
73892         Sync from coreutils.
73893         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
73894         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
73895         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
73896         White space changes only.
73897         * lib/makepath.c (make_path): Port to hosts where leading "//" is
73898         special.
73899         * lib/yesno.c: Include getline.h, not ctype.h.
73900         (yesno): Don't remove leading white space; POSIX doesn't allow it.
73901         Use getline to remove arbitrary restriction on response length.
73902
73903 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73904
73905         * config/srclist-update: Spell out "Street" in FSF postal
73906         mail address; this is the style the FSF seems to prefer.
73907
73908         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
73909         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
73910         this updates FSF postal mail address.
73911
73912         Sync from coreutils.
73913         * modules/unlinkdir: New file.
73914         * modules/yesno (Depends-on): Add getline.
73915         * MODULES.html.sh (File system functions): Add unlinkdir.
73916
73917 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73918
73919         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
73920         lib/strsep.h:
73921         Change the initial comment to refer to GPL, not LGPL.
73922         gnulib-tool will change it to LGPL as needed.
73923
73924         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
73925         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
73926         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
73927         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
73928         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
73929         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
73930         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
73931         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
73932         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
73933         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
73934         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
73935         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
73936         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
73937         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
73938         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
73939         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
73940         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
73941         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
73942         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
73943         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
73944         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
73945         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
73946         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
73947         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
73948         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
73949         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
73950         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
73951         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
73952         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
73953         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
73954         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
73955         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
73956         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
73957         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
73958         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
73959         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
73960         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
73961         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
73962         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
73963         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
73964         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
73965         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
73966         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
73967         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
73968         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
73969         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
73970         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
73971         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
73972         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
73973         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
73974         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73975         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
73976         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
73977         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
73978         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
73979         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
73980         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
73981         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
73982         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
73983         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
73984         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
73985         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
73986         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
73987         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
73988         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
73989         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
73990         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
73991         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
73992         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
73993         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
73994         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
73995         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
73996         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
73997         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
73998         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
73999         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
74000         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
74001         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
74002         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
74003         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
74004         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
74005         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
74006         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
74007         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
74008         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
74009         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
74010         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
74011         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
74012         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
74013         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
74014         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
74015         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
74016         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
74017         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
74018         lib/yesno.c, lib/yesno.h:
74019         Update FSF postal mail address.
74020
74021 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74022
74023         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
74024         tests/test-memmem.c, tests/test-stpncpy.c:
74025         Update FSF postal mail address.
74026
74027 2005-05-13  Bruno Haible  <bruno@clisp.org>
74028
74029         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
74030         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
74031         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
74032         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
74033         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
74034         Add support for 64-bit integers in the MSVC compiler.
74035
74036 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74037
74038         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
74039
74040 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
74041
74042         * gnulib-tool (func_import): Sort and uniquify recommended includes.
74043
74044 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
74045
74046         * doc/getdate.texi (General date syntax): Don't say that date
74047         date --iso-8601=ns generates acceptable dates; it doesn't yet.
74048         Problem reported by Nic Ferrier.
74049
74050 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74051
74052         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
74053         specified in ai_socktype. Fix invalid ai_protocol
74054         check. ai_protocol is usually set to 0 or depending on
74055         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
74056         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
74057         ai_socktype / ai_protocol in the returned addrinfo structure.
74058
74059 2005-05-10  Simon Josefsson  <jas@extundo.com>
74060
74061         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
74062         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74063
74064 2005-05-10  Karl Berry  <karl@gnu.org>
74065
74066         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
74067         (from http://www.gnu.org/licenses).
74068         * doc/COPYING.LIB: also rename to COPYING.LESSER.
74069         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
74070         fdl.texi suffices.
74071
74072 2005-05-10  Karl Berry  <karl@gnu.org>
74073
74074         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
74075         (COPYING.DOC): remove.
74076
74077         * config/srclist-update: new FSF address.
74078
74079 2005-05-10  Derek Price  <derek@ximbiot.com>
74080
74081         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
74082         possible.
74083
74084 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74085             Bruno Haible  <bruno@clisp.org>
74086
74087         * modules/inet_ntop: New file.
74088         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74089         inet_ntop.
74090
74091 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74092             Bruno Haible  <bruno@clisp.org>
74093
74094         * m4/inet_ntop.m4: New file.
74095
74096 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74097             Bruno Haible  <bruno@clisp.org>
74098
74099         * lib/inet_ntop.h: New file.
74100         * lib/inet_ntop.c: New file, from glibc with modifications.
74101
74102 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
74103
74104         * modules/time_r (License): Change to LGPL.
74105         * modules/extensions (License): Change to LGPL.  Actually,
74106         the license is more permissive than that, but currently gnulib-tool
74107         doesn't know how to handle more-permissive licenses.
74108
74109         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
74110         Problem reported by Dave Love.
74111
74112 2005-05-08  Jim Meyering  <jim@meyering.net>
74113
74114         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
74115         blank.
74116
74117 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74118
74119         * modules/argmatch (Depends-on): Add stdbool.
74120         * modules/backupfile (Depends-on): Likewise.
74121         * modules/chdir-long (Depends-on): Likewise.
74122         * modules/closeout (Depends-on): Likewise.
74123         * modules/cycle-check (Depends-on): Likewise.
74124         * modules/dirname (Depends-on): Likewise.
74125         * modules/fnmatch (Depends-on): Likewise.
74126         * modules/fsusage (Depends-on): Likewise.
74127         * modules/fwriteerror (Depends-on): Likewise.
74128         * modules/getcwd (Depends-on): Likewise.
74129         * modules/getloadavg (Depends-on): Likewise.
74130         * modules/hard-locale (Depends-on): Likewise.
74131         * modules/makepath (Depends-on): Likewise.
74132         * modules/mountlist (Depends-on): Likewise.
74133         * modules/nanosleep (Depends-on): Likewise.
74134         * modules/posixtm (Depends-on): Likewise.
74135         * modules/quotearg (Depends-on): Likewise.
74136         * modules/readtokens (Depends-on): Likewise.
74137         * modules/readtokens0 (Depends-on): Likewise.
74138         * modules/readutmp (Depends-on): Likewise.
74139         * modules/save-cwd (Depends-on): Likewise.
74140         * modules/strftime (Depends-on): Likewise.
74141         * modules/userspec (Depends-on): Likewise.
74142         * modules/utimecmp (Depends-on): Likewise.
74143         * modules/xgetcwd (Depends-on): Likewise.
74144         * modules/xnanosleep (Depends-on): Likewise.
74145         * modules/xstrtod (Depends-on): Likewise.
74146         * modules/yesno (Depends-on): Likewise.
74147
74148 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
74149
74150         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
74151         needless checks.
74152
74153 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74154
74155         Merge from coreutils.  Among other things,
74156         add bulletproofing for cases where stdin, stdout, or stderr are closed.
74157         * lib/fd-safer.c: New file.
74158         * lib/fcntl-safer.h, open-safer.c: Remove.
74159         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
74160         * lib/dup-safer.c: Include unistd-safer.h first.
74161         Don't include errno.h.
74162         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
74163         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
74164         * lib/file-type.c: Rely on file-type.h change.
74165         * lib/getloadavg.c: Include unistd-safer.h.
74166         (getloadavg): Use safer open.
74167         * lib/getusershell.c: Include "stdio-safer.h".
74168         (getusershell): Use safer fopen.
74169         * lib/long-options.c (long_options): Use NULL rather than 0.
74170         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
74171         'free'.
74172         * lib/modechange.c: Likewise.
74173         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
74174         (MODE_DONE): New constant.
74175         (struct mode_change): Remove 'next' member.
74176         (make_node_op_equals): New function; like the old one of the
74177         same name, except it allocates an array.
74178         (mode_compile, mode_create_from_ref): Use it.
74179         (mode_compile): Allocate result as an array, not a linked list.
74180         Parse octal string ourself, so that we catch mistakes like "+0".
74181         (mode_adjust): Arg is an array, not a linked list.
74182         * lib/modechange.c: Include stat-macros.h, xalloc.h.
74183         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
74184         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
74185         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
74186         Remove.  This is now stat-macros.h's job.
74187         (talloc): Remove.  All callers replaced by xalloc, so that
74188         our invokers don't have to worry about reporting memory failures.
74189         (make_node_op_equals): Remove.
74190         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74191         New constants.
74192         (struct mode_change): Moved here from modechange.h.
74193         (mode_append_entry): Remove.
74194         (mode_compile): Remove MASKED_OPS arg, since it encouraged
74195         apps to have incorrect behavior.  Use simpler algorithm for head
74196         and tail.  Don't futz with umask; that's now the job of mode_adjust.
74197         Detect more invalid usages rather than having somewhat-random behavior.
74198         Don't insert an "a=" action, as that leads to incorrect behavior.
74199         (mode_compile, mode_create_from_ref): Return NULL on error instead
74200         of an enum, since now there's only one way to have an error.  All
74201         callers changed.
74202         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
74203         at the correct time.  Simplify calculation of "+u" and its ilk.
74204         Don't mishandle "+X".
74205         (mode_free): Remove "register" and localize decls.
74206         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74207         (struct mode_change): Move to modechange.c; callers don't
74208         need to see this stuff.
74209         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
74210         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
74211         (mode_change, mode_adjust): Reflect the new signatures noted above.
74212         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
74213         that might redefine system include files.
74214         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
74215         (my_usleep): Use NULL rather than (void *) 0.
74216         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
74217         Use siginterrupt to specify that system calls should be interrupted.
74218         (rpl_nanosleep): Move initialization of suspended closer to call of
74219         my_usleep.
74220         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
74221         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
74222         (desirable_utmp_entry): New function.
74223         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
74224         using x2nrealloc, to simplify logic.
74225         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
74226         size calculation.  Do not assume utmp file is a regular file.
74227         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
74228         (READ_UTMP_CHECK_PIDS): New constant.
74229         * lib/save-cwd.c: Include unistd-safer.h.
74230         (save_cwd): Use fd_safer.
74231         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
74232         [!_LIBC] Include "stat-macros.h" instead.
74233         * lib/unistd-safer.h (fd_safer): New decl.
74234
74235 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74236
74237         * modules/getloadavg (Depends-on): Add unistd-safer.
74238         * modules/getusershell (Depends-on): Add stdio-safer.
74239         * modules/lstat (Depends-on): Remove xalloc.
74240         * modules/mkstemp (Depends-on): Add stat-macros.
74241         * modules/modechange (Depends-on): Remove xstrtol.
74242         Add stat-macros, xalloc.
74243         * modules/save-cwd (Depends-on): Add unistd-safer.
74244         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
74245         * modules/unistd-safer (Files): Add lib/fd-safer.c
74246         (Makefile.am): Remove lib_SOURCES.
74247
74248         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
74249         Remove fcntl-safer; unistd-safer supersedes it.
74250
74251 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74252
74253         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
74254         AC_HEADER_STAT.
74255         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
74256         (gl_PREREQ_CHOWN): Remove.
74257         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
74258         it.  Don't require AC_HEADER_STAT.
74259         (gl_PREREQ_LSTAT): Remove.
74260         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
74261         Don't require AC_HEADER_STAT.
74262         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
74263         (gl_PREREQ_RMDIR): Remove.
74264         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
74265         mention stat-macros.h or AC_HEADER_STAT, since we'll make
74266         the stat-macros module a prerequisite.
74267         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
74268         * m4/filemode.m4 (gl_FILEMODE): Likewise.
74269         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
74270         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
74271         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
74272         variable names.
74273         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
74274         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
74275         variable prefixes.
74276         * m4/fcntl-safer.m4: Remove.
74277         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
74278         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
74279         Invoke gl_PREREQ_FD_SAFER.
74280         (gl_PREREQ_FD_SAFER): New macro.
74281         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
74282         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
74283         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
74284         Remove duplicate call to AC_LIBOBJ(readutmp).
74285         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
74286
74287         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
74288         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
74289
74290 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74291
74292         * MODULES.html.sh (Misc): Add byteswap.
74293
74294 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74295
74296         * modules/getcwd (Depends-on): Add extensions.
74297         * modules/openat (Depends-on): Likewise.
74298
74299 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74300
74301         * modules/byteswap: New file.
74302
74303 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74304
74305         * m4/byteswap.m4: New file.
74306
74307 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74308
74309         * lib/byteswap_.h: New file.
74310
74311 2005-04-25  Karl Berry  <karl@gnu.org>
74312
74313         * m4/gettext.m4: Update from GNU gettext 0.14.4.
74314
74315 2005-04-25  Albert Chin  <china@thewrittenword.com>
74316
74317         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
74318         Toolkit C bug.
74319
74320 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
74321
74322         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
74323         (func_ln_if_changed): Remove forcibly for no error message
74324         in case file does not exist.
74325
74326 2005-04-19  Simon Josefsson  <jas@extundo.com>
74327
74328         * gnulib-tool (Options): Make --symlink mean --symbolic.
74329
74330 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
74331
74332         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
74333
74334 2005-04-16  Simon Josefsson  <jas@extundo.com>
74335
74336         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
74337
74338 2005-04-15  Simon Josefsson  <jas@extundo.com>
74339
74340         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
74341
74342 2005-04-15  Simon Josefsson  <jas@extundo.com>
74343
74344         * gnulib-tool: Rename --symlink to --symbolic.
74345
74346 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
74347
74348         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
74349         symbolic links to files instead of copying/moving.  Add --aux-dir,
74350         specifying directory relative --dir where auxiliary build tools
74351         are placed.
74352
74353 2005-04-14  Bruno Haible  <bruno@clisp.org>
74354
74355         * modules/allocsa (License): Change to LGPL.
74356         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74357
74358 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
74359
74360         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
74361         that "UTC +1 second" continues to work.  Problem reported
74362         by Dmitry V. Levin.
74363         (relunit_snumber): New rule.
74364         (relunit): Use it.
74365
74366 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
74367
74368         * lib/getdate.y (universal_time_zone_table): New constant.
74369         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
74370         universal_time_zone_table.
74371         (lookup_zone): Prefer universal_time_zone_table to
74372         local_time_zone_table, so that "GMT" time stamps are allowed in
74373         London during the summer.  Problem reported by Ian Abbott.
74374
74375 2005-04-12  Jim Meyering  <jim@meyering.net>
74376
74377         * lib/human.c (humblock): Set *options even when returning due to
74378         xstrtoumax conversion failure.  Thanks to a used-uninitialized
74379         warning from gcc-4.
74380
74381 2005-04-09  Jim Meyering  <jim@meyering.net>
74382
74383         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
74384         -Wuninitialized: initialize tm0.tm_year.
74385
74386 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
74387
74388         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
74389         count, since there's no maximum.  All uses changed.
74390         Add member dsts_seen.
74391         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
74392         not being INT_MAX.
74393         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
74394         Use pc_rels_seen to decide whther a date is absolute.
74395
74396         * lib/getdate.y (number): Don't overwrite year.
74397         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
74398         check.
74399
74400 2005-04-02  Simon Josefsson  <jas@extundo.com>
74401
74402         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
74403         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
74404
74405 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
74406
74407         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
74408         where no absolute path name can be longer than PATH_MAX.
74409
74410 2005-03-27  Jim Meyering  <jim@meyering.net>
74411
74412         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
74413
74414 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
74415
74416         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
74417         "one's complement" -> "ones' complement" in comment, as per Knuth.
74418         "value of type" -> "type or expression" in comment.
74419         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
74420
74421 2005-03-26  Jim Meyering  <jim@meyering.net>
74422
74423         Comment nits.
74424         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
74425         Correct typos: s/or/of/.
74426
74427 2005-03-26  Jim Meyering  <jim@meyering.net>
74428
74429         * modules/check-include-files: Move to ../ and rename to...
74430         * check-module: ...this.
74431
74432 2005-03-25  Jim Meyering  <jim@meyering.net>
74433
74434         * modules/xvasprintf (Files): Add xalloc.h.
74435
74436 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
74437
74438         * modules/gettext (Files): config/config.rpath ->
74439         build-aux/config.rpath
74440         * modules/iconv (Files): Likewise.
74441         Problem reported by Oskar Liljeblad.
74442
74443 2005-03-23  Jim Meyering  <jim@meyering.net>
74444
74445         * modules/check-include-files: New script to check for
74446         missing dependencies, multiple includes, etc.
74447
74448         * modules/c-strtold (Depends-on): Add xalloc.
74449         * modules/c-strtod (Depends-on): Add xalloc.
74450         * modules/hash (Depends-on): Add xalloc.
74451         (Files): Remove lib/xalloc.h.
74452
74453         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
74454         * modules/userspec (Files): Add lib/inttostr.h.
74455
74456 2005-03-23  Jim Meyering  <jim@meyering.net>
74457
74458         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
74459
74460 2005-03-22  Jim Meyering  <jim@meyering.net>
74461
74462         * modules/stat-macros: New module.
74463         * modules/canonicalize, modules/euidaccess, modules/file-type,
74464         * modules/filemode, modules/lchown, modules/makepath,
74465         * modules/rmdir, modules/stat: Depend on new stat-macros module
74466         rather than listing lib/stat-macros.h manually.
74467         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
74468
74469 2005-03-22  Jim Meyering  <jim@meyering.net>
74470
74471         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
74472
74473 2005-03-22  Bruno Haible  <bruno@clisp.org>
74474
74475         * config/srclist.txt: Replace target directory 'config' with
74476         'build-aux'.
74477         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
74478         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
74479         ../build-aux/.
74480
74481 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
74482
74483         * modules/chdir-long (Depends-on): Add mempcpy.
74484
74485         * modules/acl, modules/backupfile, modules/c-strtod,
74486         modules/c-strtold, modules/canon-host, modules/canonicalize,
74487         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
74488         modules/exclude, modules/exitfail, modules/file-type,
74489         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
74490         modules/getdate, modules/getline, modules/getpagesize,
74491         modules/getpass, modules/getugroups, modules/group-member,
74492         modules/hard-locale, modules/hash, modules/human, modules/idcache,
74493         modules/inttostr, modules/long-options, modules/makepath,
74494         modules/md5, modules/memcasecmp, modules/memcoll,
74495         modules/modechange, modules/mountlist, modules/path-concat,
74496         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
74497         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
74498         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
74499         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
74500         modules/strftime, modules/strndup, modules/strverscmp,
74501         modules/timespec, modules/unlocked-io, modules/userspec,
74502         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
74503         modules/yesno:
74504         Remove lib_SOURCES line from Makefile.am section, as this is now
74505         done automatically by the corresponding Autoconf macro.
74506
74507 2005-03-21  Jim Meyering  <jim@meyering.net>
74508
74509         Changes imported from coreutils.
74510
74511         * lib/cycle-check.c: Don't include xalloc.h.
74512
74513         * lib/path-concat.c: Don't include assert.h.
74514         (path_concat): Remove assertion that would have triggered
74515         for ABASE starting with more than one slash.
74516         Reported by Andreas Schwab.
74517
74518         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
74519         properly when ABASE is an absolute file name.
74520         Correct the description of this function.
74521         Include <assert.h>.
74522         Add an assertion and a test driver.
74523         This fixes a bug introduced on 2004-07-02.
74524         Andreas Schwab reported the resulting failure of cp --parents:
74525         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
74526
74527 2005-03-21  Jim Meyering  <jim@meyering.net>
74528
74529         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
74530         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
74531
74532 2005-03-21  Jim Meyering  <jim@meyering.net>
74533         and  Paul Eggert  <eggert@cs.ucla.edu>
74534
74535         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
74536         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
74537         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
74538         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
74539         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
74540         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
74541         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
74542         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
74543         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
74544         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
74545         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
74546         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
74547         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
74548         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
74549         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
74550         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
74551         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
74552         for these modules.
74553
74554 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
74555
74556         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
74557         (which shouldn't happen), generate nothing instead of returning 0
74558         immediately, so that nstrftime (NULL, ...) doesn't return 0.
74559
74560 2005-03-16  Bruno Haible  <bruno@clisp.org>
74561
74562         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
74563         HAVE_LONGLONG_64BIT.
74564
74565 2005-03-16  Bruno Haible  <bruno@clisp.org>
74566
74567         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
74568         HAVE_LONGLONG_64BIT.
74569
74570 2005-03-16  Bruno Haible  <bruno@clisp.org>
74571
74572         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
74573         HAVE_LONGLONG_64BIT.
74574
74575 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74576
74577         * lib/strftime.c (my_strftime): Prepend space to format so that we can
74578         reliably distinguish strftime failure from empty output on POSIX
74579         hosts.
74580
74581 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74582
74583         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
74584         (iconv_string): Don't guess a size-zero buffer, as that might cause
74585         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
74586         result would be 'too large', where 'too large' is (heuristically)
74587         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
74588         overflow concerns.  This will prevent some unwanted malloc failures
74589         when the inputs are very large.
74590
74591 2005-03-15  Karl Berry  <karl@gnu.org>
74592
74593         * config/srclist.txt (config.rpath): from gettext.
74594         * config/config.rpath: update.
74595
74596 2005-03-15  Bruno Haible  <bruno@clisp.org>
74597
74598         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
74599         to 'negate'.
74600
74601         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
74602         variable.
74603
74604         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
74605         results.
74606
74607 2005-03-14  Simon Josefsson  <jas@extundo.com>
74608
74609         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
74610         <fx@gnu.org>.
74611
74612 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
74613
74614         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
74615         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
74616         intprops.h.
74617         * lib/strtol.c: Likewise.
74618
74619 2005-03-14  Jim Meyering  <jim@meyering.net>
74620
74621         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
74622         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
74623         to be nonzero so that we (and caller) can detect the difference
74624         between a valid zero-length expansion and an error return, even
74625         when the underlying strftime fails before writing anything into
74626         that location.
74627
74628 2005-03-14  Bruno Haible  <bruno@clisp.org>
74629
74630         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
74631         Update from GNU gettext 0.14.3.
74632
74633 2005-03-10  Jim Meyering  <jim@meyering.net>
74634
74635         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
74636
74637 2005-03-10  Jim Meyering  <jim@meyering.net>
74638
74639         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
74640         so that this module works on systems without fchdir.
74641
74642 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
74643
74644         Factor int-properties macros into a single file, except for
74645         glibc-related files.
74646         * lib/intprops.h: New file.
74647         * lib/getloadavg.c: Include it instead of limits.h.
74648         (INT_STRLEN_BOUND): Remove.
74649         * lib/human.c: Include intprops.h.
74650         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
74651         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
74652         302/1000.
74653         * lib/inttostr.h: Include intprops.h instead of limits.h.
74654         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
74655         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
74656         for consistency with intprops.h.
74657         (time_t_is_integer, twos_complement_arithmetic): Use them.
74658         * lib/sig2str.h: Include <signal.h>, intprops.h.
74659         (INT_STRLEN_BOUND): Remove.
74660         * lib/strftime.c (TYPE_SIGNED): Remove.
74661         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
74662         * lib/strtol.c: Adjust comments to match intprops.h.
74663         * lib/userspec.c: Include intprops.h.
74664         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
74665         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
74666         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
74667         instead of rolling our own expressions.
74668         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
74669
74670         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
74671         instead of int.
74672         (my_strftime): Do not mishandle years close to INT_MAX, by doing
74673         the right thing even if adding 1900 would overflow.  Similarly
74674         for tm_mon + 1 and tm_yday + 1.
74675         Make %Y always equivalent to %C%y, and similarly for %G and %g.
74676         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
74677         (DO_SIGNED_NUMBER): New macro.
74678         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
74679
74680 2005-03-07  Bruno Haible  <bruno@clisp.org>
74681
74682         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
74683
74684 2005-03-07  Bruno Haible  <bruno@clisp.org>
74685
74686         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
74687
74688 2005-03-04  Derek R. Price  <derek@ximbiot.com>
74689
74690         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
74691         (func_import): Only replace files via --import when they have actually
74692         changed.
74693
74694 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74695
74696         * m4/mmap-anon.m4: New file.
74697         * m4/pagealign_alloc.m4: New file.
74698
74699 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74700             Bruno Haible  <bruno@clisp.org>
74701
74702         * modules/pagealign_alloc: New file.
74703         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
74704
74705 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74706             Bruno Haible  <bruno@clisp.org>
74707
74708         * lib/pagealign_alloc.h: New file.
74709         * lib/pagealign_alloc.c: New file.
74710
74711 2005-03-03  Bruno Haible  <bruno@clisp.org>
74712
74713         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
74714         Use an all-permissive copyright notice, recommended by RMS.
74715
74716 2005-03-02  Bruno Haible  <bruno@clisp.org>
74717
74718         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
74719         of AIX, the replacement has to be done only after <string.h> is
74720         included, therefore not in config.h. stpncpy.h does the replacement,
74721         and stpncpy.c uses it.
74722
74723 2005-03-02  Bruno Haible  <bruno@clisp.org>
74724
74725         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
74726         stpncpy.c uses it.
74727
74728 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74729
74730         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
74731         The workaround isn't strictly needed for POSIX conformance, and
74732         it's too much of a pain to configure and maintain.  We'll ask
74733         people to fix their kernels instead.
74734         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
74735         (NANOSLEEP_BUG_WORKAROUND): Remove.
74736         (xnanosleep): Remove the workaround.
74737
74738 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74739
74740         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
74741         Reported by Derek Price.
74742         (Include): Add "timespec.h".
74743
74744         * modules/xnanosleep (Depends-on): Remove gethrxtime.
74745
74746 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74747
74748         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
74749         to detect nanosleep bug.
74750
74751 2005-03-01  Bruno Haible  <bruno@clisp.org>
74752
74753         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
74754
74755 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74756
74757         * modules/gethrxtime: New file.
74758         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
74759         (Depends-on): Add gethrxtime.
74760         (configure.ac): Add gl_XNANOSLEEP.
74761         (Makefile.am): Remove lib_SOURCES line.
74762
74763 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74764
74765         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
74766         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
74767
74768 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74769
74770         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
74771         * lib/timespec.h (gettime): Return void, since it always
74772         succeeds now.  All uses changed.
74773         * lib/gettime.c (gettime): Likewise.
74774         [HAVE_NANOTIME]: Prefer nanotime.
74775         Assume gettimeofday succeeds, as POSIX requires.
74776         Assime time () succeeds, since other code already does.
74777         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
74778         (timespec_subtract): Remove.
74779         (NANOSLEEP_BUG_WORKAROUND): New constant.
74780         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
74781         things considerably.  Use it only on GNU/Linux hosts, since the
74782         workaround shouldn't be needed elsewhere.
74783
74784 2005-02-24  Bruno Haible  <bruno@clisp.org>
74785
74786         * modules/gettext (Files): Add m4/glibc2.m4.
74787
74788 2005-02-24  Bruno Haible  <bruno@clisp.org>
74789
74790         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
74791         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
74792         * m4/progtest.m4:
74793         Update from GNU gettext 0.14.2.
74794         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
74795
74796 2005-02-24  Bruno Haible  <bruno@clisp.org>
74797
74798         * lib/localcharset.c: Update from GNU gettext 0.14.2.
74799         * lib/config.charset: Update from GNU gettext 0.14.2.
74800
74801 2005-02-24  Bruno Haible  <bruno@clisp.org>
74802
74803         * lib/gettext.h: Update from GNU gettext 0.14.2.
74804
74805 2005-02-23  Simon Josefsson  <jas@extundo.com>
74806
74807         * m4/iconvme.m4: New file.
74808
74809 2005-02-23  Jim Meyering  <jim@meyering.net>
74810
74811         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
74812         change.
74813         Thanks to Bruno Haible for catching it.
74814
74815 2005-02-22  Simon Josefsson  <jas@extundo.com>
74816
74817         * modules/iconvme: New file.
74818
74819         * MODULES.html.sh: Add iconvme.
74820
74821 2005-02-22  Simon Josefsson  <jas@extundo.com>
74822
74823         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
74824
74825 2005-02-22  Simon Josefsson  <jas@extundo.com>
74826
74827         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
74828
74829 2005-02-22  Jim Meyering  <jim@meyering.net>
74830
74831         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
74832         s/ifndef/ifdef/.
74833
74834 2005-02-20  Neil Conway  <neilc@samurai.com>
74835
74836         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
74837         returned by OSX/Darwin if the specified buffer is not large
74838         enough for the hostname.
74839
74840 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74841
74842         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
74843         pass it to _help, otherwise the latter coredumps trying to
74844         dereference state.root_argp.
74845
74846 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74847
74848         * modules/chdir-long (Depends-on): Add memrchr.
74849         * modules/memrchr (Files): Add lib/memrchr.h.
74850         (Include): "memrchr.h".
74851
74852 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74853
74854         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
74855
74856 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74857
74858         * lib/memrchr.h: New file.
74859         * lib/chdir-long.c: Include it.
74860         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
74861         Don't bother including stddef.h.
74862
74863 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74864
74865         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
74866         inclusion.
74867         Include <sys/types.h>, for dev_t.
74868         (ME_DUMMY, ME_REMOTE): Move from here....
74869         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
74870         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
74871         Dmitry V. Levin.
74872         Include mountlist.h first, to test the interface.
74873
74874 2005-01-29  Bruno Haible  <bruno@clisp.org>
74875
74876         * lib/progname.c (program_name): Initialize.
74877         Needed when linking statically on MacOS X.
74878
74879 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74880
74881         Sync from coreutils.
74882         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
74883         (Depends-on): Add c-strtod.
74884         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
74885
74886 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74887
74888         Sync from coreutils.
74889         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
74890
74891         Remove files that are specific to coreutils.
74892         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
74893
74894 2005-01-28  Bruno Haible  <bruno@clisp.org>
74895
74896         * modules/javacomp: New file.
74897         * MODULES.html.sh (Java): Add javacomp.
74898
74899 2005-01-28  Bruno Haible  <bruno@clisp.org>
74900
74901         * m4/javacomp.m4: New file, from GNU gettext.
74902
74903 2005-01-28  Bruno Haible  <bruno@clisp.org>
74904
74905         * lib/javacomp.sh.in: New file, from GNU gettext.
74906         * lib/javacomp.h: New file, from GNU gettext.
74907         * lib/javacomp.c: New file, from GNU gettext.
74908
74909 2005-01-26  Simon Josefsson  <jas@extundo.com>
74910
74911         * lib/gai_strerror.c: Use GPL in header.
74912
74913 2005-01-26  Bruno Haible  <bruno@clisp.org>
74914
74915         * modules/javaexec: New file.
74916         * MODULES.html.sh (Java): Add javaexec.
74917
74918 2005-01-26  Bruno Haible  <bruno@clisp.org>
74919
74920         * m4/javaexec.m4: New file, from GNU gettext.
74921
74922 2005-01-26  Bruno Haible  <bruno@clisp.org>
74923
74924         * lib/javaexec.sh.in: New file, from GNU gettext.
74925         * lib/javaexec.h: New file, from GNU gettext.
74926         * lib/javaexec.c: New file, from GNU gettext.
74927
74928 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74929
74930         * modules/lchown (Depends-on): Remove lchown.h
74931
74932 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74933
74934         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
74935         must be defined if the header file was not found, in order
74936         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
74937
74938 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74939
74940         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
74941         initializers for struct pentry_state.
74942         (__argp_error): Check return value of __asprintf
74943         (__argp_failure): Translate error message
74944
74945         * lib/argp-parse.c: Removed braces around the expansion of N_()
74946
74947 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74948
74949         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
74950         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
74951         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
74952         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
74953         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
74954         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
74955         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
74956         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
74957         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
74958         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
74959         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
74960         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
74961         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
74962         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
74963         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
74964         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
74965         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
74966         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
74967         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
74968         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
74969         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
74970         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
74971         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
74972         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
74973         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
74974         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
74975         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
74976         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
74977         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
74978         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
74979         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
74980         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
74981         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
74982         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
74983         xstrtol.m4, xstrtoumax.m4, yesno.m4:
74984         Use an all-permissive copyright notice, recommended by RMS.
74985
74986 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
74987
74988         * modules/chdir-long (Depends-on): Remove mempcpy.
74989
74990 2005-01-21  Jim Meyering  <jim@meyering.net>
74991
74992         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
74993         same value as for Solaris 9.
74994
74995         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
74996         component length.  This included changing the parameter to be
74997         of type `char *' rather than `char const *'.
74998         * lib/chdir-long.h (chdir_long): Update prototype.
74999
75000         * lib/openat.c (fdopendir, fstatat): New functions.
75001         * lib/openat.h: Include headers required for use of DIR and struct
75002         stat.
75003         [AT_SYMLINK_NOFOLLOW]: Define.
75004         (fdopendir, fstatat): Add prototypes.
75005
75006 2005-01-21  Bruno Haible  <bruno@clisp.org>
75007
75008         * modules/classpath: New file.
75009         * MODULES.html.sh (Java): Add classpath.
75010
75011 2005-01-21  Bruno Haible  <bruno@clisp.org>
75012
75013         * lib/classpath.h: New file, from GNU gettext.
75014         * lib/classpath.c: New file, from GNU gettext.
75015
75016 2005-01-20  Simon Josefsson  <jas@extundo.com>
75017
75018         * modules/version-etc-fsf: New file.
75019
75020 2005-01-20  Simon Josefsson  <jas@extundo.com>
75021
75022         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
75023         * lib/version-etc.c: Remove version_etc_copyright.
75024         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
75025         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
75026
75027 2005-01-20  Simon Josefsson  <jas@extundo.com>
75028
75029         * lib/base64.h (isbase64): Add.
75030
75031         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
75032         using a unsigned prototype, don't inline.
75033         (base64_decode): Use it.
75034
75035 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75036
75037         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
75038         it.
75039
75040 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75041
75042         * lib/save-cwd.c (save_cwd): Remove code to support the case
75043         where fchdir is missing or flaky.
75044
75045 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75046
75047         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
75048
75049 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75050
75051         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
75052         AC_LIBSOURCES now does this.
75053         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
75054         with new ullong_max module.
75055
75056 2005-01-19  Bruno Haible  <bruno@clisp.org>
75057
75058         * modules/sh-quote: New file.
75059         * MODULES.html.sh (Executing programs): Add sh-quote.
75060
75061 2005-01-19  Bruno Haible  <bruno@clisp.org>
75062
75063         * lib/sh-quote.h: New file, from GNU gettext.
75064         * lib/sh-quote.c: New file, from GNU gettext.
75065
75066 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75067
75068         Merge from coreutils.
75069         * m4/ullong_max.m4: New file.
75070         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
75071         (gl_MACROS): Assume localeconv exists.
75072
75073 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75074
75075         Merge changes from coreutils, as described below in several
75076         changelogs dated today.
75077
75078         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
75079         (O_DIRECTORY): Remove; not needed here, since "." must be
75080         a directory.  All uses removed.
75081         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
75082         universal on Suns, and we also need to test for IRIX.
75083         Revamp code to use 'if' rather than '#if'.
75084         Avoid unnecessary comparison of cwd->desc to 0.
75085
75086         * lib/utimens.c (futimens): Robustify the previous patch, by checking
75087         for known valid error numbers rather than observed invalid ones.
75088
75089 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75090
75091         * modules/ullong_max: New file.
75092
75093         * modules/chdir-long, modules/openat: New files.
75094         * modules/save-cwd (Depends-on): Depend on chdir-long.
75095         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
75096
75097 2005-01-18  Jim Meyering  <jim@meyering.net>
75098
75099         Merge from coreutils.
75100         * m4/chdir-long.m4, m4/openat.m4: New files.
75101         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
75102         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
75103         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
75104         is sane and DOES follow symlinks.  Besides, testing 20 different
75105         systems found no broken chown implementations.
75106         Prompted by a change in rsync's copy of this macro.
75107         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
75108
75109         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
75110
75111         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
75112         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
75113         NULL-means-set-to-current-time semantics.
75114         Remove temporary file immediately, rather than waiting
75115         for configure's at-exit trap code to do it.
75116
75117 2005-01-18  Jim Meyering  <jim@meyering.net>
75118
75119         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75120
75121         * lib/utimens.c (futimens): Account for the fact that futimes
75122         can also fail with errno == ENOSYS or errno == ENOENT.
75123         Patch from Dmitry V. Levin.
75124
75125         Change the name of the robust chdir function from chdir to chdir_long.
75126         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
75127         (restore_cwd): Use chdir_long, not chdir.
75128         * lib/chdir-long.c: Renamed from chdir.c.
75129         * lib/chdir-long.h: Renamed from chdir.h.
75130         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
75131         Hurd.
75132
75133 2005-01-18  Bruno Haible  <bruno@clisp.org>
75134
75135         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
75136         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
75137         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
75138         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
75139         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
75140         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
75141         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
75142         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
75143         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
75144         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
75145         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
75146         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
75147         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
75148         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
75149         Use an all-permissive copyright notice, recommended by RMS.
75150
75151 2005-01-18  Bob Proulx  <bob@proulx.com>
75152
75153         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
75154         simplify offsetof() macro construct to avoid compile failure with
75155         native HP-UX 11.0 ANSI C compiler.
75156
75157 2005-01-17  Bruno Haible  <bruno@clisp.org>
75158
75159         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
75160         redundant because stpncpy.m4 takes care of it.
75161
75162 2005-01-17  Bruno Haible  <bruno@clisp.org>
75163
75164         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
75165
75166 2005-01-17  Bruno Haible  <bruno@clisp.org>
75167
75168         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
75169         used.
75170
75171 2005-01-17  Bruno Haible  <bruno@clisp.org>
75172
75173         * lib/fwriteerror.h (fwriteerror): Change specification to include
75174         fclose.
75175         * lib/fwriteerror.c: Include <stdbool.h>.
75176         (fwriteerror): At the end, close the file stream. Record whether
75177         stdout was already closed.
75178
75179 2005-01-17  Bruno Haible  <bruno@clisp.org>
75180
75181         * lib/execute.c (environ): Declare if needed.
75182         * lib/pipe.c (environ): Likewise.
75183         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
75184
75185 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75186
75187         * modules/argp: Depend on vsnprintf
75188
75189 2005-01-10  Jim Meyering  <jim@meyering.net>
75190
75191         * modules/closeout (Depends-on): Add atexit.
75192
75193 2005-01-06  Bruno Haible  <bruno@clisp.org>
75194
75195         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
75196
75197 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75198
75199         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
75200         definitions to be after all include files, to avoid collisions.
75201         Problem reported by Bob Proulx.
75202
75203 2005-01-04  Jim Meyering  <jim@meyering.net>
75204
75205         Changes imported from coreutils.
75206         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
75207         as the mkstemp template, use a temporary directory and an
75208         8.3-friendly template to avoid trouble on systems like DJGPP.
75209         Reported by Juan M. Guerrero via Stepan Kasal.
75210         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
75211         close. Remove the temporary directory right away, rather than waiting
75212         for configure's at-exit trap code to do it.
75213         Suggestion from Stepan Kasal.
75214
75215 2005-01-01  Simon Josefsson  <jas@extundo.com>
75216
75217         * gnulib-tool: Print #include directives when --import'ing.
75218
75219 2004-12-28  Simon Josefsson  <jas@extundo.com>
75220
75221         * tests/test-base64.c: Include required header files.  Remove
75222         unused variables.
75223
75224 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75225
75226         * modules/error (Depends-on): Remove gettext.
75227
75228 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75229
75230         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
75231         not needed.  This removes a dependency on the gettext module.
75232         [defined _LIBC]: Do not include <libintl.h>; not needed.
75233
75234 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75235
75236         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
75237         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
75238
75239 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75240
75241         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
75242         HAVE_DECL_STRTOLD.
75243
75244 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75245
75246         * modules/getdate (Depends-on): Remove alloca-opt.
75247
75248 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75249
75250         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
75251
75252 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75253
75254         * lib/argp-parse.c: Include <stddef.h>.
75255         (alignof, alignto): New macros.
75256         (parser_init): Don't assume that void * is aligned sufficiently
75257         for struct option.
75258
75259         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
75260         need to extend the stack.
75261         (YYINITDEPTH): New macro, so that the initial stack isn't overly
75262         large.
75263
75264 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75265
75266         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
75267
75268 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75269
75270         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
75271         (2004-10-24) change.  Apparently this was a false alarm.
75272
75273         * modules/getdate: Depend on alloca-opt, not alloca.
75274
75275 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75276
75277         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
75278         Remove now-obsolete comment about AIX.
75279         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
75280         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
75281         (YYMAXDEPTH): New macro.
75282
75283 2004-12-18  Simon Josefsson  <jas@extundo.com>
75284
75285         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
75286
75287 2004-12-18  Bruno Haible  <bruno@clisp.org>
75288
75289         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
75290
75291 2004-12-18  Bruno Haible  <bruno@clisp.org>
75292
75293         * lib/fatal-signal.c (fatal_signals): Make non-const.
75294         (init_fatal_signals): New function.
75295         (uninstall_handlers, install_handlers): Ignore signals that were set to
75296         SIG_IGN.
75297         (at_fatal_signal): Call init_fatal_signals.
75298         (init_fatal_signal_set): Likewise. Ignore signals that were set to
75299         SIG_IGN.
75300         Reported by Paul Eggert.
75301
75302 2004-12-18  Bruno Haible  <bruno@clisp.org>
75303
75304         * doc/alloca.texi: New file.
75305         * doc/alloca-opt.texi: New file.
75306
75307 2004-12-17  Jim Meyering  <jim@meyering.net>
75308
75309         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
75310         Otherwise, install-sh could exit with improper exit status when
75311         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
75312
75313 2004-12-16  Simon Josefsson  <jas@extundo.com>
75314
75315         * tests/test-base64.c: Add license.
75316
75317 2004-12-15  Stepan Kasal  <address@hidden>
75318
75319         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
75320
75321 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
75322
75323         * modules/getcwd (Files): Add m4/d-ino.m4.
75324         Suggested by Mark D. Baushke.
75325
75326 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75327
75328         * lib/getdate.y (textint): New member "negative".
75329         (time_zone_hhmm): New function.
75330         Expect 14 shift-reduce conflicts, not 13.
75331         (o_colon_minutes): New rule.
75332         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
75333         (yylex): Set the "negative" member of signed numbers.
75334
75335 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75336
75337         * doc/getdate.texi (Time of day items, Time zone items):
75338         Describe new formats +00:00, UTC+00:00.
75339
75340 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75341
75342         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
75343         spurious "-l"s.  Problem reported by Stepan Kasal.
75344
75345 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
75346
75347         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
75348         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
75349
75350 2004-12-04  Simon Josefsson  <jas@extundo.com>
75351
75352         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
75353         Vandoorselaere <yoann@prelude-ids.org>.
75354
75355 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75356
75357         Changes imported from coreutils.
75358         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
75359         exist.
75360         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
75361
75362 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75363
75364         Changes imported from coreutils.
75365         * lib/hard-locale.c: Assume <locale.h> exists.
75366         Include "strdup.h".
75367         (GLIBC_VERSION): New macro.
75368         (hard_locale): Assume setlocale exists.
75369         Rewrite to avoid #ifdef.
75370         Use strdup rather than malloc + strcpy.
75371         * lib/human.c: Assume <locale.h> exists.
75372         (human_readable): Assume localeconv exists.
75373
75374 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75375
75376         * modules/hard-locale (Depends-on): Add strdup.
75377
75378 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75379
75380         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
75381         convert T2, not T.  (Imported from libc.)
75382
75383 2004-11-30  Simon Josefsson  <jas@extundo.com>
75384
75385         * modules/restrict (License): Change to LGPL.
75386
75387 2004-11-30  Simon Josefsson  <jas@extundo.com>
75388
75389         * m4/restrict.m4: Add copyright and copying conditions.
75390
75391 2004-11-30  Simon Josefsson  <jas@extundo.com>
75392
75393         * m4/base64.m4: New file.
75394
75395 2004-11-30  Simon Josefsson  <jas@extundo.com>
75396
75397         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
75398         base64.
75399
75400         * tests/test-base64.c: New file.
75401
75402         * modules/base64: New file.
75403
75404 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75405
75406         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
75407         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
75408
75409         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
75410
75411 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75412
75413         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
75414         (__getcwd.c): Don't restore errno; glibc doesn't.
75415         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
75416         first, falling back to our code only if its results look suspicious.
75417         Ensure that the resulting buffer is only as large as necessary.
75418
75419         * lib/readutmp.c: Include readutmp.h first.
75420         Include <errno.h>, since readutmp.h no longer does that.
75421         * lib/readutmp.h: Don't include <errno.h>,
75422         <sys/param.h>, <time.h>; not needed to establish interface.
75423         (errno): Remove decl.
75424         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
75425         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
75426         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
75427
75428 2004-11-28  Simon Josefsson  <jas@extundo.com>
75429
75430         * lib/base64.h, base64.c: New file.
75431
75432 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
75433
75434         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
75435
75436 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
75437
75438         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
75439         (Depends-on): Remove pathmax, same.  Add mempcpy.
75440         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
75441         (Makefile.am): Append getcwd.h to lib_SOURCES.
75442         (Include): Add getcwd.h.
75443         (Maintainer): Change from Jim Meyering to "all, glibc",
75444         since getdate now uses intended-for-glibc code.
75445         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
75446         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
75447
75448 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75449
75450         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
75451         HP's ANSI C compiler.
75452         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
75453         Declaring int functions causes warnings on some modern systems and
75454         shouldn't be needed to compile on ancient ones.
75455         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
75456         defined.
75457
75458         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
75459         with the following changes.
75460         (__set_errno): Parenthesize properly.
75461         Include <stdbool.h>.
75462         (MIN, MAX, MATCHING_INO): New macros.
75463         (__getcwd): Define with prototype, not K&R form.
75464         Use heuristics to allocate default buffer on stack if possible.
75465         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
75466         behavior, and to avoid the PATH_MAX limit when computing
75467         ../../../../...
75468         Use MATCHING_INO to compare inode number to file.
75469         Check for arithmetic overflow in size calculations.
75470         Fix bug in reallocation of dot array that caused getcwd to fail
75471         on directories nested deeper than 75.
75472         Be more careful about saving errno on error.
75473         Do not use realloc; use only free+malloc, as this is a bit
75474         more flexible and avoids a needless copy operation.
75475         Do not inspect st_dev and st_ino for symbolic links; POSIX
75476         doesn't specify the latter.
75477         Check for closedir errors.
75478         Avoid needless casts.
75479         Use "#ifdef weak_alias" around weak_alias, to be like other
75480         glibc code.
75481         The following changes to getcwd.c have effect only when used in
75482         gnulib; they have no effect inside glibc proper.
75483         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
75484         as alloca isn't used.
75485         (alloca, __alloca): Likewise.
75486         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
75487         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
75488         unconditionally, as gnulib assumes C89 or better.
75489         Do not include <sys/param.h>.
75490         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
75491         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
75492         better.
75493         (NULL) [!defined NULL]: Remove; we assume C89 or better.
75494         Include <dirent.h> in a way that is compatible with modern Autoconf.
75495         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
75496         New macros, if not already defined.
75497         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
75498         Use "_LIBC", not "defined _LIBC", for consistency.
75499         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
75500         a mempcpy module.
75501         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
75502         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
75503         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
75504         credit only to Jim Meyering and adjust the copyright dates.
75505         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
75506         <stdlib.h>, <unistd.h>, "pathmax.h".
75507         Instead, include "xgetcwd.h" (first) and "getcwd.h".
75508         (INITIAL_BUFFER_SIZE): Remove.
75509         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
75510
75511 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75512
75513         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
75514         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
75515         Use the _ONCE methods, for efficiency.
75516         Check for fcntl.h.  In test program, include <errno.h>
75517         and <fcntl.h> if available.  Remove old K&R cruft from
75518         test program.  Check for common errors in GNU/Linux,
75519         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
75520         don't do AC_LIBOBJ, as that's getcwd.m4's job.
75521         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
75522         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
75523         name accordingly.
75524         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
75525         accommodate new getcwd.c.
75526         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
75527         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
75528         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
75529         that's all we need now.
75530
75531 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75532
75533         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
75534         argp-parse.c depends on getopt internals, that means we should
75535         always use our getopt, to be on the safe side.
75536         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
75537         order not to spoil the result of an eventual previous invocation
75538         of gl_GETOPT_SUBSTITUTE.
75539
75540 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75541
75542         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
75543         redefinition warnings. To avoid them, include the defines
75544         in `#if !defined __need_getopt ... #endif'. The only place
75545         where __getopt_argv_const is used is in definitions
75546         of getopt_long and getopt_long_only below, which are as well
75547         protected by `#ifndef __need_getopt'.
75548         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
75549         __need_getopt after including <stdio.h> and <unistd.h> These
75550         headers might have defined it.
75551
75552 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75553
75554         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
75555
75556 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75557
75558         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
75559         (futimens): New function, which uses futimes if available.
75560         (futimens, utimens): Support timespec==NULL, with same semantics
75561         as utime and utimens.
75562         * lib/utimens.h (futimens): New decl.
75563
75564 2004-11-23  Jim Meyering  <jim@meyering.net>
75565
75566         * lib/getopt_.h: Remove trailing blanks.
75567
75568 2004-11-23  Jim Meyering  <jim@meyering.net>
75569
75570         * lib/__fpending.c: Add comment.
75571
75572 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
75573
75574         * modules/canonicalize (Depends-on): Add xreadlink.
75575         Problem reported by James Youngman.
75576
75577 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75578
75579         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
75580         New macros.
75581         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
75582         optopt): Use them instead of invoking ## directly; otherwise, the
75583         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
75584
75585 2004-11-19  Bruno Haible  <bruno@clisp.org>
75586
75587         * lib/strtok_r.c: Move comments from here...
75588         * lib/strtok_r.h: ... to here.
75589
75590 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75591
75592         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
75593         implementations that mishandle size_t overflow.
75594
75595 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75596
75597         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
75598         might fail.  Problem reported by Yoann Vandoorselaere.
75599         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
75600         implementations that mishandle size_t overflow.
75601
75602 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75603
75604         * modules/canon-host (Depends-on): Add strdup.
75605
75606 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75607
75608         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
75609
75610 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75611
75612         * lib/canon-host.c: Include "strdup.h".
75613         (canon_host): Use getaddrinfo if available, so that IPv6 works.
75614         Use strdup instead of malloc/strcpy to duplicate strings.
75615
75616         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
75617         (human_space_before_unit): New constant.
75618         * lib/human.c (human_readable): Support it.
75619
75620         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
75621         (xgetcwd): Set errno correctly when failing.
75622         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
75623         the failure is actually due to a PATH_MAX problem.
75624
75625         Further getopt changes to make it more likely that glibc will
75626         buy the changes back.
75627         * lib/getopt.c (POSIXLY_CORRECT): New constant.
75628         (getopt): Use it, so to preserve glibc semantic
75629         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
75630         when compiling for libc.
75631         * lib/getopt_.h (__getopt_argv_const): Bring it back.
75632         (getopt_long, getopt_long_only): Use it.
75633
75634         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75635         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
75636         (getopt): Argv is now char * const *, as per standard.
75637         (_getopt_internal_r, _getopt_internal): Argv is now char **,
75638         not char *__getopt_argv_const *.
75639         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75640         _getopt_long_only_r): Likewise.
75641         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
75642         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75643         _getopt_long_r, _getopt_long_only_r): Likewise.
75644         * lib/getopt_.h (__getopt_argv_const): Remove.
75645         (getopt): Argv is now char * const *, as per standard.
75646
75647         * lib/getdate.y (tORDINAL): New token.
75648         (day, relunit): Allow it for relative times.
75649         (relative_time_table): Use tORDINAL for ordinals.
75650
75651 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75652
75653         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
75654         Document that "second" isn't allowed as an ordinal number.
75655
75656 2004-11-16  Jim Meyering  <jim@meyering.net>
75657
75658         * modules/closeout (Depends-on): Add fpending.
75659
75660 2004-11-15  Jim Meyering  <jim@meyering.net>
75661
75662         * lib/closeout.c: Include "__fpending.h" once again.
75663         Include <stdbool.h>.
75664         (close_stdout): Don't fail just because stdout was closed initially,
75665         since some programs don't write to stdout in the normal course of
75666         operation (other than --version and --help), and we don't want this
75667         function to make e.g. `touch file >&-' fail.
75668         But do fail if it was closed and someone has tried to write to it.
75669         E.g., `printf foo >&-' must fail.
75670
75671 2004-11-13  Jim Meyering  <jim@meyering.net>
75672
75673         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
75674
75675 2004-11-12  Simon Josefsson  <jas@extundo.com>
75676
75677         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
75678         small doc fix is still pending.
75679
75680 2004-11-11  Simon Josefsson  <jas@extundo.com>
75681
75682         * modules/strtok_r: New file.
75683
75684         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75685         strtok_r.
75686
75687 2004-11-11  Simon Josefsson  <jas@extundo.com>
75688
75689         * m4/strtok_r.m4: New file.
75690
75691         * m4/getopt.m4: Replace opterr.
75692
75693 2004-11-11  Simon Josefsson  <jas@extundo.com>
75694
75695         * lib/strtok_r.h, strtok_r.c: New file.
75696
75697 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75698
75699         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
75700         of replacing opterr, getopt, etc.  This should handle the
75701         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
75702
75703 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75704
75705         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
75706         we can stop lying to compilers about the constness of argv when we
75707         are compiled outside glibc.
75708         (getopt, getopt_long, getopt_long_only): Use it.
75709         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75710         _getopt_internal, getopt): Likewise.
75711         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75712         _getopt_long_only_r): Likewise.
75713         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75714         _getopt_long_r, _getopt_long_only_r): Likewise.
75715
75716         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
75717         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
75718         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
75719         the other external symbols.
75720         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
75721         declaration, since the above renaming now works around collisions.
75722
75723 2004-11-11  Jim Meyering  <jim@meyering.net>
75724
75725         * lib/linebreak.c: Remove trailing blanks.
75726         * lib/alloca_.h: Likewise.
75727         * lib/acosl.c: Likewise.
75728         * lib/euidaccess.c: Likewise.
75729         * lib/allocsa.h: Likewise.
75730
75731 2004-11-10  Simon Josefsson  <jas@extundo.com>
75732
75733         * m4/getaddrinfo.m4: New file.
75734
75735 2004-11-10  Simon Josefsson  <jas@extundo.com>
75736
75737         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
75738
75739 2004-11-10  Simon Josefsson  <jas@extundo.com>
75740
75741         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75742         getaddrinfo.
75743
75744         * modules/getaddrinfo: New file.
75745
75746 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75747
75748         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
75749
75750 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75751
75752         * lib/mktime.c (SHR): New macro, which is a portable
75753         substitute for >> that should work even on Crays.
75754         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
75755         Problem reported by Mark D. Baushke in
75756         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
75757         * lib/getdate.y (SHR): Likewise.
75758         (tm_diff): Use it.
75759         * lib/strftime.c (SHR): Likewise.
75760         (tm_diff): Use it.
75761         * lib/quotearg.c (struct quoting_options): Use unsigned int for
75762         quote_these_too, so that right shifts are well defined.  All uses
75763         changed.
75764
75765 2004-11-10  Jim Meyering  <jim@meyering.net>
75766
75767         Ensure that no close failure goes unreported.
75768         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
75769         return early when it seems there's nothing to flush.
75770         Don't include __fpending.h.
75771
75772 2004-11-10  Jim Meyering  <jim@meyering.net>
75773
75774         * modules/closeout (Depends-on): Remove fpending.
75775
75776 2004-11-10  Jim Meyering  <jim@meyering.net>
75777
75778         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
75779
75780 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75781
75782         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
75783         gl_FUNC_STRFTIME.
75784         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
75785         and AC_REQUIRE when possible, to avoid duplicate checks.
75786         Check for <wchar.h>.
75787
75788 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75789
75790         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
75791
75792 2004-11-09  Bruno Haible  <bruno@clisp.org>
75793
75794         * m4/sockpfaf.m4: New file.
75795
75796 2004-11-05  Bruno Haible  <bruno@clisp.org>
75797
75798         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
75799         Reported by Mark D. Baushke <mdb@cvshome.org>.
75800
75801 2004-11-04  Bruno Haible  <bruno@clisp.org>
75802
75803         2004-09-11  Bruno Haible  <bruno@clisp.org>
75804                 * allocsa.valgrind: New file.
75805         2004-02-06  Bruno Haible  <bruno@clisp.org>
75806                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
75807                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
75808                 Reported by Christopher Seip <chris.seip@hp.com>.
75809
75810 2004-11-04  Bruno Haible  <bruno@clisp.org>
75811
75812         * modules/allocsa (Files): Add lib/allocsa.valgrind.
75813         (Makefile.am): Distribute it.
75814
75815 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75816
75817         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
75818         with errno == ERANGE if the buffer is too small.
75819         Problem reported by Mark D. Baushke.
75820
75821 2004-11-03  Albert Chin  <china@thewrittenword.com>
75822             Paul Eggert  <eggert@cs.ucla.edu>
75823
75824         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
75825         equivalent, substitute $ac_type for equivalent type rather than
75826         blindly using uint32_t *always* which won't work if uint32_t is not
75827         available.  Define _UINT32_T to work around typedef of uint32_t if
75828         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
75829         2.5.1.
75830
75831 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75832
75833         * m4/jm-macros.m4: Sync from coreutils.
75834         (gl_MACROS): Check for mbrlen, for pathchk.
75835         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
75836
75837 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75838
75839         * lib/xreadlink.c (MAXSIZE): New macro.
75840         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
75841         size does not exceed MAXSIZE.  Avoid cast.
75842         As suggested by Mark D. Baushke in
75843         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
75844         if readlink fails with buffer size just under MAXSIZE, try again
75845         with MAXSIZE.
75846
75847 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75848
75849         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
75850
75851 2004-11-02  Derek R. Price  <derek@ximbiot.com>
75852         and  Paul Eggert  <eggert@cs.ucla.edu>
75853
75854         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
75855         (get_date): Overparenthesize to avoid GCC warning.
75856
75857 2004-11-02  Bruno Haible  <bruno@clisp.org>
75858
75859         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
75860         returns void.
75861
75862 2004-11-02  Bruno Haible  <bruno@clisp.org>
75863
75864         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
75865         function returns void.
75866
75867 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75868
75869         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
75870         fflush_unlocked, flockfile, funlockfile, funlockfile,
75871         fputs_unlocked, putc_unlocked.
75872
75873 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75874
75875         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75876         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
75877         already declared.
75878
75879 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75880
75881         * modules/getdate (Files): Add doc/getdate.texi.
75882         (Depends-on): Add setenv, xalloc.
75883
75884 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75885
75886         * lib/getdate.y: Add support for TZ="foo" within a date string.
75887         Fix some bugs near time_t boundaries.  Reject dates with
75888         out-of-range components, e.g., "Sept 31".
75889         Include <stdlib.h>, "setenv.h", "xalloc.h".
75890         (ISDIGIT_LOCALE): Remove; unused.
75891         Note that the TZ and time functions used here are not reentrant.
75892         (mktime_ok, get_tz): New functions.
75893         (TZBUFSIZE): New constant.
75894         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
75895         This requires that we sometimes generate our own TZ="XXX..." setting.
75896
75897 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75898
75899         * doc/getdate.texi: New file, from coreutils with modifications for
75900         the new TZ parsing.
75901
75902 2004-10-27  Derek R. Price  <derek@ximbiot.com>
75903
75904         * lib/mktime.c (not_equal_tm): Remove redundant check.
75905
75906 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75907
75908         * modules/regex (lib_SOURCES): Add regex.c.
75909         Reported by James Youngman in
75910         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
75911
75912 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75913
75914         * lib/getdate.y: Use Bison 1.875 features, and some minor
75915         code cleanups.  This change does not affect semantics.
75916         Don't include <stdlib.h>; no longer needed.
75917         Don't include unlocked-io.h; only the "#if TEST" code uses
75918         stdio, and performance isn't crucial there.
75919         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
75920         Bison 1.875 features as described below.
75921         All uses of "PC." replaced by "pc->".
75922         (YYSTYPE): Add a forward declaration.
75923         (yylex, yyerror): Use full prototypes in forward decls.
75924         Use "%pure-parser" rather than obsolescent "%pure_parser".
75925         Use %parse-param and %lex-param instead of obsolescent
75926         YYPARSE_PARAM and YYLEX_PARAM.
75927         (meridian_table, month_and_day_table, time_units_table,
75928         relative_time_table, time_zone_table, military_table,
75929         lookup_zone, lookup_word, get_date):
75930         Use NULL instead of 0 where appropriate.
75931         (to_hour): Avoid abort (), to avoid a dependency on
75932         stdlib.h.
75933         (yyerror, yylex): Now accepts parser_control * arg.
75934         (main) [TEST]: Use '\0' rather than 0 for char.
75935
75936 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75937
75938         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
75939
75940 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75941
75942         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
75943         It's now the caller's responsibility to handle the case where
75944         !HAVE_GETPAGESIZE && !defined getpagesize.
75945
75946         * lib/mktime.c (leapyear): Arg is long int, not int.
75947
75948 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
75949
75950         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
75951
75952 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75953
75954         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
75955         missing.  Problem reported by James Youngman.
75956
75957 2004-10-16  Simon Josefsson  <jas@extundo.com>
75958
75959         * gnulib-tool: Fix comments.  Fix parse problem.
75960         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
75961
75962 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
75963
75964         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
75965         implementation of getopt_long.  Problem reported by Alexander Taler in:
75966         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
75967
75968 2004-10-15  Bruno Haible  <bruno@clisp.org>
75969
75970         * gnulib-tool: Untabify. Initialize supplied_libname.
75971         (func_usage): More homogenous output.
75972         (func_modules_transitive_closure, func_modules_to_filelist,
75973         func_emit_lib_Makefile_am): New functions.
75974         (func_import): New function, extracted from big case statement. Use
75975         func_get_license, func_modules_transitive_closure,
75976         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
75977         opt_lgpl. Don't use test -a, as it's not portable.
75978         (func_create_testdir): Use func_modules_transitive_closure,
75979         func_modules_to_filelist, func_emit_lib_Makefile_am.
75980
75981 2004-10-15  Bruno Haible  <bruno@clisp.org>
75982
75983         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
75984
75985 2004-10-15  Bruno Haible  <bruno@clisp.org>
75986
75987         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
75988         the portions belonging to each module.
75989         Suggested by Derek Robert Price <derek@ximbiot.com>.
75990
75991 2004-10-12  Simon Josefsson  <jas@extundo.com>
75992
75993         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75994         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
75995         to real functions.
75996
75997 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75998
75999         * modules/vsnprintf: New file.
76000
76001 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76002
76003         * m4/vsnprintf.m4: New file.
76004
76005 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76006
76007         * lib/vsnprintf.h: New file.
76008         * lib/vsnprintf.c: New file.
76009
76010 2004-10-11  Bruno Haible  <bruno@clisp.org>
76011
76012         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
76013         vsnprintf.
76014
76015 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76016
76017         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
76018
76019 2004-10-07  Bruno Haible  <bruno@clisp.org>
76020
76021         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
76022         fits into the provided buffer.
76023
76024 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76025
76026         * lib/diacrit.c, diacrit.h: Add GPL notice.
76027
76028         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
76029         notice.
76030         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
76031         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
76032         This avoids a potential constant-folding bug.
76033
76034 2004-10-05  Bruno Haible  <bruno@clisp.org>
76035
76036         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
76037         for the declaration of strsep.
76038
76039 2004-10-05  Bruno Haible  <bruno@clisp.org>
76040
76041         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
76042
76043 2004-10-04  Simon Josefsson  <jas@extundo.com>
76044
76045         * modules/memmem: New file.
76046         * tests/test-memmem.c: New file.
76047         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
76048
76049 2004-10-04  Simon Josefsson  <jas@extundo.com>
76050
76051         * m4/memmem.m4: New file.
76052
76053 2004-10-04  Simon Josefsson  <jas@extundo.com>
76054
76055         * lib/memmem.h: New file.
76056         * lib/memmem.c: New file, taken from glibc.
76057
76058 2004-10-04  Simon Josefsson  <jas@extundo.com>
76059
76060         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
76061         '#ifdef USE_UNLOCKED_IO'.
76062
76063 2004-10-04  Simon Josefsson  <jas@extundo.com>
76064
76065         * config/srclist.txt: Add memmem from glibc.
76066
76067 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76068
76069         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
76070
76071         * modules/argmatch, modules/argp, modules/closeout, modules/error,
76072         modules/exclude, modules/getdate, modules/getline,
76073         modules/getndelim2, modules/getpass, modules/getpass-gnu,
76074         modules/getusershell, modules/linebuffer, modules/md5,
76075         modules/mountlist, modules/posixtm, modules/readtokens,
76076         modules/readutmp, modules/regex, modules/sha1,
76077         modules/version-etc, modules/yesno:
76078         Remove dependency on unlocked-io.
76079
76080 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76081
76082         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
76083
76084         * m4/unlocked-io.m4: Add copyright notice.
76085         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
76086
76087 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76088
76089         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
76090         * lib/xmalloc.c (xmemdup): Likewise.
76091         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
76092         XFREE): Remove these long-obsolescent macros.
76093         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
76094         * lib/xstrdup.c: Remove.
76095
76096         * lib/regex.c (re_comp): Cast gettext return value to char *,
76097         Problem reported by Martin Neitzel via Mark D. Baushke.
76098
76099 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76100
76101         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
76102         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
76103         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
76104         regex.c, sha1.c, version-etc.c, yesno.c:
76105         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
76106         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
76107         the includer's responsibility.
76108
76109         Sync from coreutils.
76110
76111         * lib/modechange.c (mode_compile): Don't decrement a pointer that
76112         points to the start of a string, as the C Standard says the
76113         resulting behavior is undefined.
76114
76115         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
76116         simple -> simple_backups, numbered_existing ->
76117         numbered_existing_backups, numbered -> numbered_backups
76118         to avoid shadowing problems.  All uses changed.
76119         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
76120         * lib/backupfile.c (check_extension, numbered_backup):
76121         Rename locals to avoid shadowing 'basename'.
76122         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
76123         once.
76124
76125         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
76126         * lib/.cvsignore: Add getopt.h.
76127
76128 2004-10-04  Bruno Haible  <bruno@clisp.org>
76129
76130         * modules/README: New file.
76131         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
76132         not a module.
76133
76134 2004-10-02  Jim Meyering  <jim@meyering.net>
76135
76136         * lib/dirfd.h, getpagesize.h: Add copyright notice.
76137
76138 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76139
76140         * modules/strsep: New file.
76141
76142 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76143
76144         * m4/strsep.m4: New file.
76145
76146 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76147
76148         * lib/strsep.h: New file.
76149         * lib/strsep.c: New file.
76150
76151 2004-10-01  Simon Josefsson  <jas@extundo.com>
76152
76153         * lib/snprintf.c (snprintf): Handle size==0.
76154
76155 2004-10-01  Simon Josefsson  <jas@extundo.com>
76156             Bruno Haible  <bruno@clisp.org>
76157
76158         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
76159         (snprintf): Declare 'args'.
76160
76161 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
76162
76163         * lib/snprintf.c: Remove comments as to why each header is needed.
76164
76165 2004-10-01  Bruno Haible  <bruno@clisp.org>
76166
76167         * MODULES.html.sh: Add strsep.
76168
76169 2004-09-30  Simon Josefsson  <jas@extundo.com>
76170
76171         * modules/snprintf: New file.
76172
76173 2004-09-30  Simon Josefsson  <jas@extundo.com>
76174
76175         * m4/snprintf.m4: New file.
76176
76177 2004-09-30  Simon Josefsson  <jas@extundo.com>
76178
76179         * lib/snprintf.h, lib/snprintf.c: New files.
76180
76181 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76182
76183         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
76184         (hol_entry_help): Never translate an empty string.
76185         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
76186         * lib/argp.h (OPTION_NO_TRANS): New option.
76187
76188 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76189
76190         * modules/argp (Maintainer): Replace Simon Josefsson
76191         by Sergey Poznyakoff.
76192
76193 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76194
76195         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
76196         changes merged back into glibc.
76197
76198 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76199
76200         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
76201
76202 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76203
76204         * lib/xvasprintf.c: Include xalloc.h.
76205         (xvasprintf): Use xalloc_die, not xmalloc_die.
76206
76207 2004-09-29  Bruno Haible  <bruno@clisp.org>
76208
76209         * modules/alloca-opt: New file, derived from modules/alloca.
76210         * modules/allocsa: Depend on alloca-opt instead of alloca.
76211         * modules/setenv: Likewise.
76212         * modules/vasnprintf: Likewise.
76213         * MODULES.html.sh: Add alloca-opt.
76214
76215 2004-09-28  Simon Josefsson  <jas@extundo.com>
76216
76217         * gnulib-tool: New parameter --lgpl, to asseert that modules are
76218         LGPL, and to replace license template from GPL to LGPL.
76219
76220 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76221
76222         * modules/dummy: Change license to LGPL.
76223
76224 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76225
76226         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
76227
76228 2004-09-24  Simon Josefsson  <jas@extundo.com>
76229
76230         * modules/minmax (License): Change from GPL to LGPL.
76231
76232 2004-09-23  Simon Josefsson  <jas@extundo.com>
76233
76234         * gnulib-tool (--import): Typo.
76235
76236 2004-09-23  Simon Josefsson  <jas@extundo.com>
76237
76238         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
76239
76240 2004-09-22  Bruno Haible  <bruno@clisp.org>
76241
76242         * modules/*: Add 'License' field.
76243         * gnulib-tool: Accept --extract-license option.
76244         (func_get_license): New function.
76245
76246 2004-09-21  Bruno Haible  <bruno@clisp.org>
76247
76248         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
76249         Reported by Simon Josefsson.
76250
76251 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76252
76253         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
76254         gl_AC_TYPE_LONG_LONG.
76255
76256 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76257
76258         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
76259
76260 2004-09-18  Simon Josefsson  <jas@extundo.com>
76261         and  Paul Eggert  <eggert@cs.ucla.edu>
76262
76263         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
76264         calls with autoreconf.  Define GL_LIB.
76265
76266 2004-09-14  Karl Berry  <karl@gnu.org>
76267
76268         * config/srclist.txt: unsync setenv.c, sigh.
76269
76270 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76271
76272         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
76273         Problem reported by Bruno Haible in:
76274         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
76275
76276 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76277
76278         * config/srclist.txt: Comment out argp-pvh.c.
76279
76280 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
76281
76282         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
76283         in case some system header has #define'd it.  Problem reported by
76284         Soeren D. Schulze in
76285         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
76286
76287 2004-09-09  Karl Berry  <karl@gnu.org>
76288
76289         * regex.[ch]: delete from the root.  These were supposed to be
76290                 synced with emacs cvs, but this has not happened for about
76291                 a year, and anyway nothing else uses emacs regex.[ch].
76292                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
76293                 lib/regex[.ch] is untouched.
76294
76295 2004-09-09  Bruno Haible  <bruno@clisp.org>
76296
76297         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
76298
76299 2004-09-09  Bruno Haible  <bruno@clisp.org>
76300
76301         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
76302         modifications.
76303         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
76304
76305 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76306
76307         * modules/xvasprintf: New file.
76308         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
76309
76310 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76311
76312         * lib/xvasprintf.h: New file.
76313         * lib/xvasprintf.c: New file.
76314         * lib/xasprintf.c: New file.
76315
76316 2004-09-08  Bruno Haible  <bruno@clisp.org>
76317
76318         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
76319
76320 2004-09-08  Bruno Haible  <bruno@clisp.org>
76321
76322         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
76323         length is > INT_MAX.
76324         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
76325         more.
76326
76327 2004-09-08  Bruno Haible  <bruno@clisp.org>
76328
76329         * lib/stdint_.h: New file, taken from GNU clisp.
76330
76331 2004-09-08  Bruno Haible  <bruno@clisp.org>
76332             Oskar Liljeblad  <oskar@osk.mine.nu>
76333
76334         * modules/stdint: New file.
76335         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
76336
76337 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76338
76339         Import from coreutils.
76340         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
76341         strings on unbounded length.  alloca's performance benefits aren't
76342         that important here.
76343         (V_STRDUP): Remove.
76344         (parse_with_separator): New function, with most of the internals
76345         of the old parse_user_spec.  Allow user to omit both user and group,
76346         for compatibility with FreeBSD.
76347         Clone only the user name, not the entire spec.
76348         Do not set *uid, *gid unless entirely successful.
76349         Avoid memory leak in some failing cases.
76350         Fix regression for USER.GROUP reported by Dmitry V. Levin in
76351         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
76352         (parse_user_spec): Rewrite to use parse_with_separator.
76353
76354 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76355
76356         * modules/userspec: Don't depend on alloca.
76357
76358 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76359
76360         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
76361
76362 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76363
76364         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
76365         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
76366         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
76367
76368 2004-08-16  Simon Josefsson  <jas@extundo.com>
76369
76370         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
76371         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
76372         Add --dry-run for --import.
76373         Let user provided command line parameters override configure.ac
76374         settings.
76375
76376 2004-08-12  Simon Josefsson  <jas@extundo.com>
76377
76378         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
76379         as discussed with Paul Eggert in threads rooted at
76380         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
76381         and
76382         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
76383         Before, the test was empty, and relied on ELIDE_CODE in source
76384         code.)
76385         (gl_PREREQ_GETOPT): New macro.
76386         (gl_GETOPT): Use them.
76387
76388 2004-08-12  Simon Josefsson  <jas@extundo.com>
76389
76390         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
76391         * lib/getopt_.h: Renamed from getopt.h.
76392
76393 2004-08-12  Simon Josefsson  <jas@extundo.com>
76394
76395         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
76396         Change default library name from libfoo to libgnu.
76397         Now, if you have a configure.ac that says:
76398                 gl_SOURCE_BASE(gl)
76399                 gl_M4_BASE(gl/m4)
76400                 gl_MODULES(error getopt etcetera)
76401                 gl_INIT
76402         you can import all you need by running:
76403                 ../gnulib/gnulib-tool --import
76404
76405         * modules/getopt (Files): Rename getopt.h to getopt_.h.
76406         (Makefile.am): Rewrite, use logic from argz.
76407         (Include): Use <getopt.h> instead of "getopt.h".
76408
76409 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76410
76411         * modules/argp (Files): Add m4/unlocked-io.m4.
76412         (Depends-on): Add extensions.
76413
76414 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76415
76416         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
76417         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
76418         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
76419         Check for program_invocation_name, program_invocation_short_name,
76420         flockfile, funlockfile, features.h, _getopt_long_only_r.
76421
76422 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76423
76424         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
76425         its complicated substitute.
76426         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
76427         and program_invocation_name.
76428         (__argp_basename) [!_LIBC]: Remove; the only use was
76429         replaced by its body.
76430         (__argp_short_program_name): Change condition from
76431         !defined __argp_short_program_name to
76432         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
76433         to match argp-namefrob.h.
76434         (__argp_failure): Don't assume strerror_r returns char *.
76435         * lib/argp-parse.c (N_): Define unconditionally.
76436         (argp_default_options): Fill out initializers with 0 to avoid
76437         gcc warnings.
76438
76439 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76440
76441         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
76442         getopt1.c.
76443
76444 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76445
76446         Merge from coreutils.
76447
76448         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
76449
76450         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
76451         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
76452
76453 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76454
76455         Merge from coreutils.
76456
76457         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
76458         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
76459         for Reliant Unix 5.43.
76460
76461         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
76462         (union fooround): Use uintmax_t, not long int.
76463         The rest is a merge from libc:
76464         [defined _LIBC]: Include <shlib-compat.h>.
76465         (_obstack) [defined _LIBC]: Remove after 2.3.4.
76466
76467         * lib/settime.c (settime): Recode to avoid warning with
76468         Sun Forte C 6U2.
76469
76470         * lib/strverscmp.c: Convert to UTF-8.
76471
76472 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76473
76474         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76475         m4/uintmax_t.m4.
76476
76477 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76478
76479         * modules/xalloc-die: New file.
76480         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
76481
76482         * modules/md5 (Files): Add m4/uint32_t.m4.
76483         * modules/sha1: Renamed from modules/sha.
76484         (Files):
76485         Rename lib/sha.h to lib/sha1.h.
76486         Rename lib/sha.c to lib/sha1.c.
76487         Rename m4/sha.m4 to m4/sha1.m4.
76488         (lib_SOURCES): Likewise.
76489         (configure.ac): Rename gl_SHA to gl_SHA1.
76490         (Include): sha.h -> sha1.h.
76491
76492 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76493
76494         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
76495         * m4/sha1.m4: Renamed from sha.m4.
76496         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
76497
76498 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76499
76500         * lib/obstack.h (obstack_empty_p):
76501         Don't assume that chunk->contents is suitably aligned.
76502         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
76503         Likewise. Problem reported by Benno in
76504         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
76505
76506         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
76507         readable.  This could be improved further but it'd take some work.
76508
76509 2004-08-08  Simon Josefsson  <jas@extundo.com>
76510
76511         * modules/xgethostname (Depends-on): Remove exit and error (not
76512         used).
76513
76514         * modules/getpass-gnu: Add getpass.h.
76515         (Depends-on): Add stdbool.
76516         * modules/getpass: Add getpass.h.
76517
76518 2004-08-08  Simon Josefsson  <jas@extundo.com>
76519
76520         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
76521         Check getpass declaration.
76522
76523 2004-08-08  Simon Josefsson  <jas@extundo.com>
76524
76525         * lib/xgethostname.c: Don't include error.h (not used).
76526
76527         * lib/getpass.h: Add.
76528         * lib/getpass.c: Include getpass.h first.
76529
76530 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
76531
76532         * lib/xalloc-die.c: New file.
76533         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
76534         All uses removed.
76535         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
76536         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
76537         xalloc-die.c.
76538         (_, N_, xalloc_die): Move to xalloc-die.c.
76539         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
76540         so that we needn't mess with xalloc_msg_memory_exhausted.
76541
76542         * lib/sha1.h: Renamed from sha.h.
76543         (SHA1_H): Renamed from _SHA_H.
76544         (sha1_ctx): Renamed from sha_ctx.
76545         (sha1_init_ctx): Renamed from sha_init_ctx.
76546         (sha1_process_block): Renamed from sha_process_block.
76547         (sha1_process_bytes): Renamed from sha_process_bytes.
76548         (sha1_finish_ctx): Renamed from sha_finish_ctx.
76549         (sha1_read_ctx): Renamed from sha_read_ctx.
76550         (sha1_stream): Renamed from sha_stream.
76551         (sha1_buffer): Renamed from sha_buffer.
76552         * lib/sha1.c: Likewise; renamed from sha.c.
76553         Do not include <sys/types.h>.
76554         Include <stddef.h> rather than <stdlib.h>.
76555
76556 2004-08-08  Bruno Haible  <bruno@clisp.org>
76557
76558         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
76559         FILESYSTEM_PREFIX_LEN.
76560         * lib/progreloc.c: Likewise.
76561         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
76562
76563 2004-08-06  Simon Josefsson  <jas@extundo.com>
76564
76565         * modules/progname (Depends-on): Don't depend on stdbool.
76566
76567 2004-08-06  Simon Josefsson  <jas@extundo.com>
76568
76569         * modules/getsubopt: New file.
76570         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76571         getsubopt.
76572
76573 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76574
76575         More merge from coreutils.
76576
76577         * m4/utimens.m4, m4/utimecmp.m4: New files.
76578         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
76579         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
76580         prereq.m4, sha.m4: Import changes from coreutils.
76581
76582 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76583
76584         More merge from coreutils.
76585         * modules/raise, modules/readtokens0, modules/utimens:
76586         * modules/utimecmp, module/xnanosleep: New files.
76587         * modules/strftime: Add lib/strftime.h.
76588         Change include from <time.h> to "strftime.h".
76589         * modules/yesno: Add lib/yesno.h.
76590         * modules/backupfile: Remove lib/addext.c.
76591         * modules/euidaccess: Add stat-macros.h.
76592         * modules/canonicalize, modules/euidaccess,
76593         modules/filemode, modules/lchown, modules/makepath,
76594         modules/rmdir, modules/stat: Likewise.
76595
76596 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76597
76598         Merge from tar.
76599         * lib/argp-help.c (make_hol, hol_append): Don't assume that
76600         SIZE_MAX is a valid preprocessor constant.
76601         (__argp_basename): Change from "#ifndef _LIBC"
76602         to "#ifndef __argp_short_program_name", so that
76603         we don't compile these functions for tar.
76604
76605         More merges from coreutils.
76606         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
76607         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
76608         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
76609         * lib/addext.c: Remove; no longer needed.
76610         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
76611         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
76612         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
76613         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
76614         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
76615         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
76616         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
76617         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
76618         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
76619         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76620         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
76621         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
76622         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
76623         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
76624         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
76625         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
76626         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
76627         Import changes from coreutils.
76628
76629 2004-08-05  Simon Josefsson  <jas@extundo.com>
76630
76631         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
76632
76633 2004-08-05  Simon Josefsson  <jas@extundo.com>
76634
76635         * m4/getsubopt.m4: New file.
76636
76637 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76638
76639         Merge from coreutils.
76640
76641         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
76642         * m4/getcwd-path-max.m4: New files.
76643
76644         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
76645         FILESYSTEM_PREFIX_LEN ->
76646         FILE_SYSTEM_PREFIX_LEN.
76647         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
76648         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
76649         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
76650         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
76651
76652         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
76653         prerequisite modules now handle the DOS stuff.
76654         Don't check for unistd.h.
76655
76656 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76657
76658         Merge from coreutils.
76659
76660         * lib/.gdb-history: Remove; this doesn't belong here.
76661
76662         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
76663         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
76664         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
76665         * lib/getcwd.c: New files.
76666
76667         * lib/dirname.h: Include <stdbool.h>.
76668         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
76669         for consistency with POSIX terminology.  All uses changed.
76670         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
76671         (strip_trailing_slashes): Use bool for booleans.
76672         * lib/stripslash.c (strip_trailing_slashes): Likewise.
76673
76674         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
76675         sometimes returns a positive errno value even when it succeeds.
76676         (print_errno_message) [!LIBC]: Fall back on strerror if
76677         __strerror_r fails.
76678
76679         * lib/path-concat.c (mempcpy): Don't define if a system header defines
76680         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
76681         (longest_relative_suffix): New function.
76682         (path_concat): Use it.  Assume first argument is not NULL.
76683         Port to DOS.  Omit redundant separators.
76684         Report an error instead of returning NULL.
76685         Use mempcpy instead of memcpy.
76686         (xpath_concat): Remove: not declared or used.
76687
76688         * lib/same.h: Include <stdbool.h>
76689         (same_name): Return bool, not int.
76690         * lib/same.c (same_name): Likewise.
76691         (errno): Don't declare; we assume C89 or better now.
76692
76693         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
76694         if not already defined.
76695
76696         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
76697         * lib/dup-safer.c (errno): Likewise.
76698
76699 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76700
76701         Merge from coreutils.
76702         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
76703         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
76704         * modules/path-concat: Don't depend on strdup.
76705
76706 2004-08-03  Simon Josefsson  <jas@extundo.com>
76707
76708         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
76709         * lib/progname.h: Don't include stdbool.h.
76710
76711 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76712
76713         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
76714         * MODULES.html.sh (func_all_modules): Remove fatal.
76715
76716 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76717
76718         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
76719
76720 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76721
76722         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
76723         working.
76724
76725 2004-08-02  Simon Josefsson  <jas@extundo.com>
76726
76727         * lib/getsubopt.h: New file, with comments from Bruno Haible.
76728         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
76729         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
76730
76731 2004-08-01  Simon Josefsson  <jas@extundo.com>
76732
76733         * lib/xgetdomainname.c: Include stdlib.h, for free().
76734
76735 2004-07-19  Bruno Haible  <bruno@clisp.org>
76736
76737         * MODULES.html.sh (func_all_modules): Add dummy.
76738
76739 2004-07-16  Simon Josefsson  <jas@extundo.com>
76740
76741         * modules/dummy: New file.
76742
76743 2004-07-16  Simon Josefsson  <jas@extundo.com>
76744
76745         * lib/dummy.c: New file.
76746
76747 2004-07-16  Bruno Haible  <bruno@clisp.org>
76748
76749         * lib/backupfile.h: Add extern "C" for C++.
76750         * lib/closeout.h: Likewise.
76751         * lib/copy-file.h: Likewise.
76752         * lib/findprog.h: Likewise.
76753         * lib/full-write.h: Likewise.
76754         * lib/pathname.h: Likewise.
76755         * lib/progname.h: Likewise.
76756         * lib/stpcpy.h: Likewise.
76757         * lib/stpncpy.h: Likewise.
76758         * lib/strcase.h: Likewise.
76759         * lib/strstr.h: Likewise.
76760         * lib/xalloc.h: Likewise.
76761
76762         * lib/mbswidth.h: Add extern "C" for C++.
76763         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
76764
76765 2004-07-13  Robert Millan  <robertmh@gnu.org>
76766
76767         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
76768
76769 2004-07-09  Simon Josefsson  <jas@extundo.com>
76770
76771         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
76772         failed without this.)
76773
76774 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76775
76776         * modules/chown (Files): Add lib/fchown-stub.c, since
76777         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
76778
76779 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76780
76781         * lib/fchown-stub.c: New file.
76782
76783 2004-06-24  Jim Meyering  <jim@meyering.net>
76784
76785         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
76786
76787 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76788
76789         * modules/argz: Omit "#include".
76790
76791         * MODULES.html.sh (func_all_modules): Add calloc, to match
76792         2004-06-01 addition of calloc module.
76793
76794 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76795
76796         * m4/argz.m4: New file, which is autoupdated from libtool.
76797
76798 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76799
76800         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
76801         libtool.
76802
76803 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76804
76805         * config/srclist-update: Don't insist on "USA." before the
76806         close-comment, as libtool omits the period and puts the */ on a
76807         separate line.
76808         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
76809         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
76810
76811 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
76812
76813         * modules/argz: New file.
76814         * MODULES.html.sh (func_all_modules): Add argz.
76815
76816 2004-06-12  Jim Meyering  <jim@meyering.net>
76817         and  Paul Eggert  <eggert@cs.ucla.edu>
76818
76819         * modules/hash (Files): Add lib/xalloc.h.
76820         * modules/pipe (Depends-on): Add wait-process.
76821         * modules/stat (Depends-on): Add xalloc.
76822         * modules/userspec (Files): Add lib/userspec.h.
76823         * modules/xstrto
76824
76825         Upgrade from gettext-0.13.
76826         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
76827         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
76828         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
76829
76830 2004-06-10  Jim Meyering  <jim@meyering.net>
76831
76832         * lib/calloc.c: New file.
76833
76834 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
76835
76836         * lib/getdate.y (yylex): Allow space between sign and number.
76837         Problem reported by Dan Jacobson.
76838
76839 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76840
76841         Merge from coreutils CVS.
76842
76843         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
76844         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
76845         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
76846         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
76847         xstrtol.m4: Fix copyright date and/or serial number.
76848
76849         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
76850         See if we need an fchown replacement.
76851         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
76852         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
76853         and use the replacement function if we detect either defect.
76854
76855         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
76856         gl_UTIMECMP.
76857
76858 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76859         and  Jim Meyering  <jim@meyering.net>
76860
76861         Merge from coreutils CVS.
76862
76863         * lib/stat-macros.h: New file, with contents from file-type.h
76864         and coreutils' system.h.
76865         * lib/file-type.c: Include "stat-macros.h".
76866         * lib/file-type.h (file_type): Move all macro definitions to new file,
76867         stat-macros.h.
76868
76869         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
76870         Wrap old code with this conditional.
76871         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
76872         function that does not dereference symlinks.
76873         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
76874
76875         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
76876         dependency problems.
76877         (xreadlink): Accept new arg SIZE, for efficiency.
76878         All decls and uses changed.
76879         * lib/xreadlink.h: Include <stddef.h>, for size_t.
76880
76881         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
76882         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
76883
76884         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
76885         sysexits.h.
76886
76887 2004-06-01  Jim Meyering  <jim@meyering.net>
76888
76889         * m4/calloc.m4: New file.
76890
76891 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
76892
76893         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
76894         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
76895         Also, fix a typo in a diagnostic.
76896
76897 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76898
76899         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
76900         or AC_FUNC_REALLOC.
76901
76902 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76903
76904         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
76905         macros to be defined.
76906         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
76907         the allocator returns NULL because the requested size is zero.
76908
76909 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76910
76911         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
76912         var.  Add comment explaining why libc still defines it.  This
76913         merges the following patch from glibc:
76914         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
76915
76916 2004-05-20  Andreas Schwab  <schwab@suse.de>
76917
76918         * m4/free.m4: Replace free if it not known to work, not the other
76919         way round.
76920
76921 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76922
76923         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
76924         present in glibc since revision 1.1 of this file.
76925         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
76926         obstack_alignment_mask, obstack_alloc, obstack_base,
76927         obstack_blank, obstack_blank_fast, obstack_chunk_size,
76928         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
76929         obstack_grow0, obstack_init, obstack_int_grow,
76930         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
76931         obstack_next_free, obstack_object_size, obstack_ptr_grow,
76932         obstack_ptr_grow_fast, obstack_room): Remove declarations of
76933         nonexistent functions.
76934
76935 2004-05-18  Karl Berry  <karl@gnu.org>
76936
76937         * config/srclist.txt: break link for vasnprintf.c.
76938
76939 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76940
76941         Port obstack to the AS/400, where pointers are 16 bytes wide and
76942         you cannot cast an integer to a valid pointer.  This patch is
76943         currently waiting to be integrated into glibc; see
76944         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
76945
76946         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
76947         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
76948         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
76949         (struct obstack): temp member is now a union of a pointer and
76950         an integer, instead of an integer.  All integer uses changed.
76951         This does not affect the physical layout of struct obstack,
76952         except on hosts (like the AS/400) where the size or alignment of
76953         void * is greater than that of ptrdiff_t.
76954         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
76955         __STDC__)]: Store temporary in pointer member of union, not
76956         integer member.
76957         * lib/obstack.c: Include <stddef.h>, for offsetof.
76958         (struct fooalign): Remove; it doesn't need a name.
76959         (union fooround): Change double to long double, and add void *.
76960         (DEFAULT_ALIGNMENT): Use offsetof to compute.
76961         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
76962         not a macro.  Hence the values are always int; so remove all
76963         casts-to-int in uses.
76964
76965 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76966
76967         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
76968         we can get this patch merged into glibc.
76969
76970 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76971             Paul Eggert  <eggert@cs.ucla.edu>
76972
76973         * m4/argp: Depend on alloca.
76974
76975 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76976             Paul Eggert  <eggert@cs.ucla.edu>
76977
76978         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
76979         freecoding.
76980
76981 2004-05-17  Bruno Haible  <bruno@clisp.org>
76982
76983         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
76984         precision that consists of a '.' followed by an empty digit string.
76985         Patch by Tor Lillqvist <tml@iki.fi>.
76986
76987 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76988
76989         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
76990         for backward compatibility with older code.  We need our own
76991         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
76992         it under some other name, and our alloca.h will define it.
76993
76994 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76995             Derek Price  <derek@ximbiot.com>
76996
76997         * lib/alloca.c: Include <alloca.h>, to get our interface.
76998         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
76999         include <alloca.h> first.  Use C89 prototype for alloca; this
77000         requires including <stddef.h> for size_t.  Use extern "C" if C++.
77001         Use #elif for simplicity, since we can assume C89 now.
77002         Don't try to source the system alloca.h since it will not be found
77003         and to prevent recursively including its replacement.
77004         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
77005         * lib/regex.c: Likewise.
77006
77007 2004-05-16  Derek Price  <derek@ximbiot.com>
77008             Paul Eggert  <eggert@cs.ucla.edu>
77009
77010         getline cleanup.  This changes the getndelim2 API: both order of
77011         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
77012         no delimiter).
77013
77014         * lib/getline.c: Don't include stddef.h or stdio.h, since our
77015         interface does that.
77016         (getline): Always use getdelim, so that we don't have two
77017         copies of this code.
77018         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
77019         if available.
77020         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
77021         (GETNDELIM2_MAXIMUM): New macro.
77022         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
77023         instead of the old practice of delim2==0.  All callers changed.
77024         Return -1 on overflow, instead of returning junk.
77025         Do not set *linesize unless allocation succeeds.
77026         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
77027         that we include sys/types.h.
77028         * lib/getnline.h: Likewise.
77029         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
77030         (getndelim2): Reorder arguments.
77031         * lib/getnline.c (getnline, getndelim):
77032         Don't discard the NMAX argument.
77033         (getnline): Invoke getndelim, to avoid code duplication.
77034         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
77035         of (size_t) -1 by callers of the getnline family.
77036
77037 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77038
77039         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
77040         Check for gettimeofday.
77041         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
77042         Check for settimeofday, stime.
77043
77044 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77045
77046         * lib/nanosleep.c (suspended): Change its type from int to
77047         sig_atomic_t volatile.
77048         (first_call): Make it private to rpl_nanosleep, and have it
77049         be zero initially as that's a bit faster.
77050         (my_usleep): Round up fractional times instead of truncating them,
77051         as this is the usual meaning for 'sleep'.
77052
77053         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
77054         doesn't work.
77055         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
77056         (ENOSYS): Define if not defined.
77057         (settime): Fall back on stime if it exists and settimeofday fails.
77058         But don't bother with fallbacks if a method fails with errno == EPERM.
77059
77060 2004-05-11  Jim Meyering  <jim@meyering.net>
77061
77062         Prior to this change, the save_cwd caller required read access to the
77063         current directory on most systems (ones with the fchdir function).
77064
77065         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
77066         fails, try write-only, and finally, resort to using xgetcwd.
77067
77068 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77069
77070         * lib/obstack.c, obstack.h: Import changes from libc.
77071
77072 2004-04-28  Bruno Haible  <bruno@clisp.org>
77073
77074         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
77075         also implicitly appends .exe to executables.
77076         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
77077         accepts Windows pathnames.
77078         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
77079         Treat Cygwin like Windows, since it now accepts Windows pathnames.
77080         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
77081         Treat Cygwin like Windows, since it now accepts Windows pathnames.
77082         Reported by Derek Robert Price <derek@ximbiot.com>.
77083
77084 2004-04-21  Karl Berry  <karl@gnu.org>
77085
77086         * config/srclist.txt (localcharset.c): break sync.
77087
77088 2004-04-20  Paul Eggert  <eggert@twinsun.com>
77089
77090         * m4/host-os.m4: Add a copyright notice.
77091
77092 2004-04-20  Jim Meyering  <jim@meyering.net>
77093
77094         Change UTILS_ to gl_ in AC_DEFINE'd names.
77095         Change utils_- and jm_-prefixed variables, too.
77096         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
77097         UTILS_FUNC_MKDIR_TRAILING_SLASH.
77098         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
77099
77100         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
77101         Don't emit trailing blanks.
77102         Also rename jm_-prefixed variables to have gl_ prefix.
77103
77104         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
77105         Also rename jm_-prefixed variables to have gl_ prefix.
77106
77107         * m4/jm-macros.m4: Reflect the renamings.
77108         * m4/prereq.m4: Likewise.
77109
77110 2004-04-20  Jim Meyering  <jim@meyering.net>
77111
77112         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
77113         memory.
77114
77115 2004-04-20  Jim Meyering  <jim@meyering.net>
77116             Bruno Haible  <bruno@clisp.org>
77117
77118         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
77119         memory when realloc fails.
77120
77121 2004-04-19  Jim Meyering  <jim@meyering.net>
77122
77123         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
77124         now that readutmp.c may call `free (0)'.
77125
77126 2004-04-19  Bruno Haible  <bruno@clisp.org>
77127
77128         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
77129         * m4/inttypes_h.m4: Likewise.
77130         * m4/stdint_h.m4: Likewise.
77131         * m4/intmax_t.m4: Likewise.
77132         * m4/uintmax_t.m4: Likewise.
77133
77134 2004-04-18  Jim Meyering  <jim@meyering.net>
77135
77136         * m4/prereq.m4: Don't forbid jm_ prefix.
77137
77138         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
77139         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
77140         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
77141         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
77142         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
77143         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
77144         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
77145         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
77146         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
77147         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
77148         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
77149         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
77150         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
77151         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
77152         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
77153         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
77154         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
77155         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
77156         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
77157
77158 2004-04-18  Jim Meyering  <jim@meyering.net>
77159
77160         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
77161         failure, don't leak memory and do call END_UTMP_ENT.
77162
77163 2004-04-16  Jim Meyering  <jim@meyering.net>
77164
77165         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
77166         coreutils' stat program.
77167         (gl_PREREQ): Don't require jm_PREREQ_STAT.
77168
77169 2004-04-11  Paul Eggert  <eggert@twinsun.com>
77170
77171         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
77172         C89.
77173         (CHAR_BIT): Remove, since we assume C89.
77174         Include <stdint.h> if available, as per current Autoconf CVS advice.
77175
77176 2004-03-31  Jim Meyering  <jim@meyering.net>
77177
77178         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
77179         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
77180         * m4/xalloc.m4: Likewise.
77181
77182 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77183
77184         Merge from coreutils.
77185
77186         * m4/inttostr.m4: New file.
77187         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
77188         Require AM_STDBOOL_H and gl_TIMESPEC instead.
77189         Require gl_CLOCK_TIME.
77190         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
77191
77192 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77193
77194         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
77195         not bool, to be more consistent with Unix conventions.
77196         Suggested by Bruno Haible.
77197
77198         Merge from coreutils.
77199
77200         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
77201         * lib/umaxtostr.c: New files.
77202
77203         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
77204         the usual <time.h> dance.
77205         (get_date): Change signature to support fractional time stamps.
77206         All callers changed.
77207         * lib/getdate.y: Include "getdate.h" first, as we can now
77208         assume C89 and don't need to worry about 'const'.
77209         Similarly, include "unlocked-io.h" near start, not in middle.
77210         Include <limits.h>.
77211         (textint.value): Use long int rather than int.
77212         (textint.digits): Use size_t rather than int.
77213         (BILLION, LOG10_BILLION): New constants.
77214         (parser_control): New member rel_ns.  Members day_ordinal,
77215         time_zone, month, day, hour, minutes, rel_year, rel_month,
77216         rel_day, rel_hour, rel_minutes, rel_seconds
77217         are now long int, not int.  Member seconds is now struct timespec,
77218         not int.  New member timespec_seen.  Members dates_seen, days_seen,
77219         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
77220         not int.
77221         (%union.intval): Now long int, not int.
77222         New member timespec.
77223         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
77224         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
77225         (spec): Now is a timespec or an item list.
77226         (timespec, items): New nonterminals.
77227         (time, rel, relunit, number, get_date):
77228         Add support for fractional seconds.
77229         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
77230         (gmtime, localtime, mktime): Remove decls; not needed with C89.
77231         (to_hour): First arg is now long int, not int.
77232         (to_year): Returns long int, not int.
77233         Don't treat year -70 like 70.
77234         (tm_diff): Returns long int, not int.
77235         (lookup_word): Use bool instead of int when appropriate.
77236         (yylex): Use size_t for count, not int.
77237         Detect overflow when parsing large integer constants.
77238         Add support for fractions.
77239         (get_date): Make pointers 'const' if possible.
77240         Use more-portable code to detect integer overflow.
77241         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
77242         Don't use ctime; it's not reliable if the year has >4 digits.
77243
77244         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
77245         This is for compatibility with BSD.
77246
77247         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
77248         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
77249         From coreutils' system.h.
77250
77251         * lib/userspec.c: Don't include "posixver.h".
77252         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
77253         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
77254         compatible extension.  Simplify code by removing a boolean int
77255         that was always nonzero if a string was nonnull.
77256
77257 2004-03-30  Jim Meyering  <jim@meyering.net>
77258
77259         Merge from coreutils.
77260
77261         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
77262         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
77263         on some systems one must include <grp.h> before it.
77264         Reported by Christian Krackowizer.
77265
77266 2004-03-30  Jim Meyering  <jim@meyering.net>
77267
77268         Merge from coreutils.
77269
77270         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
77271
77272         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
77273         an empty input stream.
77274
77275         * lib/readtokens.c: Include <stdbool.h>.
77276         (readtoken): Use `size_t' rather than int/long.
77277         All callers adjusted.
77278         Use `bool' rather than `int' where appropriate.
77279         Use memset rather than an explicit loop.
77280         Use x2nrealloc rather than xrealloc.
77281         Allow the use of `\0' as a delimiter.
77282         (readtokens): Likewise.
77283         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
77284
77285 2004-03-30  Jim Meyering  <jim@meyering.net>
77286
77287         * m4/realloc.m4: Remove file, since now it does no more than
77288         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
77289         the `configure.ac' section of module/realloc.
77290         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
77291
77292 2004-03-30  Bruno Haible  <bruno@clisp.org>
77293
77294         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
77295         nonnull.
77296
77297 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77298
77299         Merge changes to getloadavg.c from coreutils and Emacs.
77300
77301         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
77302         Define to an expression, not to the empty string.
77303         Include cloexec.h and xalloc.h.
77304         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
77305         Use set_cloexec_flag rather than rolling our own.
77306         * lib/cloexec.c, lib/cloexec.h: New files.
77307
77308 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77309
77310         * m4/cloexec.m4: New file.
77311
77312 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77313
77314         * lib/getopt.h: Sync with libc CVS.
77315
77316 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77317             Bruno Haible  <bruno@clisp.org>
77318
77319         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
77320         mbswidth.
77321
77322 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77323             Bruno Haible  <bruno@clisp.org>
77324
77325         * lib/mbswidth.h: Include <wchar.h> only if
77326         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
77327         <wchar.h>.
77328         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
77329
77330 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77331
77332         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
77333         Sync with libc CVS.
77334         * lib/getopt_int.h: New file, also synced from libc.
77335
77336 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77337
77338         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
77339         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
77340         Bring back getopt.c, getopt.h, getopt1.c.
77341
77342 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77343
77344         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
77345         All uses changed.  Check for sa_sigaction member; this fixes
77346         a bug first reported by Jason Andrade in
77347         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77348
77349 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77350
77351         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
77352         '#if' expressions.  Unlike the code it replaces, it does not
77353         depend on (defined _SC_PAGESIZE).  However, it does depend on
77354         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
77355         first reported by Jason Andrade in
77356         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77357
77358 2004-02-25  Simon Josefsson  <jas@extundo.com>
77359
77360         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
77361
77362 2004-02-25  Simon Josefsson  <jas@extundo.com>
77363
77364         * lib/strdup.h: New file.
77365         * lib/strdup.c: Include it.
77366         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
77367         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
77368
77369 2004-02-23  Karl Berry  <karl@gnu.org>
77370
77371         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
77372         (from fencepost.gnu.org:/gd/gnuorg).
77373
77374 2004-02-23  Karl Berry  <karl@gnu.org>
77375
77376         * config/srclistvars.sh (GNUORG) [karl]: redefine.
77377         * config/srclist.txt: add maintain/standards documents.
77378
77379 2004-02-18  Bruno Haible  <bruno@clisp.org>
77380
77381         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
77382         Reported by Derek Robert Price <derek@ximbiot.com>.
77383
77384 2004-02-16  Karl Berry  <karl@gnu.org>
77385
77386         * config/mkinstalldirs, install-sh: update from automake.
77387
77388 2004-02-06  Karl Berry  <karl@gnu.org>
77389
77390         * m4/po.m4: update from gettext 0.14.1.
77391
77392 2004-02-06  Karl Berry  <karl@gnu.org>
77393
77394         * lib/config.charset: update from gettext 0.14.1.
77395
77396 2004-02-05  Paul Eggert  <eggert@twinsun.com>
77397
77398         Add comments and code, prompted by suggestions from Bruno Haible
77399         for sh-quote.
77400         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
77401         describing the enum quoting_style values.
77402         * lib/quotearg.c (quotearg_alloc): New function.
77403         (quotearg_buffer_restyled): Treat lone { and } as special.
77404         Treat = as special.  Work around bug with older shells
77405         that "see" a '\' that is really the 2nd byte of a multibyte char.
77406         Quote empty string with shell_quoting_style.
77407
77408 2004-02-03  Bruno Haible  <bruno@clisp.org>
77409
77410         * m4/pipe.m4: New file, from GNU gettext.
77411
77412 2004-02-03  Bruno Haible  <bruno@clisp.org>
77413
77414         * lib/pipe.h: New file, from GNU gettext.
77415         * lib/pipe.c: New file, from GNU gettext.
77416
77417 2004-01-27  Bruno Haible  <bruno@clisp.org>
77418
77419         * m4/execute.m4: New file, from GNU gettext.
77420
77421 2004-01-27  Bruno Haible  <bruno@clisp.org>
77422
77423         * lib/execute.h: New file, from GNU gettext.
77424         * lib/execute.c: New file, from GNU gettext.
77425         * lib/w32spawn.h: New file, from GNU gettext.
77426
77427 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77428
77429         Merge from diffutils.
77430
77431         * lib/file-type.c (file_type): Add typed memory objects.
77432         * lib/file-type.h (S_TYPEISTMO): New macro.
77433
77434         * lib/c-stack.h (c_stack_action): Remove argv argument.
77435         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
77436         (die): Don't calculate message unless segv_action returns.
77437         (get_stack_location, min_address_from_argv, max_address_from_argv,
77438         volatile stack_base, volatile_stack_size): Remove.
77439         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
77440         that every segmentation violation is a stack overflow.  (Ouch!)
77441         See Debian bug 136249 (still outstanding) for more info about why
77442         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
77443
77444 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77445
77446         Exit-status fix from coreutils.
77447
77448         Use exit_failure consistently in place of EXIT_FAILURE,
77449         so that program exit statuses are consistent on failure.
77450
77451         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
77452         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
77453         * lib/argmatch.h: Comment fix to match the above.
77454         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
77455         Now a macro referring to exit_failure, instead of a separate
77456         variable.  Include "exitfail.h" to get it.
77457         * lib/xstrtol.h: Include "exitfail.h".
77458         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
77459
77460         * lib/long-options.c (parse_long_options): Use prototype
77461         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
77462         for clarity.
77463
77464 2004-01-21  Jim Meyering  <jim@meyering.net>
77465
77466         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
77467         so as not to conflict with a different-sized __mktime_internal
77468         function in GNU libc.
77469         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
77470         Problem building statically-linked `ls' reported by Michael Brunnbauer.
77471
77472 2004-01-20  Karl Berry  <karl@gnu.org>
77473
77474         * config/config.guess: update from config.
77475
77476         * config/srclistvars.sh: GNUWWWLICENSES for karl.
77477
77478 2004-01-20  Bruno Haible  <bruno@clisp.org>
77479
77480         Safer stack allocation.
77481         * lib/setenv.c: Include allocsa.h.
77482         (alloca): Remove fallback definition.
77483         (freea): Remove macro.
77484         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
77485         instead of freea.
77486
77487 2004-01-20  Bruno Haible  <bruno@clisp.org>
77488
77489         * m4/eealloc.m4: New file, from GNU gettext.
77490
77491 2004-01-20  Bruno Haible  <bruno@clisp.org>
77492
77493         * m4/allocsa.m4: New file, from GNU gettext.
77494
77495 2004-01-20  Bruno Haible  <bruno@clisp.org>
77496
77497         * lib/xallocsa.h: New file, from GNU gettext.
77498         * lib/xallocsa.c: New file, from GNU gettext.
77499
77500 2004-01-20  Bruno Haible  <bruno@clisp.org>
77501
77502         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
77503
77504 2004-01-20  Bruno Haible  <bruno@clisp.org>
77505
77506         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
77507         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
77508         specially.
77509
77510 2004-01-20  Bruno Haible  <bruno@clisp.org>
77511
77512         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
77513         patch.
77514
77515 2004-01-20  Bruno Haible  <bruno@clisp.org>
77516
77517         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
77518
77519 2004-01-20  Bruno Haible  <bruno@clisp.org>
77520
77521         * lib/eealloc.h: New file.
77522
77523 2004-01-20  Bruno Haible  <bruno@clisp.org>
77524
77525         * lib/binary-io.h: Avoid warnings on Cygwin.
77526
77527 2004-01-20  Bruno Haible  <bruno@clisp.org>
77528
77529         * lib/allocsa.h: New file, from GNU gettext.
77530         * lib/allocsa.c: New file, from GNU gettext.
77531
77532 2004-01-18  Karl Berry  <karl@gnu.org>
77533
77534         * doc/gpl.texi, doc/lgpl.texi: new files.
77535
77536 2004-01-18  Karl Berry  <karl@gnu.org>
77537
77538         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
77539         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
77540
77541 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77542
77543         Merge from coreutils.
77544
77545         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
77546         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
77547         (gl_DEFAULT_POSIX2_VERSION): Move
77548         the documentation from 'configure' into 'config.hin',
77549         so that 'configure --help' isn't burdened by it and
77550         we don't have to worry about its formatting there.
77551         Reword the documentation so that it's more succinct
77552         and can be run together into a single paragraph.
77553         * m4/same.m4 (gl_SAME): Check for pathconf.
77554
77555 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77556
77557         Merge from coreutils.
77558
77559         * lib/posixver.c: Include posixver.h.
77560
77561         * lib/same.c: Include <stdbool.h>, <limits.h>.
77562         (_POSIX_NAME_MAX): Define if not defined.
77563         (MIN): New macro.
77564         (same_name): If file names are silently truncated, report
77565         that the file names are the same if they are the same after
77566         the silent truncation.
77567
77568         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
77569         conversion function.
77570         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
77571         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
77572         longer needed.
77573
77574 2004-01-15  Jim Meyering  <jim@meyering.net>
77575
77576         Merge from coreutils.
77577
77578         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
77579         if no library is required.
77580         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
77581         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
77582         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
77583         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
77584         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
77585         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
77586         value, $ac_cv_search_crypt, if it's "none required".
77587         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
77588         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
77589         not gl_FUNC_GETLOADAVG.
77590         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
77591         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
77592
77593 2004-01-15  Jim Meyering  <jim@meyering.net>
77594
77595         Merge from coreutils.
77596
77597         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
77598         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
77599         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
77600
77601         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
77602         optional configure-time default.
77603
77604         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77605
77606         * lib/xreadlink.c (xreadlink): Correct outdated comment.
77607
77608 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
77609
77610         Merge from coreutils.
77611
77612         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
77613         value, $ac_cv_search_nanosleep, if it's "none required".
77614
77615 2004-01-14  Paul Eggert  <eggert@twinsun.com>
77616
77617         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
77618         with like-named macro in fnmatch.c.
77619         (EXT): Use an internal constant instead.
77620
77621         Merge fnmatch patches from glibc.
77622         * lib/fnmatch.c (mbsinit): Remove define.
77623         Add libc_hidden_ver (__fnmatch, fnmatch).
77624         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
77625         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
77626
77627 2004-01-14  Karl Berry  <karl@gnu.org>
77628
77629         * config/install-sh: update from automake.
77630
77631 2004-01-13  Karl Berry  <karl@gnu.org>
77632
77633         * config/install-sh: update from automake.
77634
77635 2004-01-09  Karl Berry  <karl@gnu.org>
77636
77637         * config/install-sh: update from automake.
77638
77639 2004-01-05  Karl Berry  <karl@gnu.org>
77640
77641         * config/config.{sub,guess}: update from config.
77642
77643 2003-12-31  Karl Berry  <karl@gnu.org>
77644
77645         * config/depcomp: update from automake.
77646
77647 2003-12-14  Karl Berry  <karl@gnu.org>
77648
77649         * lib/config.charset: update from gettext-runtime.
77650
77651 2003-12-03  Paul Eggert  <eggert@twinsun.com>
77652
77653         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
77654         Bug reported by Alfred M. Szmidt.
77655
77656 2003-12-03  Bruno Haible  <bruno@clisp.org>
77657
77658         * m4/gettext.m4: Upgrade from gettext-0.13.
77659         * m4/po.m4: Upgrade from gettext-0.13.
77660         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
77661         * m4/intmax.m4: New file, from gettext-0.13.
77662         * m4/printf-posix.m4: New file, from gettext-0.13.
77663
77664 2003-11-29  Karl Berry  <karl@gnu.org>
77665
77666         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
77667
77668 2003-11-25  Paul Eggert  <eggert@twinsun.com>
77669             Bruno Haible  <bruno@clisp.org>
77670
77671         * lib/printf-parse.h: Don't include sys/types.h.
77672         (ARG_NONE): New macro.
77673         (char_directive): Change type of *arg_index fields to size_t.
77674         * lib/printf-parse.c: Don't include sys/types.h.
77675         (SSIZE_MAX): Remove macro.
77676         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
77677         Remove unnecessary overflow check.
77678         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
77679         fields.
77680
77681 2003-11-25  Bruno Haible  <bruno@clisp.org>
77682
77683         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
77684
77685 2003-11-25  Bruno Haible  <bruno@clisp.org>
77686
77687         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
77688         gt_TYPE_SSIZE_T.
77689
77690 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77691
77692         * modules/alloca: Remove dependency on xalloc.
77693
77694 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77695
77696         * lib/alloca.c: Remove dependency on xalloc module.
77697         (xalloc_die): Remove.
77698         (memory_full) [!defined emacs]: New macro.
77699         [!defined emacs]: Don't include xalloc.h.
77700         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
77701         address arithmetic overflows.  Change datatypes a bit to avoid
77702         unnecessary casts.
77703
77704 2003-11-22  Jim Meyering  <jim@meyering.net>
77705
77706         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
77707         s/size/size_t/.
77708
77709 2003-11-21  Karl Berry  <karl@gnu.org>
77710
77711         * config/config.{sub,guess}: update from config.
77712
77713 2003-11-18  Karl Berry  <karl@gnu.org>
77714
77715         * config/config.{sub,guess}: update from config.
77716
77717         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
77718
77719 2003-11-17  Paul Eggert  <eggert@twinsun.com>
77720
77721         * README: Mention that S+T cannot overflow if S is the size of
77722         an existing object and T is sufficiently small.
77723
77724 2003-11-17  Jim Meyering  <jim@meyering.net>
77725
77726         On systems without utime and without a utimes function capable of
77727         dealing with a NULL struct utimbuf* argument, this utime replacement
77728         could -- in unusual circumstances -- leak a file descriptor.
77729         * lib/utime.c: Include <unistd.h> and <errno.h>.
77730         (utime_null): Be sure to close `fd' and to preserve errno.
77731         Reported by Geoff Collyer via Arnold Robbins.
77732
77733 2003-11-17  Bruno Haible  <bruno@clisp.org>
77734
77735         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
77736         (Depends-on): Add xsize.
77737
77738 2003-11-17  Bruno Haible  <bruno@clisp.org>
77739
77740         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
77741
77742 2003-11-17  Bruno Haible  <bruno@clisp.org>
77743
77744         * lib/vasnprintf.c (alloca): Remove fallback definition.
77745         (freea): Remove definition.
77746         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
77747         Reported by Paul Eggert.
77748
77749 2003-11-16  Paul Eggert  <eggert@twinsun.com>
77750             Bruno Haible  <bruno@clisp.org>
77751
77752         Protect against address arithmetic overflow.
77753         * lib/printf-args.h: Include stddef.h.
77754         (arguments): Change type of field 'count' to size_t.
77755         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
77756         'unsigned int' where appropriate.
77757         * lib/printf-parse.h: Include sys/types.h.
77758         (char_directive): Change type of *arg_index fields to ssize_t.
77759         (char_directives): Change type of fields 'count', max_*_length to
77760         size_t.
77761         * lib/printf-parse.c: Include sys/types.h and xsize.h.
77762         (SSIZE_MAX): Define fallback value.
77763         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
77764         instead of 'int' where appropriate. Check a_allocated, d_allocated
77765         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
77766         * lib/vasnprintf.c: Include xsize.h.
77767         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
77768         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
77769         overflow. Avoid wraparound when converting a width or precision from
77770         decimal to binary.
77771
77772 2003-11-16  Bruno Haible  <bruno@clisp.org>
77773
77774         Update from GNU gettext.
77775         * lib/printf-parse.c: Generalize to it can be compiled for wide
77776         strings.
77777         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
77778         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
77779         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
77780         SNPRINTF): New macros.
77781         Don't include <alloca.h> if the file is used inside libintl.
77782         (local_wcslen): New function, for Solaris 2.5.1.
77783         (VASNPRINTF): Use it instead of wcslen.
77784
77785 2003-11-16  Bruno Haible  <bruno@clisp.org>
77786
77787         * lib/xsize.h (xmax): New function.
77788         (xsum, xsum3, xsum4): Declare as "pure" functions.
77789
77790 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77791
77792         * modules/xalloc (Files): Undo latest change, since xalloc.h
77793         no longer needs SIZE_MAX or PTRDIFF_MAX.
77794
77795 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77796
77797         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
77798         gl_PTRDIFF_MAX.
77799
77800 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77801
77802         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
77803         "return", to pacify some unknown compiler.  Problem reported
77804         by Joerg Schilling.
77805
77806 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77807
77808         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
77809         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
77810         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
77811         heuristic is just as accurate as far as we know, and it removes a
77812         dependency on size_max.m4 and ptrdiff_max.m4.
77813
77814 2003-11-11  Bruno Haible  <bruno@clisp.org>
77815
77816         * modules/xsize (Files): Add m4/size_max.m4.
77817         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
77818
77819 2003-11-11  Bruno Haible  <bruno@clisp.org>
77820
77821         * m4/size_max.m4: New file.
77822         * m4/ptrdiff_max.m4: New file.
77823         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
77824         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
77825         (gl_XALLOC): Invoke it.
77826
77827 2003-11-11  Bruno Haible  <bruno@clisp.org>
77828
77829         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
77830         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
77831         defined.
77832
77833 2003-11-10  Paul Eggert  <eggert@twinsun.com>
77834
77835         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
77836         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
77837         rejected some allocations of exactly SIZE_MAX - 2 bytes.
77838         From Bruno Haible.
77839         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
77840         not (size_t) -1, since it's defined here.
77841
77842 2003-11-09  Karl Berry  <karl@gnu.org>
77843
77844         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
77845
77846 2003-11-06  Paul Eggert  <eggert@twinsun.com>
77847
77848         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
77849         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
77850         Reject sizes of exactly SIZE_MAX bytes.
77851         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
77852         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
77853
77854 2003-11-05  Bruno Haible  <bruno@clisp.org>
77855
77856         * lib/xsize.h: Include limits.h, to avoid a possible collision with
77857         SIZE_MAX defined in <limits.h> on Solaris.
77858
77859 2003-11-04  Jim Meyering  <jim@meyering.net>
77860
77861         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
77862         variable names, rather than @VAR@.
77863         * modules/poll: Likewise.
77864
77865 2003-11-04  Bruno Haible  <bruno@clisp.org>
77866
77867         * modules/xsize: New file.
77868         * modules/linebreak: Depend on xsize.
77869         * MODULES.html.sh (func_all_modules): Add xsize.
77870
77871 2003-11-04  Bruno Haible  <bruno@clisp.org>
77872
77873         * m4/xsize.m4: New file.
77874
77875 2003-11-04  Bruno Haible  <bruno@clisp.org>
77876
77877         * lib/xsize.h: New file.
77878         * lib/linebreak.c: Include xsize.h.
77879         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
77880         argument for overflow.
77881         Suggested by Paul Eggert.
77882
77883 2003-11-03  Karl Berry  <karl@gnu.org>
77884
77885         * config/config.{guess,sub}: update from config.
77886
77887 2003-11-03  Jim Meyering  <jim@meyering.net>
77888
77889         * modules/userspec (lib_SOURCES): Add userspec.h.
77890         (Include): Add "userspec.h".
77891         Improve description.
77892
77893 2003-11-03  Jim Meyering  <jim@meyering.net>
77894
77895         * lib/userspec.c: Include "userspec.h".
77896         * lib/userspec.h: New file.
77897
77898 2003-11-03  Bruno Haible  <bruno@clisp.org>
77899
77900         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
77901
77902 2003-11-03  Bruno Haible  <bruno@clisp.org>
77903
77904         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
77905         available, to avoid (extremely rare) race condition.
77906         Suggested by Paul Eggert.
77907
77908 2003-11-02  Karl Berry  <karl@gnu.org>
77909
77910         * config/srclist.txt (vasprintf.c): sync broken, sigh.
77911
77912 2003-10-31  Paul Eggert  <eggert@twinsun.com>
77913
77914         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
77915         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
77916         (read_filesystem_list): Set and use me_type_malloced.
77917         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
77918         whatever the type happens to be), for brevity and consistency.
77919         Check for size calculation overflow on Alphas running OSF/1.
77920
77921 2003-10-31  Jim Meyering  <jim@meyering.net>
77922
77923         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
77924
77925         * lib/linebuffer.c: Include <string.h> for declaration of memset.
77926
77927 2003-10-30  Paul Eggert  <eggert@twinsun.com>
77928             Bruno Haible  <bruno@clisp.org>
77929
77930         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
77931         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
77932
77933 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77934
77935         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
77936         netbsd*-gnu*.  Suggested by Robert Millan.
77937
77938 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77939
77940         * modules/group-member: Depend on stdbool.
77941
77942 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77943
77944         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
77945
77946 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77947
77948         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
77949         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
77950         after the 'gnu' in these cases.  This fixes some bugs in the
77951         previous change, and is based on suggestions by Robert Millan.
77952
77953 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77954
77955         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
77956         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
77957         no longer needed.
77958         * lib/quotearg.c (quotearg_n_options): Use it.
77959         * lib/group-member.c: Include <stdbool.h>.
77960         (free_group_info): Arg is now const *; don't free arg.
77961         (get_group_info): Now returns bool and accepts struct group_info *,
77962         rather than returning a malloc'ed struct group_info *.
77963         All uses changed.  Check for overflow in internal size calculation.
77964
77965         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
77966         rather than xmalloc/xrealloc.
77967         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
77968         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
77969         conformance bug: the old code used a pointer after freeing the
77970         storage that it addressed.
77971         * lib/hash.c (hash_initialize): Simplify the code by using
77972         xalloc_oversized rather than doing it by hand.
77973         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
77974         the buffer preserved.  Use free and xmalloc instead.
77975         * lib/quotearg.c (quotearg_n_options): Likewise.
77976         Use a simpler test for size overflow.  Don't use xalloc_oversized
77977         because unsigned int might be wider than size_t (!); this suggests
77978         that we should switch from unsigned int to size_t for slot numbers.
77979
77980 2003-10-28  Paul Eggert  <eggert@twinsun.com>
77981
77982         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
77983         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
77984         NetBSD kernels.  Requested by Richard Stallman.
77985
77986 2003-10-27  Paul Eggert  <eggert@twinsun.com>
77987
77988         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
77989         to allocate the returned structure.  Do not allocate a subarray,
77990         as x2nrealloc will do that.
77991         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
77992         instead of xnrealloc.
77993         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
77994
77995 2003-10-27  Bruno Haible  <bruno@clisp.org>
77996
77997         * lib/stdbool_.h: Better support for BeOS.
77998
77999 2003-10-26  Paul Eggert  <eggert@twinsun.com>
78000
78001         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
78002         now uses inline.
78003
78004 2003-10-26  Paul Eggert  <eggert@twinsun.com>
78005
78006         * lib/xalloc.h (xalloc_oversized): New static inline function, for
78007         callers that want to do their own size-overflow checking.  Include
78008         <stdbool.h>, since xalloc_oversized returns bool.
78009         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
78010         to use xalloc_oversized.
78011
78012         Add two functions x2realloc, x2nrealloc, for programs that grow
78013         arrays dynamically by doubling their sizes.
78014         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
78015         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
78016         New functions.
78017
78018         Port to C99 semantics for 'inline' of external functions.
78019         Bug reported by Bruno Haible.
78020         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
78021         with the old contents of xnmalloc.
78022         (xnmalloc, xmalloc): Use it.
78023         (xnrealloc_inline): New static inline function,
78024         with the old contents of xnrealloc.
78025         (xnrealloc, xrealloc): Use it.
78026
78027         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
78028         that.
78029
78030 2003-10-26  Karl Berry  <karl@gnu.org>
78031
78032         * config/srclist.txt (COPYING.DOC): no longer available from
78033         /gd/gnuorg; don't know where the ultimate source is.
78034
78035 2003-10-25  Paul Eggert  <eggert@twinsun.com>
78036
78037         Fix several address-calculation bugs in the hash modules,
78038         plus some minor code cleanup.
78039
78040         * lib/hash.h: Include <stdbool.h>, for bool.
78041         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
78042         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
78043         hash_get_n_entries, hash_get_max_bucket_length,
78044         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
78045         hash_rehash): Use size_t rather than unsigned.
78046         * lib/hash.c (struct hash_table, hash_get_n_buckets,
78047         hash_get_n_buckets_used, hash_get_n_entries,
78048         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
78049         hash_get_entries, hash_do_for_each, hash_string, is_prime,
78050         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
78051         Likewise.
78052         (SIZE_MAX): Define if not defined.
78053         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
78054         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
78055         hash_print):
78056         Use const * when possible.
78057         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
78058         (check_tuning): Fix bug: if tuning parameters were very close to
78059         0 or 1, rounding errors could have caused subscript violations.
78060         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
78061         (hash_initialize): Add 'fail:' label
78062         to free table and return NULL, and use it to simplify code.
78063         Use calloc rather than clearing the storage ourself.
78064         (hash_initialize, hash_rehash): Check for arithmetic overflow in
78065         buffer size calculations.
78066         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
78067         Include <stddef.h>, for size_t.
78068         * lib/hash-pjw.c (hash_pjw): Likewise.
78069         Switch to method described by Bruno Haible.
78070         Include <limits.h>, for CHAR_BIT.
78071         (SIZE_BITS): New macro.
78072
78073 2003-10-23  Paul Eggert  <eggert@twinsun.com>
78074
78075         * m4/getline.m4 (AM_FUNC_GETLINE):
78076         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
78077         hosts.  Problem reported by Derek Robert Price in
78078         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
78079         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
78080         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
78081
78082 2003-10-21  Paul Eggert  <eggert@twinsun.com>
78083
78084         * lib/getndelim2.c (getndelim2): When size calculation overflows,
78085         ceiling the allocation at NMAX bytes rather than silently
78086         discarding input bytes before NMAX is reached.  This makes
78087         a difference only if NMAX exceeds SIZE_MAX / 2.
78088
78089         * lib/obstack.c: Merge from glibc.
78090         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
78091         Add libc_hidden_def (_obstack_newchunk).
78092         (_obstack_free) [! defined _LIBC]: Remove.
78093         [defined _LIBC]: Make a strong alias from obstack_free, rather than
78094         a clone of the function body.
78095         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
78096         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
78097
78098         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
78099         glibc.
78100         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
78101         arg to memcpy.
78102
78103         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
78104         (obstack_ptr_grow_fast, obstack_int_grow_fast):
78105         Don't use lvalue casts, as GCC plans to remove support for them
78106         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
78107         was also present in the non-GCC version, indicating that this
78108         code had always been buggy and had never been widely used.
78109         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
78110         Use the fast variant of each macro, rather than copying the
78111         definiens of the fast variant; that way, we'll be more likely to
78112         catch future bugs in the fast variants.
78113
78114 2003-10-20  Bruno Haible  <bruno@clisp.org>
78115
78116         * modules/wait-process: New file.
78117         * MODULES.html.sh (func_all_modules): Add wait-process.
78118
78119 2003-10-20  Bruno Haible  <bruno@clisp.org>
78120
78121         * m4/wait-process.m4: New file.
78122
78123 2003-10-20  Bruno Haible  <bruno@clisp.org>
78124
78125         * lib/wait-process.h: New file, from GNU gettext.
78126         * lib/wait-process.c: New file, from GNU gettext.
78127
78128 2003-10-19  Jim Meyering  <jim@meyering.net>
78129
78130         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
78131         HPUX 10.20.
78132
78133 2003-10-18  Karl Berry  <karl@gnu.org>
78134
78135         * config/config.guess: update from config.
78136
78137 2003-10-16  Paul Eggert  <eggert@twinsun.com>
78138
78139         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
78140         (getgroups): First arg is int, not size_t.
78141         Don't let 'free' mangle errno.
78142
78143 2003-10-16  Paul Eggert  <eggert@twinsun.com>
78144
78145         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
78146
78147 2003-10-16  Karl Berry  <karl@gnu.org>
78148
78149         * config/config.{guess,sub}: update from config.
78150
78151 2003-10-16  Jim Meyering  <jim@meyering.net>
78152
78153         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
78154         memcpy.
78155
78156 2003-10-15  Paul Eggert  <eggert@twinsun.com>
78157
78158         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
78159         (SIZE_MAX): Remove.
78160         (new_exclude, add_exclude_file): Initial size no longer needs to
78161         be a power of 2.
78162         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
78163         our own address arithmetic overflow checking.
78164
78165         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
78166         (fnmatch): Do not alloca more than 2000 wide characters;
78167         instead, use malloc for large buffers.
78168         Check for address arithmetic overflow, and return -1
78169         with errno set to ENOMEM in that case.
78170         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
78171         (NEW_PATTERN): Do not alloca more than 8000 bytes;
78172         instead, return -1.  Check for address arithmetic overflow.
78173
78174 2003-10-14  Paul Eggert  <eggert@twinsun.com>
78175
78176         Handle invalid suffixes and overflow independently, so that
78177         callers can treat them independently as needed.  Fix some bugs in
78178         suffix handling, e.g., "100k@" was not diagnosed as an invalid
78179         suffix for a human-readable blocksize.  The major caller-visible
78180         change is the addition of a new
78181         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
78182         that both overflow and suffix chars were found.
78183
78184         * lib/human.c (humblock): Don't check separately for invalid suffix
78185         char; that is xstrtoumax's job (now that its bug is fixed).
78186         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
78187         INTMAX_MAX]: New macros.
78188         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
78189         TYPE_MAXIMUM): New macros.
78190         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
78191         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
78192         if overflow occurs, as it's what __strtol does and it's more useful
78193         in practice.
78194         (__xstrtol): If __strtol reports some error other than ERANGE,
78195         reflect it to the caller as LONGINT_INVALID.  If it reports
78196         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
78197         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
78198         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
78199         value.
78200         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
78201         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
78202         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
78203         [defined UINTMAX_MAX]: New macros.
78204
78205 2003-10-14  Bruno Haible  <bruno@clisp.org>
78206
78207         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
78208
78209 2003-10-14  Bruno Haible  <bruno@clisp.org>
78210
78211         * m4/sig_atomic_t: New file, from GNU gettext.
78212         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
78213
78214 2003-10-14  Bruno Haible  <bruno@clisp.org>
78215
78216         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
78217         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
78218         Also use volatile where needed.
78219
78220 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78221
78222         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
78223         Change maintainer from Bruno Haible to 'all'.
78224
78225 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78226
78227         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
78228
78229 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78230
78231         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
78232         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
78233         and define in terms of the other primitives.
78234         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
78235         (SIZE_MAX): Define if not already defined.
78236         (array_size_overflow): New function.
78237         (xalloc_die): Abort instead of exiting if 'error' returns.
78238         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
78239         (xmalloc, xrealloc): Use them.
78240         (xcalloc): Check for address arithmetic overflow.
78241         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
78242         a bit faster than strcpy.
78243
78244 2003-10-10  Simon Josefsson  <jas@extundo.com>
78245
78246         * modules/argp (Depends-on): Add restrict and strcase.
78247
78248 2003-10-10  Simon Josefsson  <jas@extundo.com>
78249
78250         * m4/argp.m4: Add AC_C_INLINE.
78251
78252 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78253
78254         Merge getpass from libc, plus a few fixes.
78255
78256         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
78257         Include <stdbool.h>.
78258         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
78259         __fsetlocking to empty.
78260         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
78261         do include <bits/libc-lock.h>.
78262         Do not include <fcntl.h>; not needed.
78263         [_LIBC]: Include <wchar.h>.
78264         (NOTCANCEL_MODE): New macro.
78265         (flockfile, funlockfile) [_LIBC]: New macros.
78266         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
78267         [!_LIBC]: New macros.
78268         (call_fclose): New function.
78269         (getpass): Use it.  Save tty stream separately; this simplifies the
78270         code and makes it more reliable if stdin happens to equal stdout.
78271         Invoke __fsetlocking on tty.
78272         Handle thread cancellation if needed.
78273         Namespace cleanup (use __tcgetattr, __getline).
78274         Use bool for Booleans.
78275         [USE_IN_LIBIO]: Handle wide streams.
78276         [!_LIBC]: Unconditionally do the fseek, since we don't know what
78277         stream might go where.
78278
78279         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
78280         doesn't have to include <stdio.h> before us.
78281         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
78282         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
78283         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
78284         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
78285         if not declared, so that we can use getpass.c code from libc without
78286         rewriting it.
78287         (flockfile, ftrylockfile, funlockfile): New macros.
78288
78289 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78290
78291         * modules/getpass: Depend on stdbool.
78292
78293 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78294
78295         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
78296
78297 2003-10-07  Karl Berry  <karl@gnu.org>
78298
78299         * config/config.{guess,sub}: update from config.
78300
78301 2003-10-06  Jim Meyering  <jim@meyering.net>
78302             Bruno Haible  <bruno@clisp.org>
78303
78304         This lets translators provide better translations for the
78305         "Written by ..." part of --version output.
78306         * lib/version-etc.h: Include stdarg.h.
78307         (version_etc_copyright): Declare as readonly.
78308         (version_etc): Make this function variadic with a NULL-terminated list
78309         of author name strings.
78310         (version_etc_va): New declaration.
78311         * lib/version-etc.c: Include stdarg.h, stdlib.h.
78312         (version_etc_copyright): Declare as readonly.
78313         (version_etc_va): New function. Provide a different translatable string
78314         for each possible number of authors < 10. Abbreviate when there are 10
78315         authors or more.
78316         (version_etc): Make this function variadic. Call version_etc_va.
78317         Suggestion from Gary V. Vaughan.
78318
78319         * lib/long-options.h (parse_long_options): Change prototype: the
78320         authors string is moved to the end and becomes variadic.
78321         * lib/long-options.c: Include stdarg.h.
78322         (parse_long_options): Make this function variadic, too.
78323         Call version_etc_va, not version_etc.
78324
78325 2003-10-06  Bruno Haible  <bruno@clisp.org>
78326
78327         * modules/version-etc-2: Remove file.
78328         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
78329
78330 2003-10-06  Bruno Haible  <bruno@clisp.org>
78331
78332         * modules/fatal-signal: New file.
78333         * MODULES.html.sh (func_all_modules): Add fatal-signal.
78334
78335 2003-10-06  Bruno Haible  <bruno@clisp.org>
78336
78337         * m4/fatal-signal.m4: New file.
78338         * m4/signalblocking.m4: New file, from GNU gettext.
78339
78340 2003-10-06  Bruno Haible  <bruno@clisp.org>
78341
78342         * lib/version-etc-2.h: Remove file.
78343         * lib/version-etc-2.c: Remove file.
78344
78345 2003-10-06  Bruno Haible  <bruno@clisp.org>
78346
78347         * lib/fatal-signal.h: New file, from GNU gettext.
78348         * lib/fatal-signal.c: New file, from GNU gettext.
78349
78350 2003-10-05  Paul Eggert  <eggert@twinsun.com>
78351
78352         * README: Rework advice for preventing empty .o files.
78353         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
78354         not <sys/types.h>.
78355
78356 2003-10-04  Karl Berry  <karl@gnu.org>
78357
78358         * lib/argp*: update from libc.
78359
78360 2003-10-04  Karl Berry  <karl@gnu.org>
78361
78362         * config/config.{guess,sub}: update from config.
78363
78364 2003-10-02  Bruno Haible  <bruno@clisp.org>
78365
78366         * modules/lchown (Include): Add lchown.h.
78367         * modules/time_r (Include): Use "..." syntax.
78368         * modules/xgetdomainname (Include): Add xgetdomainname.h.
78369
78370 2003-10-01  Simon Josefsson  <jas@extundo.com>
78371
78372         * MODULES.html.sh (func_all_modules): Move gethostname from section
78373         'based on' to section 'lacking' POSIX:2001.
78374
78375 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
78376
78377         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
78378         to output mode on the same stream.
78379
78380 2003-09-29  Paul Eggert  <eggert@twinsun.com>
78381
78382         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
78383         Fix arg typo in previous patch.
78384
78385 2003-09-28  Jim Meyering  <jim@meyering.net>
78386
78387         * lib/error.c: Correct cpp indentation.
78388
78389 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78390
78391         * modules/free: New file.
78392
78393 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78394
78395         * m4/free.m4: New file.
78396
78397 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78398
78399         * lib/minmax.h (MIN, MAX)
78400         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
78401         Omit the special code that used __typeof__, since we worry that
78402         it could be more trouble than it's worth.  See:
78403         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
78404         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
78405
78406         * lib/free.c: New file.
78407
78408 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
78409
78410         Trivial fixes to Makefile.am parts of module listings.
78411         * modules/strstr: Append strstr.h to lib_SOURCES.
78412         * modules/strcase: Likewise, for strcase.h.
78413
78414 2003-09-27  Karl Berry  <karl@gnu.org>
78415
78416         * config/mkinstalldirs: update from automake.
78417
78418 2003-09-26  Paul Eggert  <eggert@twinsun.com>
78419
78420         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
78421         (error_tail): Do not loop, reallocating temporary buffer, since
78422         the output cannot contain more wide characters than the input
78423         contains bytes, the size must be big enough already.  This avoids
78424         one potential size overflow calculation.  Check for size overflow
78425         when calculating temporary buffer size.  Free temporary buffer
78426         when done, if it was allocated with malloc; this plugs a memory
78427         leak.  Remove casts from void * to pointers, that are no longer
78428         needed now that we're assuming C89 or better.
78429
78430         Merge error changes from glibc.
78431
78432         * lib/error.c, error.h: Update copyright notice header to match glibc.
78433         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
78434         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
78435         Disable cancellation while printing error.
78436         * lib/error.h: Prepend __ to parameter names.
78437
78438 2003-09-26  Jim Meyering  <jim@meyering.net>
78439
78440         * lib/error.c (error_tail): Move some declarations
78441         into inner scope where the local variables are used.
78442
78443 2003-09-26  Bruno Haible  <bruno@clisp.org>
78444
78445         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
78446         stpncpy().
78447         Don't define stpncpy through config.h; it's now done through stpncpy.h.
78448
78449 2003-09-26  Bruno Haible  <bruno@clisp.org>
78450
78451         * lib/stpncpy.h (gnu_stpncpy): New declaration.
78452         (stpncpy): Define as alias for gnu_stpncpy.
78453         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
78454
78455 2003-09-25  Simon Josefsson  <jas@extundo.com>
78456
78457         * lib/xgetdomainname.h: New file.
78458         * lib/xgetdomainname.c: New file.
78459
78460 2003-09-25  Simon Josefsson  <jas@extundo.com>
78461             Bruno Haible  <bruno@clisp.org>
78462
78463         * modules/getdomainname: New file.
78464         * modules/xgetdomainname: New file.
78465         * MODULES.html.sh (func_all_modules): Add getdomainname,
78466         xgetdomainname.
78467
78468 2003-09-25  Simon Josefsson  <jas@extundo.com>
78469             Bruno Haible  <bruno@clisp.org>
78470
78471         * m4/getdomainname.m4: New file.
78472
78473 2003-09-25  Simon Josefsson  <jas@extundo.com>
78474             Bruno Haible  <bruno@clisp.org>
78475
78476         * lib/getdomainname.h: New file.
78477         * lib/getdomainname.c: New file.
78478
78479 2003-09-25  Karl Berry  <karl@gnu.org>
78480
78481         * lib/argp-fmtstream.c, argp-help.c: update from libc.
78482
78483 2003-09-25  Karl Berry  <karl@gnu.org>
78484
78485         * config/install-sh: update from automake.
78486
78487 2003-09-25  Bruno Haible  <bruno@clisp.org>
78488
78489         * modules/version-etc-2: New file, from modules/version-etc with
78490         modifications.
78491         * MODULES.html.sh (func_all_modules): Add version-etc-2.
78492
78493 2003-09-25  Bruno Haible  <bruno@clisp.org>
78494
78495         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
78496         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
78497
78498 2003-09-24  Simon Josefsson  <jas@extundo.com>
78499
78500         * modules/xgethostname: Add xgethostname.h.
78501
78502 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78503
78504         * lib/linebuffer.c (freebuffer): Don't free the argument, just
78505         the buffer associated with the argument.  Bug reported by
78506         Simon Josefsson.
78507
78508 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78509
78510         * README: Document assumptions that 'int' is at least 32 bits
78511         wide, that integer arithmetic is 2's complement without overflow,
78512         that there are no holes in integer values, that adding sizes of
78513         two nonoverlapping objects can't overflow, and that all-bits-zero
78514         yields scalar zero.  Fix spelling and capitalization typos.
78515
78516 2003-09-19  Karl Berry  <karl@gnu.org>
78517
78518         * lib/argp.h: update from libc.
78519
78520 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78521
78522         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
78523         to avoid spurious warnings like "AC_RUN_IFELSE was called before
78524         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
78525
78526 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78527
78528         * gnulib-tool: Use "test -h", not "test -L", for portability
78529         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
78530         (tags_regexp): Remove, since \| doesn't conform to POSIX.
78531         (sed_extract_prog): Issue s commands one-by-one, rather than
78532         using \| in one s command.
78533
78534 2003-09-16  Paul Eggert  <eggert@twinsun.com>
78535
78536         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
78537         input error, instead of returning NULL the next time we are called
78538         (and therefore losing track of errno).
78539
78540 2003-09-16  Bruno Haible  <bruno@clisp.org>
78541
78542         * gnulib-tool (func_create_testdir): Warn about duplicated
78543         dependencies.
78544
78545 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78546
78547         * modules/argmatch, modules/fatal, modules/obstack,
78548         modules/xalloc, modules/xgethostname: Sort dependencies by
78549         importance, not alphabetically.
78550
78551 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78552
78553         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
78554         fails, so that the caller gets the proper errno.
78555
78556         * lib/readutmp.c (read_utmp): Likewise.
78557         Check for fstat error.  Close stream and free storage
78558         when failing.
78559
78560 2003-09-14  Karl Berry  <karl@gnu.org>
78561
78562         * config/srclist.txt (strdup.c): disable for c89 changes.
78563
78564 2003-09-14  Jim Meyering  <jim@meyering.net>
78565
78566         * lib/getloadavg.c: Correct cpp indentation.
78567         * lib/strdup.c: Likewise.
78568         * lib/vasnprintf.c: Likewise.
78569
78570 2003-09-14  Bruno Haible  <bruno@clisp.org>
78571
78572         * modules/fwriteerror: New file.
78573         * MODULES.html.sh (func_all_modules): Add fwriteerror.
78574
78575 2003-09-14  Bruno Haible  <bruno@clisp.org>
78576
78577         * lib/fwriteerror.h: New file.
78578         * lib/fwriteerror.c: New file.
78579
78580 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78581
78582         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
78583         modules/xgethostname, modules/xalloc: Depend on exit.
78584
78585 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78586
78587         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
78588
78589         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
78590         and AC_MINIX, too, so that their extensions are available.
78591
78592         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
78593         This macro has been superseded by gl_BACKUPFILE.
78594
78595         More patches to assume C89 or better.
78596
78597         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
78598
78599         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
78600         unconditionally.
78601         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
78602         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
78603         Include <string.h>, <stdlib.h> unconditionally.
78604         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
78605         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
78606         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
78607         headers or for string.h.
78608         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
78609         or strtoul.
78610
78611         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
78612         headers.
78613         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
78614         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78615         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
78616         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
78617         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78618         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
78619         memcpy, memset.
78620         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
78621         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
78622         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
78623         strtol.
78624         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
78625         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
78626         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
78627         strtoul.
78628
78629 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78630
78631         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
78632         * lib/obstack.c [!defined _LIBC]: Likewise.
78633         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
78634         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
78635         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
78636
78637         More changes to assume C89 or better.
78638
78639         * lib/error.c (error_tail): Assume vprintf.
78640
78641         * lib/argmatch.c (getenv): Remove decl.
78642         * lib/progreloc.c (get_full_program_name): Define via prototype.
78643         * lib/setenv.c (clearenv): Likewise.
78644         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
78645         needed.
78646         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
78647         (malloc, memcpy): Remove decls.
78648         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
78649         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
78650         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78651         (memcpy): Remove macro.
78652         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
78653         (__P): Remove.  All uses removed.
78654         (PTR): Remove.  All uses changed to void *.
78655         (CHAR_BIT, NULL): Remove.
78656         (spaces, zeros, memset_space, memset_zero)
78657         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
78658         Remove.
78659         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
78660         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
78661         Define with prototype.
78662         Remove now-unnecessary prototype decl.
78663         (extra_args_spec): Assume ANSI C.  All uses changed.
78664         (extra_args_spec_iso): Remove.
78665         (my_strftime, emacs_strftimeu): Define via prototype.
78666         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
78667         unconditionally.
78668         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
78669         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
78670         (strtoul, strtol): Remove decls.
78671         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
78672         LONG_MAX): Remove.
78673         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78674         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
78675         (LOCALE_PARAM_PROTO): New macro.
78676         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
78677         (INTERNAL (strtol), strtol): Define with a prototype.
78678         (PARAMS): Remove.  All uses removed.
78679         * lib/tempname.c: Include <string.h> unconditionally.
78680         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
78681         * lib/xgethostname.c (main): Define with a prototype.
78682         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
78683         Include <stdlib.h> unconditionally.
78684         (calloc, malloc, realloc, free): Remove decls.
78685         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
78686         Include <stdlib.h> unconditionally.  Sort include file names.
78687         (strtod): Remove.
78688         (xstrtod): Define with a prototype.
78689         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
78690         (strtol, strtoul): Remove decls.
78691
78692 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78693
78694         More patches to assume C89 or better.
78695         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
78696         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
78697         string.h, memchr, STDC_HEADERS.
78698
78699 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78700
78701         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
78702         Include <stdlib.h>, <string.h> unconditionally.
78703         Remove now-unnecessary cast to char *.
78704         * lib/strnlen.c: Include <string.h> unconditionally.
78705         * lib/yesno.c (yesno): Define with a prototype.
78706
78707 2003-09-11  Bruno Haible  <bruno@clisp.org>
78708
78709         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
78710
78711 2003-09-10  Jim Meyering  <jim@meyering.net>
78712
78713         * lib/error.c: Correct indentation of cpp directives.
78714
78715 2003-09-10  Bruno Haible  <bruno@clisp.org>
78716
78717         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
78718         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
78719         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
78720         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
78721         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
78722         <stdlib.h> and <string.h> checks.
78723         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
78724         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
78725
78726 2003-09-10  Bruno Haible  <bruno@clisp.org>
78727
78728         * lib/strcspn.c: Include <string.h> unconditionally.
78729         * lib/strpbrk.c: Include <string.h> unconditionally.
78730         * lib/strstr.c: Include <string.h> unconditionally.
78731         * lib/unicodeio.c: Include <string.h> unconditionally.
78732         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
78733         * lib/unsetenv.c: Likewise.
78734         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
78735         * lib/yesno.c: Include <stdlib.h> unconditionally.
78736         (rpmatch): Add prototype.
78737
78738 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78739
78740         More patches to assume C89 or better.
78741         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
78742         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
78743         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
78744         or for string.h.
78745         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
78746         stdlib.h.
78747         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
78748         C headers.
78749         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
78750         string.h.
78751         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
78752         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
78753         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
78754         or for string.h.
78755         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
78756         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
78757         C headers.
78758         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
78759         memcpy.
78760         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
78761         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
78762         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
78763         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
78764         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
78765         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
78766         string.h, free.
78767         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
78768         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
78769         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
78770         C headers, or for string.h.
78771         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
78772         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
78773         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
78774         headers, memory.h, stdlib.h, string.h, strings.h.
78775         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
78776         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
78777         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
78778         strchr.
78779         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
78780         headers, memory.h, string.h.
78781         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
78782         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
78783         free.
78784         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
78785         headers.
78786         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
78787         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
78788         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
78789         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
78790         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
78791
78792 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78793
78794         More K&R removal.
78795
78796         * lib/acosl.c (main): Use a prototype.
78797         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
78798         tanl.c: Likewise.
78799
78800         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
78801
78802         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
78803         (getopt, etopt_long, getopt_long_only, _getopt_internal)
78804         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
78805         with a prototype.
78806         * lib/getopt.c (const): Remove macro.
78807         Include <string.h> unconditionally.
78808         (my_index): Remove; all uses changed to strchr.
78809         (strlen): Remove decl.
78810         (exchange): Remove forward decl; no longer needed.
78811         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
78812         Define with prototype.
78813         * lib/getopt1.c (const): Remove macro.
78814         (getopt_long, getopt_long_only, main): Define with prototype.
78815
78816         * lib/getugroups.c: Include <string.h> unconditionally.
78817
78818         * lib/getusershell.c: Include <stdlib.h> unconditionally.
78819         (getusershell, setusershell, endusershell, readname, main):
78820         Define with prototypes.
78821
78822         * lib/group-member.c: Include group-member.h first.
78823         Include <stdlib.h> unconditionally.
78824
78825         * lib/hard-locale.c: Include hard-locale.h first.
78826         Include <stdlib.h>, <string.h> unconditionally.
78827
78828         * lib/hash.c (free, malloc): Remove decls.
78829         Include <stdlib.h> unconditionally.
78830
78831         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
78832         (getenv): Do not declare.
78833
78834         * lib/idcache.c: Include <string.h> unconditionally.
78835
78836         * lib/long-options.c: Include long-options.h first, to test interface.
78837         Include <stdlib.h> unconditionally.
78838
78839         * lib/makepath.c: Include makepath.h first, to test interface.
78840         Include <stdlib.h> and <string.h> unconditionally.
78841
78842         * lib/linebuffer.c: Include <stdlib.h>.
78843         (free): Remove decl.
78844
78845         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
78846         stddef.h. rpl_malloc returns void *, not char *.
78847         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
78848         prototype.
78849
78850         * lib/md5.h: Include <limits.h> unconditionally.
78851         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
78852         (__P): Remove; all uses removed.
78853         * lib/md5.c: Include "md5.h" first.
78854         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
78855         md5_buffer, md5_process_bytes, md5_process_block):
78856         Define with prototypes.
78857         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
78858         * lib/sha.c: Include "sha.h" first.
78859         Include <stdlib.h>, <string.h> unconditionally.
78860
78861         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
78862         * lib/memcmp.c (__ptr_t): Likewise.
78863         * lib/memrchr.c (__ptr_t): Likewise.
78864         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
78865         Include <string.h> unconditionally.
78866         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
78867         * lib/memchr.c: Include <stdlib.h> unconditionally.
78868         * lib/memchr.c (LONG_MAX): Remove.
78869         * lib/memrchr.c (LONG_MAX): Likewise.
78870         * lib/memchr.c (__memchr): Define via a prototype.
78871         * lib/memrchr.c (__memrchr): Likewise.
78872         * lib/memcmp.c (__P): Remove, and remove all uses.
78873         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
78874         Remove forward decls; no longer needed.
78875         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
78876         Use types required by C89 in prototype.
78877
78878         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
78879         * lib/savedir.c: Likewise.
78880         * lib/mkdir.c (free): Remove decl.
78881         * lib/rmdir.c (rmdir): Define with a prototype.
78882         * lib/savedir.c: Include savedir.h first, to test interface.
78883
78884         * lib/mktime.c (STDC_HEADERS): Remove.
78885         Include <stdlib.h>, <string.h> unconditionally.
78886
78887         * lib/modechange.c: Include <stdlib.h> unconditionally.
78888         (malloc): Remove decl.
78889
78890         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
78891         (free): Remove decl.
78892
78893         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
78894         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
78895         (This type really should be intptr_t, but that's a C99ism.)
78896         (_obstack_memcpy): Remove: all uses changed to memcpy.
78897         Include <string.h> unconditionally.
78898         (struct obstack): Assume __STDC__ for types of members
78899         chunkfun, freefun, extra_arg.
78900         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
78901         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
78902         obstack_begin, obstack_specify_allocation,
78903         obstack_specify_allocation_with_arg, obstack_chunkfun,
78904         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
78905         Remove unprototyped decls and the macros that use them.
78906         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
78907         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
78908         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
78909         (defined __STDC__ && __STDC__)]:
78910         Remove nonprototyped code.
78911         Include <stdlib.h> unconditionally.
78912         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
78913         _obstack_allocated_p, _obstack_free, obstack_free,
78914         _obstack_memory_used, print_and_abort):
78915         Define using prototypes.
78916         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
78917         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
78918         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
78919         obstack_next_free, obstack_object_size, obstack_room) [0]:
78920         Remove unused, unprototyped code.
78921
78922         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
78923
78924         * lib/physmem.c (physmem_total, physmem_available, main): Define
78925         with prototypes.
78926
78927         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
78928         (main): Define with a prototype.
78929
78930         * lib/posixver.c (getenv): Remove decl.
78931
78932         * lib/putenv.c (malloc): Returns void *, not char *.
78933         Include <string.h> unconditionally.
78934         (strchr, memcpy, NULL): Do not define.
78935
78936         * lib/readtokens.c: Include readtokens.h first, to test interface.
78937         Include <stdlib.h>, <string.h> unconditionally.
78938         (init_tokenbuffer): Define with a prototype.
78939
78940         * lib/regex.c (PARAMS): Remove.  All uses removed.
78941         All uses of _RE_ARGS removed, too.
78942         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78943         unconditionally.
78944         (bzero): Assume memset exists.
78945         (memcmp, memcpy, NULL): Remove.
78946         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
78947         char, or assignments to local vars of type signed char.
78948         (init_syntax_once, PREFIX(extract_number_and_incr),
78949         PREFIX(print_partial_compiled_pattern),
78950         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
78951         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
78952         PREFIX(regex_grow_registers), PREFIX(regex_compile),
78953         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
78954         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
78955         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
78956         wcs_compile_range, byte_compile_range, truncate_wchar,
78957         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
78958         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
78959         count_mbs_length, wcs_re_match_2_internal,
78960         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
78961         PREFIX(alt_match_null_string_p),
78962         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
78963         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
78964         regfree, PREFIX(extract_number)): Define with prototype.  Remove
78965         now-unnecessary declaration, if any.
78966         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
78967         regcomp, regexec):
78968         Remove now-unnecessary casts among pointer types.
78969         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
78970
78971         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
78972         (free): Remove decl.
78973
78974         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
78975
78976         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
78977         (free): Remove decl.
78978
78979         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
78980         * lib/xgetcwd.c: Likewise.
78981
78982         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
78983         (free): Remove decl.
78984
78985         * lib/strchrnul.c (strchrnul): Define with a prototype.
78986         Fix bug: c_in was not converted to char before searching.
78987
78988         The following changes are not K&R related:
78989
78990         * lib/group-member.h: Include <sys/types.h>, so that this file is
78991         self-contained.
78992         * lib/makepath.h: Likewise.
78993
78994         * lib/getusershell.c (readname, default_index, line_size, readname):
78995         Use size_t, not int, for sizes.
78996         (readname): If the size overflows, report an error instead of
78997         looping forever.
78998
78999 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79000
79001         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
79002         libc.
79003
79004 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79005
79006         * README: New section: portability guidelines.
79007
79008 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
79009
79010         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
79011         C89 spec.
79012
79013 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
79014
79015         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
79016
79017 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79018
79019         Assume C89 or better; remove K&R cruft.
79020         A few of these changes were first proposed by Derek Robert Price
79021         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
79022
79023         * lib/addext.c: Include <string.h> unconditionally.
79024         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
79025         Don't declare getenv or malloc.
79026
79027         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
79028         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
79029         (NULL): Remove.
79030         (find_stack_direction, alloca): Use prototypes.
79031
79032         * lib/atexit.c (atexit): Define using a prototype.
79033
79034         * lib/basename.c, dirname.c, stripslash.c:
79035         Include <string.h> unconditionally.
79036
79037         * lib/bcopy.c: Include <stddef.h>.
79038         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
79039
79040         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
79041
79042         * lib/error.h (error, error_at_line, error_print_progname)
79043         [! (defined (__STDC__) && __STDC__)]: Remove decls.
79044         * lib/error.c: Include error.h first, to check interface.
79045         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
79046         (VA_START): Remove; all uses changeed to va_start.
79047         (exit, strerror): Remove decls.
79048         (error_print_progname): Prototype uncondionally.
79049         Don't include <errno.h>; no longer needed.
79050         (private_strerror): Remove.
79051         (error_tail): Always define.
79052         (error, error_at_line): Assume C89 or better; always use prototypes.
79053         * lib/fatal.c: Include "fatal.h" first, to test interface.
79054         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
79055         (VA_START): Remove; all uses changed to va_start.
79056         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
79057         this case.
79058         (exit): Remove decl.
79059         (fatal): Prototype unconditionally.  Assume va_start works.
79060         Abort at end, to pacify gcc.
79061
79062         * lib/euidaccess.c (main): Define with a prototype.
79063
79064         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
79065
79066         * lib/exitfail.c: Include <stdlib.h> unconditionally.
79067
79068         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
79069         prototypes.
79070         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
79071         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
79072         (getenv): Remove decl.
79073         (fnmatch): Define using a prototype.
79074         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
79075         (FCT): Define using a prototype.
79076
79077         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
79078
79079         * lib/gethostname.c: Include <stddef.h>.
79080         (gethostname): Define with prototype.  Length is size_t, not int.
79081
79082 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79083
79084         Assume C89 or better; remove K&R cruft.
79085         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
79086         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
79087         string.h, getenv, malloc.
79088         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
79089         headers.
79090         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
79091         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
79092         do not check for strerror.
79093         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
79094         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
79095         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
79096         do not check for doprnt or vprintf.
79097         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
79098         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
79099
79100 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79101
79102         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
79103         getversion.c should have been removed then, but was accidentally
79104         preserved.
79105
79106         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
79107         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
79108
79109 2003-09-08  Karl Berry  <karl@gnu.org>
79110
79111         * config/config.sub, config.guess, srclistvars.sh: update from savannah
79112                 config, forget about prep.
79113
79114         * config/depcomp, missing: update from automake.
79115
79116 2003-09-07  Paul Eggert  <eggert@twinsun.com>
79117
79118         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
79119         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
79120
79121 2003-09-07  Paul Eggert  <eggert@twinsun.com>
79122
79123         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
79124         copy_tm_result.  Bug reported by Simon Josefsson in
79125         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
79126
79127 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79128
79129         * m4/time_r.m4: New file.
79130         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
79131         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
79132         is. Check for timegm declaration.
79133         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
79134         Do not check for gmtime_r.
79135         Replace mktime if __mktime_internal does not exist and if mktime
79136         hasn't been replaced already.
79137
79138 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79139
79140         * lib/time_r.c, lib/time_r.h: New files.
79141
79142         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
79143         __localtime_r.
79144         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
79145         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
79146
79147         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
79148         __gmtime_r.
79149         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
79150         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
79151         Include <time_r.h>.
79152
79153         * lib/timegm.c: Switch to glibc implementation, with the following
79154         changes:
79155         [defined HAVE_CONFIG_H]: Include <config.h>.
79156         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
79157         (__mktime_internal) [!defined _LIBC]: New decl.
79158         (__gmtime_r) [!defined _LIBC]: New macro and function.
79159         (timegm): Use a prototype, since gnulib assumes C89.
79160         Do not bother declaring tmp to be const, as it's not really usefu.
79161         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
79162         (timegm): Declare only if HAVE_DECL_TIMEGM.
79163
79164 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79165
79166         * MODULES.html.sh (func_all_modules): Add time_r.
79167         * modules/time_r: New file.
79168         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
79169         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
79170
79171 2003-09-03  Paul Eggert  <eggert@twinsun.com>
79172
79173         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
79174         Bug reported by Lute Kamstra in
79175         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
79176
79177         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
79178         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
79179         course with correspondingly smaller numbers for tomorrow and
79180         yesterday.  From Tadayoshi Funaba.  Originally installed into
79181         sh-utils on 1999-08-07, but the patch got lost (I guess during the
79182         coreutils merge?).
79183
79184 2003-08-31  Simon Josefsson  <jas@extundo.com>
79185
79186         * modules/timegm: New file.
79187         * MODULES.html.sh (func_all_modules): Add timegm.
79188
79189 2003-08-31  Simon Josefsson  <jas@extundo.com>
79190
79191         * m4/timegm.m4: New file.
79192
79193 2003-08-31  Simon Josefsson  <jas@extundo.com>
79194
79195         * lib/timegm.h: New file.
79196         * lib/timegm.c: New file.  Based on
79197         wget-1.8.2/src/http.c:mktime_from_utc.
79198
79199 2003-08-31  Karl Berry  <karl@gnu.org>
79200
79201         * lib/argp.h: update from libc.
79202
79203 2003-08-28  Bruno Haible  <bruno@clisp.org>
79204
79205         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
79206         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
79207         followed by '#define fnmatch fnmatch_posix' gives an error.
79208
79209 2003-08-28  Bruno Haible  <bruno@clisp.org>
79210
79211         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
79212         warning on QNX, which defines O_BINARY to 000000.
79213
79214 2003-08-27  Jim Meyering  <jim@meyering.net>
79215
79216         * m4/mkstemp.m4: Require that the system mkstemp be able to create
79217         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
79218         would fail after 32.  Reported by Danny Levinson.  Details here:
79219         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
79220
79221 2003-08-24  Bruno Haible  <bruno@clisp.org>
79222
79223         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
79224         MSVC7 <stdio.h> is included later.
79225
79226 2003-08-22  Simon Josefsson  <jas@extundo.com>
79227
79228         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
79229
79230 2003-08-20  Karl Berry  <karl@gnu.org>
79231
79232         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
79233
79234 2003-08-20  Bruno Haible  <bruno@clisp.org>
79235
79236         * modules/progname: New file.
79237         * MODULES.html.sh (func_all_modules): Add progname.
79238
79239 2003-08-20  Bruno Haible  <bruno@clisp.org>
79240
79241         * lib/progname.h: New file, from GNU gettext.
79242         * lib/progname.c: New file, from GNU gettext.
79243         * lib/progreloc.c: New file, from GNU gettext.
79244
79245 2003-08-19  Jim Meyering  <jim@meyering.net>
79246
79247         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
79248         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
79249
79250 2003-08-19  Bruno Haible  <bruno@clisp.org>
79251
79252         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
79253         more.
79254
79255 2003-08-19  Bruno Haible  <bruno@clisp.org>
79256
79257         * lib/xstrdup.c: Assume <string.h> exists.
79258
79259 2003-08-18  Paul Eggert  <eggert@twinsun.com>
79260
79261         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
79262         in makefile rules.
79263
79264 2003-08-18  Jim Meyering  <jim@meyering.net>
79265
79266         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
79267         * m4/lib-ld.m4: Likewise.
79268
79269 2003-08-18  Jim Meyering  <jim@meyering.net>
79270
79271         * lib/setenv.h: Indent nested cpp directive.
79272         * lib/vasnprintf.c: Remove trailing blanks.
79273
79274 2003-08-17  Simon Josefsson  <jas@extundo.com>
79275
79276         * modules/xstrndup: New file.
79277         * MODULES.html.sh (func_all_modules): Add xstrndup.
79278
79279 2003-08-17  Simon Josefsson  <jas@extundo.com>
79280
79281         * modules/argp: Fix autoconf macro name. Add more dependencies.
79282
79283 2003-08-17  Simon Josefsson  <jas@extundo.com>
79284
79285         * m4/xstrndup.m4: New file.
79286
79287 2003-08-17  Simon Josefsson  <jas@extundo.com>
79288
79289         * m4/argp.m4: New file.
79290
79291 2003-08-17  Simon Josefsson  <jas@extundo.com>
79292             Bruno Haible  <bruno@clisp.org>
79293
79294         * lib/xstrndup.h: New file.
79295         * lib/xstrndup.c: New file.
79296
79297 2003-08-17  Bruno Haible  <bruno@clisp.org>
79298
79299         * modules/strndup (Files, Include): Add lib/strndup.h.
79300
79301 2003-08-17  Bruno Haible  <bruno@clisp.org>
79302
79303         * modules/euidaccess (Files): Add lib/euidaccess.h.
79304
79305 2003-08-17  Bruno Haible  <bruno@clisp.org>
79306
79307         * lib/strndup.h: New file.
79308
79309 2003-08-17  Bruno Haible  <bruno@clisp.org>
79310
79311         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
79312         like AC_GNU_SOURCE.
79313         * modules/extensions (configure.ac): Comment out the invocation of
79314         gl_USE_SYSTEM_EXTENSIONS.
79315
79316 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79317
79318         Merges from coreutils, etc.
79319         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
79320         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
79321         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
79322         fixing a typo.
79323         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
79324         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
79325
79326 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79327
79328         Document merge from coreutils.
79329         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
79330         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
79331         * modules/utime: Add m4/utimes-null.m4.
79332
79333 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79334
79335         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
79336         space, undoing this 2003-08-12 change:
79337         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79338
79339 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79340
79341         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
79342         strtoul.c from libc, undoing this 2003-08-12 change:
79343         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79344
79345 2003-08-16  Jim Meyering  <jim@meyering.net>
79346
79347         Merges from coreutils.
79348         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
79349         prefix.  Adjust cache variables similarly.  Create 500 rather than
79350         just 300 files, to exercise bug on Darwin6.5, too.
79351         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
79352         $missing_dir.
79353         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
79354         AM_SYS_POSIX_TERMIOS.
79355         Reported by mkc@mathdogs.com.
79356         Also change use of $am_cv_sys_posix_termios
79357         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
79358         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
79359         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
79360         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
79361         in /proc/mounts until it finds one with matching device number.  This
79362         is unnecessary when the FILE argument *is* a mount point.  No stat call
79363         is necessary in that case.  So, disable the statvfs-testing code on
79364         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
79365         as RedHat bug# 84846.
79366         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79367         to 1MB, so as not to render systems with no stack size limit (e.g.,
79368         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79369         Include <unistd.h>.  On some systems,
79370         it is required for the definition of _SC_PAGESIZE.
79371
79372 2003-08-16  Jim Meyering  <jim@meyering.net>
79373
79374         Merge from coreutils.
79375         * lib/xstrtoimax.c: #else #if -> #elif.
79376         * lib/xstrtoumax.c: Likewise.
79377
79378 2003-08-16  Jim Meyering  <jim@meyering.net>
79379
79380         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
79381         * m4/utimes.m4: Removed.
79382         * m4/utimes-null.m4: Renamed from utimes.m4.
79383
79384         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79385         to 1MB, so as not to render systems with no stack size limit (e.g.,
79386         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79387         Include <unistd.h>.  On some systems,
79388         it is required for the definition of _SC_PAGESIZE.
79389
79390 2003-08-16  Jim Meyering  <jim@meyering.net>
79391         and Paul Eggert  <eggert@cs.ucla.edu>
79392
79393         Merges from coreutils, etc.
79394
79395         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
79396         using the latest version from cvs.  This avoids problems with #line
79397         directives using a vendor (Sun) compiler.
79398         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
79399         Don't set GETGROUPS_LIB here; now it's
79400         done via getgroups.m4's wrapper function.
79401         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
79402         rather than just in sh-util/configure.in, so that the
79403         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
79404         same.
79405         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
79406         AC_FUNC_GETLOADAVG where to find getloadavg.c.
79407         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
79408         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
79409         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
79410         Remove code that is now done by the newly-required macros.
79411         Append $(EXEEXT) to DF_PROG.
79412         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
79413         Do not invoke or require the following here,
79414         since prereq.m4 or some gnulib .m4 now does this for us:
79415         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
79416         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
79417         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
79418         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
79419         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
79420         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
79421         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
79422         AC_FUNC_OBSTACK.
79423         Do not replace the following functions, as this is now the job
79424         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
79425         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
79426         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
79427         atexit getpass, strdup, getpagesize.
79428         Replace 'raise'.
79429         Do not check for the following functions, as this is now the job
79430         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
79431         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
79432         setregid.
79433         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
79434         Check for sys/sysctl.h.
79435         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
79436         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
79437         of checking for ssize_t ourselves.
79438
79439         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
79440         Require every macro that gnulib/modules/* suggests for us.
79441         (jm_PREREQ_ADDEXT): New macro.
79442         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
79443         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
79444
79445         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
79446         (gl_PHYSMEM): Use it.
79447         Also check for `table' function.
79448         Check for new headers and functions.
79449         Add check for sys/sysmp.h.
79450         With suggestions from Kaveh Ghazi.
79451         Ignore headers that are present but cannot be compiled.  This
79452         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
79453         C 5.4.
79454
79455 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79456
79457         Document merge from coreutils.
79458         * modules/userspec: Depend on posixver.
79459         * modules/strftime: Depend on tzset.
79460
79461 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79462
79463         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
79464         rather than tab, after '#' in shell-script copyright notices.
79465         Suggested by Bruno Haible.
79466
79467 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79468
79469         * config/srclist-update: Use three spaces, rather than tab, after '#'
79470         in shell-script copyright notices.  Suggested by Bruno Haible.
79471         Remove unnecessary parenthesization in regular expression.
79472
79473 2003-08-15  Jim Meyering  <jim@meyering.net>
79474
79475         Merge from coreutils.
79476         * lib/xgethostname.c: Include <stdlib.h>.
79477         (xghostname): Don't exit for anything other than memory-related
79478         failure; just return NULL.
79479         * lib/userspec.c: Include "posixver.h".
79480         (parse_user_spec): Accept `.' as a separator only
79481         in pre-POSIX-200112 mode.
79482         * lib/strtoimax.c: Use #elif rather than #else #if.
79483         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
79484         Remove function, now that we can rely on a working tzset function.
79485         [!_LIBC]: Ensure that the required autoconf test has been run.
79486         [!defined _NL_CURRENT && HAVE_STRFTIME]:
79487         Use underlying_strftime for %r.
79488         * lib/sha.c: Merge in some clean-up and optimization changes from
79489         glibc.
79490         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
79491         Ensure that it is a multiple of 64.
79492         Rearrange loop exit tests so as to avoid performing an
79493         additional fread after encountering an error or EOF.
79494         * lib/realloc.c: Update copyright date.
79495
79496 2003-08-15  Jim Meyering  <jim@meyering.net>
79497         and Paul Eggert  <eggert@twinsun.com>
79498
79499         Merge from coreutils.
79500         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
79501         member but strut utmpx does not.  Needed for AIX 4.3.3.
79502         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
79503
79504 2003-08-15  Jim Meyering  <jim@meyering.net>
79505         and Paul Eggert  <eggert@cs.ucla.edu>
79506
79507         Merges from coreutils, etc.
79508         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
79509         Require gl_FUNC_TZSET_CLOBBER.
79510         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
79511         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
79512         members.
79513
79514 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79515
79516         Help the merge from coreutils.
79517         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
79518         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
79519         * m4/tzset.m4: Use it too.
79520
79521 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79522
79523         * modules/tzset: New file.
79524
79525 2003-08-14  Jim Meyering  <jim@meyering.net>
79526
79527         Merges from coreutils.
79528         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
79529         variable names, rather than @FNMATCH_H@.
79530         * modules/alloca: Likewise for $(ALLOCA_H).
79531
79532         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
79533         the three copies of the literal target, `fnmatch.h'.
79534         * modules/alloca (alloca.h): Likewise.
79535
79536 2003-08-14  Jim Meyering  <jim@meyering.net>
79537
79538         Merge from coreutils.
79539         * m4/tzset.m4: New file.
79540         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
79541         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
79542         otherwise, AIX 5.1 systems would end up using the latter.
79543         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
79544         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
79545         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
79546         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
79547
79548 2003-08-14  Jim Meyering  <jim@meyering.net>
79549
79550         Merge from coreutils.
79551         * lib/obstack.h: Whitespace changes.
79552         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
79553         and xcalloc return values.
79554         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
79555         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
79556         hang on OSF/1 5.1 for DIR on both local and remote file systems.
79557         Reported by (and fix confirmed by) Nelson H. F. Beebe.
79558         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
79559         error from mntctl.
79560         Use mntctl's return value to drive the entry-processing loop, since
79561         we can't rely on the value of the vmt_length member in the last
79562         entry.  On some systems doing so could result in exhausting
79563         virtual memory.  Based in part on a patch from Mike Jetzer.
79564
79565 2003-08-14  Jim Meyering  <jim@meyering.net>
79566         and Paul Eggert  <eggert@twinsun.com>
79567
79568         Merges from coreutils, plus other fixes.
79569         * lib/physmem.c: Merge in portability changes from gcc/libiberty
79570         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
79571         for credits and details.  Thanks to Kaveh Ghazi for helping
79572         to keep these files in sync.
79573         (ARRAY_SIZE): Define it.
79574         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
79575         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
79576         (memcasecmp): Don't assume size_t fits in unsigned int.
79577         Remove casts and duplicate code.
79578         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
79579         (memcpy): Remove definition.
79580         Merge in some clean-up and optimization changes from glibc.
79581         [BLOCKSIZE]: Move definition to top of file.
79582         Ensure that it is a multiple of 64.
79583         Rearrange loop exit tests so as to avoid performing an
79584         additional fread after encountering an error or EOF.
79585         * lib/md5.h (md5_uintptr): Define.
79586         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
79587         return to the initial working directory.  Preserve errno
79588         for caller.
79589         * lib/idcache.c: Include "xalloc.h".
79590         (xmalloc, xrealloc): Remove decls.
79591         (getuser): Remove casts no longer required in C89.
79592         * lib/human.c: Include stdio.h, for sprintf.
79593         * lib/group-member.c: Include "xalloc.h".
79594         (xmalloc, xrealloc): Remove decls.
79595         (get_group_info): Remove casts no longer required in C89.
79596         * lib/getusershell.c (readname): Remove casts no longer required in
79597         C89.
79598         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
79599         * lib/getline.c: Whitespace fix, from coreutils.
79600
79601 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79602
79603         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
79604         Check for isascii.
79605
79606         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79607         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79608         Undo previous (whitespace-only) change.
79609
79610 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79611
79612         * lib/exclude.c: Include <ctype.h>
79613         (IN_CTYPE_DOMAIN): New macro.
79614         (is_space): New fn.
79615         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
79616         and empty lines.
79617
79618         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79619         Undo previous (whitespace-only) change.
79620
79621 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79622
79623         * config/srclist-update: Change update back to the old behavior,
79624         leaving whitespace alone.  Use one 'sed' command rather than a
79625         pipeline.
79626         (fixlicense): Now a variable, not a function.
79627         (remove_trailing_blanks): Remove.
79628         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
79629         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79630         Undo previous (whitespace-only) change.
79631
79632 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79633
79634         Merge from coreutils.
79635         * modules/euidaccess: Add lib_SOURCES, include for new
79636         file euidaccess.h
79637
79638 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79639
79640         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79641         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79642         Normalize leading white space and remove trailing white space.
79643
79644         Merge from coreutils
79645         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
79646
79647         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
79648         0.12.1.  These files are now being upgraded automatically by
79649         ../config/srclist-update.
79650
79651 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79652
79653         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79654         Normalize leading white space and remove trailing white space.
79655         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
79656         notice, as per ../config/srclist-update.
79657
79658         Merge from coreutils.
79659         * lib/euidaccess.h: New file.
79660         * lib/euidaccess.c: Include it.
79661         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
79662         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
79663         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
79664
79665 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79666
79667         * config/srclist-update: Add copyright notice.
79668         (remove_id_lines, remove_trailing_blanks): New constants.
79669         (fixfile): Use them to normalize spacing a bit in copied files.
79670         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79671         Normalize leading white space and remove trailing white space.
79672
79673         * config/texinfo.tex: Sync with texinfo.
79674
79675         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
79676         strtoul.c from libc, to merge coreutils whitespace changes.
79677
79678         * config/srclist.txt: Get the following m4 files from gettext:
79679         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
79680         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
79681         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
79682         wint_t.m4.
79683
79684 2003-08-12  Karl Berry  <karl@gnu.org>
79685
79686         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
79687         been made.
79688
79689 2003-08-11  Paul Eggert  <eggert@twinsun.com>
79690
79691         * modules/gnu-source, m4/gnu-source.m4:
79692         Remove; we're assuming Autoconf 2.54 or later now.
79693         Suggested by Bruno Haible.
79694         * MODULES.html.sh (func_all_modules): Remove gnu-source.
79695
79696 2003-08-11  Bruno Haible  <bruno@clisp.org>
79697
79698         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
79699
79700 2003-08-11  Bruno Haible  <bruno@clisp.org>
79701
79702         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
79703         (vasnprintf): Use it instead of wcslen.
79704
79705 2003-08-11  Bruno Haible  <bruno@clisp.org>
79706
79707         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
79708         value to ensure that _Bool promotes to int. Use #define for _Bool when
79709         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
79710
79711 2003-08-10  Karl Berry  <karl@gnu.org>
79712
79713         * lib/regex.h: update from libc (whitespace fix).
79714
79715 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79716
79717         Merge some files from coreutils.  These changes were
79718         originally made by Jim Meyering.
79719         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
79720         many older Unixes require this.
79721         * lib/alloca.c (alloca): Remove cast to argument of free;
79722         no longer needed in C89.
79723         * lib/alloca_.h, regex.h: Fix white space to match
79724         what GNU indent does.
79725
79726 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79727
79728         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
79729         apparently Emacs's Unicode mode got confused before my 2003-08-05
79730         checkin.
79731
79732 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79733
79734         * m4/extensions.m4: New file.
79735         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
79736         Require gl_USE_SYSTEM_EXTENSIONS.
79737         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
79738         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
79739
79740 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79741
79742         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
79743         * modules/extensions, modules/gnu-source: New files.
79744         * modules/timespec, modules/unlocked-io: Depend on extensions.
79745
79746 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79747
79748         * modules/restrict: New file.
79749         * MODULES.html.sh (func_all_modules): Add restrict.
79750         * modules/regex: Depend on restrict.
79751
79752 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79753
79754         * m4/restrict.m4: New file.
79755         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
79756
79757 2003-08-07  Bruno Haible  <bruno@clisp.org>
79758
79759         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
79760         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
79761
79762 2003-08-07  Bruno Haible  <bruno@clisp.org>
79763
79764         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
79765         makes the module 'getndelim2' compatible with the module 'getline'.
79766
79767 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79768
79769         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
79770         byte with "\201" to avoid glitches when editing that source file
79771         with multi-gnome-terminal.
79772
79773 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79774
79775         * lib/bumpalloc.h: Remove.
79776
79777 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79778
79779         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
79780         * modules/bumpalloc: Remove.
79781
79782 2003-08-04  Paul Eggert  <eggert@twinsun.com>
79783
79784         * lib/getloadavg.c: Change copyright notice and spacing to conform to
79785         GNU coding style.
79786
79787         Merge from coreutils.
79788         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
79789         1. From glibc.
79790         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
79791         from Karl Berry, implemented by Jim Meyering.
79792         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
79793         from Dmitry V. Levin.
79794         Remove anachronistic cast of xrealloc.
79795         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
79796         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
79797         type. Otherwise, it wouldn't compile with at least /bin/cc on
79798         ymp-cray-unicos9.0.2.X.
79799         Combine two mostly-identical uses of alloca into one.
79800         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
79801
79802 2003-08-04  Dave Love  <d.love@dl.ac.uk>
79803
79804         [From Emacs.]
79805
79806         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
79807         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
79808         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
79809         obsolete NLIST_NAME_UNION.
79810         [__GNU__]: Undef BSD and FSCALE.
79811         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
79812
79813 2003-08-03  Paul Eggert  <eggert@twinsun.com>
79814
79815         * lib/stdbool_.h (_Bool): Make it signed char, instead of
79816         an enum type, so that it's guaranteed to promote to int.  See:
79817         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
79818
79819 2003-08-03  Karl Berry  <karl@gnu.org>
79820
79821         * config/depcomp: update from automake.
79822
79823 2003-07-31  Paul Eggert  <eggert@twinsun.com>
79824
79825         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
79826         (strerror): Don't assume that a printable int fits in 14 bytes.
79827
79828 2003-07-31  Bruno Haible  <bruno@clisp.org>
79829
79830         * modules/getpass-gnu: New file.
79831         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
79832
79833 2003-07-31  Bruno Haible  <bruno@clisp.org>
79834
79835         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
79836
79837 2003-07-24  Karl Berry  <karl@gnu.org>
79838
79839         * config/missing: update from automake.
79840
79841 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
79842             Bruno Haible  <bruno@clisp.org>
79843
79844         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
79845         * lib/getline.c (getline, getdelim): Likewise.
79846         Remove _GNU_SOURCE define; now it's defined in config.h through
79847         m4/getline.m4.
79848
79849 2003-07-23  Karl Berry  <karl@gnu.org>
79850
79851         * config/config.sub: update from prep.
79852
79853 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79854
79855         * modules/xalloc (Depends-on): Add exitfail.
79856         * modules/xmemcoll: Likewise.
79857
79858 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79859
79860         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
79861         over-parenthesization in macros.
79862
79863         Sync with coreutils.
79864
79865         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
79866         required by C99.
79867
79868         Use `exit_failure' for xalloc and xmemcoll instead of their own
79869         private exit-failure variables.
79870         * lib/xalloc.h (xalloc_exit_failure): Remove.
79871         * lib/xmalloc.c: Likewise.  Include exitfail.h.
79872         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
79873         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
79874         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
79875         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
79876
79877 2003-07-20  Jim Meyering  <jim@meyering.net>
79878
79879         * modules/closeout (Depends-on): Add exitfail.
79880         Suggestion from Bruno Haible.
79881
79882 2003-07-19  Karl Berry  <karl@gnu.org>
79883
79884         * config/config.sub: update from prep.
79885
79886 2003-07-18  Paul Eggert  <eggert@twinsun.com>
79887
79888         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
79889         Remove.
79890         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
79891         to test that it can stand by itself.  Include "exitfail.h".
79892         Clients should set exit_failure instead.
79893         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
79894
79895 2003-07-18  Bruno Haible  <bruno@clisp.org>
79896
79897         * modules/getndelim2: New file.
79898         * modules/getline: Share files with module getndelim2.
79899         * modules/getnline: Depend on getndelim2 instead of sharing files with
79900         it. Add getnline.c to lib_SOURCES.
79901         * MODULES.html.sh (func_all_modules): Add getndelim2.
79902
79903 2003-07-18  Bruno Haible  <bruno@clisp.org>
79904
79905         * m4/getndelim2.m4: New file.
79906         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
79907         invoke gl_PREREQ_GETNDELIM2.
79908         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
79909         gl_PREREQ_GETNDELIM2.
79910         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
79911         gl_GETNDELIM2.
79912
79913 2003-07-18  Bruno Haible  <bruno@clisp.org>
79914
79915         * lib/getndelim2.h: New file.
79916         * lib/getndelim2.c: Make into a module of its own. Include config.h,
79917         getndelim2.h.
79918         (getndelim2): Make non-static. Change return type to ssize_t.
79919         * lib/getline.h: Change argument names.
79920         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
79921         * lib/getnline.c: Include getndelim2.h.
79922
79923 2003-07-18  Andreas Schwab  <schwab@suse.de>
79924
79925         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
79926
79927 2003-07-17  Karl Berry  <karl@gnu.org>
79928
79929         * config/config.sub: update from prep.
79930
79931 2003-07-17  Bruno Haible  <bruno@clisp.org>
79932
79933         * modules/getnline: New file.
79934         * modules/getline: Add lib/getndelim2.c to source file list.
79935         * MODULES.html.sh (func_all_modules): Add getnline.
79936
79937 2003-07-17  Bruno Haible  <bruno@clisp.org>
79938
79939         * m4/getnline.m4: New file.
79940
79941 2003-07-17  Bruno Haible  <bruno@clisp.org>
79942
79943         * m4/Makefile.am.in: Remove file.
79944         * m4/Makefile.am: Remove file.
79945         * m4/Makefile.in: Remove file.
79946
79947 2003-07-17  Bruno Haible  <bruno@clisp.org>
79948
79949         * lib/getnline.h: New file.
79950         * lib/getnline.c: New file.
79951         * lib/getndelim2.c: New file, extracted from getline.c.
79952         (getndelim2): Renamed from getdelim2, with added nmax argument.
79953         * lib/getline.c: Include getndelim2.c.
79954         (getdelim2): Moved out to getndelim2.c.
79955         (getline, getdelim): Update.
79956
79957 2003-07-17  Bruno Haible  <bruno@clisp.org>
79958
79959         * lib/Makefile.am: Remove file.
79960         * lib/Makefile.in: Remove file.
79961
79962 2003-07-17  Bruno Haible  <bruno@clisp.org>
79963
79964         * configure.in: Remove file.
79965         * Makefile.in: Remove file.
79966
79967 2003-07-17  Bruno Haible  <bruno@clisp.org>
79968
79969         * MODULES.html.sh: Put the </BODY> right before </HTML>.
79970
79971 2003-07-16  Karl Berry  <karl@gnu.org>
79972
79973         * config/srclist-update: was running fixlicense twice, which caused
79974                 texinfo.tex to be nullified for some reason.  Simplify,
79975                 $gplsrc is no longer needed as far as I can see?
79976
79977 2003-07-16  Jim Meyering  <jim@meyering.net>
79978
79979         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
79980
79981 2003-07-15  Paul Eggert  <eggert@twinsun.com>
79982
79983         * config/srclist.txt: Get the following files from gettext-runtime/intl
79984         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
79985         ref-del.sin.  From Bruno Haible.
79986         * config/srclist-update (fixfile): Change grep pattern again, since the
79987         previous fix didn't work (there was another trailing $).  Use
79988         '[$]' to escape the $s.
79989
79990 2003-07-15  Karl Berry  <karl@gnu.org>
79991
79992         * lib/vasnprintf.c: update from gettext.
79993
79994 2003-07-15  Karl Berry  <karl@gnu.org>
79995
79996         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
79997         gets expanded when surrounded by '$'.
79998
79999 2003-07-15  Jim Meyering  <jim@meyering.net>
80000
80001         * modules/save-cwd: Don't depend on error.  From Derek Price.
80002
80003 2003-07-15  Jim Meyering  <jim@meyering.net>
80004
80005         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
80006
80007 2003-07-14  Simon Josefsson  <jas@extundo.com>
80008
80009         * modules/mempcpy: New file.
80010         * MODULES.html.sh (func_all_modules): Add mempcpy.
80011
80012 2003-07-14  Simon Josefsson  <jas@extundo.com>
80013
80014         * m4/mempcpy.m4: New file.
80015
80016 2003-07-14  Simon Josefsson  <jas@extundo.com>
80017
80018         * lib/mempcpy.h: New file.
80019         * lib/mempcpy.c: New file.
80020
80021 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80022
80023         * modules/getdate, modules/posixtm: Depend on mktime.
80024
80025 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80026
80027         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
80028         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
80029         unicodeio.c, unicodeio.h, unlocked-io.h:
80030         Switch from LGPL to GPL.
80031
80032 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80033
80034         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
80035         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
80036         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
80037         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
80038         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
80039         updated automatically by ../config/srclist-update.  This changes
80040         their license from LPGL to GPL.
80041
80042 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80043
80044         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
80045         assumed to refer to the root of the most recent stable gettext version.
80046         * config/srclistvars.sh: Add defaults for eggert.
80047         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
80048         Match "This program" as well as "The program".  This is needed
80049         for gettext.
80050
80051 2003-07-14  Jim Meyering  <jim@meyering.net>
80052
80053         Don't emit diagnostics.  Let callers do that.
80054         * lib/save-cwd.c: Don't include "error.h".
80055         (save_cwd): Don't call error.  Ensure that errno is valid
80056         when returning nonzero.
80057
80058         * lib/save-cwd.h (restore_cwd): Update prototype.
80059         * lib/save-cwd.c (restore_cwd): Remove two parameters.
80060         Simplify.  Don't call error upon failure.  Let callers do that.
80061         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
80062         when auditing is enabled.  But don't bother updating the #if.
80063
80064 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
80065
80066         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
80067         it breaks C++ compilation.
80068         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
80069
80070 2003-07-10  Simon Josefsson  <jas@extundo.com>
80071
80072         * modules/strchrnul (Makefile.am): Add strchrnul.h.
80073
80074 2003-07-10  Jim Meyering  <jim@meyering.net>
80075
80076         * m4/clock_time.m4: Remove trailing blank.
80077         * m4/intmax_t.m4: Likewise.
80078
80079 2003-07-10  Jim Meyering  <jim@meyering.net>
80080
80081         * lib/vasnprintf.c: Remove trailing blanks.
80082         Make cpp indentation consistent.
80083
80084 2003-07-09  Paul Eggert  <eggert@twinsun.com>
80085
80086         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
80087         posixver.c, strftime.c, strnlen.c, strverscmp.c:
80088         Switch from LGPL to GPL.
80089
80090 2003-07-09  Paul Eggert  <eggert@twinsun.com>
80091
80092         * config/srclist.txt: Sort sublists.  Add
80093         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
80094         that differ from gnulib for one reason or another; we'd like this list
80095         to be smaller but for now let's document what we have.
80096
80097 2003-07-08  Paul Eggert  <eggert@twinsun.com>
80098
80099         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
80100         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
80101         and sweeter "eval x=$x".
80102         * config/srclist.txt: Get lib/argp* from glibc.
80103
80104 2003-07-07  Paul Eggert  <eggert@twinsun.com>
80105
80106         * lib/mktime.c: Fix some boundary cases and remove need for floating
80107         point.
80108
80109         Issue a compile-time diagnostic if time_t is floating point, or if
80110         two's complement arithmetic is not in effect, or if arithmetic
80111         right shift does not propagate the sign.  These assumptions were
80112         all in the original code but they weren't checked.
80113
80114         (TIME_T_MIDPOINT, verify): New macros.
80115         (__isleap): Remove; it has integer overflow problems.
80116         (leapyear): New function, without those problems.
80117         (ydhms_tm_diff): Remove; splitting into two parts.
80118         (ydhms_diff): New function, containing the arithmetic part of
80119         the old ydhms_tm_diff function.  Issue a compile-time
80120         diagnostic if we are not using C99 integer division.
80121         Avoid casts when possible.
80122         (guess_time_tm): New function, containing the checking part of
80123         the old ydhms_tm_diff function.  Return the new value, rather than
80124         the difference between it and the old.  Accept a new argument T
80125         so that *T specifies the old value.  Check for overflow in the result.
80126
80127         (__mktime_internal): Use a time_t offset, not a long int offset.
80128         This undoes the 2003-06-04 change, which is no longer needed now
80129         that we have better overflow checking.
80130         (localtime_offset): Likewise.
80131
80132         (__mktime_internal): Avoid harmful overflow on hosts where time_t
80133         and long are 64-bit but int is only 32-bit.
80134         (ydhms_diff): Use long int to store year1 and yday1.
80135         Issue a compile-time diagnostic if long int is not wide enough.
80136
80137         (__mktime_internal): Use long int to store adjusted year and yday.
80138         Use plain C rather than preprocessor commands, if that doesn't
80139         affect efficiency.
80140         Check for overflow (and try to repair) after each probe
80141         rather than checking only at the very end.  This avoids some bugs
80142         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
80143         does not equal GMT offset at maximum time).
80144         Use integer to check for overflow rather than floating point; this
80145         is more portable to non-IEEE hosts, and is a tad faster.
80146         When we detect that we are oscillating between two values,
80147         don't check whether tm_isdst has the requested value, since
80148         we already know the answer.  When tm_isdst has the wrong value,
80149         use a different heuristic to find the right one, based on the
80150         extreme values actually observed in practice in tz2003a,
80151         rather than the (overly optimistic) "previous 3 calendar quarters".
80152
80153         (not_equal_tm, print_tm, check_result): Use "const T" rather than
80154         "T const" to accommodate glibc style.
80155         (check_result): Use less-confusing report format.  "long" -> "long int.
80156         (main): Likewise.
80157         Don't loop if the iteration overflows time_t.
80158         Allow a negative step in the iteration.
80159
80160 2003-07-06  Karl Berry  <karl@gnu.org>
80161
80162         * config/depcomp: update from automake.
80163         * config/config.sub: update from prep.
80164
80165 2003-07-03  Karl Berry  <karl@gnu.org>
80166
80167         * config/config.guess: update from prep.
80168
80169 2003-07-01  Paul Eggert  <eggert@twinsun.com>
80170
80171         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
80172         xreadlink.c now includes it unconditionally.
80173
80174 2003-07-01  Paul Eggert  <eggert@twinsun.com>
80175
80176         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
80177         having it depend on HAVE_SYS_TYPES_H.
80178
80179 2003-07-01  Bruno Haible  <bruno@clisp.org>
80180
80181         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
80182         <sys/types.h> should be sufficient.
80183         Reported by Paul Eggert.
80184
80185 2003-06-26  Karl Berry  <karl@gnu.org>
80186
80187         * config/depcomp: update from automake.
80188
80189 2003-06-26  Bruno Haible  <bruno@clisp.org>
80190
80191         * modules/human: Depend on module stdbool.
80192
80193 2003-06-25  Bruno Haible  <bruno@clisp.org>
80194
80195         * modules/readlink: New file.
80196         * modules/xreadlink: Depend on it.
80197         * MODULES.html.sh (func_all_modules): Add readlink.
80198
80199 2003-06-25  Bruno Haible  <bruno@clisp.org>
80200
80201         * m4/readlink.m4: New file.
80202
80203 2003-06-25  Bruno Haible  <bruno@clisp.org>
80204
80205         * lib/readlink.c: New file.
80206
80207 2003-06-22  Karl Berry  <karl@gnu.org>
80208
80209         * config/srclist.txt: update mkinstalldirs from automake.
80210         * config/mkinstalldirs: update.
80211
80212 2003-06-22  Bruno Haible  <bruno@clisp.org>
80213
80214         Portability to mingw32.
80215         * m4/ssize_t.m4: New file, from GNU gettext.
80216         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
80217         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
80218
80219 2003-06-22  Bruno Haible  <bruno@clisp.org>
80220
80221         * modules/safe-read: Add m4/ssize_t.m4.
80222         * modules/xreadlink: Add m4/ssize_t.m4.
80223
80224 2003-06-20  Bruno Haible  <bruno@clisp.org>
80225
80226         Assume C89, so PARAMS isn't needed.
80227         * lib/unicodeio.h (PARAMS): Remove.
80228         * lib/unicodeio.c: Don't use PARAMS.
80229
80230 2003-06-18  Karl Berry  <karl@gnu.org>
80231
80232         * config/config.{guess,sub}: update from prep.
80233
80234 2003-06-18  Jim Meyering  <jim@meyering.net>
80235
80236         Merge changes from coreutils.
80237         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
80238         Remove explicit declarations of xmalloc and realloc.
80239         Include xalloc.h.
80240         (read_utmp): Remove anachronistic cast of xmalloc.
80241
80242 2003-06-17  Paul Eggert  <eggert@twinsun.com>
80243
80244         Assume C89, so PARAMS isn't needed.
80245         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
80246         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
80247         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
80248         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
80249         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
80250         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
80251         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
80252         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
80253         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
80254         lib/xstrtod.h, lib/xstrtol.h: Likewise.
80255         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
80256         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
80257         no longer needed. Anyway, config.h should always be included before any
80258         other file.
80259
80260 2003-06-11  Simon Josefsson  <jas@extundo.com>
80261
80262         * modules/sysexits: New file.
80263         * MODULES.html.sh (func_all_modules): Add sysexits.
80264
80265 2003-06-11  Simon Josefsson  <jas@extundo.com>
80266
80267         * lib/sysexit_.h: New file.
80268
80269 2003-06-11  Derek Price  <derek@ximbiot.com>
80270
80271         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
80272         necessary.
80273
80274 2003-06-11  Bruno Haible  <bruno@clisp.org>
80275
80276         * m4/sysexits.m4: New file.
80277
80278 2003-06-10  Simon Josefsson  <jas@extundo.com>
80279
80280         * lib/argp.h: New file, from glibc.
80281         * lib/argp-ba.c: New file, from glibc.
80282         * lib/argp-eexst.c: New file, from glibc.
80283         * lib/argp-fmtstream.c: New file, from glibc.
80284         * lib/argp-fmtstream.h: New file, from glibc.
80285         * lib/argp-fs-xinl.c: New file, from glibc.
80286         * lib/argp-help.c: New file, from glibc.
80287         * lib/argp-namefrob.h: New file, from glibc.
80288         * lib/argp-parse.c: New file, from glibc.
80289         * lib/argp-pv.c: New file, from glibc.
80290         * lib/argp-pvh.c: New file, from glibc.
80291         * lib/argp-xinl.c: New file, from glibc.
80292
80293 2003-06-10  Simon Josefsson  <jas@extundo.com>
80294
80295         * modules/strchrnul: New file.
80296
80297 2003-06-10  Simon Josefsson  <jas@extundo.com>
80298
80299         * modules/argp: New file.
80300
80301 2003-06-10  Simon Josefsson  <jas@extundo.com>
80302
80303         * m4/strchrnul.m4: New file.
80304
80305 2003-06-10  Simon Josefsson  <jas@extundo.com>
80306
80307         * lib/strchrnul.h: New file.
80308         * lib/strchrnul.c: New file.
80309
80310 2003-06-10  Bruno Haible  <bruno@clisp.org>
80311
80312         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
80313
80314 2003-06-07  Karl Berry  <karl@gnu.org>
80315
80316         * config/config.{guess,sub}: update from prep.
80317
80318 2003-06-07  Jim Meyering  <jim@meyering.net>
80319
80320         * modules/strtod: Use $(...) notation, not @...@ for
80321         AC_REPLACE'd variables.
80322         * modules/localcharset: Likewise.
80323
80324 2003-06-07  Jim Meyering  <jim@meyering.net>
80325
80326         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
80327         in place of my name in the copyright comment.
80328         Remove definition and uses of __P.
80329
80330         From coreutils.
80331         * lib/stat.c: Don't declare xmalloc explicitly.
80332         Instead, include "xalloc.h".
80333         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
80334         xrealloc, and xcalloc return values.
80335         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
80336         Improve comment.
80337         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
80338
80339 2003-06-07  Bruno Haible  <bruno@clisp.org>
80340
80341         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
80342         avoid AC_CONFIG_LINKS.
80343         * modules/fnmatch (Makefile.am): Use explicit creation rule for
80344         fnmatch.h, to avoid AC_CONFIG_LINKS.
80345         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
80346
80347 2003-06-07  Bruno Haible  <bruno@clisp.org>
80348
80349         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
80350         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
80351         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80352         directory.
80353         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
80354         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80355         directory.
80356
80357 2003-06-06  Jim Meyering  <jim@meyering.net>
80358
80359         Merge from coreutils.
80360         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
80361         Consolidate declarations and initializations of *_base* locals.
80362
80363         Merge from coreutils.
80364         This avoids a core dump on systems without GNU putenv,
80365         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
80366         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
80367         (unsetenv): New static function, from GNU libc.
80368         (rpl_putenv): Use it.
80369
80370         * lib/modechange.c: Remove trailing blanks.
80371
80372         Merge from coreutils.
80373         * lib/fsusage.c: Remove declaration of statfs.
80374         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
80375
80376         * lib/posixtm.c: Include <stdbool.h> unconditionally.
80377
80378 2003-06-06  Jim Meyering  <jim@meyering.net>
80379
80380         * lib/stdbool_.h: Renamed from stdbool.h.in.
80381
80382 2003-06-06  Jim Meyering  <jim@meyering.net>
80383             Bruno Haible  <bruno@clisp.org>
80384
80385         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
80386         Adjust Makefile.am snippet not to redirect directly to target.
80387         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
80388
80389 2003-06-05  Paul Eggert  <eggert@twinsun.com>
80390
80391         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
80392         mismatch, look in future quarters as well as past.  This fixes a
80393         bug when processing fall-backwards gaps immediately after a long
80394         period of daylight-saving time.
80395
80396         * lib/mktime.c: Assume freestanding C89 or better.
80397         (HAVE_LIMITS_H): Remove.  Assume it's 1.
80398         (__P): Remove; not used.
80399         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
80400         (mktime, not_equal_tm, print_tm, check_result,
80401         main): Use prototypes.  Use const * where appropriate.
80402         (main): Fix typo in testing code that uncovered by above changes.
80403         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
80404
80405 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80406
80407         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
80408         locale.h, localeconv.  This merges changes from coreutils.
80409
80410         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
80411         It can be removed after the next Autoconf is released.
80412         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
80413         needed.
80414
80415 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80416
80417         * lib/mktime.c: Fix Debian bug 177940
80418         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
80419         (localtime_offset): Now long int, not time_t, because we want it
80420         to be guaranteed to be signed.  All uses changed.
80421         (__mktime_internal): If overflow would occur when adding offset,
80422         don't add it.
80423
80424         Merge 'human' changes from coreutils.  Rewrite to support
80425         locale-specific notations like thousands separators.
80426         * lib/human.c: Simplify authorship notice.
80427         Include human.h immediately after config.h.
80428         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
80429         <limits.h>: Do not include, since human.h does.
80430         (SIZE_MAX, UINTMAX_MAX): New macros.
80431         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
80432         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
80433         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
80434         (power_letter): Renamed from suffixes.
80435         (generate_suffix_backwards): Remove.
80436         (adjust_value): Now takes int style (because of human.h changes)
80437         and long double value (for greater precision on some platforms).
80438         (group_number): New function.
80439         (human_readable): Use it.  Use integer options, not enum.
80440         Put the options before the sizes in the arg list.
80441         Support all the new options.
80442         The old human_readable function has been removed;
80443         use inttostr.h instead.
80444         (human_readable, default_block_size, humblock):
80445         Use uintmax_t, not int, for block sizes.
80446         (human_readable_inexact, block_size_types): Remove.
80447         (block_size_opts): New constant.
80448         (human_options): Renamed from human_block_size, with new signature
80449         that allows block sizes up to UINTMAX_MAX.  All callers changed.
80450         * lib/human.h: Add copyright and authorship notice.
80451         Include <limits.h> and <stdbool.h> unconditionally.
80452         (PARAMS): Remove.  All uses removed.
80453         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
80454         (enum human_inexact_style): Remove tag; now a nameless enum.
80455         (human_floor, human_ceiling, human_round_to_even): Now have
80456         values 2, 0, 1 rather than -1, 1, 0.
80457         (human_group_digits, human_suppress_point_zero, human_autoscale,
80458         human_base_1024, human_SI, human_B): New constants.
80459         (human_readable_inexact, human_block_size): Remove.
80460         (human_readable): Size args are now uintmax_t, not int.
80461         (human_options): New decl.
80462
80463         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
80464         unnecessary now that we assume C89 or better.  This change
80465         imported from coreutils.
80466
80467         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80468         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
80469         in the 2003-05-30 sync from glibc.
80470
80471         .h files should stand alone, but we shouldn't include <sys/types.h>
80472         if we can get away with just <stddef.h>.
80473
80474         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
80475         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
80476         rather than <sys/types.h>, as we merely need size_t.
80477         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
80478         to get size_t.
80479         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
80480         Include <stdio.h>, to get FILE.
80481         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
80482         memcasecmp.h has included <stddef.h> and all we need is size_t.
80483         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
80484         our interface, instead of including <sys/types.h>
80485
80486 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80487
80488         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
80489         now, as glibc mktime is buggy on non-glibc systems.
80490
80491 2003-06-03  Karl Berry  <karl@gnu.org>
80492
80493         * config/config.sub: update from prep.
80494
80495 2003-06-02  Paul Eggert  <eggert@twinsun.com>
80496
80497         [from coreutils]
80498         Fix some minor time-related bugs with POSIX time arguments.
80499         Some valid time stamps were being rejected (notably -1, and
80500         time stamps before 1900 on 64-bit hosts).  And some invalid
80501         time stamps were being accepted, e.g. September 31.
80502
80503         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
80504         that we can return (time_t) -1 successfully.
80505         * lib/posixtm.c: Likewise.
80506         [HAVE_STDBOOL_H]: Include <stdbool.h>.
80507         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
80508         (t): Remove static var.
80509         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
80510         of static var.  All uses changed.
80511         (year): Do not reject years before 1900; they can occur with
80512         64-bit time_t.
80513         (posix_time_parse): Do not check for out-of-range components;
80514         that is now the caller's responsibility, since our checks were
80515         only approximations.
80516         (posixtime): Use mktime to check for out-of-range components,
80517         since it knows them exactly.
80518         If mktime returns (time_t) -1, check whether an error actually occurred
80519         by invoking localtime on -1.
80520         (main) [TEST_POSIXTIME]: Check for input data errors, and report
80521         posixtime failures better.
80522         Improve the test data (in comments only).
80523
80524 2003-06-02  Karl Berry  <karl@gnu.org>
80525
80526         * config/mkinstalldirs (version): new variable.
80527         (--version): new option.
80528         (usage): improve message.
80529
80530 2003-05-30  Karl Berry  <karl@gnu.org>
80531
80532         * lib/mktime.c: update from libc.
80533
80534 2003-05-30  Bruno Haible  <bruno@clisp.org>
80535
80536         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
80537         * config/config.rpath: Upgrade to gettext-0.12.1.
80538
80539 2003-05-30  Bruno Haible  <bruno@clisp.org>
80540
80541         * m4/gettext.m4: Upgrade to gettext-0.12.1.
80542         * m4/nls.m4: New file, from gettext-0.12.1.
80543         * m4/po.m4: New file, from gettext-0.12.1.
80544         * m4/progtest.m4: Upgrade to gettext-0.12.1.
80545
80546 2003-05-30  Bruno Haible  <bruno@clisp.org>
80547
80548         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
80549         * lib/localcharset.h: Likewise.
80550         * lib/localcharset.c: Likewise.
80551
80552 2003-05-29  Karl Berry  <karl@gnu.org>
80553
80554         * config/config.rpath: update from gettext.
80555
80556 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80557
80558         Assume the headers required for C89 freestanding compilers.
80559         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
80560         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
80561         * m4/human.m4 (gl_HUMAN): Likewise.
80562         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
80563         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
80564         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80565         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
80566         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80567         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
80568
80569 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80570
80571         Assume the headers required for C89 freestanding compilers.
80572         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
80573         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
80574         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
80575         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
80576         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
80577         define, since <limits.h> is guaranteed to do that.
80578         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
80579         * lib/exclude.c: Include <stdbool.h> unconditionally.
80580         * lib/tempname.c: Include <stddef.h> unconditionally.
80581         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
80582         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
80583         <stddef.h> does that.
80584         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
80585         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
80586         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
80587         needed.
80588         * lib/xstrtol.c: Likewise.
80589         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
80590         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
80591
80592         * lib/addext.c (addext): Use assignment rather than cast, to avoid
80593         warnings on some platforms.
80594
80595         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80596         arbitrarily.
80597
80598 2003-05-26  Jim Meyering  <jim@meyering.net>
80599
80600         Merge in a change from coreutils:
80601         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
80602         that is guaranteed to be `no'.  Use `no_such_member' to indicate
80603         that condition, rather than `-1' which is slightly misleading.
80604         Change the name of the cache variable to have the gl_ prefix.
80605         Prompted by a patch from Richard Dawe for DJGPP.
80606
80607 2003-05-24  Karl Berry  <karl@gnu.org>
80608
80609         * config/config.guess: update from prep.
80610
80611 2003-05-22  Karl Berry  <karl@gnu.org>
80612
80613         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
80614
80615 2003-05-20  Karl Berry  <karl@gnu.org>
80616
80617         * config/config.guess: update from prep.
80618
80619 2003-05-18  Karl Berry  <karl@gnu.org>
80620
80621         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
80622         might actually be set by the user.
80623
80624         * config/depcomp, install-sh, mdate-sh: update from automake.
80625
80626 2003-05-17  Bruno Haible  <bruno@clisp.org>
80627
80628         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
80629         invalid expansion for AC_EGREP_CPP.
80630         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
80631         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
80632         Suggested by Akim Demaille <akim@epita.fr> in
80633         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
80634
80635 2003-05-12  Jim Meyering  <jim@meyering.net>
80636
80637         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
80638         the space-padded-by-default conversion specifiers, %e, %k, %l.
80639
80640 2003-05-12  Bruno Haible  <bruno@clisp.org>
80641
80642         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
80643         the string is longer than 4 KB.
80644
80645 2003-05-11  Karl Berry  <karl@gnu.org>
80646
80647         * config/config.{guess,sub}: update from prep.
80648
80649 2003-05-09  Bruno Haible  <bruno@clisp.org>
80650
80651         * modules/error: Add m4/strerror_r.m4 to file list.
80652
80653 2003-05-03  Bruno Haible  <bruno@clisp.org>
80654
80655         Upgrade to Unicode-4.0.
80656         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
80657         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
80658         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
80659         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
80660         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
80661         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
80662         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
80663         Change width of U+E0100..U+E01EF from 1 to 0.
80664
80665 2003-04-25  Jim Meyering  <jim@meyering.net>
80666
80667         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
80668         of type size_t, not int.
80669
80670 2003-04-25  Bruno Haible  <bruno@clisp.org>
80671
80672         * lib/copy-file.c: Include <stddef.h>, for size_t.
80673
80674 2003-04-21  Paul Eggert  <eggert@twinsun.com>
80675
80676         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
80677         code which expansion is under static control.  Patch imported from
80678         Akim Demaille's patch to Bison; see
80679         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
80680
80681 2003-04-14  Bruno Haible  <bruno@clisp.org>
80682
80683         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
80684
80685 2003-04-11  Jim Meyering  <jim@meyering.net>
80686
80687         Merge changes from Coreutils.
80688
80689         2003-03-22  Jim Meyering  <jim@meyering.net>
80690
80691         * lib/strftime.c (widen): Cast alloca return value to proper type.
80692
80693         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
80694
80695         From GNU libc.
80696         * lib/strftime.c (my_strftime): Handle very large width
80697         specifications for numeric values correctly.  Improve checks for
80698         overflow.
80699
80700         2003-01-19  Jim Meyering  <jim@meyering.net>
80701
80702         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
80703         definitions.
80704         (nl_get_alt_digit) [! defined my_strftime]: Define.
80705         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
80706         _nl_get_alt_digit and _nl_get_walt_digit.
80707
80708         * lib/strftime.c (my_strftime): Merge in locale-related changes from
80709         libc. These changes have no effect outside of _LIBC.
80710
80711 2003-04-10  Bruno Haible  <bruno@clisp.org>
80712
80713         * modules/findprog: New file.
80714         * MODULES.html.sh (func_all_modules): Add it.
80715
80716 2003-04-10  Bruno Haible  <bruno@clisp.org>
80717
80718         * m4/findprog.m4: New file.
80719         * m4/eaccess.m4: New file.
80720
80721 2003-04-10  Bruno Haible  <bruno@clisp.org>
80722
80723         * lib/findprog.h: New file, from GNU gettext.
80724         * lib/findprog.c: New file, from GNU gettext.
80725
80726 2003-04-05  Jim Meyering  <jim@meyering.net>
80727
80728         Merge changes from Coreutils.
80729
80730         * lib/exclude.h (PARAMS): Remove definition and uses.
80731         * lib/exclude.c: Remove uses of `PARAMS'.
80732
80733         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
80734         Add test-cases for DOS filenames. Declare program_name.
80735         (main): Set up program_name.  Patch by Rich Dawe.
80736
80737         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
80738         error from mntctl.
80739         Use mntctl's return value to drive the entry-processing loop, since
80740         we can't rely on the value of the vmt_length member in the last
80741         entry.  On some systems doing so could result in exhausting
80742         virtual memory.  Based in part on a patch from Mike Jetzer.
80743
80744 2003-04-04  Bruno Haible  <bruno@clisp.org>
80745
80746         * modules/linebreak: New file.
80747         * MODULES.html.sh (func_all_modules): Add it.
80748
80749 2003-04-04  Bruno Haible  <bruno@clisp.org>
80750
80751         * m4/linebreak.m4: New file.
80752
80753 2003-04-04  Bruno Haible  <bruno@clisp.org>
80754
80755         * lib/linebreak.h: New file, from GNU gettext.
80756         * lib/linebreak.c: New file, from GNU gettext with slight
80757         modifications.
80758         * lib/lbrkprop.h: New file, from GNU gettext.
80759
80760 2003-04-03  Bruno Haible  <bruno@clisp.org>
80761
80762         * modules/utf8-ucs4: New file.
80763         * modules/utf16-ucs4: New file.
80764         * modules/ucs4-utf8: New file.
80765         * modules/ucs4-utf16: New file.
80766         * MODULES.html.sh (func_all_modules): Add them.
80767
80768 2003-04-03  Bruno Haible  <bruno@clisp.org>
80769
80770         * m4/utf-ucs4.m4: New file.
80771         * m4/ucs4-utf.m4: New file.
80772
80773 2003-04-03  Bruno Haible  <bruno@clisp.org>
80774
80775         * lib/utf8-ucs4.h: New file, from GNU gettext.
80776         * lib/utf16-ucs4.h: New file, from GNU gettext.
80777         * lib/ucs4-utf8.h: New file, from GNU gettext.
80778         * lib/ucs4-utf16.h: New file, from GNU gettext.
80779
80780 2003-04-02  Bruno Haible  <bruno@clisp.org>
80781
80782         * modules/binary-io: New file.
80783         * MODULES.html.sh (func_all_modules): Add it.
80784
80785 2003-04-02  Bruno Haible  <bruno@clisp.org>
80786
80787         * lib/binary-io.h: New file, from GNU gettext.
80788
80789 2003-04-01  Bruno Haible  <bruno@clisp.org>
80790
80791         * modules/pathname: New file.
80792         * MODULES.html.sh (func_all_modules): Add it.
80793
80794 2003-04-01  Bruno Haible  <bruno@clisp.org>
80795
80796         * lib/pathname.h: New file, from GNU gettext.
80797         * lib/concatpath.c: New file, from GNU gettext.
80798
80799 2003-03-30  Bruno Haible  <bruno@clisp.org>
80800
80801         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
80802
80803 2003-03-30  Bruno Haible  <bruno@clisp.org>
80804
80805         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
80806         function chown() doesn't exist.
80807
80808 2003-03-28  Bruno Haible  <bruno@clisp.org>
80809
80810         * modules/copy-file: New file.
80811         * MODULES.html.sh (func_all_modules): Add it.
80812
80813 2003-03-28  Bruno Haible  <bruno@clisp.org>
80814
80815         * m4/copy-file.m4: New file.
80816
80817 2003-03-28  Bruno Haible  <bruno@clisp.org>
80818
80819         * lib/copy-file.h: New file, from GNU gettext.
80820         * lib/copy-file.c: New file, from GNU gettext.
80821
80822 2003-03-18  Jim Meyering  <jim@meyering.net>
80823
80824         * lib/quote.c (quote_n): Fix typo in comment.
80825
80826 2003-03-18  Bruno Haible  <bruno@clisp.org>
80827
80828         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
80829         checking.
80830         * m4/onceonly_2_57.m4: Likewise.
80831
80832 2003-03-17  Bruno Haible  <bruno@clisp.org>
80833
80834         * m4/onceonly.m4: Require autoconf 2.54 or newer.
80835         (m4_quote): Remove macro.
80836         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
80837
80838 2003-03-14  Jim Meyering  <jim@meyering.net>
80839
80840         Merge changes from Coreutils.
80841         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
80842         to be const, in order to avoid warnings.
80843         (obstack_room): Likewise.
80844         (obstack_empty_p): Likewise.
80845
80846 2003-03-14  Bruno Haible  <bruno@clisp.org>
80847
80848         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
80849         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
80850
80851 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80852
80853         Merge changes from Bison.
80854         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
80855         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
80856         when compiling Bison 1.875's `bitset bset = obstack_alloc
80857         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
80858         * lib/hash.c: Include <stdbool.h> unconditionally.
80859
80860 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80861
80862         * m4/onceonly.m4 (m4_quote): New macro.
80863         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
80864         Quote AC_FOREACH variable-expansions properly.
80865
80866 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80867
80868         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
80869
80870 2003-03-09  Paul Eggert  <eggert@twinsun.com>
80871
80872         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
80873         Reported by Bruce Becker; see:
80874         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
80875
80876 2003-03-03  Paul Eggert  <eggert@twinsun.com>
80877             Bruno Haible  <bruno@clisp.org>
80878
80879         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
80880         Reported by John Hughes, see
80881         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
80882
80883 2003-02-20  Bruno Haible  <bruno@clisp.org>
80884
80885         * MODULES.html.sh (func_all_modules): Add poll.
80886
80887 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80888
80889         * modules/poll: New file.
80890
80891 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80892
80893         * lib/poll_.h: New file.
80894         * lib/poll.c: New file.
80895
80896 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80897
80898         * m4/poll.m4: New file.
80899
80900 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80901
80902         * modules/mathl: New file.
80903
80904 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80905
80906         * lib/mathl.h: New file.
80907         * lib/acosl.c: New file.
80908         * lib/asinl.c: New file.
80909         * lib/atanl.c: New file.
80910         * lib/ceill.c: New file.
80911         * lib/cosl.c: New file.
80912         * lib/expl.c: New file.
80913         * lib/floorl.c: New file.
80914         * lib/frexpl.c: New file.
80915         * lib/ldexpl.c: New file.
80916         * lib/logl.c: New file.
80917         * lib/sincosl.c: New file.
80918         * lib/sinl.c: New file.
80919         * lib/sqrtl.c: New file.
80920         * lib/tanl.c: New file.
80921         * lib/trigl.c: New file.
80922         * lib/trigl.h: New file.
80923
80924 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80925
80926         * m4/mathl.m4: New file.
80927
80928 2003-02-18  Bruno Haible  <bruno@clisp.org>
80929
80930         * MODULES.html.sh (func_all_modules): Add mathl.
80931
80932 2003-02-17  Bruno Haible  <bruno@clisp.org>
80933
80934         * modules/mkdtemp: New module.
80935         * MODULES.html.sh (func_all_modules): Add it.
80936
80937 2003-02-17  Bruno Haible  <bruno@clisp.org>
80938
80939         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
80940
80941 2003-02-17  Bruno Haible  <bruno@clisp.org>
80942
80943         * lib/mkdtemp.h: New file, from GNU gettext.
80944         * lib/mkdtemp.c: New file, from GNU gettext.
80945
80946 2003-02-02  Jim Meyering  <jim@meyering.net>
80947
80948         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
80949         e.g. glibc-2.2.93.
80950
80951 2003-01-31  Bruno Haible  <bruno@clisp.org>
80952
80953         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
80954         'rpl_rename'.
80955         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
80956         'rpl_strnlen'.
80957         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
80958         'rpl_strtod'.
80959         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
80960         'rpl_utime'.
80961
80962 2003-01-31  Bruno Haible  <bruno@clisp.org>
80963
80964         * lib/rename.c: #undef rename before defining rpl_rename.
80965         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
80966
80967 2003-01-30  Bruno Haible  <bruno@clisp.org>
80968
80969         * modules/vasnprintf, modules/vasprintf: New modules.
80970         * MODULES.html.sh (func_all_modules): Add them.
80971
80972 2003-01-30  Bruno Haible  <bruno@clisp.org>
80973
80974         * m4/signed.m4: New file, from GNU gettext.
80975         * m4/longdouble.m4: New file, from GNU gettext.
80976         * m4/wchar_t.m4: New file, from GNU gettext.
80977         * m4/wint_t.m4: New file, from GNU gettext.
80978         * m4/vasnprintf.m4: New file.
80979         * m4/vasprintf.m4: New file.
80980
80981 2003-01-30  Bruno Haible  <bruno@clisp.org>
80982
80983         * lib/printf-args.h: New file, from GNU gettext.
80984         * lib/printf-args.c: New file, from GNU gettext.
80985         * lib/printf-parse.h: New file, from GNU gettext.
80986         * lib/printf-parse.c: New file, from GNU gettext.
80987         * lib/vasnprintf.h: New file, from GNU gettext.
80988         * lib/vasnprintf.c: New file, from GNU gettext.
80989         * lib/asnprintf.c: New file, from GNU gettext.
80990         * lib/vasprintf.h: New file, from GNU gettext with modifications.
80991         * lib/vasprintf.c: New file, from GNU gettext.
80992         * lib/asprintf.c: New file, from GNU gettext.
80993
80994 2003-01-29  Bruno Haible  <bruno@clisp.org>
80995
80996         * modules/stpncpy: New module.
80997         * MODULES.html.sh (func_all_modules): Add it.
80998
80999 2003-01-29  Bruno Haible  <bruno@clisp.org>
81000
81001         * m4/stpncpy.m4: New file.
81002
81003 2003-01-29  Bruno Haible  <bruno@clisp.org>
81004
81005         * lib/stpncpy.h: New file, from GNU gettext with modifications.
81006         * lib/stpncpy.c: New file, from GNU gettext with modifications.
81007
81008 2003-01-28  Bruno Haible  <bruno@clisp.org>
81009
81010         * modules/c-ctype: New module.
81011         * MODULES.html.sh (func_all_modules): Add it.
81012
81013 2003-01-28  Bruno Haible  <bruno@clisp.org>
81014
81015         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
81016         Paul Eggert.
81017         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
81018         Paul Eggert.
81019
81020 2003-01-27  Bruno Haible  <bruno@clisp.org>
81021
81022         * modules/xsetenv: New module.
81023         * MODULES.html.sh (func_all_modules): Add it.
81024
81025 2003-01-27  Bruno Haible  <bruno@clisp.org>
81026
81027         * lib/xsetenv.h: New file, from GNU gettext.
81028         * lib/xsetenv.c: New file, from GNU gettext.
81029
81030 2003-01-23  Jim Meyering  <jim@meyering.net>
81031
81032         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
81033         from working on systems without dirfd (at least Irix and OSF1/Tru64).
81034
81035 2003-01-23  Bruno Haible  <bruno@clisp.org>
81036
81037         * modules/minmax: New module.
81038         * MODULES.html.sh (func_all_modules): Add it.
81039
81040 2003-01-23  Bruno Haible  <bruno@clisp.org>
81041
81042         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
81043         Eggert.
81044
81045 2003-01-22  Bruno Haible  <bruno@clisp.org>
81046
81047         * modules/exit: New module.
81048         * MODULES.html.sh (func_all_modules): Add it.
81049
81050 2003-01-22  Bruno Haible  <bruno@clisp.org>
81051
81052         * lib/exit.h: New file, from GNU gettext.
81053
81054 2003-01-19  Bruno Haible  <bruno@clisp.org>
81055
81056         * gnulib-tool: Recognize option --extract-maintainer.
81057         (func_get_maintainer): New function.
81058         * modules/*: Add Maintainer entry.
81059
81060 2003-01-16  Jim Meyering  <jim@meyering.net>
81061
81062         * m4/regex.m4: The `regex' struct is both input and output.
81063         Initialize it before each use.  Patch by Tim Waugh.
81064
81065 2003-01-16  Bruno Haible  <bruno@clisp.org>
81066
81067         * MODULES.html.sh: Add a table of contents. Add the module name as
81068         leftmost column. Add hyperlinks.
81069
81070 2003-01-15  Bruno Haible  <bruno@clisp.org>
81071
81072         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
81073
81074 2003-01-15  Bruno Haible  <bruno@clisp.org>
81075
81076         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
81077         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
81078         suffix.
81079
81080 2003-01-15  Bruno Haible  <bruno@clisp.org>
81081
81082         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
81083
81084 2003-01-15  Bruno Haible  <bruno@clisp.org>
81085
81086         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
81087         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
81088
81089 2003-01-14  Jim Meyering  <jim@meyering.net>
81090
81091         * lib/same.c (same_name): Tweak a comment.
81092
81093 2003-01-14  Bruno Haible  <bruno@clisp.org>
81094
81095         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
81096         when a string comparison is sufficient.
81097
81098 2003-01-14  Bruno Haible  <bruno@clisp.org>
81099
81100         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
81101         'unsigned int'.
81102
81103 2003-01-14  Bruno Haible  <bruno@clisp.org>
81104
81105         * lib/hash-pjw.c: Add comment about low quality of this function.
81106
81107 2003-01-13  Bruno Haible  <bruno@clisp.org>
81108
81109         * modules/stpcpy: Distribute lib/stpcpy.h.
81110         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
81111
81112 2003-01-13  Bruno Haible  <bruno@clisp.org>
81113
81114         * modules/*: Add a description.
81115         * modules/strpbrk: Fix Makefile.am snippet.
81116         * modules/strtoimax: Fix dependencies.
81117         * modules/strtoumax: Likewise.
81118
81119 2003-01-13  Bruno Haible  <bruno@clisp.org>
81120
81121         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
81122         * modules/alloca (Makefile.am): All object files depend on alloca.h.
81123         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
81124
81125 2003-01-13  Bruno Haible  <bruno@clisp.org>
81126
81127         * gnulib-tool (func_create_testdir): Store config/* files in the main
81128         directory.
81129         * config.rpath: Move to ...
81130         * config/config.rpath: ... here.
81131         * modules/gettext: Contains config/config.rpath, not config.rpath.
81132         * modules/iconv: Likewise.
81133
81134 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81135
81136         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81137         to avoid collisions with libcurses and libreadline.
81138
81139         * m4/getstr.m4: Remove.
81140         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
81141
81142 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81143
81144         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81145         to avoid collisions with libcurses and libreadline.
81146
81147         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
81148         * lib/getstr.h, getstr.c: Remove.
81149         * lib/getline.c: Include "getline.h", to check interface.
81150         Move body of old getstr.c here: this defines MIN_CHUNK and
81151         declares getdelim2, which is renamed from getstr.
81152         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
81153
81154         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
81155         All uses changed.
81156         * lib/linebuffer.h: Likewise.
81157         (readline): Remove backward-compatibility macro.
81158
81159 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81160
81161         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81162         to avoid collisions with libcurses and libreadline.
81163         * getstr: Remove.
81164         * MODULES.html.sh: Remove getstr.
81165         * modules/getline: Depend on unlocked-io, not getstr.
81166
81167 2003-01-12  Jim Meyering  <jim@meyering.net>
81168
81169         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
81170
81171 2003-01-10  Bruno Haible  <bruno@clisp.org>
81172
81173         * modules/alloca: Change Makefile.am requirements. Simplify Include
81174         requirements. Add lib/alloca_.h to file list.
81175
81176 2003-01-10  Bruno Haible  <bruno@clisp.org>
81177
81178         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
81179
81180 2003-01-10  Bruno Haible  <bruno@clisp.org>
81181
81182         * lib/alloca_.h: New file.
81183         * lib/getdate.y: Unconditionally include alloca.h.
81184         * lib/makepath.c: Likewise.
81185         * lib/setenv.c: Likewise.
81186         * lib/userspec.c: Likewise.
81187
81188 2003-01-09  Karl Berry  <karl@gnu.org>
81189
81190         * MODULES.html.sh: include `dirname $0` in PATH, to find
81191         gnulib-tool.
81192
81193 2003-01-09  Bruno Haible  <bruno@clisp.org>
81194
81195         * modules/stdbool: Change configure.ac, Makefile.am requirements.
81196         Simplify Include requirements. Add lib/stdbool.h.in to file list.
81197
81198 2003-01-09  Bruno Haible  <bruno@clisp.org>
81199
81200         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
81201
81202 2003-01-09  Bruno Haible  <bruno@clisp.org>
81203
81204         * lib/stdbool.h.in: New file.
81205
81206 2003-01-09  Bruno Haible  <bruno@clisp.org>
81207
81208         * gnulib-tool (func_all_modules): Ignore files ending in ~.
81209         * MODULES.html.sh: Likewise.
81210
81211 2003-01-08  Jim Meyering  <jim@meyering.net>
81212
81213         * lib/full-write.c: Undefine and define-away `const' after inclusion
81214         of errno.h, not before.  Suggestion from Bruno Haible.
81215
81216 2003-01-08  Bruno Haible  <bruno@clisp.org>
81217
81218         * modules/full-read: Depend on full-write.
81219
81220 2003-01-08  Bruno Haible  <bruno@clisp.org>
81221
81222         * lib/safe-read.c: Include specification header first, to ensure its
81223         selfcontainedness.
81224         * lib/full-write.c: Likewise.
81225
81226 2003-01-07  Jim Meyering  <jim@meyering.net>
81227
81228         * lib/full-write.c: Rework so that it may serve to define full_read,
81229         too.
81230         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
81231
81232 2003-01-07  Bruno Haible  <bruno@clisp.org>
81233
81234         * lib/strtoimax.c: Include <stdint.h> as an alternative to
81235         <inttypes.h>.
81236         * lib/xstrtol.h: Likewise.
81237         * lib/xstrtoimax.c: Likewise.
81238         * lib/xstrtoumax.c: Likewise.
81239         * lib/human.h: Likewise.
81240
81241         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
81242         on systems that have <inttypes.h> but not <stdint.h>.
81243
81244 2003-01-07  Bruno Haible  <bruno@clisp.org>
81245
81246         * MODULES.html.sh: Add copyright notice.
81247         (missed_files): Omit CVS directory entries.
81248         (func_module): Make it work with sed-3.02.
81249         * MODULES.txt: Remove file.
81250
81251 2003-01-06  Jim Meyering  <jim@meyering.net>
81252
81253         * lib/version-etc.c: Update year in translatable copyright string.
81254
81255 2003-01-03  Karl Berry  <karl@gnu.org>
81256
81257         * config/config.{guess,sub}: update from prep.
81258
81259 2003-01-02  Karl Berry  <karl@gnu.org>
81260
81261         * doc/COPYING.DOC: belatedly updated to 1.2.
81262
81263 2003-01-01  Karl Berry  <karl@gnu.org>
81264
81265         * gnulib-tool (func_verify_module): report module name $module in
81266         error message, not $1.
81267         * gnulib-tool (create-testdir): don't complain if destdir couldn't
81268         be created, only if it doesn't exist.
81269         * gnulib-tool (last_checkin_date): don't expand the $Date here.
81270
81271 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81272
81273         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
81274
81275 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81276
81277         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
81278         memcmp if strcoll doesn't work.
81279
81280 2002-12-31  Bruno Haible  <bruno@clisp.org>
81281
81282         * lib/utime.c (utime_null): No need to call ftruncate if the file was
81283         nonempty.
81284
81285 2002-12-31  Bruno Haible  <bruno@clisp.org>
81286
81287         * lib/memcoll.c (STRCOLL): New macro.
81288         (memcoll): Use it.
81289
81290 2002-12-31  Bruno Haible  <bruno@clisp.org>
81291
81292         * lib/localcharset.h: New file.
81293         * lib/localcharset.c: Include it.
81294         * lib/unicodeio.c: Likewise.
81295
81296 2002-12-31  Bruno Haible  <bruno@clisp.org>
81297
81298         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
81299         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
81300
81301 2002-12-31  Bruno Haible  <bruno@clisp.org>
81302
81303         * lib/getline.h: Include <stddef.h>, for size_t.
81304
81305         * lib/unicodeio.h: Include <stddef.h>, for size_t.
81306         * lib/unicodeio.c: Don't include <stddef.h>.
81307
81308 2002-12-31  Bruno Haible  <bruno@clisp.org>
81309
81310         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
81311         HAVE_TM_ZONE.
81312
81313 2002-12-24  Karl Berry  <karl@gnu.org>
81314
81315         * config/config.guess: update from prep.
81316
81317 2002-12-24  Bruno Haible  <bruno@clisp.org>
81318
81319         General infrasructure.
81320         * m4/README: Rewritten.
81321         * m4/onceonly.m4: New file.
81322         * m4/onceonly_2_57.m4: New file.
81323
81324         Module atexit.
81325         * m4/atexit.m4: New file.
81326
81327         Module strtod.
81328         * m4/strtod.m4: New file.
81329
81330         Module strtol.
81331         * m4/strtol.m4: New file.
81332
81333         Module strtoul.
81334         * m4/strtoul.m4: New file.
81335
81336         Module memchr.
81337         * m4/memchr.m4: New file.
81338
81339         Module memcmp.
81340         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
81341         (jm_FUNC_MEMCMP): Invoke it.
81342
81343         Module memcpy.
81344         * m4/memcpy.m4: New file.
81345
81346         Module memmove.
81347         * m4/memmove.m4: New file.
81348
81349         Module memset.
81350         * m4/memset.m4: New file.
81351
81352         Module strcspn.
81353         * m4/strcspn.m4: New file.
81354
81355         Module strpbrk.
81356         * m4/strpbrk.m4: New file.
81357
81358         Module strstr.
81359         * m4/strstr.m4: New file.
81360
81361         Module strerror.
81362         * m4/strerror.m4: New file.
81363
81364         Module mktime.
81365         * m4/mktime.m4: Renamed from jm-mktime.m4.
81366         (gl_PREREQ_MKTIME): New macro.
81367         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
81368
81369         Module malloc.
81370         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
81371         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
81372         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
81373
81374         Module realloc.
81375         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
81376         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
81377         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
81378
81379         Module strftime.
81380         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
81381         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
81382         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
81383         gl_TM_GMTOFF.
81384         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
81385
81386         Module xalloc.
81387         * m4/xalloc.m4: New file.
81388
81389         Module alloca.
81390         * m4/alloca.m4: New file.
81391
81392         Module putenv.
81393         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
81394         (jm_FUNC_PUTENV): Invoke it.
81395
81396         Module setenv.
81397         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
81398         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
81399         when invoked twice.
81400         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
81401         gt_FUNC_SETENV.
81402
81403         Module memrchr.
81404         * m4/memrchr.m4: New file.
81405
81406         Module stpcpy.
81407         * m4/stpcpy.m4: New file.
81408
81409         Module strcase.
81410         * m4/strcase.m4: New file.
81411
81412         Module strdup.
81413         * m4/strdup.m4: New file.
81414
81415         Module strnlen.
81416         * m4/strnlen.m4: New file.
81417
81418         Module strndup.
81419         * m4/strndup.m4: New file.
81420
81421         Module xstrtod.
81422         * m4/xstrtod.m4: New file.
81423
81424         Module xstrtol.
81425         * m4/xstrtol.m4: New file.
81426
81427         Module getdate.
81428         * m4/getdate.m4: New file.
81429
81430         Module unlocked-io.
81431         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
81432         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
81433         * m4/jm-glibc-io.m4n: Remove file.
81434
81435         Module long-options.
81436         * m4/long-options.m4: New file.
81437
81438         Module md5.
81439         * m4/md5.m4: New file.
81440
81441         Module sha.
81442         * m4/sha.m4: New file.
81443
81444         Module getstr.
81445         * m4/getstr.m4: New file.
81446
81447         Module getline.
81448         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
81449         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
81450         <sys/types.h>, for size_t. Use the function name gnu_getline, not
81451         simply getline. Infoke gl_PREREQ_GETLINE.
81452
81453         Module obstack.
81454         * m4/obstack.m4: New file.
81455
81456         Module hash.
81457         * m4/hash.m4: New file.
81458
81459         Module readtokens.
81460         * m4/readtokens.m4: New file.
81461
81462         Module strverscmp.
81463         * m4/strverscmp.m4: New file.
81464
81465         Module stdbool.
81466         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
81467         OSF/1.
81468
81469         Module strtoll.
81470         * m4/strtoll.m4: New file.
81471
81472         Module strtoull.
81473         * m4/strtoull.m4: New file.
81474
81475         Module strtoimax.
81476         * m4/strtoimax.m4: New file.
81477
81478         Module strtoumax.
81479         * m4/strtoumax.m4: New file.
81480
81481         Module xstrtoimax.
81482         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
81483         jm_AC_PREREQ_XSTRTOIMAX.
81484         Moved the strtol prerequisites to strtol.m4.
81485         Moved the strtoll prerequisites to strtoll.m4.
81486         Moved the strtoimax prerequisites to strtoimax.m4.
81487
81488         Module xstrtoumax.
81489         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
81490         jm_AC_PREREQ_XSTRTOUMAX.
81491         Moved the strtoul prerequisites to strtoul.m4.
81492         Moved the strtoull prerequisites to strtoull.m4.
81493         Moved the strtoumax prerequisites to strtoumax.m4.
81494
81495         Module chown.
81496         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
81497         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
81498
81499         Module dup2.
81500         * m4/dup2.m4: New file.
81501
81502         Module ftruncate.
81503         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
81504         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
81505
81506         Module getgroups.
81507         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
81508         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
81509
81510         Module gettimeofday.
81511         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
81512         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
81513         gl_PREREQ_GETTIMEOFDAY.
81514
81515         Module mkdir.
81516         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
81517         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
81518
81519         Module mkstemp.
81520         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
81521         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
81522         jm_AC_TYPE_UINTMAX_T.
81523         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
81524
81525         Module stat.
81526         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
81527         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
81528
81529         Module lstat.
81530         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
81531         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
81532
81533         Module timespec.
81534         * m4/timespec.m4 (gl_TIMESPEC): New macro.
81535         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
81536         * m4/st_mtim.m4: Indentation.
81537
81538         Module nanosleep.
81539         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
81540         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
81541         gl_PREREQ_NANOSLEEP.
81542
81543         Module regex.
81544         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
81545         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
81546         (gl_REGEX): New macro.
81547
81548         Module rename.
81549         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
81550         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
81551
81552         Module rmdir.
81553         * m4/rmdir.m4: New file.
81554
81555         Module utime.
81556         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
81557         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
81558         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
81559
81560         Module dirname.
81561         * m4/dirname.m4: New file.
81562
81563         Module getopt.
81564         * m4/getopt.m4: New file.
81565
81566         Module unistd-safer.
81567         * m4/unistd-safer.m4: New file.
81568
81569         Module fnmatch.
81570         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
81571         declaration.
81572         (gl_PREREQ_FNMATCH_EXTRA): New macro.
81573         (gl_FUNC_FNMATCH_POSIX): New macro.
81574         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
81575         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
81576         simply fnmatch.
81577
81578         Module exclude.
81579         * m4/exclude.m4: New file.
81580
81581         Module human.
81582         * m4/human.m4: New file.
81583
81584         Module acl.
81585         * m4/acl.m4: Nop.
81586
81587         Module backupfile.
81588         * m4/backupfile.m4: New file.
81589         * m4/d-ino.m4: Indentation.
81590
81591         Module fsusage.
81592         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
81593         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
81594         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
81595
81596         Module dirfd.
81597         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
81598         requirements.
81599
81600         Module euidaccess.
81601         * m4/euidaccess.m4: New file.
81602
81603         Module file-type.
81604         * m4/file-type.m4: New file.
81605
81606         Module fileblocks.
81607         * m4/fileblocks.m4: New file.
81608
81609         Module filemode.
81610         * m4/filemode.m4: New file.
81611
81612         Module isdir.
81613         * m4/isdir.m4: New file.
81614
81615         Module lchown.
81616         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
81617         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
81618
81619         Module makepath.
81620         * m4/makepath.m4: New file.
81621
81622         Module modechange.
81623         * m4/modechange.m4: New file.
81624
81625         Module mountlist.
81626         * m4/mountlist.m4: New file.
81627         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
81628         Indentation.
81629
81630         Module path-concat.
81631         * m4/path-concat.m4: New file.
81632
81633         Module pathmax.
81634         * m4/pathmax.m4: New file.
81635
81636         Module same.
81637         * m4/same.m4: New file.
81638
81639         Module save-cwd.
81640         * m4/save-cwd.m4: New file.
81641
81642         Module savedir.
81643         * m4/savedir.m4: New file.
81644
81645         Module xgetcwd.
81646         * m4/xgetcwd.m4: New file.
81647         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
81648
81649         Module xreadlink.
81650         * m4/xreadlink.m4: New file.
81651
81652         Module safe-read.
81653         * m4/safe-read.m4: New file.
81654
81655         Module safe-write.
81656         * m4/safe-write.m4: New file.
81657
81658         Module closeout.
81659         * m4/closeout.m4: New file.
81660
81661         Module stdio-safer.
81662         * m4/stdio-safer.m4: New file.
81663
81664         Module getpass.
81665         * m4/getpass.m4: New file.
81666
81667         Module getugroups.
81668         * m4/getugroups.m4: New file.
81669
81670         Module group-member.
81671         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
81672         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
81673
81674         Module idcache.
81675         * m4/idcache.m4: New file.
81676
81677         Module userspec.
81678         * m4/userspec.m4: New file.
81679
81680         Module gettime.
81681         * m4/clock_time.m4: New file.
81682         * m4/gettime.m4: New file.
81683
81684         Module settime.
81685         * m4/settime.m4: New file.
81686
81687         Module posixtm.
81688         * m4/posixtm.m4: New file.
81689
81690         Module gethostname.
81691         * m4/gethostname.m4: New file.
81692
81693         Module canon-host.
81694         * m4/canon-host.m4: New file.
81695
81696         Module gettext.
81697         * m4/codeset.m4: New file, from gettext-0.11.5.
81698         * m4/gettext.m4: New file, from gettext-0.11.5.
81699         * m4/glibc21.m4: New file, from gettext-0.11.5.
81700         * m4/iconv.m4: New file, from gettext-0.11.5.
81701         * m4/intdiv0.m4: New file, from gettext-0.11.5.
81702         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
81703         * m4/inttypes.m4: New file, from gettext-0.11.5.
81704         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
81705         * m4/isc-posix.m4: New file, from gettext-0.11.5.
81706         * m4/lcmessage.m4: New file, from gettext-0.11.5.
81707         * m4/lib-ld.m4: New file, from gettext-0.11.5.
81708         * m4/lib-link.m4: New file, from gettext-0.11.5.
81709         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
81710         * m4/progtest.m4: New file, from gettext-0.11.5.
81711         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
81712         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
81713         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
81714
81715         Module localcharset.
81716         * m4/localcharset.m4: New file.
81717
81718         Module hard-locale.
81719         * m4/hard-locale.m4: New file.
81720
81721         Module mbswidth.
81722         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
81723         onceonly macros.
81724         * m4/mbrtowc.m4: Add comment.
81725
81726         Module memcasecmp.
81727         * m4/memcasecmp.m4: New file.
81728
81729         Module memcoll.
81730         * m4/memcoll.m4: New file.
81731
81732         Module unicodeio.
81733         * m4/unicodeio.m4: New file.
81734
81735         Module rpmatch.
81736         * m4/rpmatch.m4: New file.
81737
81738         Module yesno.
81739         * m4/yesno.m4: New file.
81740
81741         Module exitfail.
81742         * m4/exitfail.m4: New file.
81743
81744         Module c-stack.
81745         * m4/c-stack.m4 (gl_C_STACK): New macro.
81746         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
81747
81748         Module error.
81749         * m4/error.m4 (gl_ERROR): New macro.
81750         (jm_PREREQ_ERROR): Use onceonly macros.
81751
81752         Module fatal.
81753         * m4/fatal.m4: New file.
81754
81755         Module getloadavg.
81756         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
81757         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
81758
81759         Module getpagesize.
81760         * m4/getpagesize.m4: New file.
81761
81762         Module getusershell.
81763         * m4/getusershell.m4: New file.
81764
81765         Module physmem.
81766         * m4/physmem.m4: New file.
81767
81768         Module posixver.
81769         * m4/posixver.m4: New file.
81770
81771         Module quotearg.
81772         * m4/quotearg.m4: New file.
81773
81774         Module quote.
81775         * m4/quote.m4: New file.
81776
81777         Module readutmp.
81778         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
81779
81780         Module sig2str.
81781         * m4/sig2str.m4: New file.
81782
81783         Other.
81784         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
81785         ulonglong.m4.
81786         * m4/intmax_t.m4: New file.
81787         * m4/d-type.m4: Indentation.
81788         * m4/jm-macros.m4: Update.
81789         * m4/prereq.m4 (jm_PREREQ): Update.
81790         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
81791         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
81792         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
81793         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
81794         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
81795         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
81796         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
81797         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
81798         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
81799         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
81800         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
81801         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
81802         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
81803         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
81804         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
81805         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
81806         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
81807         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
81808         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
81809
81810 2002-12-24  Bruno Haible  <bruno@clisp.org>
81811
81812         * MODULES.txt: Update according to m4/ changes.
81813
81814         Module gettext.
81815         * config.rpath: New file, from gettext-0.11.5.
81816
81817         * modules/*: New module descriptions.
81818         * gnulib-tool: New file.
81819         * MODULES.html.sh: New file.
81820
81821 2002-12-21  Karl Berry  <karl@gnu.org>
81822
81823         * doc/fdl.texi: update to version 1.2.
81824
81825 2002-12-19  Karl Berry  <karl@gnu.org>
81826
81827         * config/config.guess: update from prep.
81828
81829 2002-12-18  Bruno Haible  <bruno@clisp.org>
81830
81831         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
81832         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
81833
81834 2002-12-17  Bruno Haible  <bruno@clisp.org>
81835
81836         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
81837         stdlib.h, string.h.
81838
81839 2002-12-17  Bruno Haible  <bruno@clisp.org>
81840
81841         * lib/canon-host.c (strdup): Remove unused declaration.
81842
81843         * lib/fsusage.c: Include full_read.h.
81844         (get_fs_usage): Use full_read instead of safe_read.
81845
81846         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
81847
81848 2002-12-12  Karl Berry  <karl@gnu.org>
81849
81850         * config/config.guess: update from prep.
81851
81852 2002-12-11  Bruno Haible  <bruno@clisp.org>
81853
81854         * m4/setenv.m4: New file, from gettext-0.11.5.
81855
81856 2002-12-11  Bruno Haible  <bruno@clisp.org>
81857
81858         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
81859         not unsetenv().
81860         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
81861         modifications:
81862
81863         2002-12-11  Bruno Haible  <bruno@clisp.org>
81864
81865                 * setenv.c (alloca): Fall back to malloc.
81866                 (freea): New macro.
81867                 (setenv): Use freea() to free memory allocated with alloca().
81868
81869         2002-11-13  Bruno Haible  <bruno@clisp.org>
81870
81871                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
81872                 function declarations.
81873                 * unsetenv.c (unsetenv): Likewise.
81874
81875         2002-03-04  Bruno Haible  <bruno@clisp.org>
81876
81877                 Portability to AIX 4.3.3.
81878                 * unsetenv.c: New file, extracted from setenv.c.
81879                 * setenv.c: Move the unsetenv() function to unsetenv.c.
81880
81881         2001-12-20  Bruno Haible  <bruno@clisp.org>
81882
81883                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
81884                 use malloc instead. For SunOS 4.
81885
81886         2001-12-11  Bruno Haible  <bruno@clisp.org>
81887
81888                 * setenv.c: Declare alloca.
81889                 (compar_fn_t): New typedef.
81890                 (KNOWN_VALUE, STORE_VALUE): Use it.
81891
81892         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
81893         setenv.h.
81894
81895 2002-12-10  Paul Eggert  <eggert@twinsun.com>
81896
81897         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
81898         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
81899         Choose values that are less likely to collide with system fnmatch
81900         options.
81901         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
81902         defined (e.g., a pure POSIX system).
81903         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
81904         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
81905
81906 2002-12-06  Paul Eggert  <eggert@twinsun.com>
81907
81908         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
81909         a pain in practice to deal with generated m4 files.  This change
81910         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
81911
81912         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
81913         and jm-glibc-io.m4, as they are no longer a special case.
81914         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
81915         kludge and the auto-generation stuff.  Check only whether the
81916         functions are declared, not whether they exist, since older hosts
81917         that don't declare the functions can't use the optimization anyway.
81918
81919 2002-12-06  Jim Meyering  <jim@meyering.net>
81920
81921         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
81922
81923         Merge in changes from libc's misc/error.c, in preparation
81924         for the merge of gnulib's changes back into libc.
81925
81926         * lib/error.c (_): Define only if not already defined.
81927         Move definition to follow all #include directives.
81928         Include unlocked-io.h only if !_LIBC.
81929         [_LIBC]: Include <libio/libioP.h>.
81930         [USE_IN_LIBIO]: Include <libio/iolibio.h>
81931         (fflush): Tweak definition to use INTUSE.
81932         (putc): Define.
81933
81934 2002-12-05  Paul Eggert  <eggert@twinsun.com>
81935
81936         * lib/alloca.c [defined emacs]: Include "lisp.h".
81937         (xalloc_die) [defined emacs]: New macro.
81938         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
81939         [! defined emacs]: Include <xalloc.h>.
81940         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
81941         (pointer): Typedef to POINTER_TYPE *.
81942         (malloc): Remove decl; we now always use xmalloc.
81943         (alloca): Use old-style definition, since Emacs needs this.
81944         Check for arithmetic overflow when computing combined size.
81945
81946 2002-12-04  Paul Eggert  <eggert@twinsun.com>
81947
81948         Do not generate unlocked-io.h automatically, since it's easier to
81949         maintain it by hand.
81950
81951         * lib/unlocked-io.h: New file, from GNU diffutils,
81952         but with proper copyright notice and attribution.
81953         * lib/gen-uio: Remove.
81954         * lib/Makefile.am: Add copyright notice.
81955         (libfetish_a_SOURCES): Add unlocked-io.h.
81956         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
81957         (DISTCLEANFILES, io_functions): Remove macros.
81958         (EXTRA_DIST): Remove gen_uio.
81959         (unlocked-io.h): Remove rule.
81960
81961 2002-12-04  Jim Meyering  <jim@meyering.net>
81962
81963         Reflect the fact that stat.c and lstat.c are no longer generated.
81964         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
81965         (DISTCLEANFILES): Likewise.
81966         (EXTRA_DIST): Likewise.
81967         (all_local): Don't depend on stat.c or lstat.c.
81968         (stat.c, lstat.c): Remove rules.
81969         (EXTRA_DIST): Remove xstat.in.
81970
81971         * lib/xstat.in: Remove file.  Contents moved into stat.c.
81972         * lib/stat.c: New file.  Contents mostly from xstat.in.
81973         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
81974         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
81975
81976         * lib/safe-read.c: Rework so that it may serve to define safe_write,
81977         too.
81978         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
81979
81980 2002-12-03  Jim Meyering  <jim@meyering.net>
81981
81982         * lib/safe-read.c, safe-write.c: Change variable names and comments,
81983         but not semantics, to minimize the differences between these two files.
81984         (safe_read): Change comment to mention SAFE_READ_ERROR.
81985
81986         * lib/safe-read.c (IS_EINTR): Define.
81987         (safe_read): Use IS_EINTR in place of in-function cpp directives.
81988
81989 2002-12-02  Jim Meyering  <jim@meyering.net>
81990
81991         * lib/safe-read.c (EINTR): Define.
81992         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81993         (INT_MAX): Provide fallback.
81994         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
81995
81996         * lib/safe-read.h (SAFE_READ_ERROR): Define.
81997
81998 2002-12-02  Bruno Haible  <bruno@clisp.org>
81999
82000         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
82001         Define, taken from safe-read.c.
82002         (INT_MAX): Provide fallback.
82003         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
82004         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
82005
82006         * lib/safe-read.c (EINTR): Remove definition.
82007         (safe_read): Don't use EINTR if it is absent.
82008
82009 2002-12-01  Jim Meyering  <jim@meyering.net>
82010
82011         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
82012         zero.
82013         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
82014
82015 2002-11-27  Paul Eggert  <eggert@twinsun.com>
82016
82017         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
82018         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
82019         with `if (! (value < limit)) abort ();', for readability.
82020
82021 2002-11-26  Karl Berry  <karl@gnu.org>
82022
82023         * lib/strdup.c: copy from libc again, with jim's ok.
82024         * lib/.cppi-disable: re-add strdup.c
82025
82026 2002-11-25  Karl Berry  <karl@gnu.org>
82027
82028         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
82029         instead of "strtol.c".
82030
82031 2002-11-25  Karl Berry  <karl@gnu.org>
82032
82033         * config/install-sh: update from automake for variable quoting, $0 in
82034         error msgs, etc.
82035
82036         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
82037         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
82038         entry.
82039
82040 2002-11-25  Jim Meyering  <jim@meyering.net>
82041
82042         * lib/mktime.c: Sync from libc, now that it has the latest fix.
82043
82044 2002-11-24  Karl Berry  <karl@gnu.org>
82045
82046         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
82047         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
82048
82049 2002-11-24  Jim Meyering  <jim@meyering.net>
82050
82051         Update from coreutils:
82052
82053         * lib/mktime.c: Merge in changes from libc.
82054
82055         Avoid a link-time failure on some Linux systems.
82056         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
82057         (otherwise).
82058         (__mon_yday): Declare with the STATIC attribute.
82059         (__mktime_internal): Likewise.
82060         Based on a report from Greg Schafer.
82061
82062 2002-11-23  Jim Meyering  <jim@meyering.net>
82063
82064         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
82065         Use `unsigned', not `int', as type of index.
82066
82067         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
82068
82069         * lib/fsusage.c: Remove unneeded parentheses around operands of
82070         `defined'.
82071
82072 2002-11-22  Paul Eggert  <eggert@twinsun.com>
82073
82074         * lib/quotearg.h: Allow multiple inclusion by surrounding with
82075         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
82076         so that we can be included first.
82077         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
82078         * lib/quotearg.c: Include quotearg.h immediately after config.h.
82079         No need to include stddef.h or sys/types.h any more.
82080         Surround local include files with "", not "<>".
82081         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
82082         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
82083         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
82084         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
82085         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
82086         (ISPRINT): Remove; no longer needed now that we assume C89.
82087
82088         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
82089         Preserve errno.
82090
82091         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
82092         quotearg_char): Use SIZE_MAX rather than
82093         (size_t) -1 when we are talking about "infinity".
82094
82095         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
82096
82097 2002-11-22  Paul Eggert  <eggert@twinsun.com>
82098
82099         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
82100         hint that one should use `if (! x) abort ();' rather than `assert
82101         (x);', and anyway it's one less thing to worry about configuring.
82102         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
82103         hash_rehash, hash_insert): Use abort rather than assert.
82104
82105 2002-11-22  Bruno Haible  <bruno@clisp.org>
82106
82107         * lib/safe-read.h: Assume C89. Add comments.
82108         (safe_read): Change return type to size_t.
82109         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
82110         byte counts > SSIZE_MAX correctly.
82111         * lib/safe-write.h: New file.
82112         * lib/safe-write.c: New file.
82113         * lib/full-read.h: New file.
82114         * lib/full-read.c: New file.
82115         * lib/full-write.h: Assume C89. Add comments.
82116         * lib/full-write.c: Include safe-write.h.
82117         (full_write): Rewritten to use safe_write.
82118         Suggested by Jim Meyering and Paul Eggert.
82119
82120 2002-11-21  Jim Meyering  <jim@meyering.net>
82121
82122         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
82123
82124         Merge in changes from the coreutils.
82125
82126         2002-09-25  Paul Eggert  <eggert@twinsun.com>
82127         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
82128         <stdint.h>.
82129         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
82130         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
82131         int.  Work more efficiently if X is the same width as uintmax_t.
82132         Do not compare X to -1, to avoid bogus compiler warning.
82133         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
82134         Don't assume that f_frsize and f_bsize are the same type.
82135
82136         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
82137         warning on FreeBSD.
82138
82139         * lib/makepath.c (make_path): Restore umask *before* creating the final
82140         component.
82141         (make_path): Minor reformatting.
82142
82143         * lib/xmalloc.c: Adjust to work with new autoconf macros,
82144         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
82145         HAVE_MALLOC/HAVE_REALLOC.
82146
82147         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
82148         dummy ones.  At least on GNU/Linux systems, `auto' means something
82149         else.
82150         From Michael Stone.
82151
82152 2002-11-21  Bruno Haible  <bruno@clisp.org>
82153
82154         Remove case insensitive option matching.
82155         * lib/argmatch.h (argcasematch): Remove declaration.
82156         (ARGCASEMATCH): Remove macro.
82157         (__xargmatch_internal): Remove case_sensitive argument.
82158         (XARGMATCH): Update.
82159         (XARGCASEMATCH): Remove macro.
82160         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
82161         case_sensitive argument.
82162         (argcasematch): Remove function.
82163         (__xargmatch_internal): Remove case_sensitive argument.
82164         (main): Use XARGMATCH instead of XARGCASEMATCH.
82165
82166         * lib/xmalloc.c: Change compile-time error message. Add comment about
82167         required autoconf version.
82168
82169 2002-11-20  Paul Eggert  <eggert@twinsun.com>
82170
82171         Merge argmatch cleanups from Bison.  Assume C89.
82172
82173         * lib/argmatch.c: Include config.h here, not in argmatch.h.
82174         Include stdlib.h, for EXIT_FAILURE.
82175         Always include <string.h>, since we assume C89.
82176         (EXIT_FAILURE): Remove pre-C89 bug workaround.
82177         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
82178         Include <stddef.h> instead, since it's all we need for size_t.
82179         (PARAMS): Remove.  All uses removed.
82180         (ARRAY_CARDINALITY): Do not bother to #undef.
82181         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
82182         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
82183         Remove unnecessary parentheses.
82184         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
82185         Insert necessary parentheses.
82186         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
82187         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
82188
82189 2002-11-19  Bruno Haible  <bruno@clisp.org>
82190
82191         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
82192         * lib/mbswidth.h: Include <stddef.h>, for size_t.
82193
82194         * lib/mbswidth.h (PARAMS): Remove macro.
82195         (mbswidth, mbsnwidth): Use ANSI C function declarations.
82196         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
82197
82198         * lib/gcd.h (PARAMS): Remove macro.
82199         (gcd): Use ANSI C function declarations.
82200         * lib/gcd.c (gcd): Likewise.
82201
82202 2002-11-15  Bruno Haible  <bruno@clisp.org>
82203
82204         * lib/strcspn.c: Include <stddef.h>.
82205         (strcspn): Use ANSI C function declaration. Change return type to
82206         size_t. Use NULL.
82207         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
82208         (strpbrk): Use NULL.
82209         * lib/strpbrk.h (PARAMS): Remove macro.
82210         (strpbrk): Use ANSI C function declaration.
82211         * lib/strstr.c: Don't include <sys/types.h>.
82212         * lib/strstr.h (PARAMS): Remove macro.
82213         (strstr): Use ANSI C function declarations.
82214
82215 2002-11-14  Karl Berry  <karl@gnu.org>
82216
82217         * config/mkinstalldirs: `do' on separate line, instead of
82218         `for var; do'.
82219
82220 2002-11-06  Bruno Haible  <bruno@clisp.org>
82221
82222         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
82223         * lib/gcd.c (gcd): Likewise.
82224
82225 2002-11-05  Bruno Haible  <bruno@clisp.org>
82226
82227         * lib/gcd.h: New file, from gettext-0.11.5.
82228         * lib/gcd.c: New file, from gettext-0.11.5.
82229
82230 2002-11-05  Bruno Haible  <bruno@clisp.org>
82231
82232         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82233         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82234         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82235         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82236
82237         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
82238         <libintl.h>.
82239         * lib/makepath.c: Include gettext.h instead of <locale.h> and
82240         <libintl.h>.
82241
82242         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
82243         * lib/human.c: Include gettext.h instead of <libintl.h>.
82244         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
82245         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
82246         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
82247         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
82248         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
82249         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
82250         (textdomain): Remove definition.
82251         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
82252
82253         * lib/long-options.c: Remove include of <libintl.h> and definition of
82254         _.
82255         * lib/same.c: Remove include of <libintl.h> and definition of _.
82256
82257 2002-11-04  Owen Taylor  <otaylor@redhat.com>
82258
82259         * lib/config.charset: A few additions for Solaris.
82260
82261 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82262
82263         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
82264         * lib/localcharset.c (locale_charset): Declare as extern "C".
82265
82266 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82267
82268         * lib/config.charset: msdos in uk_UA uses CP1125.
82269
82270 2002-11-04  Bruno Haible  <bruno@clisp.org>
82271
82272         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
82273         * lib/strcase.h: New file, from GNU gettext-0.11.5.
82274         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
82275         * lib/strstr.h: New file, from GNU gettext-0.11.5.
82276         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
82277
82278 2002-11-04  Bruno Haible  <bruno@clisp.org>
82279
82280         * lib/localcharset.c (locale_charset): Don't return an empty string.
82281
82282 2002-11-04  Bruno Haible  <bruno@clisp.org>
82283
82284         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
82285         aliases.
82286
82287 2002-11-04  Bruno Haible  <bruno@clisp.org>
82288
82289         * lib/config.charset: Update for newest glibc. Add canonical names
82290         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
82291
82292 2002-11-04  Bruno Haible  <bruno@clisp.org>
82293
82294         * lib/config.charset: Add support for NetBSD.
82295
82296 2002-11-04  Bruno Haible  <bruno@clisp.org>
82297
82298         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
82299
82300 2002-11-01  Bruno Haible  <bruno@clisp.org>
82301
82302         * configure.in: Add AC_CONFIG_AUX_DIR call.
82303         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
82304         test/Makefile.
82305         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
82306
82307 2002-09-28  Karl Berry  <karl@gnu.org>
82308
82309         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
82310         installed automake until the next release, since changes have been
82311         made.
82312
82313 2002-09-25  Karl Berry  <karl@gnu.org>
82314
82315         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
82316         * lib/getopt*: copy from libc/posix.
82317         * lib/gettext.h: copy from gettext.
82318         * lib/.cppi-disable: add strdup.c, gettext.h.
82319
82320 2002-09-25  Karl Berry  <karl@gnu.org>
82321
82322         * config/srclist.txt: enable gettext.h check.
82323         * config/config.{guess,sub}: update from prep.
82324         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
82325                 from automake 1.6.3.
82326         See srclist*.
82327
82328 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
82329
82330         * regex.c (PATFETCH): Remove the translating fetch.
82331         (PATFETCH_RAW): Rename to PATFETCH.
82332         (set_image_of_range): New fun.
82333         (SET_RANGE_TABLE_WORK_AREA): Use it.
82334         (regex_compile): Don't translate the pattern chars so eagerly.
82335         Only do it when inserting an `exactn' bytecode or when handling
82336         a char-range.
82337         (mutually_exclusive_p): Avoid empty statement.
82338
82339 2002-07-06  Jim Meyering  <meyering@lucent.com>
82340
82341         * m4/README: Don't mention Makefile.am.in.
82342         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
82343
82344 2002-07-01  Jim Meyering  <meyering@lucent.com>
82345
82346         * lib/c-stack.c: Include sys/time.h.
82347         From Volker Borchert.
82348
82349 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82350
82351         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
82352
82353 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82354
82355         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
82356         New macro.  Use it uniformly instead of
82357         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
82358         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
82359         reported by Vin Shelton.
82360
82361 2002-06-22  Paul Eggert  <eggert@twinsun.com>
82362
82363         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
82364         Do not assume SA_SIGINFO behavior.
82365         Bug reported by Jim Meyering on NetBSD 1.5.2.
82366
82367 2002-06-22  Jim Meyering  <meyering@lucent.com>
82368
82369         * m4/c-stack.m4: New file, from diffutils-2.8.2.
82370         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
82371
82372         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
82373         now that configure.ac uses AC_GNU_SOURCE.
82374         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
82375         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
82376
82377         Update to latest tools.  Suggestions from Paul Eggert.
82378         * m4/stdbool.m4: New file, from diffutils-2.8.2.
82379         * m4/gnu-source.m4: Update from diffutils-2.8.2.
82380         * m4/fnmatch.m4: Likewise.
82381         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
82382         to AC_HEADER_STDBOOL
82383
82384 2002-06-22  Jim Meyering  <meyering@lucent.com>
82385
82386         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
82387         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
82388
82389 2002-06-22  Jim Meyering  <meyering@lucent.com>
82390
82391         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
82392
82393         * lib/exitfail.c, exitfail.h: Likewise.
82394         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
82395
82396         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
82397         of fnmatch.h.
82398         (EXTRA_DIST): Add fnmatch_loop.c.
82399         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
82400
82401         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
82402         * lib/fnmatch.c: Update from diffutils-2.8.2.
82403         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
82404         * lib/fnmatch.h: Remove file.
82405
82406 2002-06-21  Jim Meyering  <meyering@lucent.com>
82407
82408         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
82409         * m4/mbrtowc.m4: Likewise.
82410
82411         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
82412         * m4/mbswidth.m4: Reflect name change:
82413         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
82414         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
82415
82416         * m4/lib-link.m4: Update from gettext-0.11.2.
82417         * m4/gettext.m4: Likewise.
82418
82419         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
82420         From Alfred M. Szmidt.
82421
82422 2002-06-18  Paul Eggert  <eggert@twinsun.com>
82423
82424         * lib/file-type.h: Report an error if neither S_ISREG nor
82425         S_IFREG is defined, instead of using a test specific to glibc
82426         2.2.  This should be safe, since POSIX requires S_ISREG and
82427         Unix Version 7 had S_IFREG.  We don't need to check for
82428         <sys/types.h> since we don't use any symbols that it defines.
82429
82430 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
82431
82432         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
82433         $@-t, so that each temporary file name is unique and valid in the first
82434         8 characters, for operation under DOS.
82435
82436 2002-06-15  Paul Eggert  <eggert@twinsun.com>
82437
82438         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
82439
82440 2002-06-15  Jim Meyering  <meyering@lucent.com>
82441
82442         Work even with DJGPP 2.03, which lacks support for symlinks.
82443         From Richard Dawe.
82444         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
82445         is defined.
82446         * lib/lchown.c (S_ISLNK): Likewise.
82447
82448 2002-06-15  Jim Meyering  <meyering@lucent.com>
82449
82450         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
82451         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
82452         have been included before this file.
82453
82454 2002-06-14  Jim Meyering  <meyering@lucent.com>
82455
82456         * lib/file-type.h: Use the version from diffutils-2.8.2.
82457         * lib/file-type.c: Likewise.
82458
82459 2002-06-07  Jim Meyering  <meyering@lucent.com>
82460
82461         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
82462         They're needed at least for NetBSD 1.5.2.
82463         ($statxfs_includes): Include those same headers.
82464         ($statxfs_includes): Include sys/vfs.h if available.
82465         ($statxfs_includes): Likewise for sys/statvfs.h.
82466         Check for the following members in both structs statfs and statvfs:
82467         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
82468
82469 2002-06-01  Jim Meyering  <meyering@lucent.com>
82470
82471         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
82472         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
82473
82474 2002-05-28  Jim Meyering  <meyering@lucent.com>
82475
82476         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
82477         Reported by Volker Borchert.
82478
82479 2002-05-27  Jim Meyering  <meyering@lucent.com>
82480
82481         Fix a problem seen only on nonconforming systems whereby ls.c's
82482         use of localtime, and then of gettimeofday would cause trouble:
82483         the localtime call used to initialize rpl_gettimeofday's save
82484         mechanism would clobber ls's current local time information so
82485         that in any long listing the first file would always be listed
82486         with date 1970-01-01.  Analysis by Volker Borchert.
82487
82488         * lib/gettimeofday.c (localtime): Undefine.
82489         (rpl_localtime): New function.
82490
82491 2002-05-27  Jim Meyering  <meyering@lucent.com>
82492
82493         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
82494         localtime.
82495
82496         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
82497         use the replacement function; it wouldn't resolve at link time.
82498         Reported by Volker Borchert.
82499
82500 2002-05-22  Jim Meyering  <meyering@lucent.com>
82501
82502         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
82503         file-type.h.
82504         * lib/file-type.h: New file.
82505         * lib/file-type.c (file_type): New file/function.  Extracted from
82506         diffutils.
82507
82508 2002-04-30  Jim Meyering  <meyering@lucent.com>
82509
82510         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
82511
82512 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82513
82514         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
82515
82516 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82517
82518         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
82519         Do not check for alloca.h (no longer used) or stdbool.h (was never
82520         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
82521
82522 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82523
82524         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
82525
82526 2002-04-29  Jim Meyering  <meyering@lucent.com>
82527
82528         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
82529         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
82530         Use AC_FUNC_STRNLEN here instead.
82531
82532         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
82533         With autoconf-2.53a, it's part of AC_PROG_CC.
82534
82535 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82536
82537         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
82538         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
82539
82540 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82541
82542         * lib/sig2str.h, lib/sig2str.c: New files.
82543         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
82544
82545 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82546
82547         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
82548         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
82549         of 127, since 64 is the largest conceivable number for ancient
82550         nonstandard hosts.
82551         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
82552
82553 2002-04-28  Jim Meyering  <meyering@lucent.com>
82554
82555         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
82556
82557 2002-04-24  Jim Meyering  <meyering@lucent.com>
82558
82559         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
82560         (jm_PREREQ): Use it.
82561
82562         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
82563         mach/mach.h fcntl.h.
82564         Check for this function: setlocale.
82565
82566 2002-04-24  Jim Meyering  <meyering@lucent.com>
82567
82568         * lib/gettext.h: New file, from Gettext.
82569         * lib/Makefile.am (INCLUDES): Remove -I../intl.
82570         (libfetish_a_SOURCES): Add gettext.h.
82571
82572 2002-04-16  Jim Meyering  <meyering@lucent.com>
82573
82574         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
82575         ut_pid, ut_id, ut_exit.
82576
82577 2002-04-16  Jim Meyering  <meyering@lucent.com>
82578
82579         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
82580         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
82581         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
82582
82583 2002-04-12  Jim Meyering  <meyering@lucent.com>
82584
82585         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
82586         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
82587         existence of the getmntinfo function.  Needed for Darwin 5.3.
82588
82589         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
82590         This is necessary at least on Darwin 5.3.
82591
82592         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
82593         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
82594         strnlen.o in the library, and that makes some versions of ranlib
82595         object.
82596
82597 2002-04-12  Jim Meyering  <meyering@lucent.com>
82598
82599         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
82600
82601 2002-04-09  Jim Meyering  <meyering@lucent.com>
82602
82603         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
82604         to be more precise.  Rather than saying we're checking whether the
82605         function `works', say what we're testing.
82606         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
82607         Reported by Bruno Haible.
82608
82609 2002-03-10  Jim Meyering  <meyering@lucent.com>
82610
82611         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
82612         Suggestion from Santiago Vila.
82613
82614 2002-03-08  Jim Meyering  <meyering@lucent.com>
82615
82616         * lib/rename.c: Mention that this wrapper is needed also on
82617         mips-dec-ultrix4.4 systems.
82618
82619 2002-03-02  Jim Meyering  <meyering@lucent.com>
82620
82621         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
82622         not HAVE_CLOCK_SETTIME.
82623
82624 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82625
82626         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
82627         Check for clock_settime.
82628
82629 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82630
82631         * lib/nanosleep.h: Rename to....
82632         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
82633
82634         * lib/gettime.c: New file.
82635         * lib/settime.c: New file.
82636         * lib/stime.c: Remove.
82637
82638         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
82639         timespec.h.  Remove nanosleep.h.
82640
82641 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82642
82643         * m4/acl.m4: New file.
82644         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
82645         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
82646
82647 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82648
82649         * lib/acl.c, lib/acl.h: New files.
82650         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
82651
82652 2002-02-24  Jim Meyering  <meyering@lucent.com>
82653
82654         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
82655         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
82656         cause trouble.  Reported by Nelson Beebe.
82657
82658 2002-02-23  Paul Eggert  <eggert@twinsun.com>
82659
82660         * lib/path-concat.c (xpath_concat): Reorder code to pacify
82661         compilers that don't know that xalloc_die never returns.
82662
82663 2002-02-20  Jim Meyering  <meyering@lucent.com>
82664
82665         * lib/getdate.c: Regenerate using bison-1.33.
82666
82667 2002-02-17  Jim Meyering  <meyering@lucent.com>
82668
82669         * config/config.guess (main): Don't use `head -1'; it's no longer
82670         portable. Use `sed 1q' instead.
82671
82672 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
82673
82674         * m4/codeset.m4: Upgrade to gettext-0.11.
82675         * m4/gettext.m4: Upgrade to gettext-0.11.
82676         * m4/glibc21.m4: Upgrade to gettext-0.11.
82677         * m4/iconv.m4: Upgrade to gettext-0.11.
82678         * m4/isc-posix.m4: Upgrade to gettext-0.11.
82679         * m4/lcmessage.m4: Upgrade to gettext-0.11.
82680         * m4/lib-ld.m4: New file, from gettext-0.11.
82681         * m4/lib-link.m4: New file, from gettext-0.11.
82682         * m4/lib-prefix.m4: New file, from gettext-0.11.
82683         * m4/progtest.m4: Upgrade to gettext-0.11.
82684
82685 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82686
82687         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
82688         (jm_PREREQ): Use it.
82689
82690 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82691
82692         * lib/posixver.c, lib/posixver.h: New files.
82693         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82694
82695 2002-02-02  Paul Eggert  <eggert@twinsun.com>
82696             Bruno Haible  <bruno@clisp.org>
82697
82698         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
82699         (fwrite_success_callback): New declaration.
82700         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
82701         print_unicode_char. Call failure callback instead of error.
82702         (fwrite_success_callback): New function.
82703         (exit_failure_callback): New function.
82704         (fallback_failure_callback): New function.
82705         (print_unicode_char): Call unicode_to_mb.
82706
82707 2002-01-26  Jim Meyering  <meyering@lucent.com>
82708
82709         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
82710         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
82711
82712 2002-01-26  Jim Meyering  <meyering@lucent.com>
82713
82714         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
82715
82716 2002-01-22  Paul Eggert  <eggert@twinsun.com>
82717
82718         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
82719
82720 2002-01-22  Jim Meyering  <meyering@lucent.com>
82721
82722         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
82723         Otherwise, some versions of automake would omit the rule that makes
82724         Makefile from Makefile.in.
82725
82726 2002-01-21  Paul Eggert  <eggert@twinsun.com>
82727
82728         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
82729         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82730         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
82731         (memcoll): Set errno to zero if there is no error.
82732
82733         * lib/quotearg.c (quotearg_buffer_restyled):
82734         Fix bug with quoting buffers containing NUL when backslashing escapes.
82735         This bug was exposed by the other changes in this patch.
82736         (quotearg_n_options): New arg ARGSIZE.
82737         All callers changed.
82738         (quoting_options_from_style): New function.
82739         (quotearg_n_style): Use it.
82740         (quotearg_n_style_mem): New function.
82741
82742         * lib/quotearg.h (quotearg_n_style_mem): New function.
82743
82744 2002-01-19  Jim Meyering  <meyering@lucent.com>
82745
82746         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
82747         Remove useless quotes: DF_PROG="df".
82748         * m4/strnlen.m4: New file.
82749
82750 2002-01-16  Paul Eggert  <eggert@twinsun.com>
82751
82752         * lib/backupfile.c (ISDIGIT): Comment fix.
82753         * lib/getdate.y (ISDIGIT): Likewise.
82754         * lib/posixtm.c (ISDIGIT, year): Likewise.
82755         * lib/strverscmp.c (ISDIGIT): Likewise.
82756         * lib/userspec.c (ISDIGIT): Likewise.
82757
82758 2002-01-16  Jim Meyering  <meyering@lucent.com>
82759
82760         * lib/getdate.y: Add three semicolons, each just before a closing
82761         brace. Bison (as of version 1.31) no longer papers over that mistake.
82762
82763 2002-01-05  Jim Meyering  <meyering@lucent.com>
82764
82765         * lib/version-etc.c (version_etc_copyright): Update copyright year.
82766
82767 2001-12-19  Paul Eggert  <eggert@twinsun.com>
82768
82769         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
82770         not silently exit merely because the output buffer happens to
82771         have nothing pending.
82772
82773 2001-12-18  Paul Eggert  <eggert@twinsun.com>
82774
82775         See the big note in ../ChangeLog.
82776         * lib/human.c (suffixes): Prefer K to k for 1024.
82777         (generate_suffix_backwards): New function.
82778         (human_readable_inexact): Use it.
82779         * lib/xstrtol.c (__xstrtol): If there is no number but there
82780         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
82781         Accept 'K' as well as 'k'.
82782
82783 2001-12-15  Jim Meyering  <meyering@lucent.com>
82784
82785         * lib/regex.h (__restrict_arr): Update from libc.
82786
82787         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
82788         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
82789         (STREQ): Define.
82790
82791 2001-12-14  Jim Meyering  <meyering@lucent.com>
82792
82793         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
82794         Suggestion from Bruno Haible.
82795
82796 2001-12-10  Jim Meyering  <meyering@lucent.com>
82797
82798         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
82799         xrealloc, Instead, include "xalloc.h".
82800         (initbuffer): Don't cast xmalloc return value to char*.
82801         (readline): Reword comment.
82802         Don't cast xrealloc return value to char*
82803         Return NULL, not 0.
82804
82805 2001-12-09  Jim Meyering  <meyering@lucent.com>
82806
82807         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
82808         about `signed and unsigned type in conditional expression'.
82809         * lib/posixtm.c (posix_time_parse): Likewise.
82810
82811         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
82812
82813         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
82814         to avoid a pedantic warning.
82815
82816         * lib/getstr.c: Don't include assert.h.
82817         (getstr): Remove warning-evoking assertions.
82818         Return -1 if offset parameter is out of bounds.
82819         Change the type of a local from int to size_t.
82820
82821         * lib/strftime.c (my_strftime_localtime_r): Include this function
82822         definition in the `#if ! HAVE_TM_GMTOFF' block.
82823
82824         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
82825         Include xalloc.h instead.
82826
82827 2001-12-02  Jim Meyering  <meyering@lucent.com>
82828
82829         * lib/tempname.c: Don't declare getenv, thus reverting the change of
82830         2001-11-18.  It's no longer necessary, now that stdlib.h is always
82831         included.
82832
82833         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
82834         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
82835
82836 2001-11-30  Akim Demaille  <akim@epita.fr>
82837
82838         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
82839         before being defined.
82840
82841 2001-11-27  Paul Eggert  <eggert@twinsun.com>
82842
82843         * lib/quotearg.h (quotearg_n, quotearg_n_style):
82844         First arg is int, not unsigned.
82845         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
82846         (SIZE_MAX, UINT_MAX): New macros.
82847         (quotearg_n_options): Abort if N is negative.
82848         Avoid overflow check on hosts where size_t is 64 bits and int
82849         is 32 bits, as overflow is impossible there.
82850         Fix off-by-one typo that caused unnecessary reallocation.
82851
82852 2001-11-27  Jim Meyering  <meyering@lucent.com>
82853
82854         * lib/tempname.c: Merge with version from libc.
82855         * lib/regex.c: Likewise.
82856
82857         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
82858         systems for which STDC_HEADERS is 0, it was not included, resulting in
82859         a warning about an integer-to-pointer conversion problem with getenv.
82860         Reported by Volker Borchert.
82861
82862 2001-11-26  Jim Meyering  <meyering@lucent.com>
82863
82864         * lib/gtod.h: Remove file.
82865         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
82866         * lib/gettimeofday.c: Don't include gtod.h.
82867         (GTOD_init): Remove function.
82868         (rpl_gettimeofday): Do its job here instead, rather than aborting.
82869         Suggestion from Volker Borchert.
82870
82871 2001-11-23  Jim Meyering  <meyering@lucent.com>
82872
82873         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
82874         it.
82875         * lib/hash.c (struct hash_table): Define it here instead.
82876
82877 2001-11-22  Jim Meyering  <meyering@lucent.com>
82878
82879         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
82880
82881 2001-11-20  Jim Meyering  <meyering@lucent.com>
82882
82883         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
82884         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
82885
82886 2001-11-19  Jim Meyering  <meyering@lucent.com>
82887
82888         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
82889         directory.  Use "conftestXXXXXX" as the template.
82890         Suggestion from Paul Eggert.
82891
82892         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
82893         immediately, so the test doesn't mistakenly hit the max-open-files
82894         limit.
82895
82896 2001-11-18  Paul Eggert  <eggert@twinsun.com>
82897
82898         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
82899         (TEMPORARIES): New macro.
82900         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
82901         removes an artificial limitation (e.g. HP-UX 10.20, where
82902         TMP_MAX is 17576).
82903
82904 2001-11-18  Jim Meyering  <meyering@lucent.com>
82905
82906         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
82907
82908 2001-11-18  Jim Meyering  <meyering@lucent.com>
82909
82910         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
82911         on SunOS 4.
82912
82913         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
82914         files will be created before anything else.
82915
82916 2001-11-17  Paul Eggert  <eggert@twinsun.com>
82917
82918         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
82919         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
82920
82921 2001-11-17  Jim Meyering  <meyering@lucent.com>
82922
82923         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
82924         Prompted by a report from Bob Proulx.
82925
82926         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
82927         Instead, require UTILS_FUNC_MKSTEMP.
82928
82929 2001-11-17  Jim Meyering  <meyering@lucent.com>
82930
82931         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
82932         Now, that's done as part of AC_FUNC_STRTOD.
82933
82934 2001-11-17  Jim Meyering  <meyering@lucent.com>
82935
82936         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
82937         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
82938         rather than group writable.  Patch by Juan F. Codagnone.
82939
82940         * lib/readtokens.c: Remove explicit declarations of xmalloc and
82941         xrealloc, Instead, include "xalloc.h".
82942
82943         * lib/mountlist.c: Include unlocked-io.h after all system headers.
82944         Remove explicit declarations of xmalloc, xrealloc,
82945         and xstrdup.  Instead, include "xalloc.h".
82946
82947         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
82948         unlocked-io.h.
82949         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
82950         Likewise.
82951         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
82952
82953         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
82954         Reported by Padraig Brady.
82955
82956         * lib/mkstemp.c: #undef mkstemp.
82957         Include config.h.
82958         (rpl_mkstemp): Rename from mkstemp.
82959         Protoize.
82960
82961 2001-11-16  Jim Meyering  <meyering@lucent.com>
82962
82963         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
82964         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
82965         determine the amount of total physical memory, use pstat_getstatic.
82966         HPUX-11 doesn't define _SC_PHYS_PAGES.
82967         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
82968         If sysconf couldn't be used to determine the amount of available
82969         physical memory, use both pstat_getstatic and pstat_getdynamic.
82970         Based on a patch from Bob Proulx.
82971
82972 2001-11-10  Jim Meyering  <meyering@lucent.com>
82973
82974         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
82975         (jm_PREREQ): Use it.
82976
82977 2001-11-09  Jim Meyering  <meyering@lucent.com>
82978
82979         * m4/jm-macros.m4: Require autoconf-2.52f.
82980         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
82981         Use these AC_-prefixed names, not the AM_-prefixed ones.
82982
82983         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
82984
82985 2001-11-05  Jim Meyering  <meyering@lucent.com>
82986
82987         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
82988
82989 2001-11-04  Jim Meyering  <meyering@lucent.com>
82990
82991         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
82992         $DEFS.
82993
82994 2001-11-03  Jim Meyering  <meyering@lucent.com>
82995
82996         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
82997         of AC_DEFUN.
82998
82999         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
83000         know the name of the variable in the macro definition.
83001
83002 2001-11-03  Jim Meyering  <meyering@lucent.com>
83003
83004         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
83005         in argmatch_to_argument call.
83006
83007         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
83008         argument.
83009
83010         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
83011         e.g., a fault due to an attempt to free a NULL pointer.
83012
83013 2001-11-01  Jim Meyering  <meyering@lucent.com>
83014
83015         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
83016         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
83017
83018 2001-11-01  Jim Meyering  <meyering@lucent.com>
83019
83020         * lib/dirfd.c, lib/dirfd.h: New files.
83021         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
83022
83023         * lib/hash.c (hash_print) [TESTING]: Clean up.
83024
83025 2001-10-22  Paul Eggert  <eggert@twinsun.com>
83026
83027         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
83028         to avoid a warning if -Wall.
83029
83030 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
83031
83032         * README: New file
83033         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
83034         (per RMS's instructions, this is now the canonical source)
83035         * lgpl/, gpl/: New directories.
83036
83037 2001-10-21  Paul Eggert  <eggert@twinsun.com>
83038
83039         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
83040
83041 2001-10-21  Jim Meyering  <meyering@lucent.com>
83042
83043         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
83044         this code would end up calling gettext even in packages built
83045         with --disable-nls.
83046         * lib/getopt.c (_): Likewise.
83047         * lib/regex.c (_): Likewise.
83048
83049 2001-10-20  Paul Eggert  <eggert@twinsun.com>
83050
83051         * m4/error.m4 (jm_PREREQ_ERROR):
83052         Do not invoke AC_CHECK_FUNCS with strerror_r, as
83053         AC_FUNC_STRERROR_R does that.
83054         Check for strerror declaration.
83055
83056         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
83057         are supposed to have them these days.
83058         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
83059         Merge changes from latest Autoconf CVS.
83060         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
83061         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
83062         POSIX decided to standardize on the int flavor of strerror_r.
83063
83064 2001-10-20  Paul Eggert  <eggert@twinsun.com>
83065
83066         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
83067         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
83068         Use strerror_r that is only a macro, even if it is not a function.
83069         (strerror): Check for HAVE_DECL_STRERROR before declaring.
83070         (private_strerror): Use prototypes, not old-style function definition.
83071         (print_errno_message): New function.
83072         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
83073         char*-flavored one.
83074         (error_tail, error, error_at_line): Use it.
83075
83076 2001-10-11  Jim Meyering  <meyering@lucent.com>
83077
83078         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
83079         and quote_n (1, ... to avoid clobbering a buffer.
83080
83081 2001-10-05  Jim Meyering  <meyering@lucent.com>
83082
83083         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
83084         hash-pjw.h.
83085         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
83086         * lib/hash-pjw.h: New file.
83087
83088 2001-09-30  Jim Meyering  <meyering@lucent.com>
83089
83090         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
83091         `struct fsstat' has the `f_fstypename' member.
83092         Use that to define FS_TYPE, which is now used to make
83093         the getfsstat link test tighter.
83094
83095 2001-09-30  Jim Meyering  <meyering@lucent.com>
83096
83097         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
83098         Include <sys/ucred.h>, for Apple Darwin.
83099         Include sys/mount.h and sys/fs_types.h only if available.
83100         (FS_TYPE): Define.
83101         (read_filesystem_list): Use FS_TYPE.
83102
83103 2001-09-29  Paul Eggert  <eggert@twinsun.com>
83104
83105         * lib/exclude.c (excluded_filename): 0 -> false, since it's
83106         a boolean context.
83107
83108 2001-09-29  Jim Meyering  <meyering@lucent.com>
83109
83110         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
83111         [one-argument getmntent function]): Include stdio.h before mntent.h.
83112         SunOS 4.1.x needs it for the declaration of `FILE'.
83113         Patch by Volker Borchert.
83114
83115         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
83116         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
83117         sys/fs_types.h, and make the link-test for getfsstat guard #include
83118         directives with appropriate #if HAVE_*_H tests so that we can
83119         detect getfsstat on Apple Darwin1.3.7 systems.
83120         Reported by Nelson Beebe.
83121         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
83122
83123 2001-09-28  Paul Eggert  <eggert@twinsun.com>
83124
83125         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
83126         #defines strtoimax.  Also treat the other strto* functions
83127         like strtoimax.
83128
83129         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83130         Check for strtoul and strtoumax,
83131         as those declarations are made even in the signed case.
83132         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
83133         Likewise, for strtol and strtoimax.
83134
83135 2001-09-28  Paul Eggert  <eggert@twinsun.com>
83136
83137         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
83138         #defines strtoimax.  Also treat the other strto* functions
83139         like strtoimax.
83140
83141         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
83142         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
83143         (strtoimax, strtoumax): Do not declare if already defined as a macro.
83144
83145 2001-09-26  Jim Meyering  <meyering@lucent.com>
83146
83147         Most macros in unlocked-io.h had the wrong number of arguments.
83148         * lib/gen-uio: New script.
83149         (USE_UNLOCKED_IO): Define to 1 if not already defined.
83150         * lib/unlocked-io.hin: Remove file.
83151         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
83152         rather than trying to embed it here.
83153         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
83154         Reported by Padraig Brady.
83155
83156 2001-09-25  Volker Borchert  <bt@teknon.de>
83157
83158         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
83159         `result'.
83160
83161 2001-09-24  Jim Meyering  <meyering@lucent.com>
83162
83163         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
83164
83165 2001-09-23  Jim Meyering  <meyering@lucent.com>
83166
83167         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
83168         instead of the mere test for existence of mntent.h.  The latter
83169         would get a false-positive on AIX 3.4 systems.
83170         In the outer getmntent if-block, don't die if neither of the getmntent
83171         tests succeeds.  Instead, just fall through and continue with the
83172         remaining tests.
83173
83174 2001-09-23  Jim Meyering  <meyering@lucent.com>
83175
83176         * lib/mountlist.c: Remove useless parentheses in #if directives.
83177         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
83178         the deprecated MOUNTED symbol is no longer defined in mntent.h.
83179
83180 2001-09-22  Jim Meyering  <meyering@lucent.com>
83181
83182         * m4/gettext.m4: New file.  From gettext.
83183         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
83184         * m4/progtest.m4: Likewise
83185         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
83186         * m4/glibc21.m4: Likewise.
83187
83188         * m4/libintl.m4: Remove.  No longer used.
83189
83190 2001-09-22  Jim Meyering  <meyering@lucent.com>
83191
83192         * lib/localcharset.c: Update from latest gettext.
83193         * lib/config.charset: Likewise.
83194
83195 2001-09-20  Jim Meyering  <meyering@lucent.com>
83196
83197         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
83198         strtoimax.
83199         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
83200         strtoumax.
83201
83202 2001-09-20  Jim Meyering  <meyering@lucent.com>
83203
83204         * lib/xstrtol.c (strtoimax): Guard declaration with
83205         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
83206         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
83207         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
83208         (strtoumax): Likewise, for completeness (it wasn't necessary).
83209
83210 2001-09-17  Paul Eggert  <eggert@twinsun.com>
83211
83212         * lib/strtoimax.c (HAVE_LONG_LONG):
83213         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
83214         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
83215         to work around bug in IBM C compiler.
83216
83217 2001-09-17  Jim Meyering  <meyering@lucent.com>
83218
83219         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
83220         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
83221         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
83222         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
83223         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
83224         whenever the right hand side need not be expanded by the shell.
83225
83226 2001-09-16  Paul Eggert  <eggert@twinsun.com>
83227
83228         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
83229         library.  It's not correct, as some older glibcs are buggy.
83230         fnmatch wasn't fixed until glibc 2.2.
83231
83232         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
83233         special shell magic here.
83234
83235 2001-09-16  Jim Meyering  <meyering@lucent.com>
83236
83237         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
83238         * m4/jm-macros.m4: Require it.
83239
83240 2001-09-16  Jim Meyering  <meyering@lucent.com>
83241
83242         * lib/mkdir.c: New file.
83243
83244 2001-09-15  Jim Meyering  <meyering@lucent.com>
83245
83246         * m4/jm-macros.m4: Check for help2man.
83247
83248 2001-09-11  Jim Meyering  <meyering@lucent.com>
83249
83250         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
83251         The body, by Paul Eggert, was moved here from configure.in.
83252         * m4/jm-macros.m4: Require UTILS_HOST_OS.
83253
83254 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83255
83256         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
83257         (jm_PREREQ): Use it.
83258
83259 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83260
83261         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
83262         Use ssize_t, not int, to store result of readlink.
83263         Check for ssize_t overflow as well as size_t overflow,
83264         as POSIX says the result of readlink is implementation-defined
83265         when ssize_t overflows.
83266         Remove unnecessary cast to char*.
83267         Use free+malloc instead of realloc, as the storage doesn't need
83268         to be preserved and it's clearer and can be more efficient that way.
83269         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
83270         * lib/xreadlink.h (xreadlink): Update prototype.
83271
83272 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83273
83274         * lib/xgetcwd.c: Revert some of the previous change; intead,
83275         fix the HAVE_GETCWD_NULL code to behave more like the
83276         !HAVE_GETCWD_NULL code used to.
83277
83278         Include "xalloc.h".
83279         (xgetcwd): Do not return NULL when memory is exhausted; instead,
83280         invoke xalloc_die.
83281
83282 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83283
83284         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
83285         sys/param.h, as pathmax.h includes them.
83286
83287 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83288
83289         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
83290         (jm_PREREQ_XGETCWD): New macro.
83291
83292         * m4/getcwd.m4: New file.
83293
83294 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83295
83296         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
83297         like the HAVE_GETCWD_NULL code.
83298         Include pathmax.h if not HAVE_GETCWD.
83299         Do not include xalloc.h.
83300         (INITIAL_BUFFER_SIZE): New symbol.
83301         Do not use xmalloc / xrealloc, since the caller is responsible for
83302         handling errors.  Preserve errno around `free' during failure.
83303         Do not overrun buffer when using getwd.
83304
83305 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83306
83307         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
83308         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
83309         getcwd (NULL, 0).
83310
83311 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83312
83313         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
83314         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
83315         spotted by Jim Meyering.
83316
83317 2001-09-03  Jim Meyering  <meyering@lucent.com>
83318
83319         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
83320         failure.
83321
83322 2001-09-02  Jim Meyering  <meyering@lucent.com>
83323
83324         * lib/error.c: Update from GNU libc.
83325
83326 2001-09-01  Jim Meyering  <meyering@lucent.com>
83327
83328         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
83329         Used by df.
83330
83331 2001-09-01  Jim Meyering  <meyering@lucent.com>
83332
83333         * lib/xreadlink.c: New file.
83334         * lib/xreadlink.h: New file.
83335         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
83336         xreadlink.h.
83337
83338         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
83339         doesn't conflict with sparc Solaris 7's definition in
83340         /usr/include/sys/int_types.h.
83341
83342         * lib/exclude.c: Use `""', not `<>' to #include non-system header
83343         files.
83344         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
83345         and strncasecmp as r-values.  Unixware didn't have declarations.
83346
83347 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83348
83349         * lib/xstrtol.h: Add copyright notice.
83350         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
83351         LONGINT_INVALID_SUFFIX_CHAR.
83352
83353 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83354
83355         * lib/xstrtol.c (strtoimax): New decl.
83356
83357 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83358
83359         * lib/xgetcwd.c: Don't include pathmax.h.
83360         Include stdlib.h and unistd.h if available.
83361         Include xalloc.h.
83362         (xmalloc, xstrdup, free): Remove decls.
83363         (xgetcwd): Don't assume sizes fit in unsigned.
83364         Check for overflow when computing sizes.
83365         Simplify reallocation code.
83366
83367 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83368
83369         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
83370         a directory's st_size can have an arbitrary value, so the old
83371         usage could waste an arbitrary amount of memory.  All uses
83372         changed.
83373         * lib/savedir.h: Update prototype.
83374
83375 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83376
83377         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
83378
83379         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
83380         old strtoimax.c.
83381
83382         Also, make the following further changes to make this file's
83383         configuration more similar to that of strtol.c:
83384         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
83385         (strtoumax, uintmax_t, strtoull, strtol): Remove.
83386         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
83387         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
83388         changed to signed values.
83389
83390         And make the following changes as well:
83391         Fix copyright notice, as 1999 was missing.
83392         (verify): New macro.
83393         (strtoimax): Check sizes at compile-time, not run-time.
83394         Prefer strtol to strtoll if both work.
83395         (main): Remove; it was not that useful and was a pain to maintain.
83396
83397         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
83398
83399 2001-08-31  Jim Meyering  <meyering@lucent.com>
83400
83401         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
83402         Use an initial, malloc'd, buffer of length 128 rather than
83403         a statically allocated one of length 1024.
83404
83405 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83406
83407         Simplify code, partly by assuming autoconf 2.52 semantics.
83408
83409         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
83410
83411         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
83412         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
83413         All uses removed.
83414         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
83415         Move AC_REQUIRE to next-to-top level, to avoid confusion.
83416         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
83417         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
83418         jm_AC_HEADER_INTTYPES_H.
83419         * m4/jm-macros.m4 (jm_MACROS): Likewise.
83420
83421         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
83422
83423         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83424         Quote first arg of AC_DEFUN.
83425         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
83426         since they are needed to parse the include file even if we need
83427         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
83428         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
83429         but with opposite signedness.
83430
83431 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83432
83433         Merge 'exclude' changes from tar 1.13.22.
83434         This fixes one or two unlikely storage allocation overflow bugs,
83435         but doesn't change user-visible behavior otherwise.
83436
83437 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83438
83439         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
83440         (jm_PREREQ_EXCLUDE): New macro.
83441
83442 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83443
83444         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
83445         tm to be declared.
83446
83447 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83448
83449         * lib/hash.c: Remove '2001' from copyright notice.
83450
83451 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83452
83453         * lib/full-write.h: New file.
83454         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
83455         * lib/full-write.c: Correct credits, as cccp.c no longer
83456         exists and anyway it was so heavily changed from the old cccp
83457         code as to be unrecognizable.  Include full-write.h.
83458         (full_write): Return size_t, with short writes meaning failure.
83459         All callers changed.  This fixes a bug with large buffers
83460         on 64-bit hosts.
83461         * lib/utime.c: Include full-write.h.
83462
83463 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83464
83465         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
83466         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
83467         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
83468         Include if available.
83469         (<xalloc.h>): Include
83470         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
83471         (verify): New macro.  Use it to verify that EXCLUDE macros do not
83472         collide with FNM macros.
83473         (struct patopts): New struct.
83474         (struct exclude): Use it, as exclude patterns now come with options.
83475         (new_exclude): Support above changes.
83476         (new_exclude, add_exclude_file):
83477         Initial size must now be a power of two to simplify overflow checking.
83478         (free_exclude, fnmatch_no_wildcards): New function.
83479         (excluded_filename): No longer requires options arg, as the options
83480         are determined by add_exclude.  Now returns bool, not int.
83481         (excluded_filename, add_exclude):
83482         Add support for the fancy new exclusion options.
83483         (add_exclude, add_exclude_file): Now takes int options arg.
83484         Check for arithmetic overflow when computing sizes.
83485         (add_exclude_file): xrealloc might modify errno, so don't
83486         realloc until after errno might be used.
83487
83488         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
83489         New macros.
83490         (free_exclude): New decl.
83491         (add_exclude, add_exclude_file): Now takes int options arg.
83492         (excluded_filename): No longer requires options arg, as the options
83493         are determined by add_exclude.  Now returns bool, not int.
83494
83495 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83496
83497         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
83498
83499 2001-08-27  Jim Meyering  <meyering@lucent.com>
83500
83501         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
83502
83503         * lib/version-etc.c (N_): Remove definition.
83504         Revert most of last change.
83505         Instead, simply don't mark the `Copyright...' string for translation.
83506         Based on advice from Paul Eggert.
83507
83508         * lib/strtoxmax.c: Tweak comment.
83509
83510 2001-08-26  Jim Meyering  <meyering@lucent.com>
83511
83512         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
83513
83514         * m4/xstrtoimax.m4: New file.
83515         * m4/xstrtoumax.m4: Add comments explaining why we
83516         AC_REPLACE_FUNCS(strtol).
83517
83518 2001-08-26  Jim Meyering  <meyering@lucent.com>
83519
83520         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
83521         of copyright with `%s' so translators don't get an untranslated
83522         message in 2002.
83523         (COPYRIGHT_YEAR): Define.
83524         (version_etc): Use fprintf rather than fputs.
83525         Suggestion from Ulrich Drepper.
83526
83527         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
83528
83529         * lib/strtoll.c: New file, from GNU libc.
83530         * lib/xstrtoimax.c: New file.
83531
83532         * lib/xstrtol.h: Add xstrtoimax.
83533         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
83534         * lib/strtoimax.c: New file.  Likewise, but first define
83535         STRTOUXMAX_SIGNED.
83536
83537         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
83538         ...
83539         * lib/strtoxmax.c: ... then renamed to this.
83540
83541 2001-08-18  Paul Eggert  <eggert@twinsun.com>
83542
83543         * m4/inttypes.m4: Add AC_PREREQ(2.13).
83544         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
83545         (jm_AC_TYPE_INTMAX_T): New macro.
83546         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
83547
83548         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
83549
83550         * m4/longlong.m4: Renamed from ulonglong.m4.
83551         * m4/inttypes.m4: Renamed from inttypes_h.m4.
83552         * m4/uintmax_t.m4: Removed.
83553
83554 2001-08-13  Paul Eggert  <eggert@twinsun.com>
83555
83556         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
83557         Port to Solaris 8, where 'sed' requires a space after the 'r'
83558         command, and where sh dislikes "$/".  Clean up the spacing a bit.
83559         Redirect output to $tmp just once.
83560
83561 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
83562
83563         * lib/addext.c (<errno.h>): Include.
83564         (errno): Declare if not defined.
83565         (addext): Work correctly when pathconf returns -1 and leaves
83566         errno alone because there is no limit.  Also, work even if
83567         pathconf returns a value greater than SIZE_MAX.
83568
83569 2001-08-12  Jim Meyering  <meyering@lucent.com>
83570
83571         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
83572         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
83573         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
83574         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
83575         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
83576         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
83577         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
83578         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
83579         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
83580         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
83581         utime.m4, utimes.m4, xstrtoumax.m4:
83582         Quote the first argument in each use of AC_DEFUN.
83583
83584 2001-08-12  Jim Meyering  <meyering@lucent.com>
83585
83586         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
83587         Simply `return getcwd (NULL, 0);'.
83588         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
83589         Use 1300 as initial value for length, not PATH_MAX.
83590
83591         * lib/pathmax.h: Clean up cpp syntax.
83592
83593 2001-08-12  Jim Meyering  <meyering@lucent.com>
83594
83595         * lib/gettimeofday.c: New file.
83596         * lib/gtod.h: New file.
83597         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
83598
83599 2001-08-05  Jim Meyering  <meyering@lucent.com>
83600
83601         * m4/jm-macros.m4: Require autoconf-2.52.
83602
83603 2001-08-04  Jim Meyering  <meyering@lucent.com>
83604
83605         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
83606         stmt, to get in sync with glibc.
83607
83608 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83609
83610         The following changes are from gettext 0.10.39 as maintained by
83611         Bruno Haible.
83612
83613         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
83614         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
83615         with inverted sense.  All uses changed.
83616
83617         * lib/mbswidth.c: Don't include <limits.h>.
83618         Include <stdlib.h> and <string.h> unconditionally.
83619         (iswcntrl, mbsinit, ISCNTRL): New macros.
83620         (mbsnwidth): Use K&R style function declarations.
83621         Don't bother checking for MB_LEN_MAX == 1, since the compiler
83622         can optimize it when MB_CUR_MAX == 1.
83623         The width of control characters is zero, not 1.
83624
83625 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83626
83627         The following changes are from gettext 0.10.39 as maintained by
83628         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
83629
83630         * m4/codeset.m4: Upgrade to serial AM1.
83631         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
83632         all uses changed.  Quote first arg of AC_DEFUN.
83633         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
83634
83635         * m4/iconv.m4: Upgrade to serial AM2.
83636         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
83637         Add --with-libconv-prefix.
83638         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
83639         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
83640         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
83641         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
83642         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
83643
83644         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
83645         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
83646         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
83647         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
83648         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
83649         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
83650         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
83651         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
83652         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
83653
83654         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
83655         string.h any more.
83656
83657         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
83658         not the default value.
83659
83660         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
83661         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
83662         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
83663         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
83664         Also check for iswcntrl, used for wcwidth fallback.
83665         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
83666         to Autoconf 2.13.
83667
83668 2001-08-03  Jim Meyering  <meyering@lucent.com>
83669
83670         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
83671         as it was in the original.  Reported by Paul Eggert.
83672
83673 2001-07-16  Jim Meyering  <meyering@lucent.com>
83674
83675         * m4/gettimeofday.m4: New file.
83676         Prompted by a report from Bernhard Baehr.
83677
83678 2001-07-15  Jim Meyering  <meyering@lucent.com>
83679
83680         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
83681         stuff. Now it's in ../Makefile.cfg.
83682
83683 2001-07-15  Jim Meyering  <meyering@lucent.com>
83684
83685         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
83686         (BUILT_SOURCES): Add unlocked-io.h.
83687         (io_functions): Define.
83688         (unlocked-io.h): New rule.
83689         (DISTCLEANFILES): Add unlocked-io.h.
83690         (all-local): Depend on unlocked-io.h, to ensure it is created.
83691
83692         * lib/unlocked-io.hin: New file
83693
83694         * lib/regex.c: Update from glibc.
83695
83696 2001-07-05  Jim Meyering  <meyering@lucent.com>
83697
83698         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
83699         recommendation.
83700         (libfetish_a_SOURCES): Put all .h files here instead.
83701         Remove a thus-exposed (better checks in automake) duplicate and
83702         two unnecessary .h files.
83703
83704 2001-07-04  Jim Meyering  <meyering@lucent.com>
83705
83706         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
83707         that generates jm-glibc-io.m4 so that it doesn't trigger any make
83708         distcheck failure.
83709
83710 2001-07-02  Jim Meyering  <meyering@lucent.com>
83711
83712         The following changes were prompted by suggestions from Bruno Haible.
83713
83714         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
83715         is now generated.
83716         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
83717         definition of EXTRA_DIST.
83718         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
83719         ensure that the generated file is created/updated whenever the list
83720         of $(unlocked_functions) is changed.
83721         (jm-glibc-io.m4): New rule.
83722         (unlocked-io.h): New rule -- currently unused.
83723
83724 2001-06-24  Jim Meyering  <meyering@lucent.com>
83725
83726         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
83727         unmatched right bracket, rather than kludging it with an extra,
83728         falsely-matching quote in a comment.  Patch by Akim Demaille.
83729
83730 2001-06-11  Jim Meyering  <meyering@lucent.com>
83731
83732         * lib/regex.c: Update from GNU libc.
83733
83734 2001-05-27  Jim Meyering  <meyering@lucent.com>
83735
83736         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
83737         Check for ut_type in struct utmp.
83738
83739 2001-05-27  Jim Meyering  <meyering@lucent.com>
83740
83741         * lib/readutmp.h (UT_TYPE): Define.
83742
83743 2001-05-24  Jim Meyering  <meyering@lucent.com>
83744
83745         * lib/argmatch.c: Include "quote.h".
83746         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
83747         quote function.  Reported by Göran Uddeborg.
83748
83749 2001-05-22  Jim Meyering  <meyering@lucent.com>
83750
83751         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
83752         now that we use the package-supplied version unconditionally.
83753         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
83754
83755 2001-05-21  Jim Meyering  <meyering@lucent.com>
83756
83757         * m4/regex.m4: Change a couple backticks to single quotes to avoid
83758         shell syntax errors.
83759
83760 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83761
83762         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
83763
83764 2001-05-20  Paul Eggert  <eggert@twinsun.com>
83765
83766         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
83767         Don't bother to check library strftime, since
83768         we'll be using our own my_strftime function anyway.
83769         Define my_strftime instead of strftime.
83770
83771 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
83772
83773         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
83774         which is not yet declared.
83775
83776 2001-05-15  Jim Meyering  <meyering@lucent.com>
83777
83778         * m4/regex.m4: Use proper quoting so brackets appear in the test
83779         program.
83780         Reported by, and with help from, Bruno Haible.
83781
83782 2001-05-13  Jim Meyering  <meyering@lucent.com>
83783
83784         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
83785         undefined.
83786
83787 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83788
83789         dirname code cleanup.  base_name now behaves more compatibly
83790         with POSIX basename when given file names that have trailing
83791         slashes, and similarly for dir_name.  Add new primitives
83792         base_len and dir_len.  Put the directory-name-related decls
83793         into dirname.h.
83794
83795         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
83796         * lib/backupfile.c (base_name): Likewise.
83797         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
83798         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
83799         * lib/makepath.c (strip_trailing_slashes): Likewise.
83800         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
83801         ISSLASH): Likewise.
83802         * lib/rename.c (strip_trailing_slashes): Likewise.
83803         * lib/same.c (base_name): Likewise.
83804         * lib/stripslash.c (ISSLASH): Likewise.
83805
83806         * lib/addext.c: Include <dirname.h> after size_t is defined.
83807         * lib/backupfile.c: Likewise.
83808
83809         * lib/addext.c (addext): Use base_len to trim redundant
83810         trailing slashes instead of doing it ourselves.
83811         But do not trim the last slash if it is not redundant.
83812
83813         * lib/backupfile.c (find_backup_file_name,
83814         max_backup_version): Use base_len instead of rolling it ourselves.
83815         Handle the case of "" and (on DOS) "C:" correctly.
83816
83817         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
83818         needed. Include <string.h>, <dirname.h>.
83819         (base_name): Allow file names ending in slashes, other than names
83820         that are all slashes.  In this case, return the basename followed
83821         by the slashes.  This is more general, and can be used in places
83822         where the original base_name purposely had an assertion failure.
83823         (base_len): New function.
83824
83825         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
83826         Do not include <assert.h>; no longer needed.
83827         Include xalloc.h.
83828         (memrchr): Remove decl.
83829         (dir_name_r): Remove.
83830         (dir_len): Renamed from dirlen.  All callers changed.
83831         Rewrite in terms of base_name, for simplicity and consistency.
83832         (dir_name): Never return NULL.  All callers changed.
83833         Do not include <stdlib.h> in test program; no longer needed.
83834         return 0; is fine for test program.
83835
83836         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
83837         New macros.
83838         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
83839
83840         * lib/path-concat.c (path_concat): Use base_len to compute
83841         base length, not strlen; this means we cannot rely on memcpy
83842         to null-terminate.
83843
83844         * lib/same.c (STREQ): Remove.
83845         (same_name): Handle the case where the basename ends in trailing '/'.
83846
83847         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
83848         a slash was stripped.  Do not strip the last slash after a
83849         file system prefix.
83850
83851 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83852
83853         * lib/Makefile.am (libfetish_a_SOURCES):
83854         Add strftime.c, since we now compile it on all hosts.
83855
83856         * lib/strftime.c (my_strftime):
83857         Define to nstrftime if emacs, but only if my_strftime is not defined.
83858         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
83859         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
83860         Add one more extra argument: a nanoseconds value.
83861         All uses changed.
83862         (ns): New macro.
83863         (my_strftime function): Add %N format.
83864         (emacs_strftimeu): Renamed from emacs_strftime,
83865         with extra ut argument.
83866
83867 2001-05-09  Paul Eggert  <eggert@twinsun.com>
83868
83869         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
83870
83871 2001-04-21  Jim Meyering  <meyering@lucent.com>
83872
83873         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
83874         doesn't interfere.
83875
83876 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83877
83878         * m4/ftruncate.m4: Check for chsize.
83879         Link with ftruncate.o unconditionally if ftruncate is missing.
83880         This was required when cross-compiling to i586-mingw32msvc.
83881
83882 2001-04-08  Jim Meyering  <meyering@lucent.com>
83883
83884         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
83885         recomputed; that's necessary when the offset spans a DST transition.
83886         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
83887
83888 2001-04-02  Jim Meyering  <meyering@lucent.com>
83889
83890         * lib/regex.h, regex.c: Update from GNU libc.
83891
83892 2001-03-24  Jim Meyering  <meyering@lucent.com>
83893
83894         * m4/jm-macros.m4: Require autoconf-2.49d.
83895
83896 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
83897
83898         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
83899
83900 2001-03-19  Paul Eggert  <eggert@twinsun.com>
83901
83902         * lib/version-etc.c (version_etc_copyright): Update to 2001.
83903
83904 2001-03-17  Jim Meyering  <meyering@lucent.com>
83905
83906         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
83907         now that the version in autoconf is equivalent.
83908         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
83909
83910         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
83911         Suggestion from Akim Demaille.
83912
83913         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
83914         (jm_PREREQ_TEMPNAME): New function.
83915
83916 2001-03-16  Paul Eggert  <eggert@twinsun.com>
83917
83918         * lib/tempname.c (uint64_t): Define to uintmax_t if
83919         not defined, and if UINT64_MAX is not defined.
83920         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
83921         Reported by John David Anglin.
83922
83923 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
83924
83925         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
83926         resolve alias if codeset is empty.
83927         * lib/config.charset (BeOS): Use wildcard syntax.
83928
83929 2001-03-13  Jim Meyering  <meyering@lucent.com>
83930
83931         * lib/path-concat.c (path_concat)
83932         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
83933         concatenating e.g., `C:' and `foo'.
83934         From Bruno Haible.
83935
83936 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83937
83938         * lib/localcharset.c (locale_charset): Don't use
83939         setlocale(LC_CTYPE,NULL). Don't return NULL.
83940         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
83941
83942 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83943
83944         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
83945         support for DOS/DJGPP.
83946
83947 2001-03-01  Paul Eggert  <eggert@twinsun.com>
83948
83949         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
83950         lacks mkstemp.  Compile our own tempname.c if we compile our own
83951         mkstemp.c, as mkstemp relies on tempname.
83952
83953 2001-03-01  Jim Meyering  <meyering@lucent.com>
83954
83955         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
83956         AH_VERBATIM really does output its argument verbatim.
83957
83958 2001-02-28  Paul Eggert  <eggert@twinsun.com>
83959
83960         * lib/Makefile.am (libfetish_a_SOURCES):
83961         Add dup-safer.c, fopen-safer.c.
83962         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
83963
83964         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
83965         * lib/unistd-safer.h: New files.
83966
83967 2001-02-25  Paul Eggert  <eggert@twinsun.com>
83968
83969         The mkstemp replacement is taken from glibc 2.2.2, with some
83970         portability fixes for use outside glibc, as follows:
83971
83972         * lib/tempname.c (struct_stat64): New macro.
83973         (direxists, __gen_tempname): Use it.
83974         This avoids a portability problem with Solaris 8.
83975
83976         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
83977         (<stddef.h>, <stdint.h>, <string.h>):
83978         Include only if STDC_HEADERS || _LIBC.
83979         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
83980         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
83981         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
83982         (__set_errno): Define this macro if <errno.h> doesn't.
83983         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
83984         Define these macros if <stdio.h> doesn't.
83985         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
83986         Define these macros if <sys/stat.h>
83987         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
83988         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
83989         __xstat64): Define if not _LIBC.
83990         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
83991         (__gen_tempname): Invoke gettimeofday only if
83992         HAVE_GETTIMEOFDAY || _LIBC;
83993         otherwise, fall back on plain "time".
83994         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
83995
83996         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
83997
83998         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
83999
84000 2001-02-18  Paul Eggert  <eggert@twinsun.com>
84001
84002         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
84003
84004 2001-02-17  Paul Eggert  <eggert@twinsun.com>
84005
84006         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
84007         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
84008         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
84009         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
84010
84011 2001-02-17  Paul Eggert  <eggert@twinsun.com>
84012
84013         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
84014         Remove workaround macros for hosts that have mbrtowc but not
84015         mbstate_t, as we now insist on proper declarations for both
84016         before using mbrtowc.
84017
84018 2001-02-17  Jim Meyering  <meyering@lucent.com>
84019
84020         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
84021         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
84022         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
84023         UnixWare 7.1.1.
84024
84025         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
84026         rather than AC_CACHE_VAL.
84027
84028 2001-02-17  Jim Meyering  <meyering@lucent.com>
84029
84030         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
84031         around included file name.
84032
84033         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
84034
84035         * lib/strftime.c: Update from GNU libc (the only changes were to
84036         comments).
84037
84038 2001-02-17  Jim Meyering  <meyering@lucent.com>
84039
84040         * lib/regex.c: Update from libc.
84041
84042 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
84043
84044         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
84045         clash.
84046
84047 2001-02-16  Paul Eggert  <eggert@twinsun.com>
84048
84049         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
84050         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
84051         Reported by Mark Hounschell via Paul Eggert.
84052
84053 2001-02-07  Jim Meyering  <meyering@lucent.com>
84054
84055         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
84056
84057 2001-02-05  Jim Meyering  <meyering@lucent.com>
84058
84059         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
84060         it includes the patch required for `large file' support with at least
84061         HP-UX's 10.20 /bin/cc.
84062
84063 2001-02-03  Jim Meyering  <meyering@lucent.com>
84064
84065         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
84066         AS_IF, now that it works once again (mysteriously).
84067         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
84068
84069 2001-01-30  Jim Meyering  <meyering@lucent.com>
84070
84071         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
84072         * m4/chown.m4: Rename conftestchown to conftest.chown.
84073         * m4/rename.m4: s/conftestdir/conftest.d1/ and
84074         s/conftestdir2/conftest.d2/.
84075         * m4/utimes.m4: s/conftestdata/conftest.data/
84076         Inspired by Pavel Roskin's change in autoconf.
84077
84078 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
84079
84080         * lib/config.charset: Update for FreeBSD 4.2.
84081
84082 2001-01-27  Jim Meyering  <meyering@lucent.com>
84083
84084         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
84085         a use of AS_IF.
84086         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
84087
84088 2001-01-26  Jim Meyering  <meyering@lucent.com>
84089
84090         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
84091         quotearg.c includes it.
84092
84093 2001-01-26  Jim Meyering  <meyering@lucent.com>
84094
84095         * lib/quotearg.c: Include stddef.h.
84096         * lib/quote.c: Include stddef.h.
84097         Reported by Axel Kittenberger.
84098
84099         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
84100         line in double quotes so that it evokes a better diagnostic.
84101         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
84102         Reported by Axel Kittenberger.
84103
84104 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
84105
84106         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
84107         as if it was a `charset'.
84108
84109 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
84110
84111         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
84112         has const.
84113
84114 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
84115
84116         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
84117         to avoid a warning.  Add back 'const' to inptr.
84118
84119 2001-01-20  Jim Meyering  <meyering@lucent.com>
84120
84121         Be sure that headers are checked before used in code compiled
84122         for the type checks.
84123         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
84124         In place of that, invoke jm_CHECK_ALL_TYPES.
84125         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
84126         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
84127         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
84128         The check for ssize_t was mistakenly run before the test for unistd.h.
84129
84130         The configure-time check for stdbool.h was missing.
84131         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
84132         (jm_PREREQ_HASH): New function.
84133
84134 2001-01-17  Jim Meyering  <meyering@lucent.com>
84135
84136         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
84137         for autoconf-2.49c.
84138         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
84139
84140 2001-01-16  Jim Meyering  <meyering@lucent.com>
84141
84142         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
84143         From Bruno Haible.
84144
84145 2001-01-14  Jim Meyering  <meyering@lucent.com>
84146
84147         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
84148         foo and bar.  Create conftestdir/ in the script, not in the C code.
84149         Remove directories in the script, not in the C code.
84150         Remove conftestdir{,2} before trying to create the directory.
84151         Make the entire configure script fail if the mkdir fails.
84152
84153 2001-01-14  Jim Meyering  <meyering@lucent.com>
84154
84155         * lib/rename.c: New file.  From Volker Borchert.
84156         Include stdlib.h, string.h or strings.h, and xalloc.h.
84157         Use strip_trailing_slashes rather than open-coding it.
84158
84159 2001-01-03  Paul Eggert  <eggert@twinsun.com>
84160
84161         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
84162
84163 2001-01-03  Jim Meyering  <meyering@lucent.com>
84164
84165         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
84166         of local `inptr' to avoid warning with some system declarations of
84167         iconv.
84168
84169 2001-01-02  Volker Borchert  <bt@teknon.de>
84170
84171         * m4/rename.m4: New file.
84172         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
84173
84174 2001-01-01  Jim Meyering  <meyering@lucent.com>
84175
84176         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
84177         even on systems with utmpx.h.  It's necessary for the declaration of
84178         utmp's ut_user member.  Reported by Andreas Jaeger.
84179
84180         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
84181         available. They are required for the declarations of getgrgid and
84182         getpwuid resp.
84183         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
84184         Reported by Andreas Jaeger.
84185
84186 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
84187
84188         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
84189         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
84190         so `make install' also works in VPATH builds.
84191
84192 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
84193
84194         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
84195         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
84196         can be used in subdirectories.
84197
84198 2000-12-29  Paul Eggert  <eggert@twinsun.com>
84199
84200         * lib/modechange.c: Do not assume that mode_t uses the
84201         traditional octal encoding.  E.g. "chmod 1 FOO" should set
84202         the other-execute bit of FOO even if S_IXOTH != 1.
84203
84204         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
84205         WOTH, XOTH, ALLM): New macros.
84206         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
84207          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
84208         Use them.
84209         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
84210         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
84211         (mode_compile):
84212         No need to use uintmax_t; unsigned long is long enough.
84213         Don't bother to get suffix since we don't use it.
84214
84215 2000-12-26  Jim Meyering  <meyering@lucent.com>
84216
84217         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
84218         better with autoheader.
84219
84220 2000-12-24  Jim Meyering  <meyering@lucent.com>
84221
84222         * lib/hash.c (is_prime): Return explicit boolean values.
84223         (hash_get_first): Return NULL to appease Irix5.6's 89.
84224         Reported by Nelson Beebe.
84225
84226 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
84227
84228         * lib/localcharset.c (locale_charset): Add support for Win32.
84229
84230 2000-12-18  Paul Eggert  <eggert@twinsun.com>
84231
84232         * lib/physmem.h, lib/physmem.c: New files.
84233
84234         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
84235         (noinst_HEADERS): Add physmem.h.
84236
84237         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
84238         't' for compatibility with Solaris 8 sort.
84239
84240 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
84241
84242         * lib/config.charset: Add support for BeOS.
84243
84244 2000-12-17  Jim Meyering  <meyering@lucent.com>
84245
84246         * m4/dos.m4 (jm_AC_DOS): New file and macro.
84247         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
84248
84249 2000-12-16  Jim Meyering  <meyering@lucent.com>
84250
84251         This bug had a serious impact on chown: `chown N:M FILE' (for integer
84252         N and M) would have treated it like `chown N:N FILE'.
84253
84254         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
84255
84256 2000-12-16  Jim Meyering  <meyering@lucent.com>
84257
84258         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
84259         SHELLS_FILE to a file name that's useful on djgpp systems.
84260         Include stdlib.h.
84261         (ADDITIONAL_DEFAULT_SHELLS): Define.
84262         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
84263         Based mostly on a patch from Prashant TR.
84264
84265 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
84266
84267         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
84268         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
84269         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
84270
84271 2000-12-08  Andreas Schwab  <schwab@suse.de>
84272
84273         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
84274         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
84275
84276 2000-12-07  Jim Meyering  <meyering@lucent.com>
84277
84278         * lib/stripslash.c (ISSLASH): Define.
84279         (strip_trailing_slashes): Use ISSLASH rather than comparing against
84280         `/'.
84281         From Prashant TR.
84282
84283         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
84284         (dir_name_r): Declare this function as static.
84285         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
84286         manifest itself on a name containing a mix of slashes and
84287         backslashes.
84288         Make this function work with names starting with a DOS-style
84289         drive letter and colon prefix.
84290         (dir_name): Append `.' if necessary.
84291         Based mostly on patches from Prashant TR and Eli Zaretskii.
84292
84293         * lib/dirname.h (dir_name_r): Remove prototype.
84294
84295 2000-12-06  Paul Eggert  <eggert@twinsun.com>
84296
84297         * m4/off_t-format.m4: Remove this file.
84298         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
84299
84300 2000-12-06  Jim Meyering  <meyering@lucent.com>
84301
84302         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
84303         replacement strtoull, we may well need the replacement strtoul, too.
84304         Check for declarations of strtoul and strtoull.
84305         Check for strtol.  Mainly as a cue to cause automake to include
84306         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
84307         Check for limits.h -- strtol.c needs it.
84308
84309 2000-12-05  Jim Meyering  <meyering@lucent.com>
84310
84311         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
84312
84313 2000-12-04  Jim Meyering  <meyering@lucent.com>
84314
84315         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
84316         Also include memory.h, stdlib.h, unistd.h if appropriate.
84317         Reported by Andreas Jaeger (conflicting declaration of malloc).
84318
84319 2000-12-02  Jim Meyering  <meyering@lucent.com>
84320
84321         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
84322         * m4/jm-macros.m4 (jm_MACROS): require it.
84323
84324 2000-12-02  Jim Meyering  <meyering@lucent.com>
84325
84326         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
84327
84328 2000-12-01  Paul Eggert  <eggert@twinsun.com>
84329
84330         * lib/memrchr.c: Include <config.h> before any system include file.
84331
84332 2000-11-30  Jim Meyering  <meyering@lucent.com>
84333
84334         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
84335
84336 2000-11-30  Jim Meyering  <meyering@lucent.com>
84337
84338         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
84339
84340 2000-11-29  Paul Eggert  <eggert@twinsun.com>
84341
84342         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
84343
84344 2000-11-26  Jim Meyering  <meyering@lucent.com>
84345
84346         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
84347
84348 2000-11-22  Paul Eggert  <eggert@twinsun.com>
84349
84350         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
84351         size of (size_t) -1; it's not portable.
84352
84353 2000-11-17  Jim Meyering  <meyering@lucent.com>
84354
84355         * lib/strstr.c: Update from GNU libc.
84356
84357 2000-11-17  Akim Demaille  <akim@epita.fr>
84358
84359         * lib/obstack.h: Formatting changes.
84360         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
84361         prevent type checking.
84362         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
84363         cast the value to (void *): assigning a `foo *' to a `void *'
84364         variable is valid.
84365         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
84366
84367 2000-11-16  Jim Meyering  <meyering@lucent.com>
84368
84369         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
84370
84371 2000-11-11  Jim Meyering  <meyering@lucent.com>
84372
84373         * lib/error.c: Add a couple #includes, merging from GNU libc version.
84374
84375 2000-11-10  Jim Meyering  <meyering@lucent.com>
84376
84377         * lib/obstack.h: Update from GNU libc.
84378         * lib/obstack.c: Likewise.
84379
84380 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
84381
84382         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
84383
84384 2000-11-06  Paul Eggert  <eggert@twinsun.com>
84385
84386         * lib/getusershell.c (setusershell): Use rewind rather than
84387         fseek/fseeko, to avoid configuration hassles with fseeko.
84388         Don't bother opening SHELLS_FILE if shellstream is NULL;
84389         it's not necessary.
84390
84391 2000-11-05  Jim Meyering  <meyering@lucent.com>
84392
84393         * lib/makepath.h (make_dir): Declare.
84394         * lib/makepath.c (make_dir): Remove `static' attribute.
84395         Tweak a comment.
84396
84397 2000-11-04  Jim Meyering  <meyering@lucent.com>
84398
84399         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
84400
84401 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
84402
84403         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
84404         last one in a bucket, advance to the next bucket.
84405
84406 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
84407
84408         * lib/fnmatch.c: Do not comment out all the code if we are using
84409         the GNU C library, because in some cases we are replacing buggy
84410         code in the GNU C library itself.
84411
84412 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
84413
84414         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
84415         (regex_compile): Catch bogus \(\1\).
84416
84417 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84418
84419         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
84420         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
84421         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
84422
84423 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84424
84425         * lib/error.h, getline.h, modechange.h:
84426         Remove "2000" from Copyright line, as the file hasn't been
84427         changed this year other than in the copyright notice.
84428
84429         * lib/xalloc.h: Add "2000" to Copyright line, as this file
84430         was changed this year.
84431
84432 2000-10-29  Jim Meyering  <meyering@lucent.com>
84433
84434         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
84435         renaming.
84436         * m4/ls-mntd-fs.m4: Likewise
84437
84438 2000-10-29  Jim Meyering  <meyering@lucent.com>
84439
84440         * lib/xstat.in: Fix grammar in comment.
84441
84442 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
84443
84444         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
84445         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
84446         doesn't define __restrict_arr.
84447
84448 2000-10-28  Jim Meyering  <meyering@lucent.com>
84449
84450         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
84451         (jm_PREREQ_MEMCHR): New function.
84452
84453 2000-10-28  Jim Meyering  <meyering@lucent.com>
84454
84455         * lib/memchr.c: Update from libc.
84456         Adjust for portability:
84457         [HAVE_STDLIB_H]: Include stdlib.h.
84458         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
84459         Undef __memchr, too.
84460         [!weak_alias]: Define __memchr to memchr.
84461
84462         * lib/regex.c: Update from libc.
84463         * lib/regex.h: Likewise.
84464         * lib/getopt1.c: Likewise.
84465         * lib/memcmp.c: Likewise.
84466
84467         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
84468         Avoid using fseek, when possible -- it's broken by design.
84469         Patch by Ulrich Drepper.
84470
84471 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
84472
84473         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
84474         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
84475         Giving in to popular pressure to shut up the compiler with casts.
84476
84477 2000-10-26  Jim Meyering  <meyering@lucent.com>
84478
84479         * lib/strftime.c: Update from libc.
84480
84481 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
84482
84483         * regex.c: More `unsigned char' -> `re_char' changes.
84484         Also change several `int' into `re_wchar_t'.
84485         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
84486         (PUSH_FAILURE_POINTER): Don't cast any more.
84487         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
84488         We want GCC to complain, since this piece of code makes
84489         re_match non-reentrant, which *should* be fixed.
84490         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
84491         (EXTEND_BUFFER): Use RETALLOC.
84492         (SET_LIST_BIT): Don't cast.
84493         (re_wchar_t): New type.
84494         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
84495         that those two functions will always properly return.
84496         (IMMEDIATE_QUIT_CHECK): Cast to void.
84497         (analyse_first): Use recursion rather than an explicit stack.
84498         (re_compile_fastmap): Can't fail anymore.
84499         (re_search_2): Don't check re_compile_fastmap for failure.
84500         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
84501         Now also sets the new value (passed in a new argument).
84502         (re_match_2_internal): Use it.
84503         Also, use a new var `reg' of type size_t when looping through regs
84504         rather than reuse the inappropriate `mcnt'.
84505
84506 2000-10-25  Jim Meyering  <meyering@lucent.com>
84507
84508         * lib/obstack.c: Update from libc.
84509
84510 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
84511
84512         * regex.c (regex_compile): Change the way of handling a range from
84513         a char less than 256 to a char not less than 256.
84514
84515 2000-10-24  Andrew Innes  <andrewi@gnu.org>
84516
84517         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
84518         NT-Emacs only.
84519         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
84520         so that re_search functions only quit when callers expect them to.
84521
84522 2000-10-23  Jim Meyering  <meyering@lucent.com>
84523
84524         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
84525         wrong.  That set_locale call must not have any side effects.
84526         From Paul Eggert.
84527
84528 2000-10-22  Jim Meyering  <meyering@lucent.com>
84529
84530         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
84531         [CYCLIC]: Remove now-unused definition.
84532
84533         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
84534         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
84535         Suggestion from Ulrich Drepper.
84536
84537 2000-10-21  Jim Meyering  <meyering@lucent.com>
84538
84539         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
84540         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
84541         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
84542
84543 2000-10-21  Jim Meyering  <meyering@lucent.com>
84544
84545         * lib/dirname.c (memrchr): Declare if necessary.
84546         (dir_name): Remove the restriction that there be no
84547         trailing slashes.  Now, this code skips past them, effectively
84548         ignoring them.
84549         [TEST_DIRNAME] (main): New unit tests.
84550
84551         * lib/memrchr.c: New file from GNU libc.
84552         Undef __memrchr, too.
84553         [!weak_alias]: Define __memrchr to memrchr.
84554         Guard weak_alias use with `#ifdef weak_alias'.
84555
84556 2000-10-21  Jim Meyering  <meyering@lucent.com>
84557
84558         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
84559         (dir_name): Use dir_name_r.
84560         * lib/dirname.h (dir_name_r): Declare it.
84561
84562 2000-10-17  Jim Meyering  <meyering@lucent.com>
84563
84564         * lib/quote.h (PARAMS): Define and use.
84565         Reported by Akim Demaille.
84566
84567         * lib/getopt.c: Update from libc.
84568
84569 2000-10-16  Jim Meyering  <meyering@lucent.com>
84570
84571         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
84572         setlocale.
84573         From Jan Fedak.
84574
84575 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
84576
84577         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
84578
84579 2000-09-25  Jim Meyering  <meyering@lucent.com>
84580
84581         * lib/md5.h (rol): Define (from GnuPG).
84582
84583         * lib/sha.c: Give credit (GnuPG) where due.
84584         (M): Use rol rather than open-coding it.
84585         Add a FIXME comment.
84586
84587 2000-09-21  Jim Meyering  <meyering@lucent.com>
84588
84589         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
84590         Reported by Michael Stone.
84591
84592 2000-09-20  Jim Meyering  <meyering@lucent.com>
84593
84594         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
84595         (noinst_HEADERS): Add sha.h.
84596         Based on code from Scott G. Miller and from GnuPG.
84597
84598 2000-09-18  Jim Meyering  <meyering@lucent.com>
84599
84600         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
84601         LIBS. Otherwise, everyone ends up linking with -lelf for some
84602         configurations.
84603         Reported by Mike Stone.
84604
84605 2000-09-15  Jim Meyering  <meyering@lucent.com>
84606
84607         * lib/regex.c: Update from libc.
84608
84609 2000-09-10  Jim Meyering  <meyering@lucent.com>
84610
84611         * lib/getopt.c (_getopt_internal): Update from glibc.
84612
84613 2000-09-09  Jim Meyering  <meyering@lucent.com>
84614
84615         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
84616         think it should be used as a general replacement for isascii.
84617         * lib/fnmatch.c: Likewise.
84618         * lib/mbswidth.c: Likewise
84619         * lib/regex.c: Likewise.
84620
84621         Don't use atoi.
84622         * lib/userspec.c: Include sys/param.h and limits.h.
84623         Include xstrtol.h.
84624         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84625         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
84626         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
84627         UID, GID.  Check range.
84628
84629 2000-09-06  Jim Meyering  <meyering@lucent.com>
84630
84631         * lib/getopt.c (_getopt_internal): Update from glibc.
84632
84633 2000-08-30  Jim Meyering  <meyering@lucent.com>
84634
84635         * lib/strftime.c: Merge in changes from GNU libc.
84636
84637 2000-08-26  Jim Meyering  <meyering@lucent.com>
84638
84639         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
84640         * m4/fpending.m4: New file.
84641
84642 2000-08-26  Jim Meyering  <meyering@lucent.com>
84643
84644         * lib/closeout.c: Include "__fpending.h".
84645         (close_stdout_status): Return right away if there's nothing to flush.
84646
84647         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
84648         * lib/__fpending.c: New file.
84649         * lib/__fpending.h: New file.
84650
84651 2000-08-20  Jim Meyering  <meyering@lucent.com>
84652
84653         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
84654         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
84655         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
84656
84657 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
84658
84659         Improve fileutils installation on systems where running
84660         programs (like install) can't be unlinked.
84661         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
84662         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
84663
84664 2000-08-07  Paul Eggert  <eggert@twinsun.com>
84665
84666         Standardize on "memory exhausted" instead of "Memory exhausted"
84667         or "virtual memory exhausted".
84668         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
84669         "virtual memory exhausted".
84670         * lib/same.c (same_name): Invoke xalloc_die instead of printing
84671         our own message.
84672         * lib/userspec.c (parse_user_spec): Likewise.
84673         * lib/bumpalloc.h: comment fix
84674         * lib/same.c, userspec.c: Include xalloc.h.
84675
84676         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
84677         not char *const and pointing to a constant array.
84678         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
84679         (xrealloc): Comment fix.
84680
84681         * lib/userspec.c (parse_user_spec):
84682         Don't translate a message until just before returning,
84683         to avoid unnecessary translation.
84684
84685 2000-08-07  Jim Meyering  <meyering@lucent.com>
84686
84687         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
84688         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
84689         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
84690         getgroups.c, gethostname.c, getopt.h, group-member.c,
84691         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
84692         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
84693         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
84694         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
84695         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
84696         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
84697         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
84698         yesno.c: Back out Copyright date changes for each file with no change
84699         this year.  This eases coordination with other programs using the same
84700         source code modules.  From Paul Eggert.
84701
84702 2000-08-06  Paul Eggert  <eggert@twinsun.com>
84703
84704         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
84705         not char, for compatibility with glibc 2.1.3 strftime.c.
84706
84707 2000-08-03  Greg McGary  <greg@mcgary.org>
84708
84709         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
84710         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
84711         (EXTEND_BUFFER): Use them.
84712
84713 2000-08-01  Jim Meyering  <meyering@lucent.com>
84714
84715         * lib/dirname.c (ISSLASH): Define.
84716         (BACKSLASH_IS_PATH_SEPARATOR): Define.
84717         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
84718         both `\' and `/' may be use as path separators.
84719         Based on a patch from Prashant TR.
84720
84721 2000-07-31  Paul Eggert  <eggert@twinsun.com>
84722
84723         * lib/quotearg.c (quotearg_n_options): Don't make the initial
84724         slot vector a constant, since it might get modified.
84725
84726 2000-07-31  Jim Meyering  <meyering@lucent.com>
84727
84728         * lib/xmalloc.c: Use `virtual memory exhausted', not
84729         `Memory exhausted'.
84730         * lib/obstack.c (print_and_abort): Likewise.
84731
84732 2000-07-30  Paul Eggert  <eggert@twinsun.com>
84733
84734         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
84735         buffer, so that the caller can always quote one small
84736         component of a "memory exhausted" message in slot 0.
84737         From a suggestion by Jim Meyering.
84738
84739 2000-07-30  Jim Meyering  <meyering@lucent.com>
84740
84741         * lib/makepath.c (make_path): Quote the other instance, too.
84742
84743         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
84744         (STATIC_BUF_SIZE): Define.
84745         (quotearg_n_options): Use only statically allocated storage when
84746         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
84747         than STATIC_BUF_SIZE.
84748
84749 2000-07-29  Jim Meyering  <meyering@lucent.com>
84750
84751         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
84752         * lib/dirname.c (dir_name): Likewise.
84753
84754         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
84755         `/'.
84756
84757         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
84758         (dir_name): Assert that there are no trailing slashes.
84759
84760 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
84761
84762         * lib/mbswidth.h (mbswidth): Add a flags argument.
84763         (mbswidth): New declaration.
84764         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
84765         * lib/mbswidth.c (mbswidth): Add a flags argument.
84766         (mbsnwidth): New function.
84767
84768 2000-07-24  Jim Meyering  <meyering@lucent.com>
84769
84770         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
84771
84772 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84773
84774         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
84775
84776 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84777
84778         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
84779         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
84780         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
84781         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
84782         invoke multibyte primitives.
84783
84784 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84785
84786         * lib/quotearg.c:
84787         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
84788         so that mbstate_t is always defined.
84789
84790         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
84791         be 1 in at least one GCC installation, and this configuration
84792         error is likely to be common.  Ignoring MB_LEN_MAX hurts
84793         performance on hosts that have mbrtowc but have only unibyte
84794         locales, but I assume these hosts are rare.
84795
84796 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84797
84798         * lib/mbswidth.c (_XOPEN_SOURCE):
84799         Don't define; this causes problems on Solaris 7.
84800         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
84801
84802 2000-07-23  Jim Meyering  <meyering@lucent.com>
84803
84804         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
84805         too: getgrgid, getpwuid, getuid.
84806
84807 2000-07-23  Jim Meyering  <meyering@lucent.com>
84808
84809         * lib/basename.c (base_name): Add an assertion.
84810
84811 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
84812
84813         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
84814         shadow its mbsinit function.
84815
84816 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84817
84818         * lib/mbswidth.h: New file.
84819         * lib/mbswidth.c: New file.
84820         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
84821         (noinst_HEADERS): Add mbswidth.h.
84822
84823 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84824
84825         * lib/config.charset: Add support for FreeBSD. Improve support for
84826         HP-UX and IRIX 6.
84827
84828 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
84829
84830         * m4/mbswidth.m4: New file.
84831         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
84832
84833 2000-07-15  Jim Meyering  <meyering@lucent.com>
84834
84835         * lib/makepath.c: Include quote.h.
84836         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
84837         corresponding argument in a `quote (...)' call.
84838         Give better diagnostics.
84839
84840         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
84841         (noinst_HEADERS): Add quote.h.
84842
84843         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
84844         from tar's src/misc.c.
84845         * lib/quote.h: New file.  Prototypes for same.
84846
84847 2000-07-14  Paul Eggert  <eggert@twinsun.com>
84848
84849         From a suggestion by Bruno Haible.
84850         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
84851         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
84852         to decide whether to define the BeOS workaround macro;
84853         this adjusts to the change to AC_MBSTATE_T.
84854
84855 2000-07-14  Jim Meyering  <meyering@lucent.com>
84856
84857         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
84858         jm_AC_TYPE_UINTMAX_T.
84859
84860 2000-07-13  Paul Eggert  <eggert@twinsun.com>
84861
84862         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
84863
84864         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
84865         quotearg_buffer_restyled): Add support for
84866         clocale_quoting_style.  Undo previous change to
84867         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
84868         and "{RIGHT QUOTATION MARK}" msgids.
84869
84870 2000-07-10  Paul Eggert  <eggert@twinsun.com>
84871
84872         From a suggestion by Bruno Haible.
84873         * m4/mbstate_t.m4 (AC_MBSTATE_T):
84874         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
84875         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
84876         and mbstate_t, to a single-part test that simply defines mbstate_t.
84877         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
84878         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
84879
84880 2000-07-10  Jim Meyering  <meyering@lucent.com>
84881
84882         * m4/strerror_r.m4: Mirror the correction made in autoconf.
84883
84884         * m4/gnu-source.m4: Output to confdefs.h directly.
84885         Suggestion from Akim Demaille.
84886
84887 2000-07-09  Paul Eggert  <eggert@twinsun.com>
84888
84889         The old behavior of quoting `like this' doesn't look good with
84890         newer, ISO-style fonts.  See:
84891         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
84892
84893         Instead, quote "like this" by default.  Let the translator
84894         tailor the locale-specific quoting behavior by providing
84895         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
84896
84897         * lib/quotearg.c (N_): New macro.
84898         (gettext_default): New function.
84899         (quotearg_buffer_restyled): Use
84900         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
84901         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
84902
84903 2000-07-09  Jim Meyering  <meyering@lucent.com>
84904
84905         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
84906         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
84907
84908         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
84909         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
84910
84911 2000-07-09  Jim Meyering  <meyering@lucent.com>
84912
84913         * lib/Most files: Update copyright dates to include 2000.
84914
84915 2000-07-08  Jim Meyering  <meyering@lucent.com>
84916
84917         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
84918         if not defined.
84919         (xgethostname): Remove now-unnecessary #ifdef.
84920         Move declaration of `err' into loop where it's used.
84921
84922 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84923         and Bruno Haible  <haible@clisp.cons.org>
84924
84925         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
84926         only if the test for an object-type mbstate_t fails.  This
84927         prevents us from mistakenly reporting that mbstate_t is a
84928         system object type after we "#define mbstate_t int" to work
84929         around its lack.
84930
84931 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84932         and Bruno Haible  <haible@clisp.cons.org>
84933
84934         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
84935
84936 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84937
84938         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
84939         to strerror_r.
84940         Include <ctype.h> for use of isalpha.
84941
84942 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84943
84944         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
84945         by allocating a larger buffer. Test the gethostname return value for
84946         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
84947         returns an error and ENAMETOOLONG isn't defined.
84948
84949 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84950
84951         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
84952         dimension.
84953
84954 2000-07-04  Jim Meyering  <meyering@lucent.com>
84955
84956         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
84957         of the deprecated AC_CHECKING.
84958
84959 2000-07-04  Jim Meyering  <meyering@lucent.com>
84960
84961         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
84962         Reported by Bruno Haible.
84963
84964 2000-07-04  Jim Meyering  <meyering@lucent.com>
84965
84966         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
84967         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
84968         lacks mbrtowc.
84969
84970 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84971
84972         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
84973         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
84974
84975 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84976         and Bruno Haible  <haible@clisp.cons.org>
84977
84978         * lib/quotearg.c (mbrtowc):
84979         Assign to *pwc, and return 1 only if result is nonzero.
84980         (iswprint): Use ISPRINT when substituting our own mbrtowc.
84981
84982 2000-07-03  Jim Meyering  <meyering@lucent.com>
84983
84984         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
84985
84986 2000-07-03  Jim Meyering  <meyering@lucent.com>
84987
84988         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
84989         This is necessary to get a definition of e.g., UTMP_FILE on
84990         HP-UX 10.20.
84991         From Bob Proulx.
84992
84993 2000-07-02  Jim Meyering  <meyering@lucent.com>
84994
84995         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
84996
84997         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
84998         AC_LIBOBJ(function_name).
84999         * m4/chown.m4: Likewise.
85000         * m4/fnmatch.m4: Likewise.
85001         * m4/ftruncate.m4: Likewise.
85002         * m4/getgroups.m4: Likewise.
85003         * m4/getline.m4: Likewise.
85004         * m4/group-member.m4: Likewise.
85005         * m4/jm-macros.m4: Likewise.
85006         * m4/lstat.m4: Likewise.
85007         * m4/malloc.m4: Likewise.
85008         * m4/memcmp.m4: Likewise.
85009         * m4/nanosleep.m4: Likewise.
85010         * m4/putenv.m4: Likewise.
85011         * m4/realloc.m4: Likewise.
85012         * m4/regex.m4: Likewise.
85013         * m4/stat.m4: Likewise.
85014         * m4/strftime.m4: Likewise.
85015
85016 2000-07-02  Jim Meyering  <meyering@lucent.com>
85017
85018         * lib/quotearg.c (mbstate_t): Don't define here.
85019
85020 2000-07-02  Jim Meyering  <meyering@lucent.com>
85021
85022         * lib/nanosleep.c (SIGCONT): Define if not already defined.
85023
85024 2000-07-01  Jim Meyering  <meyering@lucent.com>
85025
85026         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
85027
85028 2000-07-01  Jim Meyering  <meyering@lucent.com>
85029
85030         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
85031         problem.
85032
85033 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
85034
85035         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
85036         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
85037
85038 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
85039
85040         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
85041         per change in ../m4/ls-mntd-fs.m4.
85042         (read_filesystem_list): Ignore symbolic links.
85043
85044 2000-06-29  Jim Meyering  <meyering@lucent.com>
85045
85046         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
85047         for declaration of strcmp.
85048
85049         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
85050
85051         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
85052         Avoid warning by casting result to `char *' to remove `const'.
85053
85054 2000-06-28  Jim Meyering  <meyering@lucent.com>
85055
85056         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
85057         included by quotearg.c, for which we perform this test.  From
85058         Bruno Haible.
85059
85060 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
85061
85062         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
85063         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
85064         <utmpx.h> exists, put readutmp.o into LIBOBJS.
85065
85066 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
85067
85068         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
85069
85070 2000-06-26  Paul Eggert  <eggert@twinsun.com>
85071
85072         savedir now sets errno on failure and invokes xmalloc to get memory.
85073         Fix a couple of other minor bugs while we're at it.
85074
85075         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
85076         (NAMLEN): Remove macro.
85077         (malloc, realloc): Remove decls.
85078         (stpcpy): Likewise.
85079         ("xalloc.h"): Include.
85080         (NAME_SIZE_DEFAULT): New macro.
85081         (savedir): Use xmalloc / xrealloc to allocate memory.
85082         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
85083         Skip "" directory entries.
85084         Use strlen to calculate directory entry length, since the old method
85085         is rarely used these days and isn't worth supporting.
85086         Don't use a pointer after freeing it.
85087         Check for integer overflow when calculating allocation size.
85088         Use memcpy to copy entries, instead of stpcpy.
85089         Set errno properly when returning NULL.
85090         Check for readdir error.
85091
85092 2000-06-26  Jim Meyering  <meyering@lucent.com>
85093
85094         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
85095
85096 2000-06-25  Jim Meyering  <meyering@lucent.com>
85097
85098         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
85099         Linux header bug when _XOPEN_SOURCE is defined to 500.
85100
85101 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
85102
85103         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
85104         deficiency.
85105
85106 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
85107
85108         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
85109         Include xalloc.h.
85110         Don't include <stdlib.h>.  Don't declare malloc, realloc.
85111
85112 2000-06-24  Jim Meyering  <meyering@lucent.com>
85113
85114         * m4/strerror_r.m4: Revive this file -- to try out an experimental
85115         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
85116         for which strerror does return char*, but which lacks a conveniently
85117         accessible declaration of the function.  If the compile-test says
85118         strerror_r doesn't work, then resort to a `run'-test that works on
85119         BeOS and segfaults on DEC Unix.
85120
85121 2000-06-24  Jim Meyering  <meyering@lucent.com>
85122
85123         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
85124
85125 2000-06-23  Paul Eggert  <eggert@twinsun.com>
85126
85127         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
85128         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
85129
85130 2000-06-23  Paul Eggert  <eggert@twinsun.com>
85131
85132         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
85133         (mbrtowc, mbstate_t): Define substitutes if
85134         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
85135         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
85136         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
85137
85138 2000-06-23  Jim Meyering  <meyering@lucent.com>
85139
85140         * m4/afs.m4: Add missing AC_MSG_RESULT.
85141         Reported by Bruno Haible.
85142
85143         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
85144         Suggestion from Bruno Haible.
85145
85146 2000-06-23  Jim Meyering  <meyering@lucent.com>
85147
85148         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
85149
85150 2000-06-21  Jim Meyering  <meyering@lucent.com>
85151
85152         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
85153
85154 2000-06-21  Jim Meyering  <meyering@lucent.com>
85155
85156         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
85157         (noinst_HEADERS): Add getstr.h.
85158
85159         * lib/getline.c (getstr): Move into a separate file.
85160         * lib/getstr.c (getstr): New file, extracted from getline.c, with
85161         the following changes: new parameter, delim2; both delim[12]
85162         parameters have type `int', not `char'.  The latter would lose
85163         with 8-bit delimiters.
85164         * lib/getstr.h: New file.
85165
85166 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85167
85168         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
85169         than 1024, return a memory chunk of least possible size, instead
85170         of size PATH_MAX + 2. In the loop, increment the size proportionally.
85171         Use free/xmalloc instead of xrealloc to avoid copying for very long
85172         paths.
85173
85174 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85175
85176         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
85177         the empty string.
85178
85179 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85180
85181         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
85182         address, not strdup.  Include <stdlib.h> and don't declare free().
85183
85184 2000-06-19  Jim Meyering  <meyering@lucent.com>
85185
85186         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
85187
85188 2000-06-18  Jim Meyering  <meyering@lucent.com>
85189
85190         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
85191
85192         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
85193         `checking whether...' message to be consistent with that of the
85194         lstat test.
85195
85196 2000-06-18  Jim Meyering  <meyering@lucent.com>
85197
85198         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
85199         Besides, these days every porting target provides a mkdir function.
85200
85201         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
85202         needed. (this snippet comes from src/system.h).
85203
85204 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
85205
85206         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
85207
85208 2000-06-15  Paul Eggert  <eggert@twinsun.com>
85209
85210         * lib/human.c (adjust_value): New function.
85211         (human_readable_inexact): Apply rounding style even when
85212         printing approximate values.
85213
85214 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85215
85216         * lib/human.c (human_readable_inexact): Allow an input block
85217         size that is not a multiple of the output block size, and vice versa.
85218         Reported by Piergiorgio Sartor.
85219
85220 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85221
85222         * lib/getdate.y (get_date): Apply relative times after time
85223         zone indicator, not before.  Reported by Todd A. Jacobs.
85224
85225 2000-06-13  Jim Meyering  <meyering@lucent.com>
85226
85227         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
85228
85229         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
85230
85231 2000-06-12  Paul Eggert  <eggert@twinsun.com>
85232
85233         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
85234
85235 2000-06-12  Jim Meyering  <meyering@lucent.com>
85236
85237         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
85238         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
85239         optional argument.
85240         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
85241         the optional argument, `lib'.
85242
85243 2000-06-08  Jim Meyering  <meyering@lucent.com>
85244
85245         * m4/largefile.m4: Remove file (now that it's part of autoconf).
85246
85247 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85248
85249         Rewrite largefile configuration so that we don't need to run
85250         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
85251         AC_CANONICAL_HOST in configure.in -- jmm]
85252
85253         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
85254         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
85255         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
85256         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
85257         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
85258         All uses changed.
85259         Instead of inspecting the output of getconf, try to compile the
85260         test program without and with the macro definition.
85261         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
85262         for getconf.  Instead, check for the needed flags by compiling
85263         test programs.
85264
85265 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85266
85267         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
85268
85269 2000-06-04  Jim Meyering  <meyering@lucent.com>
85270
85271         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
85272         SunOS 4.1.4 for which gid_t is an unsigned type.
85273
85274 2000-06-03  Jim Meyering  <meyering@lucent.com>
85275
85276         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
85277         now that autoconf requires that.
85278
85279         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
85280         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
85281         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
85282
85283 2000-06-03  Jim Meyering  <meyering@lucent.com>
85284
85285         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
85286
85287 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85288
85289         * m4/glibc21.m4: New file.
85290         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
85291
85292 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85293
85294         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
85295         newer, don't install charset.alias.
85296         * lib/config.charset: Change the Linux/glibc rules so they become empty
85297         on glibc-2.1 or newer.
85298
85299 2000-06-02  Jim Meyering  <meyering@lucent.com>
85300
85301         * lib/mountlist.c: Back out last change.  Instead, do this...
85302         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
85303         me_dummy member using the same `ignore'-testing code.
85304         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
85305         fs_type strings.
85306         From Mark D. Roth.
85307
85308 2000-05-29  Jim Meyering  <meyering@lucent.com>
85309
85310         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
85311         mounts with the `ignore' attribute.  Based on a patch from
85312         Mark D. Roth.
85313
85314 2000-05-28  Jim Meyering  <meyering@lucent.com>
85315
85316         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
85317         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85318         * m4/stat.m4: Likewise.
85319         * m4/lstat.m4: Likewise.
85320         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
85321
85322         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
85323         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
85324
85325 2000-05-26  Jim Meyering  <meyering@lucent.com>
85326
85327         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
85328
85329 2000-05-24  Jim Meyering  <meyering@lucent.com>
85330
85331         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
85332         autoconf requires that.
85333         * m4/lib-check.m4: Likewise.
85334         * m4/jm-macros.m4: Likewise.
85335         * m4/strftime.m4: Likewise.
85336
85337         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
85338         AC_CHECK_DECLS, now that autoconf requires that.
85339
85340 2000-05-22  Jim Meyering  <meyering@lucent.com>
85341
85342         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85343         * m4/lstat.m4: Likewise.
85344
85345 2000-05-22  Jim Meyering  <meyering@lucent.com>
85346
85347         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
85348
85349 2000-05-20  Jim Meyering  <meyering@lucent.com>
85350
85351         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
85352         (jm_PREREQ): Use it.
85353
85354 2000-05-18  Jim Meyering  <meyering@lucent.com>
85355
85356         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
85357         back, too, since it may have been modified by allocate_entry.
85358         (hash_delete): Rewrite to use neither the assignment operator
85359         nor the comma operator in an if-expression.
85360
85361 2000-05-15  Paul Eggert  <eggert@twinsun.com>
85362
85363         * lib/closeout.c:
85364         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
85365         Remove; no longer needed.
85366         "quotearg.h": Add include.
85367         (file_name): Do not bother to explicitly initialize to NULL; it's less
85368         efficient on some hosts.
85369         (close_stdout_status): Remove test as to whether stdout was already
85370         closed; it breaks for the case "echo x | sort >&-".
85371         Quote file name colons.
85372         Do not assume that _("write error") lacks format strings.
85373
85374 2000-05-15  Jim Meyering  <meyering@lucent.com>
85375
85376         * lib/version-etc.c (version_etc_copyright): Update the copyright
85377         string used in all --version output.
85378
85379 2000-05-14  Jim Meyering  <meyering@lucent.com>
85380
85381         * lib/closeout.c (close_stdout_set_file_name): New function.
85382         (close_stdout_status): Use new file-scoped global.
85383         Return right away if fstat says the stdout file descriptor is invalid.
85384         * lib/closeout.h (close_stdout_set_file_name): Declare.
85385
85386 2000-05-10  Jim Meyering  <meyering@lucent.com>
85387
85388         * lib/closeout.c [default_exit_status]: New file-scoped variable.
85389         (close_stdout_set_status): New function.
85390         * lib/closeout.h (close_stdout_set_status): Declare.
85391
85392 2000-05-09  Jim Meyering  <meyering@lucent.com>
85393
85394         * m4/gettext.m4: Rename this...
85395         * m4/libintl.m4: ...to this.
85396
85397 2000-05-08  Jim Meyering  <meyering@lucent.com>
85398
85399         * lib/long-options.c: Don't include closeout.h.
85400         (parse_long_options): Don't call close_stdout for --version.
85401
85402 2000-05-06  Paul Eggert  <eggert@twinsun.com>
85403
85404         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
85405         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
85406         2.1.3 bug.  This avoids a clash when files like regex.c define
85407         _GNU_SOURCE.
85408
85409 2000-05-06  Jim Meyering  <meyering@lucent.com>
85410
85411         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
85412         (AC_REPLACE_FUNCS): Add strnlen.
85413
85414         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
85415         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
85416
85417         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
85418         AC_SEARCH_LIBS call for nanosleep.
85419         (LIB_NANOSLEEP): Set and AC_SUBST.
85420
85421 2000-05-06  Jim Meyering  <meyering@lucent.com>
85422
85423         * lib/strnlen.c: Undefine __strnlen and strnlen.
85424         [!weak_alias]: Define __strnlen to strnlen.
85425
85426         * lib/atexit.c: New file, from libiberty.
85427
85428 2000-05-06  Jim Meyering  <meyering@lucent.com>
85429
85430         * lib/closeout.c (close_stdout_status): Also check for errors on the
85431         stderr stream.
85432
85433 2000-05-05  Jim Meyering  <meyering@lucent.com>
85434
85435         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
85436         AC_SEARCH_LIBS call for clock_gettime.
85437         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
85438
85439         * m4/search-libs.m4: Update from autoconf.
85440
85441         su doesn't work on Solaris 2.6.
85442         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
85443         <shadow.h>.  Reported by Dragos Harabor.
85444
85445 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
85446
85447         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
85448         memcpy instead of xmalloc, xrealloc, path_concat.
85449         (locale_charset): Treat empty environment variables as absent.
85450         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
85451
85452 2000-05-04  Jim Meyering  <meyering@lucent.com>
85453
85454         * lib/getopt.c: Update from glibc.
85455         * lib/obstack.c: Likewise.
85456         * lib/obstack.h: Likewise.
85457         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
85458         file
85459
85460         * lib/regex.h: Likewise.
85461         * lib/strndup.c: Likewise.
85462         * lib/strnlen.c: New file, from glibc.
85463
85464 2000-05-03  Jim Meyering  <meyering@lucent.com>
85465
85466         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
85467
85468 2000-05-02  Paul Eggert  <eggert@twinsun.com>
85469
85470         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
85471         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
85472         compile-time test, rather than inspecting host and OS, to
85473         decide whether to define _LARGEFILE_SOURCE.
85474
85475 2000-05-01  Jim Meyering  <meyering@lucent.com>
85476
85477         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
85478
85479         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
85480         Based on a patch from Bruno Haible.
85481
85482 2000-05-01  Jim Meyering  <meyering@lucent.com>
85483
85484         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
85485
85486 2000-04-29  Jim Meyering  <meyering@lucent.com>
85487
85488         * lib/path-concat.c: Declare strdup only if it's not defined.
85489         * lib/canon-host.c: Likewise.
85490
85491 2000-04-28  Jim Meyering  <meyering@lucent.com>
85492
85493         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
85494         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
85495         is included first, then limits.h is included by locale.h by libintl.h.
85496         From John David Anglin.
85497
85498 2000-04-25  Jim Meyering  <meyering@lucent.com>
85499
85500         * lib/makepath.c (S_IRWXUGO): Define.
85501         (make_path): Always perform explicit chmod if MODE specifies any
85502         of the `special' permission bits.  Prompted by a bug report against
85503         install from Mate Wierdl and Joost van Baal.
85504
85505 2000-04-18  Jim Meyering  <meyering@lucent.com>
85506
85507         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
85508         (jm_PREREQ): Use it.
85509
85510 2000-04-18  Jim Meyering  <meyering@lucent.com>
85511
85512         * lib/README: New file.
85513
85514         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
85515         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
85516
85517 2000-04-17  Jim Meyering  <meyering@lucent.com>
85518
85519         Get it right :-)
85520         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
85521         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
85522         Suggestion from Akim Demaille.
85523
85524 2000-04-17  Jim Meyering  <meyering@lucent.com>
85525
85526         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
85527         the definition of it to rpl_strftime also defined-away the system's
85528         declaration.
85529
85530 2000-04-15  Jim Meyering  <meyering@lucent.com>
85531
85532         Use `C' to denote so-called `contiguous' files, the same way
85533         that tar does.
85534         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
85535         (ftypelet): Use S_ISCTG.
85536         From Michael Deutschmann.
85537
85538 2000-04-14  Jim Meyering  <meyering@lucent.com>
85539
85540         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
85541         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
85542         clobbered.
85543
85544 2000-04-14  Jim Meyering  <meyering@lucent.com>
85545
85546         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
85547
85548 2000-04-13  Jim Meyering  <meyering@lucent.com>
85549
85550         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
85551         AH_VERBATIM to insert required #ifndef into config.h.in.
85552         Suggestion from Akim Demaille.
85553
85554 2000-04-12  Jim Meyering  <meyering@lucent.com>
85555
85556         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
85557         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
85558         Christian Krackowizer.
85559
85560         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
85561         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
85562         (AC_SYS_LARGEFILE): Require.
85563         (AM_C_PROTOTYPES): Require.
85564
85565 2000-04-08  Jim Meyering  <meyering@lucent.com>
85566
85567         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
85568         names don't conflict.  Reported by Eli Zaretskii.
85569
85570 2000-04-07  Jim Meyering  <meyering@lucent.com>
85571
85572         * lib/putenv.c: Move inclusion of errno.h so it follows that of
85573         sys/types.h, to work around system header problems on AIX 3.2.5.
85574         From Bruno Haible.
85575
85576 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
85577
85578         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
85579         bug.  Deal with the different error behavior of Irix iconv.
85580
85581 2000-04-05  Paul Eggert  <eggert@twinsun.com>
85582
85583         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
85584         IRIX if the installer said otherwise.
85585
85586 2000-04-05  Jim Meyering  <meyering@lucent.com>
85587
85588         Portability tweaks required for ultrix4.3.
85589         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
85590         (jm_CHECK_DECLS): Add getutent to the list of functions.
85591         (_jm_DECL_HEADERS): Add utmpx.h.
85592         From John David Anglin.
85593
85594         * m4/strftime.m4: Back out the 2000-04-02 change.
85595         Instead of that change, simply undefine putenv in the test program.
85596
85597 2000-04-05  Jim Meyering  <meyering@lucent.com>
85598
85599         Portability tweaks required for ultrix4.3.
85600         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
85601         getutent.
85602         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
85603         * lib/canon-host.c: Declare strdup.
85604         * lib/path-concat.c: Likewise.
85605         From John David Anglin.
85606
85607 2000-04-04  Jim Meyering  <meyering@lucent.com>
85608
85609         Be more DOS 8.3-friendly.
85610         * lib/ref-add.sin: Renamed from ref-add.sed.in.
85611         * lib/ref-del.sin: Renamed from ref-del.sed.in.
85612         * lib/Makefile.am: Reflect renaming.
85613         Reported by Eli Zaretskii.
85614
85615         Use a temporary file name that won't clash with `charset.alias'
85616         in the DOS 8.3 name space.
85617         * lib/Makefile.am (charset_tmp): Define.
85618         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
85619         (uninstall-local): Likewise.
85620         Reported by Eli Zaretskii.
85621
85622 2000-04-03  Jim Meyering  <meyering@lucent.com>
85623
85624         * m4/gettext.m4: Fix typo in comment.
85625
85626         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
85627         textutils/configure.in).  Suggestion from Paul Eggert.
85628         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
85629
85630 2000-04-02  Paul Eggert  <eggert@twinsun.com>
85631
85632         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
85633         variable in the shell rather than using putenv, which isn't
85634         portable.  This avoids the configure-time inter-test dependency
85635         on the potentially-renamed putenv function.
85636
85637 2000-03-30  Paul Eggert  <eggert@twinsun.com>
85638
85639         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
85640         before checking struct stat.st_blksize, so that
85641         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
85642
85643 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85644
85645         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
85646         since strftime.c uses HAVE_STRFTIME to decide whether to use
85647         the underlying strftime.
85648
85649 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85650
85651         * lib/time/strftime.c (my_strftime): Make sure we call the system
85652         strftime, not ourselves, when invoking the underlying strftime.
85653
85654 2000-03-24  Jim Meyering  <meyering@lucent.com>
85655
85656         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
85657         (charset_alias): Define.
85658         (install-exec-local): Factor out common code.
85659         (uninstall-local): Split lines longer than 80.
85660         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
85661         (SUFFIXES): Define.
85662         (.sed.in.sed): New rule.  Don't redirect directly to $@.
85663         (CLEANFILES): Add ref-add.sed and ref-del.sed.
85664
85665 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
85666
85667         * lib/config.charset: Output a line containing "Packages using this
85668         file".
85669         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
85670         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
85671         ref-del.sed): New rules.
85672
85673 2000-03-17  Jim Meyering  <meyering@lucent.com>
85674
85675         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
85676         Otherwise, include <strings.h>
85677
85678 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
85679
85680         * lib/unicodeio.c (utf8_wctomb): New function.
85681         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
85682         format instead of in UCS-4 with platform dependent endianness.
85683
85684 2000-03-10  Jim Meyering  <meyering@lucent.com>
85685
85686         * m4/lib-check.m4: Look for getspnam in -lgen, too.
85687         From Marco Franzen.
85688
85689 2000-03-07  Paul Eggert  <eggert@twinsun.com>
85690
85691         * lib/savedir.c (savedir): Work even if directory size is
85692         negative; this can happen with some screwy NFS configurations.
85693
85694 2000-03-06  Jim Meyering  <meyering@lucent.com>
85695
85696         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
85697         if it's NULL (because we ran out of memory).  From Bruno Haible.
85698
85699 2000-03-05  Jim Meyering  <meyering@lucent.com>
85700
85701         * lib/localcharset.c ("path-concat.h"): Include.
85702         (get_charset_aliases): Use path_concat instead of ANSI string
85703         concatenation.
85704
85705         * lib/unicodeio.h (PARAMS): Define.
85706         Use it to guard prototype.
85707
85708 2000-03-04  Jim Meyering  <meyering@lucent.com>
85709
85710         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
85711         for lib/localcharset.c.
85712
85713 2000-03-04  Jim Meyering  <meyering@lucent.com>
85714
85715         * lib/Makefile.am (install-exec-local): Create $(libdir) before
85716         installing into it.
85717         (uninstall-local): Uncomment this rule so `make distcheck' works
85718         once again.
85719
85720         * lib/unicodeio.c (<errno.h>): Include it.
85721         (errno): Declare if not defined.
85722
85723         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
85724
85725         * lib/config.charset: New version, incorporating remarks from a linux
85726         i18n mailing list.  From Bruno Haible.
85727
85728 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
85729
85730         * m4/codeset.m4: New file.
85731         * m4/iconv.m4: New file.
85732         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
85733
85734 2000-03-03  Jim Meyering  <meyering@lucent.com>
85735
85736         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
85737
85738 2000-03-02  Jim Meyering  <meyering@lucent.com>
85739
85740         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
85741         the messages come out on separate lines.
85742
85743         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
85744         rather than jm_CHECK_DECLARATIONS.
85745         * m4/decl.m4: Remove now-unused file.
85746
85747         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
85748         geteuid.
85749
85750 2000-03-02  Jim Meyering  <meyering@lucent.com>
85751
85752         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
85753
85754 2000-03-01  Jim Meyering  <meyering@lucent.com>
85755
85756         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
85757         * lib/unicodeio.c: Likewise.
85758
85759 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
85760
85761         * lib/config.charset: New file.
85762         * lib/localcharset.c: New file.
85763         * lib/unicodeio.h, lib/unicodeio.c: New files.
85764         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
85765         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
85766         (noinst_HEADERS): Add unicodeio.h.
85767         (all-local, install-exec-local, charset.alias): New targets.
85768
85769 2000-02-28  Paul Eggert  <eggert@twinsun.com>
85770
85771         * lib/quotearg.c (ALERT_CHAR): New macro.
85772         (quotearg_buffer_restyled): Use it.
85773
85774 2000-02-27  Jim Meyering  <meyering@lucent.com>
85775
85776         * m4/check-decl.m4: Add getenv to the list.
85777
85778 2000-02-27  Jim Meyering  <meyering@lucent.com>
85779
85780         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
85781         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
85782
85783         * lib/backupfile.c: Guard inclusion of stdlib.h with
85784         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
85785         Declare malloc if needed.
85786
85787         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
85788         `#ifndef HAVE_DECL..'
85789         now that autoconf always defines the HAVE_DECL_ symbols.
85790         * lib/human.c: Likewise.
85791         * lib/same.c: Likewise.
85792         * lib/strtoumax.c: Likewise.
85793
85794         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
85795         declaration check was not run.
85796         * lib/hash.c: Likewise.
85797         * lib/human.c: Likewise.
85798         * lib/same.c: Likewise.
85799         * lib/strtoumax.c: Likewise.
85800
85801         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
85802         `.', then first look up the entire `.'-containing string as a login
85803         name.
85804
85805 2000-02-23  Jim Meyering  <meyering@lucent.com>
85806
85807         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
85808         in place of my hack.
85809
85810 2000-02-18  Paul Eggert  <eggert@twinsun.com>
85811
85812         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
85813         (textint): New typedef.
85814         (parser_control): Member year changed from int to textint.
85815         All uses changed.
85816         (YYSTYPE): Removed; replaced by %union with int and textint members.
85817         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
85818         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
85819         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
85820         (tSNUMBER, tUNUMBER): Now of type <textintval>.
85821         (date, number, to_year): Use width of number in digits, not its value,
85822         to determine whether it's a 2-digit year, or a 2-digit time.
85823         (yylex): Store number of digits of numeric tokens.
85824         Reported by John Kendall.
85825
85826         (parser_control): Changed from struct parser_control to typedef (for
85827         consistency).  All uses changed.
85828
85829         (tID): Removed; not used.
85830         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
85831
85832 2000-02-14  Paul Eggert  <eggert@twinsun.com>
85833
85834         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
85835         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
85836
85837 2000-02-12  Jim Meyering  <meyering@lucent.com>
85838
85839         * lib/userspec.c (ISDIGIT): Define it.
85840         (isdigit): Remove definition.
85841         (is_number): Use ISDIGIT, not isdigit.
85842         <libintl.h>: Include.
85843         (_ and N_): Define.
85844         (parse_user_spec): Mark translatable strings.
85845
85846 2000-02-10  Jim Meyering  <meyering@lucent.com>
85847
85848         With these changes, nanosleep.[ch] are finally enough like the other
85849         lib/* replacement files to compile on a few more losing systems.
85850
85851         * lib/nanosleep.h: Don't include config.h.
85852         Remove prototype from declaration of nanosleep.
85853         (PARAMS): Remove now-unneeded definition.
85854         * lib/nanosleep.c: #undef nanosleep.
85855         (rpl_nanosleep): Rename from nanosleep.
85856
85857 2000-02-10  Jim Meyering  <meyering@lucent.com>
85858
85859         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
85860         gnu_nanosleep to rpl_nanosleep.
85861
85862 2000-02-09  Jim Meyering  <meyering@lucent.com>
85863
85864         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
85865         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
85866
85867 2000-02-08  Akim Demaille  <akim@epita.fr>
85868
85869         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
85870         `[' and `]' and remove uses of `changequote'.
85871         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
85872         (AC_SYS_LARGEFILE): Likewise.
85873         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
85874         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
85875         of changequote.
85876         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
85877         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
85878         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
85879         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
85880
85881 2000-02-05  Jim Meyering  <meyering@lucent.com>
85882
85883         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
85884         Remove explicit use of AC_HEADER_TIME.  It is required by
85885         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
85886         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
85887         in autoconf whereby the expansion of the latter ended up preceding
85888         the expansion of its prerequisite, AC_HEADER_TIME.
85889         Reported by Volker Borchert.
85890
85891 2000-02-03  Jim Meyering  <meyering@lucent.com>
85892
85893         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
85894
85895 2000-02-03  Jim Meyering  <meyering@lucent.com>
85896
85897         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
85898         rather than with `#if HAVE_UTMPNAME'.
85899
85900 2000-02-02  Jim Meyering  <meyering@lucent.com>
85901
85902         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
85903         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
85904         Reported by Eli Zaretskii.
85905
85906 2000-02-01  Jim Meyering  <meyering@lucent.com>
85907
85908         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
85909
85910 2000-01-31  Jim Meyering  <meyering@lucent.com>
85911
85912         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
85913         functions.  Add the time.h and sys/time.h headers along with the
85914         AC_REQUIRE'ment of AC_HEADER_TIME.
85915
85916 2000-01-31  Jim Meyering  <meyering@lucent.com>
85917
85918         * lib/nanosleep.h (nanosleep): Guard declaration with
85919         `#if ! HAVE_DECL_NANOSLEEP'.
85920         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
85921         the declaration in that vendor's sys/timers.h.
85922         Reported by Christian Krackowizer.
85923
85924         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
85925         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
85926         (ISPRINT): Likewise.
85927         Reported by Tom Tromey.
85928
85929 2000-01-30  Jim Meyering  <meyering@lucent.com>
85930
85931         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
85932
85933         * m4/prereq.m4 (utmp_includes): Define.
85934         Check for ut_user and ut_name members in both struct utmpx
85935         and struct utmp.
85936
85937 2000-01-30  Jim Meyering  <meyering@lucent.com>
85938
85939         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
85940         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
85941         header files where only utmpx.ut_user is declared.
85942
85943         * lib/readutmp.h (UT_USER): Define.
85944
85945 2000-01-29  Jim Meyering  <meyering@lucent.com>
85946
85947         * m4/lib-check.m4: New file containing library-related checks from
85948         fileutils and sh-utils (textutils had none).
85949
85950 2000-01-28  Jim Meyering  <meyering@lucent.com>
85951
85952         * m4/perl.m4: Change format of warning message to look more like that
85953         from the missing script.  Suggestion from François Pinard.
85954
85955 2000-01-25  Jim Meyering  <meyering@lucent.com>
85956
85957         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
85958         well as time.h in the compile check.
85959         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
85960         Fix typo in cross-compiling case: s/yes/no/.
85961
85962 2000-01-23  Jim Meyering  <meyering@lucent.com>
85963
85964         * m4/jm-macros.m4: Move df-related tests here from
85965         fileutils/configure.in
85966
85967         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
85968         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
85969
85970         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
85971         s/space/ac_fsusage_space/.
85972         (jm_FILE_SYSTEM_USAGE): Take two parameters.
85973
85974         * m4/ftruncate.m4: New file (derived from part of
85975         fileutils/configure.in).
85976         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
85977         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
85978
85979         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
85980         AC_SUBST these here, rather than just in sh-util/configure.in, so
85981         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
85982         all the same.
85983         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
85984         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
85985         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
85986         (AC_SUBST(POW_LIBM)): Likewise.
85987         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
85988
85989 2000-01-23  Jim Meyering  <meyering@lucent.com>
85990
85991         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
85992         obstack.c.
85993
85994 2000-01-22  Jim Meyering  <meyering@lucent.com>
85995
85996         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
85997
85998         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
85999
86000         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
86001         configure.in
86002         (AC_CHECK_HEADERS): Likewise for sh-utils.
86003         (AC_CHECK_HEADERS): Likewise for textutils.
86004         Merge the three lists of headers.
86005
86006         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
86007         from fileutils' configure.in.
86008
86009         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
86010         code. Moved tests into their own function (_jm_DECL_HEADERS) in
86011         check-decl.m4.
86012
86013         * m4/check-decl.m4: Use #if rather than #ifdef.
86014         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
86015         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
86016         (_jm_DECL_HEADERS): Define new function.
86017         (jm_CHECK_DECLARATIONS): Require it.
86018
86019 2000-01-22  Jim Meyering  <meyering@lucent.com>
86020
86021         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
86022         [! HAVE_DECL_STRTOULL]: Declare strtoull.
86023         Required for some AIX systems.  Reported by Christian Krackowizer.
86024         [TESTING] (main): New function.
86025
86026         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
86027         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
86028         letters.
86029
86030         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
86031         iswprint.
86032
86033         * lib/strverscmp.c (ISDIGIT): Define.
86034         (strverscmp): Use ISDIGIT, not isdigit.
86035
86036 2000-01-19  Jim Meyering  <meyering@lucent.com>
86037
86038         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
86039         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
86040         defines `struct timespec' in <sys/time.h>
86041
86042         * m4/c-bs-a.m4: Remove uses of changequote altogether.
86043         Thanks to Akim for explaining.
86044
86045 2000-01-17  Paul Eggert  <eggert@twinsun.com>
86046
86047         * lib/nanosleep.c (nanosleep):
86048         Don't use SA_INTERRUPT to decide whether to call sigaction, as
86049         POSIX.1 doesn't require SA_INTERRUPT and some systems
86050         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
86051         it's been part of POSIX.1 since day 1 (in 1988).
86052
86053 2000-01-17  Jim Meyering  <meyering@lucent.com>
86054
86055         * lib/interlock: Remove unused file.  Reported by François Pinard.
86056
86057 2000-01-16  Paul Eggert  <eggert@twinsun.com>
86058
86059         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
86060         alert, backslash, formfeed, and vertical tab unnecessarily in
86061         shell quoting style.
86062
86063 2000-01-16  Jim Meyering  <meyering@lucent.com>
86064
86065         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
86066         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
86067         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
86068         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
86069
86070 2000-01-16  Jim Meyering  <meyering@lucent.com>
86071
86072         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
86073         because the latter didn't work.
86074
86075 2000-01-15  Jim Meyering  <meyering@lucent.com>
86076
86077         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
86078         (AC_REPLACE_FUNCS): Add memcpy and memset.
86079         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
86080         Add strpbrk.
86081         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
86082
86083 2000-01-12  Jim Meyering  <meyering@lucent.com>
86084
86085         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
86086         (jm_PREREQ): Use it.
86087         (jm_PREREQ_READUTMP): New macro.
86088         (jm_PREREQ): Use it.
86089
86090 2000-01-11  Paul Eggert  <eggert@twinsun.com>
86091
86092         Quote multibyte characters correctly.
86093         * m4/c-bs-a.m4: New file.
86094         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
86095         (jm_PREREQ): Use it.
86096
86097 2000-01-11  Paul Eggert  <eggert@twinsun.com>
86098
86099         * m4/uintmax_t.m4: Port to autoconf 2.13.
86100
86101 2000-01-08  Jim Meyering  <meyering@ascend.com>
86102
86103         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
86104         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
86105
86106 2000-01-04  Jim Meyering  <meyering@ascend.com>
86107
86108         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
86109         jm_STRUCT_DIRENT_D_TYPE.
86110         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
86111         jm_STRUCT_DIRENT_D_INO.
86112         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
86113         jm_STRUCT_UTIMBUF.
86114         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
86115         renamings.
86116         * m4/utime.m4: Likewise.
86117
86118         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
86119         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
86120
86121 2000-01-03  Paul Eggert  <eggert@twinsun.com>
86122
86123         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
86124         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
86125
86126 2000-01-02  Jim Meyering  <meyering@ascend.com>
86127
86128         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
86129         remember if this is necessary.
86130
86131 1999-12-26  Jim Meyering  <meyering@ascend.com>
86132
86133         * m4/jm-macros.m4: Use it here.
86134         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
86135
86136 1999-12-23  Jim Meyering  <meyering@ascend.com>
86137
86138         * m4/jm-macros.m4: Check for clock_gettime (moved from
86139         fileutils/configure.in)
86140         Check for gettimeofday.
86141
86142 1999-12-20  Jim Meyering  <meyering@ascend.com>
86143
86144         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
86145         autoconf-2.14a-1999-12-20.
86146
86147 1999-12-19  Jim Meyering  <meyering@ascend.com>
86148
86149         * m4/lstat-slash.m4: New file.
86150         * m4/jm-macros.m4: Use the new macro:
86151         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86152
86153 1999-12-07  Jim Meyering  <meyering@ascend.com>
86154
86155         * m4/perl.m4: Require that File::Compare be available, too.
86156         Too many systems seem to lack it.
86157
86158         * m4/strftime.m4: Add checks for most of the cpp macros tested in
86159         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
86160
86161 1999-11-18  Paul Eggert  <eggert@twinsun.com>
86162
86163         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
86164         problem with the QNX 4.25 shell, which doesn't propagate exit
86165         status of failed commands inside shell assignments.
86166
86167 1999-11-17  Jim Meyering  <meyering@ascend.com>
86168
86169         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
86170
86171 1999-11-07  Jim Meyering  <meyering@ascend.com>
86172
86173         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
86174
86175 1999-11-06  Jim Meyering  <meyering@ascend.com>
86176
86177         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
86178         * m4/jm-macros.m4 (jm_MACROS): Use it here.
86179
86180 1999-11-05  Jim Meyering  <meyering@ascend.com>
86181
86182         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
86183         configure.in of textutils, fileutils, and sh-utils into this one
86184         (shared between those packages) file.
86185         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
86186         AC_STRUCT_ST_BLKSIZE.
86187
86188 1999-11-03  Jim Meyering  <meyering@ascend.com>
86189
86190         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
86191         of AC_CHECK_TYPE checks includes unistd.h.
86192         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
86193         Suggestion from Akim Demaille.
86194
86195 1999-10-30  Jim Meyering  <meyering@ascend.com>
86196
86197         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
86198         m4-quoted string.
86199         * m4/ls-mntd-fs.m4: Likewise.
86200         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
86201         * m4/jm-winsz1.m4: Likewise.
86202
86203         * m4/const.m4: Remove file, since the fix made it into the experimental
86204         version of autoconf.
86205         * m4/mktime.m4: Likewise.
86206
86207         * m4/check-type.m4: Remove file, now that the latest version of
86208         AC_CHECK_TYPE takes a third arg to specify additional #includes.
86209
86210         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
86211         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
86212         AC_CHECK_TYPE.
86213
86214 1999-10-04  Jim Meyering  <meyering@ascend.com>
86215
86216         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
86217
86218 1999-09-22  Paul Eggert  <eggert@twinsun.com>
86219
86220         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
86221         2.95.1 bug with HP-UX 10.20.
86222
86223 1999-09-17  Jim Meyering  <meyering@ascend.com>
86224
86225         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
86226         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
86227         due to missing strdup (against sh-utils-2.0).
86228
86229 1999-08-29  Jim Meyering  <meyering@ascend.com>
86230
86231         * m4/jm-macros.m4: Require jm_BISON.
86232         * m4/bison.m4: New file.
86233
86234 1999-08-17  Paul Eggert  <eggert@twinsun.com>
86235
86236         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
86237         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
86238
86239 1999-08-05  Jim Meyering  <meyering@ascend.com>
86240
86241         * m4/getline.m4: Rename test file from conftestdata to conftest.data
86242         to avoid conflicts with `conftest' on 8+3 filesystems.
86243         Suggestion from Eli Zaretskii.
86244
86245 1999-08-04  Jim Meyering  <meyering@ascend.com>
86246
86247         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
86248         fileutils and sh-utils (textutils's getline test was inadequate).
86249         (AM_FUNC_GETLINE): Run this test.
86250         (AC_CHECK_FUNCS): Check for getdelim.
86251         Reported by Bob Proulx.
86252
86253 1999-08-02  Jim Meyering  <meyering@ascend.com>
86254
86255         * m4/jm-macros.m4: Add a comment.
86256
86257 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86258
86259         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
86260         <inttypes.h> defines strtoumax as a macro (and not as a
86261         function).
86262
86263 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86264
86265         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
86266         that we can shift, multiply and divide unsigned long long
86267         values; Ultrix cc can't do it.
86268
86269 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86270
86271         * m4/mktime.m4: New file, which is a preview of what should appear
86272         in the next public autoconf release.
86273
86274 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86275
86276         * m4/lfs.m4: Remove this file.
86277         * m4/largefile.m4: New file.  It contains the old contents of
86278         lfs.m4, except that all names with prefix AC_LFS have been
86279         changed to use the prefix AC_SYS_LARGEFILE instead, to be
86280         compatible with future autoconf versions.  Also, some minor m4
86281         quoting problems have been fixed.
86282
86283 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86284
86285         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
86286         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
86287         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
86288         and simplify the shell code.
86289
86290 1999-08-01  Jim Meyering  <meyering@ascend.com>
86291
86292         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
86293         m4.
86294
86295 1999-07-20  Jim Meyering  <meyering@ascend.com>
86296
86297         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
86298
86299 1999-07-15  Jim Meyering  <meyering@ascend.com>
86300
86301         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
86302
86303 1999-05-22  Jim Meyering  <meyering@ascend.com>
86304
86305         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
86306
86307 1999-05-20  Jim Meyering  <meyering@ascend.com>
86308
86309         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
86310         Add a colon after each `then' in case $4 is empty.
86311
86312 1999-05-16  Jim Meyering  <meyering@ascend.com>
86313
86314         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
86315
86316 1999-05-10  Jim Meyering  <meyering@ascend.com>
86317
86318         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
86319
86320         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
86321         AC_FUNC_MKTIME.
86322
86323 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
86324
86325         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
86326
86327 1999-05-04  Paul Eggert  <eggert@twinsun.com>
86328
86329         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
86330         not CPPFLAGS, so that linking works correctly in IRIX.
86331
86332 1999-04-30  Paul Eggert  <eggert@twinsun.com>
86333
86334         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
86335
86336 1999-04-20  Paul Eggert  <eggert@twinsun.com>
86337
86338         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
86339         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
86340         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
86341         jm_AC_TYPE_UNSIGNED_LONG_LONG.
86342         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
86343
86344         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
86345
86346 1999-04-20  Jim Meyering  <meyering@ascend.com>
86347
86348         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
86349         AC_REPLACE xstroull if necessary.  From Paul Eggert.
86350         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
86351
86352 1999-04-18  Jim Meyering  <meyering@ascend.com>
86353
86354         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
86355         * m4/jm-macros.m4: Use it.
86356
86357 1999-04-06  Jim Meyering  <meyering@ascend.com>
86358
86359         * m4/strftime.m4: Remove test for %f.
86360
86361 1999-03-29  Jim Meyering  <meyering@ascend.com>
86362
86363         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
86364         superset of the AC_TYPE_* checks in the textutils, fileutils,
86365         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
86366         AC_TYPE_PID_T.
86367
86368 1999-03-28  Jim Meyering  <meyering@ascend.com>
86369
86370         * m4/jm-macros.m4: Define GNU_PACKAGE here.
86371         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
86372         replaced e.g., in the *.sh files of the sh-utils.
86373
86374 1999-03-20  Jim Meyering  <meyering@ascend.com>
86375
86376         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
86377         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
86378         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
86379
86380 1999-03-19  Jim Meyering  <meyering@ascend.com>
86381
86382         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
86383
86384 1999-03-12  Jim Meyering  <meyering@ascend.com>
86385
86386         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
86387
86388 1999-03-07  Jim Meyering  <meyering@ascend.com>
86389
86390         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
86391         declared.
86392
86393 1999-02-17  Jim Meyering  <meyering@ascend.com>
86394
86395         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
86396         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
86397
86398 1999-02-07  Jim Meyering  <meyering@ascend.com>
86399
86400         * m4/group-member.m4: New file -- extracted from sh-utils'
86401         configure.in.
86402
86403         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
86404         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
86405
86406 1999-02-06  Jim Meyering  <meyering@ascend.com>
86407
86408         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
86409         * m4/fnmatch.m4: Likewise.
86410         * m4/getgroups.m4: Likewise.
86411         * m4/lstat.m4: Likewise.
86412         * m4/malloc.m4: Likewise.
86413         * m4/putenv.m4: Likewise.
86414         * m4/realloc.m4: Likewise.
86415         * m4/regex.m4: Likewise.
86416         * m4/stat.m4: Likewise.
86417         * m4/strftime.m4: Likewise.
86418         Suggestion from Alain Magloire.
86419
86420         * m4/chown.m4: Use `.$ac_objext', not `.o'.
86421         * m4/fnmatch.m4: Likewise.
86422         * m4/getgroups.m4: Likewise.
86423         * m4/getline.m4: Likewise.
86424         * m4/lstat.m4: Likewise.
86425         * m4/malloc.m4: Likewise.
86426         * m4/memcmp.m4: Likewise.
86427         * m4/putenv.m4: Likewise.
86428         * m4/realloc.m4: Likewise.
86429         * m4/regex.m4: Likewise.
86430         * m4/stat.m4: Likewise.
86431         * m4/strftime.m4: Likewise.
86432         Suggestion from Alain Magloire.
86433
86434         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
86435         an argument.
86436
86437         * m4/regex.m4: Add a run-time Test for proper operation of
86438         re_compile_pattern.
86439
86440 1999-01-31  Jim Meyering  <meyering@ascend.com>
86441
86442         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
86443
86444 1999-01-30  Jim Meyering  <meyering@ascend.com>
86445
86446         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
86447
86448         * m4/jm-mktime.m4: Make this a wrapper around the official
86449         AM_FUNC_MKTIME rather than my private copy, now that the official one
86450         is up to date.
86451         * m4/mktime.m4: Remove file.
86452
86453         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
86454         * m4/uptime.m4: Likewise.
86455         * m4/uintmax_t.m4: Likewise.
86456
86457 1999-01-28  Jim Meyering  <meyering@ascend.com>
86458
86459         * m4/jm-macros.m4: Use jm_AFS.
86460         * m4/afs.m4: New file (from fileutils' configure.in).
86461
86462         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
86463         * m4/chown.m4: Likewise.
86464         * m4/d-ino.m4: Likewise.
86465         * m4/d-type.m4: Likewise.
86466         * m4/fnmatch.m4: Likewise.
86467         * m4/getgroups.m4: Likewise.
86468         * m4/gettext.m4: Likewise.
86469         * m4/jm-mktime.m4: Likewise.
86470         * m4/jm-winsz2.m4: Likewise.
86471         * m4/lcmessage.m4: Likewise.
86472         * m4/ls-mntd-fs.m4: Likewise.
86473         * m4/malloc.m4: Likewise.
86474         * m4/memcmp.m4: Likewise.
86475         * m4/putenv.m4: Likewise.
86476         * m4/realloc.m4: Likewise.
86477         * m4/st_mtim.m4: Likewise.
86478         * m4/strftime.m4: Likewise.
86479
86480 1999-01-16  Jim Meyering  <meyering@ascend.com>
86481
86482         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
86483         (ARGMATCH_DIE_DECL): Define.
86484
86485 1999-01-12  Jim Meyering  <meyering@ascend.com>
86486
86487         * m4/Makefile.am.in: Rewrite to avoid using fmt.
86488         Reported by Lars Hecking.
86489
86490 1999-01-10  Jim Meyering  <meyering@ascend.com>
86491
86492         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
86493         gross kludge.
86494         * m4/inttypes_h.m4: Likewise.
86495         * m4/lstat.m4: Likewise.
86496         * m4/malloc.m4: Likewise.
86497         * m4/readdir.m4: Likewise.
86498         * m4/realloc.m4: Likewise.
86499         * m4/st_dm_mode.m4: Likewise.
86500         * m4/stat.m4: Likewise.
86501         * m4/utimbuf.m4: Likewise.
86502         * m4/utimes.m4: Likewise.
86503
86504         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
86505         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
86506         comments in config.h.in are meaningful.
86507
86508         * m4/jm-macros.m4: Require autoconf-2.13 here.
86509
86510         * m4/regex.m4: By default, don't use the included regex.c on systems
86511         with glibc 2.  Suggestion from Uli Drepper.
86512
86513 1999-01-02  Jim Meyering  <meyering@ascend.com>
86514
86515         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
86516
86517 1998-12-18  Jim Meyering  <meyering@ascend.com>
86518
86519         * m4/Makefile.am.in (Makefile.am): Simplify rule.
86520         Based on a suggestion from Lars Hecking.
86521
86522 1998-11-16  Paul Eggert  <eggert@twinsun.com>
86523
86524         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
86525
86526 1998-11-16  Jim Meyering  <meyering@ascend.com>
86527
86528         * m4/lfs.m4: Double-quote the `uname...` expression.
86529
86530 1998-11-14  Jim Meyering  <meyering@ascend.com>
86531
86532         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
86533         * m4/stat.m4: Likewise.
86534
86535 1998-11-03  Jim Meyering  <meyering@ascend.com>
86536
86537         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
86538         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
86539
86540 1998-10-18  Jim Meyering  <meyering@ascend.com>
86541
86542         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
86543
86544 1998-10-17  Jim Meyering  <meyering@ascend.com>
86545
86546         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
86547         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
86548         calls for those previously hard-coded headers.  Instead, take a new
86549         parameter.
86550         (jm_CHECK_DECLARATIONS): Reflect interface change.
86551         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
86552         (jm_CHECK_DECL_LOCALTIME_R): New macro.
86553
86554         * m4/mktime.m4: Test for spring-forward gap before long-running test.
86555
86556 1998-10-14  Jim Meyering  <meyering@ascend.com>
86557
86558         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
86559         instead of "TZ=America/Vancouver".  From Paul Eggert.
86560
86561 1998-10-11  Jim Meyering  <meyering@ascend.com>
86562
86563         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
86564         This adds a test for a recently added compatibility fix for mktime.c.
86565         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
86566
86567 1998-09-27  Jim Meyering  <meyering@ascend.com>
86568
86569         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
86570
86571         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
86572         ../configure.in, including a change from Gordon Matzigkeit to allow
86573         cross-compiling for the Hurd.
86574
86575         * m4/glibc.m4: New file/macro to test for the GNU C Library
86576         versions 1 and 2.  From Gordon Matzigkeit.
86577         Indent.
86578
86579 1998-09-21  Jim Meyering  <meyering@ascend.com>
86580
86581         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
86582
86583 1998-08-18  Paul Eggert  <eggert@twinsun.com>
86584
86585         Port nanosecond-resolution times to UnixWare 2.1.2 and
86586         pedantic Solaris 2.6.
86587
86588         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
86589         AC_STRUCT_ST_MTIM.
86590         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
86591         Generate name of ns member, instead of just 1 or undef.
86592         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
86593
86594 1998-08-15  Jim Meyering  <meyering@ascend.com>
86595
86596         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
86597         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
86598         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
86599         instead of jm_TYPE_SSIZE_T.
86600
86601 1998-08-12  Jim Meyering  <meyering@ascend.com>
86602
86603         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
86604
86605 1998-08-02  Jim Meyering  <meyering@ascend.com>
86606
86607         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
86608         in acconfig.h manually.
86609
86610 1998-07-31  Paul Eggert  <eggert@twinsun.com>
86611
86612         * m4/st_mtim.m4: New file.
86613
86614 1998-07-28  Jim Meyering  <meyering@ascend.com>
86615
86616         * m4/utimes.m4: Undef stat.
86617
86618 1998-07-25  Jim Meyering  <meyering@ascend.com>
86619
86620         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
86621         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
86622
86623 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
86624
86625         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
86626         uid and gid actually remain unchanged.
86627
86628 1998-07-07  Jim Meyering  <meyering@ascend.com>
86629
86630         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
86631
86632 1998-07-04  Jim Meyering  <meyering@ascend.com>
86633
86634         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
86635         to prove that this macro can be used in packages without regex.c.
86636
86637 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
86638
86639         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
86640         is to be used.
86641
86642 1998-07-03  Jim Meyering  <meyering@ascend.com>
86643
86644         * m4/gettext.m4: Add -lintl if it's found to be necessary.
86645
86646         * m4/gettext.m4: New file -- from gettext-0.10.35.
86647         * m4/lcmessage.m4: Likewise.
86648         * m4/progtest.m4: Likewise.
86649
86650         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
86651         * m4/jm-macros.m4: Require the new macro.
86652
86653 1998-06-29  Jim Meyering  <meyering@ascend.com>
86654
86655         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
86656         for the definition of NGROUPS (used in a system header included
86657         by sys/mount.h).
86658
86659 1998-06-28  Jim Meyering  <meyering@ascend.com>
86660
86661         * m4/ls-mntd-fs.m4: New file.
86662         * m4/fstypename.m4: New file.
86663
86664         * m4/jm-macros.m4: Require the new macro.
86665         * m4/jm-glibc-io.m4: New file.
86666
86667 1998-05-19  Jim Meyering  <meyering@ascend.com>
86668
86669         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
86670         * m4/lchown.m4: New file.
86671
86672         * m4/Makefile.am.in: New file.
86673         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
86674
86675 1998-05-14  Jim Meyering  <meyering@ascend.com>
86676
86677         * m4/Makefile.am (EXTRA_DIST): Add them.
86678         * m4/jm-macros.m4: New file.
86679         * m4/utimbuf.m4: New file.
86680
86681 1998-05-12  Jim Meyering  <meyering@ascend.com>
86682
86683         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
86684
86685 1998-05-11  Jim Meyering  <meyering@ascend.com>
86686
86687         * m4/isc-posix.m4: New file.
86688
86689 1998-05-10  Jim Meyering  <meyering@ascend.com>
86690
86691         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
86692
86693 1998-05-09  Jim Meyering  <meyering@ascend.com>
86694
86695         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
86696         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
86697         with automake.
86698
86699         * m4/ssize_t.m4: New file.
86700         * m4/mktime.m4: Remove file -- the new automake has this now.
86701
86702 1998-04-26  Jim Meyering  <meyering@ascend.com>
86703
86704         * m4/assert.m4: New file.
86705         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
86706
86707 1998-04-05  Jim Meyering  <meyering@ascend.com>
86708
86709         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
86710         (jm_PREREQ): Use it here.
86711
86712 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
86713
86714         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
86715         in acconfig.h.
86716
86717 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
86718
86719         * m4/prereq.m4: New file.
86720         * m4/error.m4: New file.
86721         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
86722
86723 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
86724
86725         * m4/getline.m4: Don't set am_cv_func_working_getline before the
86726         cache-check for the same variable -- that defeated the purpose of
86727         the test; the test program was never run.  This was a problem only
86728         on systems with losing getline functions -- HP-UX 10.20 is one.
86729         Reported by Bjorn Helgaas.
86730
86731 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
86732
86733         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
86734
86735 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
86736
86737         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
86738
86739         * m4/const.m4: New file.  Use an initializer in this declaration
86740         typedef int charset[2]; const charset x;
86741         Reported by Bob Glickstein.
86742
86743 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
86744
86745         * m4/chown.m4: Fix reversed types on -1 args to chown.
86746         From Kaveh Ghazi.
86747
86748 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
86749
86750         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
86751         Add lseek and memchr.
86752
86753         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
86754         T.E.Dickey <dickey@clark.net> said that some older preprocessors
86755         have a 20-character limit on names.
86756
86757 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
86758
86759         * m4/inttypes_h.m4: New file.
86760         * m4/uintmax_t.m4: New file.
86761         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
86762
86763
86764         -----
86765
86766         Local Variables:
86767         coding: utf-8
86768         End:
86769
86770         Copyright (C) 1997-2011 Free Software Foundation, Inc.
86771
86772         Copying and distribution of this file, with or without
86773         modification, are permitted provided the copyright notice
86774         and this notice are preserved.